For PR540:
[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.6cvs.
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.6cvs'
429 PACKAGE_STRING='llvm 1.6cvs'
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.6cvs 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.6cvs:";;
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.6cvs
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.6cvs, 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 echo "$as_me:$LINENO: checking target architecture" >&5
1778 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1779 if test "${llvm_cv_target_arch+set}" = set; then
1780   echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782   case $target in
1783   i?86-*)                 llvm_cv_target_arch="x86" ;;
1784   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1785   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1786   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1787   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1788   ia64-*)                 llvm_cv_target_arch="IA64" ;;
1789   *)                      llvm_cv_target_arch="Unknown" ;;
1790 esac
1791 fi
1792 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1793 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1794
1795 if test "$llvm_cv_target_arch" = "Unknown" ; then
1796   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1797 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1798 fi
1799
1800 ARCH=$llvm_cv_target_arch
1801
1802
1803 ac_ext=c
1804 ac_cpp='$CPP $CPPFLAGS'
1805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1808 if test -n "$ac_tool_prefix"; then
1809   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1810 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1811 echo "$as_me:$LINENO: checking for $ac_word" >&5
1812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813 if test "${ac_cv_prog_CC+set}" = set; then
1814   echo $ECHO_N "(cached) $ECHO_C" >&6
1815 else
1816   if test -n "$CC"; then
1817   ac_cv_prog_CC="$CC" # Let the user override the test.
1818 else
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 for as_dir in $PATH
1821 do
1822   IFS=$as_save_IFS
1823   test -z "$as_dir" && as_dir=.
1824   for ac_exec_ext in '' $ac_executable_extensions; do
1825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828     break 2
1829   fi
1830 done
1831 done
1832
1833 fi
1834 fi
1835 CC=$ac_cv_prog_CC
1836 if test -n "$CC"; then
1837   echo "$as_me:$LINENO: result: $CC" >&5
1838 echo "${ECHO_T}$CC" >&6
1839 else
1840   echo "$as_me:$LINENO: result: no" >&5
1841 echo "${ECHO_T}no" >&6
1842 fi
1843
1844 fi
1845 if test -z "$ac_cv_prog_CC"; then
1846   ac_ct_CC=$CC
1847   # Extract the first word of "gcc", so it can be a program name with args.
1848 set dummy gcc; ac_word=$2
1849 echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1852   echo $ECHO_N "(cached) $ECHO_C" >&6
1853 else
1854   if test -n "$ac_ct_CC"; then
1855   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1856 else
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 for as_dir in $PATH
1859 do
1860   IFS=$as_save_IFS
1861   test -z "$as_dir" && as_dir=.
1862   for ac_exec_ext in '' $ac_executable_extensions; do
1863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864     ac_cv_prog_ac_ct_CC="gcc"
1865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866     break 2
1867   fi
1868 done
1869 done
1870
1871 fi
1872 fi
1873 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1874 if test -n "$ac_ct_CC"; then
1875   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1876 echo "${ECHO_T}$ac_ct_CC" >&6
1877 else
1878   echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6
1880 fi
1881
1882   CC=$ac_ct_CC
1883 else
1884   CC="$ac_cv_prog_CC"
1885 fi
1886
1887 if test -z "$CC"; then
1888   if test -n "$ac_tool_prefix"; then
1889   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1890 set dummy ${ac_tool_prefix}cc; ac_word=$2
1891 echo "$as_me:$LINENO: checking for $ac_word" >&5
1892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1893 if test "${ac_cv_prog_CC+set}" = set; then
1894   echo $ECHO_N "(cached) $ECHO_C" >&6
1895 else
1896   if test -n "$CC"; then
1897   ac_cv_prog_CC="$CC" # Let the user override the test.
1898 else
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 for as_dir in $PATH
1901 do
1902   IFS=$as_save_IFS
1903   test -z "$as_dir" && as_dir=.
1904   for ac_exec_ext in '' $ac_executable_extensions; do
1905   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1906     ac_cv_prog_CC="${ac_tool_prefix}cc"
1907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908     break 2
1909   fi
1910 done
1911 done
1912
1913 fi
1914 fi
1915 CC=$ac_cv_prog_CC
1916 if test -n "$CC"; then
1917   echo "$as_me:$LINENO: result: $CC" >&5
1918 echo "${ECHO_T}$CC" >&6
1919 else
1920   echo "$as_me:$LINENO: result: no" >&5
1921 echo "${ECHO_T}no" >&6
1922 fi
1923
1924 fi
1925 if test -z "$ac_cv_prog_CC"; then
1926   ac_ct_CC=$CC
1927   # Extract the first word of "cc", so it can be a program name with args.
1928 set dummy cc; ac_word=$2
1929 echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1932   echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934   if test -n "$ac_ct_CC"; then
1935   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1936 else
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
1940   IFS=$as_save_IFS
1941   test -z "$as_dir" && as_dir=.
1942   for ac_exec_ext in '' $ac_executable_extensions; do
1943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944     ac_cv_prog_ac_ct_CC="cc"
1945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946     break 2
1947   fi
1948 done
1949 done
1950
1951 fi
1952 fi
1953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1954 if test -n "$ac_ct_CC"; then
1955   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1956 echo "${ECHO_T}$ac_ct_CC" >&6
1957 else
1958   echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1960 fi
1961
1962   CC=$ac_ct_CC
1963 else
1964   CC="$ac_cv_prog_CC"
1965 fi
1966
1967 fi
1968 if test -z "$CC"; then
1969   # Extract the first word of "cc", so it can be a program name with args.
1970 set dummy cc; ac_word=$2
1971 echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973 if test "${ac_cv_prog_CC+set}" = set; then
1974   echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976   if test -n "$CC"; then
1977   ac_cv_prog_CC="$CC" # Let the user override the test.
1978 else
1979   ac_prog_rejected=no
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 for as_dir in $PATH
1982 do
1983   IFS=$as_save_IFS
1984   test -z "$as_dir" && as_dir=.
1985   for ac_exec_ext in '' $ac_executable_extensions; do
1986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1988        ac_prog_rejected=yes
1989        continue
1990      fi
1991     ac_cv_prog_CC="cc"
1992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993     break 2
1994   fi
1995 done
1996 done
1997
1998 if test $ac_prog_rejected = yes; then
1999   # We found a bogon in the path, so make sure we never use it.
2000   set dummy $ac_cv_prog_CC
2001   shift
2002   if test $# != 0; then
2003     # We chose a different compiler from the bogus one.
2004     # However, it has the same basename, so the bogon will be chosen
2005     # first if we set CC to just the basename; use the full file name.
2006     shift
2007     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2008   fi
2009 fi
2010 fi
2011 fi
2012 CC=$ac_cv_prog_CC
2013 if test -n "$CC"; then
2014   echo "$as_me:$LINENO: result: $CC" >&5
2015 echo "${ECHO_T}$CC" >&6
2016 else
2017   echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6
2019 fi
2020
2021 fi
2022 if test -z "$CC"; then
2023   if test -n "$ac_tool_prefix"; then
2024   for ac_prog in cl
2025   do
2026     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_CC+set}" = set; then
2031   echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033   if test -n "$CC"; then
2034   ac_cv_prog_CC="$CC" # Let the user override the test.
2035 else
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 for as_dir in $PATH
2038 do
2039   IFS=$as_save_IFS
2040   test -z "$as_dir" && as_dir=.
2041   for ac_exec_ext in '' $ac_executable_extensions; do
2042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045     break 2
2046   fi
2047 done
2048 done
2049
2050 fi
2051 fi
2052 CC=$ac_cv_prog_CC
2053 if test -n "$CC"; then
2054   echo "$as_me:$LINENO: result: $CC" >&5
2055 echo "${ECHO_T}$CC" >&6
2056 else
2057   echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2059 fi
2060
2061     test -n "$CC" && break
2062   done
2063 fi
2064 if test -z "$CC"; then
2065   ac_ct_CC=$CC
2066   for ac_prog in cl
2067 do
2068   # Extract the first word of "$ac_prog", so it can be a program name with args.
2069 set dummy $ac_prog; ac_word=$2
2070 echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   if test -n "$ac_ct_CC"; then
2076   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077 else
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2080 do
2081   IFS=$as_save_IFS
2082   test -z "$as_dir" && as_dir=.
2083   for ac_exec_ext in '' $ac_executable_extensions; do
2084   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085     ac_cv_prog_ac_ct_CC="$ac_prog"
2086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087     break 2
2088   fi
2089 done
2090 done
2091
2092 fi
2093 fi
2094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095 if test -n "$ac_ct_CC"; then
2096   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097 echo "${ECHO_T}$ac_ct_CC" >&6
2098 else
2099   echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2101 fi
2102
2103   test -n "$ac_ct_CC" && break
2104 done
2105
2106   CC=$ac_ct_CC
2107 fi
2108
2109 fi
2110
2111
2112 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2113 See \`config.log' for more details." >&5
2114 echo "$as_me: error: no acceptable C compiler found in \$PATH
2115 See \`config.log' for more details." >&2;}
2116    { (exit 1); exit 1; }; }
2117
2118 # Provide some information about the compiler.
2119 echo "$as_me:$LINENO:" \
2120      "checking for C compiler version" >&5
2121 ac_compiler=`set X $ac_compile; echo $2`
2122 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2123   (eval $ac_compiler --version </dev/null >&5) 2>&5
2124   ac_status=$?
2125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126   (exit $ac_status); }
2127 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2128   (eval $ac_compiler -v </dev/null >&5) 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }
2132 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2133   (eval $ac_compiler -V </dev/null >&5) 2>&5
2134   ac_status=$?
2135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136   (exit $ac_status); }
2137
2138 cat >conftest.$ac_ext <<_ACEOF
2139 /* confdefs.h.  */
2140 _ACEOF
2141 cat confdefs.h >>conftest.$ac_ext
2142 cat >>conftest.$ac_ext <<_ACEOF
2143 /* end confdefs.h.  */
2144
2145 int
2146 main ()
2147 {
2148
2149   ;
2150   return 0;
2151 }
2152 _ACEOF
2153 ac_clean_files_save=$ac_clean_files
2154 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2155 # Try to create an executable without -o first, disregard a.out.
2156 # It will help us diagnose broken compilers, and finding out an intuition
2157 # of exeext.
2158 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2159 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2160 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2161 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2162   (eval $ac_link_default) 2>&5
2163   ac_status=$?
2164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165   (exit $ac_status); }; then
2166   # Find the output, starting from the most likely.  This scheme is
2167 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2168 # resort.
2169
2170 # Be careful to initialize this variable, since it used to be cached.
2171 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2172 ac_cv_exeext=
2173 # b.out is created by i960 compilers.
2174 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2175 do
2176   test -f "$ac_file" || continue
2177   case $ac_file in
2178     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2179         ;;
2180     conftest.$ac_ext )
2181         # This is the source file.
2182         ;;
2183     [ab].out )
2184         # We found the default executable, but exeext='' is most
2185         # certainly right.
2186         break;;
2187     *.* )
2188         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2189         # FIXME: I believe we export ac_cv_exeext for Libtool,
2190         # but it would be cool to find out if it's true.  Does anybody
2191         # maintain Libtool? --akim.
2192         export ac_cv_exeext
2193         break;;
2194     * )
2195         break;;
2196   esac
2197 done
2198 else
2199   echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2201
2202 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2203 See \`config.log' for more details." >&5
2204 echo "$as_me: error: C compiler cannot create executables
2205 See \`config.log' for more details." >&2;}
2206    { (exit 77); exit 77; }; }
2207 fi
2208
2209 ac_exeext=$ac_cv_exeext
2210 echo "$as_me:$LINENO: result: $ac_file" >&5
2211 echo "${ECHO_T}$ac_file" >&6
2212
2213 # Check the compiler produces executables we can run.  If not, either
2214 # the compiler is broken, or we cross compile.
2215 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2216 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2217 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2218 # If not cross compiling, check that we can run a simple program.
2219 if test "$cross_compiling" != yes; then
2220   if { ac_try='./$ac_file'
2221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222   (eval $ac_try) 2>&5
2223   ac_status=$?
2224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225   (exit $ac_status); }; }; then
2226     cross_compiling=no
2227   else
2228     if test "$cross_compiling" = maybe; then
2229         cross_compiling=yes
2230     else
2231         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2232 If you meant to cross compile, use \`--host'.
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: cannot run C compiled programs.
2235 If you meant to cross compile, use \`--host'.
2236 See \`config.log' for more details." >&2;}
2237    { (exit 1); exit 1; }; }
2238     fi
2239   fi
2240 fi
2241 echo "$as_me:$LINENO: result: yes" >&5
2242 echo "${ECHO_T}yes" >&6
2243
2244 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2245 ac_clean_files=$ac_clean_files_save
2246 # Check the compiler produces executables we can run.  If not, either
2247 # the compiler is broken, or we cross compile.
2248 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2249 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2250 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2251 echo "${ECHO_T}$cross_compiling" >&6
2252
2253 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2254 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2256   (eval $ac_link) 2>&5
2257   ac_status=$?
2258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259   (exit $ac_status); }; then
2260   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2261 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2262 # work properly (i.e., refer to `conftest.exe'), while it won't with
2263 # `rm'.
2264 for ac_file in conftest.exe conftest conftest.*; do
2265   test -f "$ac_file" || continue
2266   case $ac_file in
2267     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2268     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2269           export ac_cv_exeext
2270           break;;
2271     * ) break;;
2272   esac
2273 done
2274 else
2275   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2278 See \`config.log' for more details." >&2;}
2279    { (exit 1); exit 1; }; }
2280 fi
2281
2282 rm -f conftest$ac_cv_exeext
2283 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2284 echo "${ECHO_T}$ac_cv_exeext" >&6
2285
2286 rm -f conftest.$ac_ext
2287 EXEEXT=$ac_cv_exeext
2288 ac_exeext=$EXEEXT
2289 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2290 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2291 if test "${ac_cv_objext+set}" = set; then
2292   echo $ECHO_N "(cached) $ECHO_C" >&6
2293 else
2294   cat >conftest.$ac_ext <<_ACEOF
2295 /* confdefs.h.  */
2296 _ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h.  */
2300
2301 int
2302 main ()
2303 {
2304
2305   ;
2306   return 0;
2307 }
2308 _ACEOF
2309 rm -f conftest.o conftest.obj
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311   (eval $ac_compile) 2>&5
2312   ac_status=$?
2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314   (exit $ac_status); }; then
2315   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2316   case $ac_file in
2317     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2318     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2319        break;;
2320   esac
2321 done
2322 else
2323   echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325
2326 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2327 See \`config.log' for more details." >&5
2328 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2329 See \`config.log' for more details." >&2;}
2330    { (exit 1); exit 1; }; }
2331 fi
2332
2333 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2334 fi
2335 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2336 echo "${ECHO_T}$ac_cv_objext" >&6
2337 OBJEXT=$ac_cv_objext
2338 ac_objext=$OBJEXT
2339 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2340 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2341 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2342   echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344   cat >conftest.$ac_ext <<_ACEOF
2345 /* confdefs.h.  */
2346 _ACEOF
2347 cat confdefs.h >>conftest.$ac_ext
2348 cat >>conftest.$ac_ext <<_ACEOF
2349 /* end confdefs.h.  */
2350
2351 int
2352 main ()
2353 {
2354 #ifndef __GNUC__
2355        choke me
2356 #endif
2357
2358   ;
2359   return 0;
2360 }
2361 _ACEOF
2362 rm -f conftest.$ac_objext
2363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364   (eval $ac_compile) 2>conftest.er1
2365   ac_status=$?
2366   grep -v '^ *+' conftest.er1 >conftest.err
2367   rm -f conftest.er1
2368   cat conftest.err >&5
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); } &&
2371          { ac_try='test -z "$ac_c_werror_flag"
2372                          || test ! -s conftest.err'
2373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374   (eval $ac_try) 2>&5
2375   ac_status=$?
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); }; } &&
2378          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2384   ac_compiler_gnu=yes
2385 else
2386   echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2388
2389 ac_compiler_gnu=no
2390 fi
2391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2392 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2393
2394 fi
2395 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2396 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2397 GCC=`test $ac_compiler_gnu = yes && echo yes`
2398 ac_test_CFLAGS=${CFLAGS+set}
2399 ac_save_CFLAGS=$CFLAGS
2400 CFLAGS="-g"
2401 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2402 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2403 if test "${ac_cv_prog_cc_g+set}" = set; then
2404   echo $ECHO_N "(cached) $ECHO_C" >&6
2405 else
2406   cat >conftest.$ac_ext <<_ACEOF
2407 /* confdefs.h.  */
2408 _ACEOF
2409 cat confdefs.h >>conftest.$ac_ext
2410 cat >>conftest.$ac_ext <<_ACEOF
2411 /* end confdefs.h.  */
2412
2413 int
2414 main ()
2415 {
2416
2417   ;
2418   return 0;
2419 }
2420 _ACEOF
2421 rm -f conftest.$ac_objext
2422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423   (eval $ac_compile) 2>conftest.er1
2424   ac_status=$?
2425   grep -v '^ *+' conftest.er1 >conftest.err
2426   rm -f conftest.er1
2427   cat conftest.err >&5
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); } &&
2430          { ac_try='test -z "$ac_c_werror_flag"
2431                          || test ! -s conftest.err'
2432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433   (eval $ac_try) 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); }; } &&
2437          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2443   ac_cv_prog_cc_g=yes
2444 else
2445   echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 ac_cv_prog_cc_g=no
2449 fi
2450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2451 fi
2452 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2453 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2454 if test "$ac_test_CFLAGS" = set; then
2455   CFLAGS=$ac_save_CFLAGS
2456 elif test $ac_cv_prog_cc_g = yes; then
2457   if test "$GCC" = yes; then
2458     CFLAGS="-g -O2"
2459   else
2460     CFLAGS="-g"
2461   fi
2462 else
2463   if test "$GCC" = yes; then
2464     CFLAGS="-O2"
2465   else
2466     CFLAGS=
2467   fi
2468 fi
2469 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2470 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2471 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2472   echo $ECHO_N "(cached) $ECHO_C" >&6
2473 else
2474   ac_cv_prog_cc_stdc=no
2475 ac_save_CC=$CC
2476 cat >conftest.$ac_ext <<_ACEOF
2477 /* confdefs.h.  */
2478 _ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h.  */
2482 #include <stdarg.h>
2483 #include <stdio.h>
2484 #include <sys/types.h>
2485 #include <sys/stat.h>
2486 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2487 struct buf { int x; };
2488 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2489 static char *e (p, i)
2490      char **p;
2491      int i;
2492 {
2493   return p[i];
2494 }
2495 static char *f (char * (*g) (char **, int), char **p, ...)
2496 {
2497   char *s;
2498   va_list v;
2499   va_start (v,p);
2500   s = g (p, va_arg (v,int));
2501   va_end (v);
2502   return s;
2503 }
2504
2505 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2506    function prototypes and stuff, but not '\xHH' hex character constants.
2507    These don't provoke an error unfortunately, instead are silently treated
2508    as 'x'.  The following induces an error, until -std1 is added to get
2509    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2510    array size at least.  It's necessary to write '\x00'==0 to get something
2511    that's true only with -std1.  */
2512 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2513
2514 int test (int i, double x);
2515 struct s1 {int (*f) (int a);};
2516 struct s2 {int (*f) (double a);};
2517 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2518 int argc;
2519 char **argv;
2520 int
2521 main ()
2522 {
2523 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2524   ;
2525   return 0;
2526 }
2527 _ACEOF
2528 # Don't try gcc -ansi; that turns off useful extensions and
2529 # breaks some systems' header files.
2530 # AIX                   -qlanglvl=ansi
2531 # Ultrix and OSF/1      -std1
2532 # HP-UX 10.20 and later -Ae
2533 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2534 # SVR4                  -Xc -D__EXTENSIONS__
2535 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2536 do
2537   CC="$ac_save_CC $ac_arg"
2538   rm -f conftest.$ac_objext
2539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2540   (eval $ac_compile) 2>conftest.er1
2541   ac_status=$?
2542   grep -v '^ *+' conftest.er1 >conftest.err
2543   rm -f conftest.er1
2544   cat conftest.err >&5
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); } &&
2547          { ac_try='test -z "$ac_c_werror_flag"
2548                          || test ! -s conftest.err'
2549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550   (eval $ac_try) 2>&5
2551   ac_status=$?
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); }; } &&
2554          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2560   ac_cv_prog_cc_stdc=$ac_arg
2561 break
2562 else
2563   echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566 fi
2567 rm -f conftest.err conftest.$ac_objext
2568 done
2569 rm -f conftest.$ac_ext conftest.$ac_objext
2570 CC=$ac_save_CC
2571
2572 fi
2573
2574 case "x$ac_cv_prog_cc_stdc" in
2575   x|xno)
2576     echo "$as_me:$LINENO: result: none needed" >&5
2577 echo "${ECHO_T}none needed" >&6 ;;
2578   *)
2579     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2580 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2581     CC="$CC $ac_cv_prog_cc_stdc" ;;
2582 esac
2583
2584 # Some people use a C++ compiler to compile C.  Since we use `exit',
2585 # in C++ we need to declare it.  In case someone uses the same compiler
2586 # for both compiling C and C++ we need to have the C++ compiler decide
2587 # the declaration of exit, since it's the most demanding environment.
2588 cat >conftest.$ac_ext <<_ACEOF
2589 #ifndef __cplusplus
2590   choke me
2591 #endif
2592 _ACEOF
2593 rm -f conftest.$ac_objext
2594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595   (eval $ac_compile) 2>conftest.er1
2596   ac_status=$?
2597   grep -v '^ *+' conftest.er1 >conftest.err
2598   rm -f conftest.er1
2599   cat conftest.err >&5
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); } &&
2602          { ac_try='test -z "$ac_c_werror_flag"
2603                          || test ! -s conftest.err'
2604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605   (eval $ac_try) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); }; } &&
2609          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2615   for ac_declaration in \
2616    '' \
2617    'extern "C" void std::exit (int) throw (); using std::exit;' \
2618    'extern "C" void std::exit (int); using std::exit;' \
2619    'extern "C" void exit (int) throw ();' \
2620    'extern "C" void exit (int);' \
2621    'void exit (int);'
2622 do
2623   cat >conftest.$ac_ext <<_ACEOF
2624 /* confdefs.h.  */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h.  */
2629 $ac_declaration
2630 #include <stdlib.h>
2631 int
2632 main ()
2633 {
2634 exit (42);
2635   ;
2636   return 0;
2637 }
2638 _ACEOF
2639 rm -f conftest.$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641   (eval $ac_compile) 2>conftest.er1
2642   ac_status=$?
2643   grep -v '^ *+' conftest.er1 >conftest.err
2644   rm -f conftest.er1
2645   cat conftest.err >&5
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); } &&
2648          { ac_try='test -z "$ac_c_werror_flag"
2649                          || test ! -s conftest.err'
2650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651   (eval $ac_try) 2>&5
2652   ac_status=$?
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); }; } &&
2655          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2661   :
2662 else
2663   echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2665
2666 continue
2667 fi
2668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2669   cat >conftest.$ac_ext <<_ACEOF
2670 /* confdefs.h.  */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h.  */
2675 $ac_declaration
2676 int
2677 main ()
2678 {
2679 exit (42);
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
2684 rm -f conftest.$ac_objext
2685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686   (eval $ac_compile) 2>conftest.er1
2687   ac_status=$?
2688   grep -v '^ *+' conftest.er1 >conftest.err
2689   rm -f conftest.er1
2690   cat conftest.err >&5
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); } &&
2693          { ac_try='test -z "$ac_c_werror_flag"
2694                          || test ! -s conftest.err'
2695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696   (eval $ac_try) 2>&5
2697   ac_status=$?
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); }; } &&
2700          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2706   break
2707 else
2708   echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2710
2711 fi
2712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2713 done
2714 rm -f conftest*
2715 if test -n "$ac_declaration"; then
2716   echo '#ifdef __cplusplus' >>confdefs.h
2717   echo $ac_declaration      >>confdefs.h
2718   echo '#endif'             >>confdefs.h
2719 fi
2720
2721 else
2722   echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2724
2725 fi
2726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2727 ac_ext=c
2728 ac_cpp='$CPP $CPPFLAGS'
2729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732
2733
2734 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2735 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2736 if test "${ac_cv_c_bigendian+set}" = set; then
2737   echo $ECHO_N "(cached) $ECHO_C" >&6
2738 else
2739   # See if sys/param.h defines the BYTE_ORDER macro.
2740 cat >conftest.$ac_ext <<_ACEOF
2741 /* confdefs.h.  */
2742 _ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h.  */
2746 #include <sys/types.h>
2747 #include <sys/param.h>
2748
2749 int
2750 main ()
2751 {
2752 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2753  bogus endian macros
2754 #endif
2755
2756   ;
2757   return 0;
2758 }
2759 _ACEOF
2760 rm -f conftest.$ac_objext
2761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2762   (eval $ac_compile) 2>conftest.er1
2763   ac_status=$?
2764   grep -v '^ *+' conftest.er1 >conftest.err
2765   rm -f conftest.er1
2766   cat conftest.err >&5
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); } &&
2769          { ac_try='test -z "$ac_c_werror_flag"
2770                          || test ! -s conftest.err'
2771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772   (eval $ac_try) 2>&5
2773   ac_status=$?
2774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775   (exit $ac_status); }; } &&
2776          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2782   # It does; now see whether it defined to BIG_ENDIAN or not.
2783 cat >conftest.$ac_ext <<_ACEOF
2784 /* confdefs.h.  */
2785 _ACEOF
2786 cat confdefs.h >>conftest.$ac_ext
2787 cat >>conftest.$ac_ext <<_ACEOF
2788 /* end confdefs.h.  */
2789 #include <sys/types.h>
2790 #include <sys/param.h>
2791
2792 int
2793 main ()
2794 {
2795 #if BYTE_ORDER != BIG_ENDIAN
2796  not big endian
2797 #endif
2798
2799   ;
2800   return 0;
2801 }
2802 _ACEOF
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805   (eval $ac_compile) 2>conftest.er1
2806   ac_status=$?
2807   grep -v '^ *+' conftest.er1 >conftest.err
2808   rm -f conftest.er1
2809   cat conftest.err >&5
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); } &&
2812          { ac_try='test -z "$ac_c_werror_flag"
2813                          || test ! -s conftest.err'
2814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815   (eval $ac_try) 2>&5
2816   ac_status=$?
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); }; } &&
2819          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2825   ac_cv_c_bigendian=yes
2826 else
2827   echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2829
2830 ac_cv_c_bigendian=no
2831 fi
2832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2833 else
2834   echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837 # It does not; compile a test program.
2838 if test "$cross_compiling" = yes; then
2839   # try to guess the endianness by grepping values into an object file
2840   ac_cv_c_bigendian=unknown
2841   cat >conftest.$ac_ext <<_ACEOF
2842 /* confdefs.h.  */
2843 _ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h.  */
2847 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2848 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2849 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2850 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2851 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2852 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2853 int
2854 main ()
2855 {
2856  _ascii (); _ebcdic ();
2857   ;
2858   return 0;
2859 }
2860 _ACEOF
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863   (eval $ac_compile) 2>conftest.er1
2864   ac_status=$?
2865   grep -v '^ *+' conftest.er1 >conftest.err
2866   rm -f conftest.er1
2867   cat conftest.err >&5
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); } &&
2870          { ac_try='test -z "$ac_c_werror_flag"
2871                          || test ! -s conftest.err'
2872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873   (eval $ac_try) 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); }; } &&
2877          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2883   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2884   ac_cv_c_bigendian=yes
2885 fi
2886 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2887   if test "$ac_cv_c_bigendian" = unknown; then
2888     ac_cv_c_bigendian=no
2889   else
2890     # finding both strings is unlikely to happen, but who knows?
2891     ac_cv_c_bigendian=unknown
2892   fi
2893 fi
2894 else
2895   echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898 fi
2899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900 else
2901   cat >conftest.$ac_ext <<_ACEOF
2902 /* confdefs.h.  */
2903 _ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h.  */
2907 int
2908 main ()
2909 {
2910   /* Are we little or big endian?  From Harbison&Steele.  */
2911   union
2912   {
2913     long l;
2914     char c[sizeof (long)];
2915   } u;
2916   u.l = 1;
2917   exit (u.c[sizeof (long) - 1] == 1);
2918 }
2919 _ACEOF
2920 rm -f conftest$ac_exeext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2922   (eval $ac_link) 2>&5
2923   ac_status=$?
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927   (eval $ac_try) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }; }; then
2931   ac_cv_c_bigendian=no
2932 else
2933   echo "$as_me: program exited with status $ac_status" >&5
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2936
2937 ( exit $ac_status )
2938 ac_cv_c_bigendian=yes
2939 fi
2940 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2941 fi
2942 fi
2943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2944 fi
2945 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2946 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2947 case $ac_cv_c_bigendian in
2948   yes)
2949     ENDIAN=big
2950  ;;
2951   no)
2952     ENDIAN=little
2953  ;;
2954   *)
2955     { { echo "$as_me:$LINENO: error: unknown endianness
2956 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2957 echo "$as_me: error: unknown endianness
2958 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2959    { (exit 1); exit 1; }; } ;;
2960 esac
2961
2962
2963
2964 # Check whether --enable-optimized or --disable-optimized was given.
2965 if test "${enable_optimized+set}" = set; then
2966   enableval="$enable_optimized"
2967
2968 else
2969   enableval=no
2970 fi;
2971 if test ${enableval} = "no" ; then
2972   ENABLE_OPTIMIZED=
2973
2974 else
2975   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2976
2977 fi
2978
2979 # Check whether --enable-jit or --disable-jit was given.
2980 if test "${enable_jit+set}" = set; then
2981   enableval="$enable_jit"
2982
2983 else
2984   enableval=default
2985 fi;
2986 if test ${enableval} = "no"
2987 then
2988   JIT=
2989
2990 else
2991   case "$llvm_cv_target_arch" in
2992     x86)     JIT=TARGET_HAS_JIT=1
2993  ;;
2994     Sparc)   JIT=TARGET_HAS_JIT=1
2995  ;;
2996     PowerPC) JIT=TARGET_HAS_JIT=1
2997  ;;
2998     x86_64)  JIT=
2999  ;;
3000     Alpha)   JIT=
3001  ;;
3002     IA64)    JIT=
3003  ;;
3004     *)       JIT=
3005  ;;
3006   esac
3007 fi
3008
3009 # Check whether --enable-doxygen or --disable-doxygen was given.
3010 if test "${enable_doxygen+set}" = set; then
3011   enableval="$enable_doxygen"
3012
3013 else
3014   enableval=default
3015 fi;
3016 case "$enableval" in
3017   yes) ENABLE_DOXYGEN=1
3018  ;;
3019   no)  ENABLE_DOXYGEN=0
3020  ;;
3021   default) ENABLE_DOXYGEN=0
3022  ;;
3023   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3024 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3025    { (exit 1); exit 1; }; } ;;
3026 esac
3027
3028 TARGETS_TO_BUILD=""
3029 # Check whether --enable-targets or --disable-targets was given.
3030 if test "${enable_targets+set}" = set; then
3031   enableval="$enable_targets"
3032
3033 else
3034   enableval=all
3035 fi;
3036 case "$enableval" in
3037   all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;;
3038   host-only)
3039     case "$llvm_cv_target_arch" in
3040       x86)     TARGETS_TO_BUILD="X86" ;;
3041       x86_64)  TARGETS_TO_BUILD="X86" ;;
3042       Sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3043       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3044       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3045       IA64)    TARGETS_TO_BUILD="IA64" ;;
3046       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3047 echo "$as_me: error: Can not set target to build" >&2;}
3048    { (exit 1); exit 1; }; } ;;
3049     esac
3050     ;;
3051   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3052       case "$a_target" in
3053         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3054         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3055         sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3056         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3057         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3058         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3059         skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3060         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3061 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3062    { (exit 1); exit 1; }; } ;;
3063       esac
3064   done
3065   ;;
3066 esac
3067 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3068 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3069
3070
3071
3072 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3073 if test "${with_llvmgccdir+set}" = set; then
3074   withval="$with_llvmgccdir"
3075
3076 else
3077   withval=default
3078 fi;
3079 case "$withval" in
3080   default) WITH_LLVMGCCDIR=default ;;
3081   /*)      WITH_LLVMGCCDIR=$withval ;;
3082   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3083 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3084    { (exit 1); exit 1; }; } ;;
3085 esac
3086
3087
3088
3089 ac_ext=c
3090 ac_cpp='$CPP $CPPFLAGS'
3091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3094 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3095 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3096 # On Suns, sometimes $CPP names a directory.
3097 if test -n "$CPP" && test -d "$CPP"; then
3098   CPP=
3099 fi
3100 if test -z "$CPP"; then
3101   if test "${ac_cv_prog_CPP+set}" = set; then
3102   echo $ECHO_N "(cached) $ECHO_C" >&6
3103 else
3104       # Double quotes because CPP needs to be expanded
3105     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3106     do
3107       ac_preproc_ok=false
3108 for ac_c_preproc_warn_flag in '' yes
3109 do
3110   # Use a header file that comes with gcc, so configuring glibc
3111   # with a fresh cross-compiler works.
3112   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3113   # <limits.h> exists even on freestanding compilers.
3114   # On the NeXT, cc -E runs the code through the compiler's parser,
3115   # not just through cpp. "Syntax error" is here to catch this case.
3116   cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h.  */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h.  */
3122 #ifdef __STDC__
3123 # include <limits.h>
3124 #else
3125 # include <assert.h>
3126 #endif
3127                      Syntax error
3128 _ACEOF
3129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3130   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3131   ac_status=$?
3132   grep -v '^ *+' conftest.er1 >conftest.err
3133   rm -f conftest.er1
3134   cat conftest.err >&5
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); } >/dev/null; then
3137   if test -s conftest.err; then
3138     ac_cpp_err=$ac_c_preproc_warn_flag
3139     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3140   else
3141     ac_cpp_err=
3142   fi
3143 else
3144   ac_cpp_err=yes
3145 fi
3146 if test -z "$ac_cpp_err"; then
3147   :
3148 else
3149   echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152   # Broken: fails on valid input.
3153 continue
3154 fi
3155 rm -f conftest.err conftest.$ac_ext
3156
3157   # OK, works on sane cases.  Now check whether non-existent headers
3158   # can be detected and how.
3159   cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165 #include <ac_nonexistent.h>
3166 _ACEOF
3167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3168   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3169   ac_status=$?
3170   grep -v '^ *+' conftest.er1 >conftest.err
3171   rm -f conftest.er1
3172   cat conftest.err >&5
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); } >/dev/null; then
3175   if test -s conftest.err; then
3176     ac_cpp_err=$ac_c_preproc_warn_flag
3177     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3178   else
3179     ac_cpp_err=
3180   fi
3181 else
3182   ac_cpp_err=yes
3183 fi
3184 if test -z "$ac_cpp_err"; then
3185   # Broken: success on invalid input.
3186 continue
3187 else
3188   echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191   # Passes both tests.
3192 ac_preproc_ok=:
3193 break
3194 fi
3195 rm -f conftest.err conftest.$ac_ext
3196
3197 done
3198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3199 rm -f conftest.err conftest.$ac_ext
3200 if $ac_preproc_ok; then
3201   break
3202 fi
3203
3204     done
3205     ac_cv_prog_CPP=$CPP
3206
3207 fi
3208   CPP=$ac_cv_prog_CPP
3209 else
3210   ac_cv_prog_CPP=$CPP
3211 fi
3212 echo "$as_me:$LINENO: result: $CPP" >&5
3213 echo "${ECHO_T}$CPP" >&6
3214 ac_preproc_ok=false
3215 for ac_c_preproc_warn_flag in '' yes
3216 do
3217   # Use a header file that comes with gcc, so configuring glibc
3218   # with a fresh cross-compiler works.
3219   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3220   # <limits.h> exists even on freestanding compilers.
3221   # On the NeXT, cc -E runs the code through the compiler's parser,
3222   # not just through cpp. "Syntax error" is here to catch this case.
3223   cat >conftest.$ac_ext <<_ACEOF
3224 /* confdefs.h.  */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h.  */
3229 #ifdef __STDC__
3230 # include <limits.h>
3231 #else
3232 # include <assert.h>
3233 #endif
3234                      Syntax error
3235 _ACEOF
3236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3237   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3238   ac_status=$?
3239   grep -v '^ *+' conftest.er1 >conftest.err
3240   rm -f conftest.er1
3241   cat conftest.err >&5
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); } >/dev/null; then
3244   if test -s conftest.err; then
3245     ac_cpp_err=$ac_c_preproc_warn_flag
3246     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3247   else
3248     ac_cpp_err=
3249   fi
3250 else
3251   ac_cpp_err=yes
3252 fi
3253 if test -z "$ac_cpp_err"; then
3254   :
3255 else
3256   echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3258
3259   # Broken: fails on valid input.
3260 continue
3261 fi
3262 rm -f conftest.err conftest.$ac_ext
3263
3264   # OK, works on sane cases.  Now check whether non-existent headers
3265   # can be detected and how.
3266   cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 #include <ac_nonexistent.h>
3273 _ACEOF
3274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3275   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3276   ac_status=$?
3277   grep -v '^ *+' conftest.er1 >conftest.err
3278   rm -f conftest.er1
3279   cat conftest.err >&5
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); } >/dev/null; then
3282   if test -s conftest.err; then
3283     ac_cpp_err=$ac_c_preproc_warn_flag
3284     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3285   else
3286     ac_cpp_err=
3287   fi
3288 else
3289   ac_cpp_err=yes
3290 fi
3291 if test -z "$ac_cpp_err"; then
3292   # Broken: success on invalid input.
3293 continue
3294 else
3295   echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298   # Passes both tests.
3299 ac_preproc_ok=:
3300 break
3301 fi
3302 rm -f conftest.err conftest.$ac_ext
3303
3304 done
3305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3306 rm -f conftest.err conftest.$ac_ext
3307 if $ac_preproc_ok; then
3308   :
3309 else
3310   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3311 See \`config.log' for more details." >&5
3312 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3313 See \`config.log' for more details." >&2;}
3314    { (exit 1); exit 1; }; }
3315 fi
3316
3317 ac_ext=c
3318 ac_cpp='$CPP $CPPFLAGS'
3319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322
3323 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 if test -n "$ac_tool_prefix"; then
3329   for ac_prog in gcc
3330   do
3331     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3333 echo "$as_me:$LINENO: checking for $ac_word" >&5
3334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335 if test "${ac_cv_prog_CC+set}" = set; then
3336   echo $ECHO_N "(cached) $ECHO_C" >&6
3337 else
3338   if test -n "$CC"; then
3339   ac_cv_prog_CC="$CC" # Let the user override the test.
3340 else
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3343 do
3344   IFS=$as_save_IFS
3345   test -z "$as_dir" && as_dir=.
3346   for ac_exec_ext in '' $ac_executable_extensions; do
3347   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350     break 2
3351   fi
3352 done
3353 done
3354
3355 fi
3356 fi
3357 CC=$ac_cv_prog_CC
3358 if test -n "$CC"; then
3359   echo "$as_me:$LINENO: result: $CC" >&5
3360 echo "${ECHO_T}$CC" >&6
3361 else
3362   echo "$as_me:$LINENO: result: no" >&5
3363 echo "${ECHO_T}no" >&6
3364 fi
3365
3366     test -n "$CC" && break
3367   done
3368 fi
3369 if test -z "$CC"; then
3370   ac_ct_CC=$CC
3371   for ac_prog in gcc
3372 do
3373   # Extract the first word of "$ac_prog", so it can be a program name with args.
3374 set dummy $ac_prog; ac_word=$2
3375 echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3377 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3378   echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380   if test -n "$ac_ct_CC"; then
3381   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3385 do
3386   IFS=$as_save_IFS
3387   test -z "$as_dir" && as_dir=.
3388   for ac_exec_ext in '' $ac_executable_extensions; do
3389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390     ac_cv_prog_ac_ct_CC="$ac_prog"
3391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392     break 2
3393   fi
3394 done
3395 done
3396
3397 fi
3398 fi
3399 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3400 if test -n "$ac_ct_CC"; then
3401   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3402 echo "${ECHO_T}$ac_ct_CC" >&6
3403 else
3404   echo "$as_me:$LINENO: result: no" >&5
3405 echo "${ECHO_T}no" >&6
3406 fi
3407
3408   test -n "$ac_ct_CC" && break
3409 done
3410
3411   CC=$ac_ct_CC
3412 fi
3413
3414
3415 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3416 See \`config.log' for more details." >&5
3417 echo "$as_me: error: no acceptable C compiler found in \$PATH
3418 See \`config.log' for more details." >&2;}
3419    { (exit 1); exit 1; }; }
3420
3421 # Provide some information about the compiler.
3422 echo "$as_me:$LINENO:" \
3423      "checking for C compiler version" >&5
3424 ac_compiler=`set X $ac_compile; echo $2`
3425 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3426   (eval $ac_compiler --version </dev/null >&5) 2>&5
3427   ac_status=$?
3428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429   (exit $ac_status); }
3430 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3431   (eval $ac_compiler -v </dev/null >&5) 2>&5
3432   ac_status=$?
3433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); }
3435 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3436   (eval $ac_compiler -V </dev/null >&5) 2>&5
3437   ac_status=$?
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); }
3440
3441 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3442 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3443 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3444   echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446   cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h.  */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h.  */
3452
3453 int
3454 main ()
3455 {
3456 #ifndef __GNUC__
3457        choke me
3458 #endif
3459
3460   ;
3461   return 0;
3462 }
3463 _ACEOF
3464 rm -f conftest.$ac_objext
3465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466   (eval $ac_compile) 2>conftest.er1
3467   ac_status=$?
3468   grep -v '^ *+' conftest.er1 >conftest.err
3469   rm -f conftest.er1
3470   cat conftest.err >&5
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); } &&
3473          { ac_try='test -z "$ac_c_werror_flag"
3474                          || test ! -s conftest.err'
3475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476   (eval $ac_try) 2>&5
3477   ac_status=$?
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); }; } &&
3480          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3486   ac_compiler_gnu=yes
3487 else
3488   echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491 ac_compiler_gnu=no
3492 fi
3493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3495
3496 fi
3497 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3498 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3499 GCC=`test $ac_compiler_gnu = yes && echo yes`
3500 ac_test_CFLAGS=${CFLAGS+set}
3501 ac_save_CFLAGS=$CFLAGS
3502 CFLAGS="-g"
3503 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3504 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3505 if test "${ac_cv_prog_cc_g+set}" = set; then
3506   echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508   cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h.  */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h.  */
3514
3515 int
3516 main ()
3517 {
3518
3519   ;
3520   return 0;
3521 }
3522 _ACEOF
3523 rm -f conftest.$ac_objext
3524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3525   (eval $ac_compile) 2>conftest.er1
3526   ac_status=$?
3527   grep -v '^ *+' conftest.er1 >conftest.err
3528   rm -f conftest.er1
3529   cat conftest.err >&5
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); } &&
3532          { ac_try='test -z "$ac_c_werror_flag"
3533                          || test ! -s conftest.err'
3534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535   (eval $ac_try) 2>&5
3536   ac_status=$?
3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538   (exit $ac_status); }; } &&
3539          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3545   ac_cv_prog_cc_g=yes
3546 else
3547   echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550 ac_cv_prog_cc_g=no
3551 fi
3552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3553 fi
3554 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3555 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3556 if test "$ac_test_CFLAGS" = set; then
3557   CFLAGS=$ac_save_CFLAGS
3558 elif test $ac_cv_prog_cc_g = yes; then
3559   if test "$GCC" = yes; then
3560     CFLAGS="-g -O2"
3561   else
3562     CFLAGS="-g"
3563   fi
3564 else
3565   if test "$GCC" = yes; then
3566     CFLAGS="-O2"
3567   else
3568     CFLAGS=
3569   fi
3570 fi
3571 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3572 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3573 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3574   echo $ECHO_N "(cached) $ECHO_C" >&6
3575 else
3576   ac_cv_prog_cc_stdc=no
3577 ac_save_CC=$CC
3578 cat >conftest.$ac_ext <<_ACEOF
3579 /* confdefs.h.  */
3580 _ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h.  */
3584 #include <stdarg.h>
3585 #include <stdio.h>
3586 #include <sys/types.h>
3587 #include <sys/stat.h>
3588 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3589 struct buf { int x; };
3590 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3591 static char *e (p, i)
3592      char **p;
3593      int i;
3594 {
3595   return p[i];
3596 }
3597 static char *f (char * (*g) (char **, int), char **p, ...)
3598 {
3599   char *s;
3600   va_list v;
3601   va_start (v,p);
3602   s = g (p, va_arg (v,int));
3603   va_end (v);
3604   return s;
3605 }
3606
3607 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3608    function prototypes and stuff, but not '\xHH' hex character constants.
3609    These don't provoke an error unfortunately, instead are silently treated
3610    as 'x'.  The following induces an error, until -std1 is added to get
3611    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3612    array size at least.  It's necessary to write '\x00'==0 to get something
3613    that's true only with -std1.  */
3614 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3615
3616 int test (int i, double x);
3617 struct s1 {int (*f) (int a);};
3618 struct s2 {int (*f) (double a);};
3619 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3620 int argc;
3621 char **argv;
3622 int
3623 main ()
3624 {
3625 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3626   ;
3627   return 0;
3628 }
3629 _ACEOF
3630 # Don't try gcc -ansi; that turns off useful extensions and
3631 # breaks some systems' header files.
3632 # AIX                   -qlanglvl=ansi
3633 # Ultrix and OSF/1      -std1
3634 # HP-UX 10.20 and later -Ae
3635 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3636 # SVR4                  -Xc -D__EXTENSIONS__
3637 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3638 do
3639   CC="$ac_save_CC $ac_arg"
3640   rm -f conftest.$ac_objext
3641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3642   (eval $ac_compile) 2>conftest.er1
3643   ac_status=$?
3644   grep -v '^ *+' conftest.er1 >conftest.err
3645   rm -f conftest.er1
3646   cat conftest.err >&5
3647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); } &&
3649          { ac_try='test -z "$ac_c_werror_flag"
3650                          || test ! -s conftest.err'
3651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652   (eval $ac_try) 2>&5
3653   ac_status=$?
3654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655   (exit $ac_status); }; } &&
3656          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3662   ac_cv_prog_cc_stdc=$ac_arg
3663 break
3664 else
3665   echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3667
3668 fi
3669 rm -f conftest.err conftest.$ac_objext
3670 done
3671 rm -f conftest.$ac_ext conftest.$ac_objext
3672 CC=$ac_save_CC
3673
3674 fi
3675
3676 case "x$ac_cv_prog_cc_stdc" in
3677   x|xno)
3678     echo "$as_me:$LINENO: result: none needed" >&5
3679 echo "${ECHO_T}none needed" >&6 ;;
3680   *)
3681     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3682 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3683     CC="$CC $ac_cv_prog_cc_stdc" ;;
3684 esac
3685
3686 # Some people use a C++ compiler to compile C.  Since we use `exit',
3687 # in C++ we need to declare it.  In case someone uses the same compiler
3688 # for both compiling C and C++ we need to have the C++ compiler decide
3689 # the declaration of exit, since it's the most demanding environment.
3690 cat >conftest.$ac_ext <<_ACEOF
3691 #ifndef __cplusplus
3692   choke me
3693 #endif
3694 _ACEOF
3695 rm -f conftest.$ac_objext
3696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3697   (eval $ac_compile) 2>conftest.er1
3698   ac_status=$?
3699   grep -v '^ *+' conftest.er1 >conftest.err
3700   rm -f conftest.er1
3701   cat conftest.err >&5
3702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703   (exit $ac_status); } &&
3704          { ac_try='test -z "$ac_c_werror_flag"
3705                          || test ! -s conftest.err'
3706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707   (eval $ac_try) 2>&5
3708   ac_status=$?
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); }; } &&
3711          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3717   for ac_declaration in \
3718    '' \
3719    'extern "C" void std::exit (int) throw (); using std::exit;' \
3720    'extern "C" void std::exit (int); using std::exit;' \
3721    'extern "C" void exit (int) throw ();' \
3722    'extern "C" void exit (int);' \
3723    'void exit (int);'
3724 do
3725   cat >conftest.$ac_ext <<_ACEOF
3726 /* confdefs.h.  */
3727 _ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h.  */
3731 $ac_declaration
3732 #include <stdlib.h>
3733 int
3734 main ()
3735 {
3736 exit (42);
3737   ;
3738   return 0;
3739 }
3740 _ACEOF
3741 rm -f conftest.$ac_objext
3742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3743   (eval $ac_compile) 2>conftest.er1
3744   ac_status=$?
3745   grep -v '^ *+' conftest.er1 >conftest.err
3746   rm -f conftest.er1
3747   cat conftest.err >&5
3748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749   (exit $ac_status); } &&
3750          { ac_try='test -z "$ac_c_werror_flag"
3751                          || test ! -s conftest.err'
3752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753   (eval $ac_try) 2>&5
3754   ac_status=$?
3755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756   (exit $ac_status); }; } &&
3757          { ac_try='test -s conftest.$ac_objext'
3758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759   (eval $ac_try) 2>&5
3760   ac_status=$?
3761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762   (exit $ac_status); }; }; then
3763   :
3764 else
3765   echo "$as_me: failed program was:" >&5
3766 sed 's/^/| /' conftest.$ac_ext >&5
3767
3768 continue
3769 fi
3770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3771   cat >conftest.$ac_ext <<_ACEOF
3772 /* confdefs.h.  */
3773 _ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h.  */
3777 $ac_declaration
3778 int
3779 main ()
3780 {
3781 exit (42);
3782   ;
3783   return 0;
3784 }
3785 _ACEOF
3786 rm -f conftest.$ac_objext
3787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788   (eval $ac_compile) 2>conftest.er1
3789   ac_status=$?
3790   grep -v '^ *+' conftest.er1 >conftest.err
3791   rm -f conftest.er1
3792   cat conftest.err >&5
3793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); } &&
3795          { ac_try='test -z "$ac_c_werror_flag"
3796                          || test ! -s conftest.err'
3797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798   (eval $ac_try) 2>&5
3799   ac_status=$?
3800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); }; } &&
3802          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3808   break
3809 else
3810   echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3812
3813 fi
3814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3815 done
3816 rm -f conftest*
3817 if test -n "$ac_declaration"; then
3818   echo '#ifdef __cplusplus' >>confdefs.h
3819   echo $ac_declaration      >>confdefs.h
3820   echo '#endif'             >>confdefs.h
3821 fi
3822
3823 else
3824   echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 fi
3828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3829 ac_ext=c
3830 ac_cpp='$CPP $CPPFLAGS'
3831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3834
3835 ac_ext=cc
3836 ac_cpp='$CXXCPP $CPPFLAGS'
3837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3840 if test -n "$ac_tool_prefix"; then
3841   for ac_prog in $CCC g++
3842   do
3843     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3844 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3845 echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_prog_CXX+set}" = set; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850   if test -n "$CXX"; then
3851   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3855 do
3856   IFS=$as_save_IFS
3857   test -z "$as_dir" && as_dir=.
3858   for ac_exec_ext in '' $ac_executable_extensions; do
3859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862     break 2
3863   fi
3864 done
3865 done
3866
3867 fi
3868 fi
3869 CXX=$ac_cv_prog_CXX
3870 if test -n "$CXX"; then
3871   echo "$as_me:$LINENO: result: $CXX" >&5
3872 echo "${ECHO_T}$CXX" >&6
3873 else
3874   echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3876 fi
3877
3878     test -n "$CXX" && break
3879   done
3880 fi
3881 if test -z "$CXX"; then
3882   ac_ct_CXX=$CXX
3883   for ac_prog in $CCC g++
3884 do
3885   # Extract the first word of "$ac_prog", so it can be a program name with args.
3886 set dummy $ac_prog; ac_word=$2
3887 echo "$as_me:$LINENO: checking for $ac_word" >&5
3888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3889 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3890   echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892   if test -n "$ac_ct_CXX"; then
3893   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3894 else
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3897 do
3898   IFS=$as_save_IFS
3899   test -z "$as_dir" && as_dir=.
3900   for ac_exec_ext in '' $ac_executable_extensions; do
3901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902     ac_cv_prog_ac_ct_CXX="$ac_prog"
3903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904     break 2
3905   fi
3906 done
3907 done
3908
3909 fi
3910 fi
3911 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3912 if test -n "$ac_ct_CXX"; then
3913   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3914 echo "${ECHO_T}$ac_ct_CXX" >&6
3915 else
3916   echo "$as_me:$LINENO: result: no" >&5
3917 echo "${ECHO_T}no" >&6
3918 fi
3919
3920   test -n "$ac_ct_CXX" && break
3921 done
3922 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3923
3924   CXX=$ac_ct_CXX
3925 fi
3926
3927
3928 # Provide some information about the compiler.
3929 echo "$as_me:$LINENO:" \
3930      "checking for C++ compiler version" >&5
3931 ac_compiler=`set X $ac_compile; echo $2`
3932 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3933   (eval $ac_compiler --version </dev/null >&5) 2>&5
3934   ac_status=$?
3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936   (exit $ac_status); }
3937 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3938   (eval $ac_compiler -v </dev/null >&5) 2>&5
3939   ac_status=$?
3940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941   (exit $ac_status); }
3942 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3943   (eval $ac_compiler -V </dev/null >&5) 2>&5
3944   ac_status=$?
3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); }
3947
3948 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3949 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3950 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3951   echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953   cat >conftest.$ac_ext <<_ACEOF
3954 /* confdefs.h.  */
3955 _ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h.  */
3959
3960 int
3961 main ()
3962 {
3963 #ifndef __GNUC__
3964        choke me
3965 #endif
3966
3967   ;
3968   return 0;
3969 }
3970 _ACEOF
3971 rm -f conftest.$ac_objext
3972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973   (eval $ac_compile) 2>conftest.er1
3974   ac_status=$?
3975   grep -v '^ *+' conftest.er1 >conftest.err
3976   rm -f conftest.er1
3977   cat conftest.err >&5
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); } &&
3980          { ac_try='test -z "$ac_cxx_werror_flag"
3981                          || test ! -s conftest.err'
3982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983   (eval $ac_try) 2>&5
3984   ac_status=$?
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); }; } &&
3987          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3993   ac_compiler_gnu=yes
3994 else
3995   echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
3997
3998 ac_compiler_gnu=no
3999 fi
4000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4001 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4002
4003 fi
4004 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4005 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4006 GXX=`test $ac_compiler_gnu = yes && echo yes`
4007 ac_test_CXXFLAGS=${CXXFLAGS+set}
4008 ac_save_CXXFLAGS=$CXXFLAGS
4009 CXXFLAGS="-g"
4010 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4011 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4012 if test "${ac_cv_prog_cxx_g+set}" = set; then
4013   echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015   cat >conftest.$ac_ext <<_ACEOF
4016 /* confdefs.h.  */
4017 _ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h.  */
4021
4022 int
4023 main ()
4024 {
4025
4026   ;
4027   return 0;
4028 }
4029 _ACEOF
4030 rm -f conftest.$ac_objext
4031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4032   (eval $ac_compile) 2>conftest.er1
4033   ac_status=$?
4034   grep -v '^ *+' conftest.er1 >conftest.err
4035   rm -f conftest.er1
4036   cat conftest.err >&5
4037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038   (exit $ac_status); } &&
4039          { ac_try='test -z "$ac_cxx_werror_flag"
4040                          || test ! -s conftest.err'
4041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042   (eval $ac_try) 2>&5
4043   ac_status=$?
4044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045   (exit $ac_status); }; } &&
4046          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4052   ac_cv_prog_cxx_g=yes
4053 else
4054   echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4056
4057 ac_cv_prog_cxx_g=no
4058 fi
4059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4060 fi
4061 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4062 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4063 if test "$ac_test_CXXFLAGS" = set; then
4064   CXXFLAGS=$ac_save_CXXFLAGS
4065 elif test $ac_cv_prog_cxx_g = yes; then
4066   if test "$GXX" = yes; then
4067     CXXFLAGS="-g -O2"
4068   else
4069     CXXFLAGS="-g"
4070   fi
4071 else
4072   if test "$GXX" = yes; then
4073     CXXFLAGS="-O2"
4074   else
4075     CXXFLAGS=
4076   fi
4077 fi
4078 for ac_declaration in \
4079    '' \
4080    'extern "C" void std::exit (int) throw (); using std::exit;' \
4081    'extern "C" void std::exit (int); using std::exit;' \
4082    'extern "C" void exit (int) throw ();' \
4083    'extern "C" void exit (int);' \
4084    'void exit (int);'
4085 do
4086   cat >conftest.$ac_ext <<_ACEOF
4087 /* confdefs.h.  */
4088 _ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h.  */
4092 $ac_declaration
4093 #include <stdlib.h>
4094 int
4095 main ()
4096 {
4097 exit (42);
4098   ;
4099   return 0;
4100 }
4101 _ACEOF
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104   (eval $ac_compile) 2>conftest.er1
4105   ac_status=$?
4106   grep -v '^ *+' conftest.er1 >conftest.err
4107   rm -f conftest.er1
4108   cat conftest.err >&5
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); } &&
4111          { ac_try='test -z "$ac_cxx_werror_flag"
4112                          || test ! -s conftest.err'
4113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114   (eval $ac_try) 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }; } &&
4118          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4124   :
4125 else
4126   echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4128
4129 continue
4130 fi
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132   cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h.  */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h.  */
4138 $ac_declaration
4139 int
4140 main ()
4141 {
4142 exit (42);
4143   ;
4144   return 0;
4145 }
4146 _ACEOF
4147 rm -f conftest.$ac_objext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4149   (eval $ac_compile) 2>conftest.er1
4150   ac_status=$?
4151   grep -v '^ *+' conftest.er1 >conftest.err
4152   rm -f conftest.er1
4153   cat conftest.err >&5
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); } &&
4156          { ac_try='test -z "$ac_cxx_werror_flag"
4157                          || test ! -s conftest.err'
4158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159   (eval $ac_try) 2>&5
4160   ac_status=$?
4161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162   (exit $ac_status); }; } &&
4163          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4169   break
4170 else
4171   echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 fi
4175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4176 done
4177 rm -f conftest*
4178 if test -n "$ac_declaration"; then
4179   echo '#ifdef __cplusplus' >>confdefs.h
4180   echo $ac_declaration      >>confdefs.h
4181   echo '#endif'             >>confdefs.h
4182 fi
4183
4184 ac_ext=c
4185 ac_cpp='$CPP $CPPFLAGS'
4186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189
4190 echo "$as_me:$LINENO: checking " >&5
4191 echo $ECHO_N "checking ... $ECHO_C" >&6
4192 if test "${ac_cv_has_flex+set}" = set; then
4193   echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195   for ac_prog in flex lex
4196 do
4197   # Extract the first word of "$ac_prog", so it can be a program name with args.
4198 set dummy $ac_prog; ac_word=$2
4199 echo "$as_me:$LINENO: checking for $ac_word" >&5
4200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4201 if test "${ac_cv_prog_LEX+set}" = set; then
4202   echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204   if test -n "$LEX"; then
4205   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4206 else
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4209 do
4210   IFS=$as_save_IFS
4211   test -z "$as_dir" && as_dir=.
4212   for ac_exec_ext in '' $ac_executable_extensions; do
4213   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4214     ac_cv_prog_LEX="$ac_prog"
4215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216     break 2
4217   fi
4218 done
4219 done
4220
4221 fi
4222 fi
4223 LEX=$ac_cv_prog_LEX
4224 if test -n "$LEX"; then
4225   echo "$as_me:$LINENO: result: $LEX" >&5
4226 echo "${ECHO_T}$LEX" >&6
4227 else
4228   echo "$as_me:$LINENO: result: no" >&5
4229 echo "${ECHO_T}no" >&6
4230 fi
4231
4232   test -n "$LEX" && break
4233 done
4234 test -n "$LEX" || LEX=":"
4235
4236 if test -z "$LEXLIB"
4237 then
4238   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4239 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4240 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4241   echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243   ac_check_lib_save_LIBS=$LIBS
4244 LIBS="-lfl  $LIBS"
4245 cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h.  */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h.  */
4251
4252 /* Override any gcc2 internal prototype to avoid an error.  */
4253 #ifdef __cplusplus
4254 extern "C"
4255 #endif
4256 /* We use char because int might match the return type of a gcc2
4257    builtin and then its argument prototype would still apply.  */
4258 char yywrap ();
4259 int
4260 main ()
4261 {
4262 yywrap ();
4263   ;
4264   return 0;
4265 }
4266 _ACEOF
4267 rm -f conftest.$ac_objext conftest$ac_exeext
4268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4269   (eval $ac_link) 2>conftest.er1
4270   ac_status=$?
4271   grep -v '^ *+' conftest.er1 >conftest.err
4272   rm -f conftest.er1
4273   cat conftest.err >&5
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); } &&
4276          { ac_try='test -z "$ac_c_werror_flag"
4277                          || test ! -s conftest.err'
4278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279   (eval $ac_try) 2>&5
4280   ac_status=$?
4281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282   (exit $ac_status); }; } &&
4283          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4289   ac_cv_lib_fl_yywrap=yes
4290 else
4291   echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4293
4294 ac_cv_lib_fl_yywrap=no
4295 fi
4296 rm -f conftest.err conftest.$ac_objext \
4297       conftest$ac_exeext conftest.$ac_ext
4298 LIBS=$ac_check_lib_save_LIBS
4299 fi
4300 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4301 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4302 if test $ac_cv_lib_fl_yywrap = yes; then
4303   LEXLIB="-lfl"
4304 else
4305   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4306 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4307 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4308   echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310   ac_check_lib_save_LIBS=$LIBS
4311 LIBS="-ll  $LIBS"
4312 cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h.  */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h.  */
4318
4319 /* Override any gcc2 internal prototype to avoid an error.  */
4320 #ifdef __cplusplus
4321 extern "C"
4322 #endif
4323 /* We use char because int might match the return type of a gcc2
4324    builtin and then its argument prototype would still apply.  */
4325 char yywrap ();
4326 int
4327 main ()
4328 {
4329 yywrap ();
4330   ;
4331   return 0;
4332 }
4333 _ACEOF
4334 rm -f conftest.$ac_objext conftest$ac_exeext
4335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4336   (eval $ac_link) 2>conftest.er1
4337   ac_status=$?
4338   grep -v '^ *+' conftest.er1 >conftest.err
4339   rm -f conftest.er1
4340   cat conftest.err >&5
4341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342   (exit $ac_status); } &&
4343          { ac_try='test -z "$ac_c_werror_flag"
4344                          || test ! -s conftest.err'
4345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346   (eval $ac_try) 2>&5
4347   ac_status=$?
4348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349   (exit $ac_status); }; } &&
4350          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4356   ac_cv_lib_l_yywrap=yes
4357 else
4358   echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4360
4361 ac_cv_lib_l_yywrap=no
4362 fi
4363 rm -f conftest.err conftest.$ac_objext \
4364       conftest$ac_exeext conftest.$ac_ext
4365 LIBS=$ac_check_lib_save_LIBS
4366 fi
4367 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4368 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4369 if test $ac_cv_lib_l_yywrap = yes; then
4370   LEXLIB="-ll"
4371 fi
4372
4373 fi
4374
4375 fi
4376
4377 if test "x$LEX" != "x:"; then
4378   echo "$as_me:$LINENO: checking lex output file root" >&5
4379 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4380 if test "${ac_cv_prog_lex_root+set}" = set; then
4381   echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else
4383   # The minimal lex program is just a single line: %%.  But some broken lexes
4384 # (Solaris, I think it was) want two %% lines, so accommodate them.
4385 cat >conftest.l <<_ACEOF
4386 %%
4387 %%
4388 _ACEOF
4389 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4390   (eval $LEX conftest.l) 2>&5
4391   ac_status=$?
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); }
4394 if test -f lex.yy.c; then
4395   ac_cv_prog_lex_root=lex.yy
4396 elif test -f lexyy.c; then
4397   ac_cv_prog_lex_root=lexyy
4398 else
4399   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4400 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4401    { (exit 1); exit 1; }; }
4402 fi
4403 fi
4404 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4405 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4406 rm -f conftest.l
4407 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4408
4409 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4410 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4411 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4412   echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414   # POSIX says lex can declare yytext either as a pointer or an array; the
4415 # default is implementation-dependent. Figure out which it is, since
4416 # not all implementations provide the %pointer and %array declarations.
4417 ac_cv_prog_lex_yytext_pointer=no
4418 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4419 ac_save_LIBS=$LIBS
4420 LIBS="$LIBS $LEXLIB"
4421 cat >conftest.$ac_ext <<_ACEOF
4422 `cat $LEX_OUTPUT_ROOT.c`
4423 _ACEOF
4424 rm -f conftest.$ac_objext conftest$ac_exeext
4425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4426   (eval $ac_link) 2>conftest.er1
4427   ac_status=$?
4428   grep -v '^ *+' conftest.er1 >conftest.err
4429   rm -f conftest.er1
4430   cat conftest.err >&5
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); } &&
4433          { ac_try='test -z "$ac_c_werror_flag"
4434                          || test ! -s conftest.err'
4435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436   (eval $ac_try) 2>&5
4437   ac_status=$?
4438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439   (exit $ac_status); }; } &&
4440          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4446   ac_cv_prog_lex_yytext_pointer=yes
4447 else
4448   echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4450
4451 fi
4452 rm -f conftest.err conftest.$ac_objext \
4453       conftest$ac_exeext conftest.$ac_ext
4454 LIBS=$ac_save_LIBS
4455 rm -f "${LEX_OUTPUT_ROOT}.c"
4456
4457 fi
4458 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4459 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4460 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4461
4462 cat >>confdefs.h <<\_ACEOF
4463 #define YYTEXT_POINTER 1
4464 _ACEOF
4465
4466 fi
4467
4468 fi
4469
4470 fi
4471 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4472 echo "${ECHO_T}$ac_cv_has_flex" >&6
4473 if test "$LEX" != "flex"; then
4474   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4475 echo "$as_me: error: flex not found but required" >&2;}
4476    { (exit 1); exit 1; }; }
4477 else
4478   FLEX=flex
4479
4480 fi
4481
4482 echo "$as_me:$LINENO: checking " >&5
4483 echo $ECHO_N "checking ... $ECHO_C" >&6
4484 if test "${llvm_cv_has_bison+set}" = set; then
4485   echo $ECHO_N "(cached) $ECHO_C" >&6
4486 else
4487   for ac_prog in 'bison -y' byacc
4488 do
4489   # Extract the first word of "$ac_prog", so it can be a program name with args.
4490 set dummy $ac_prog; ac_word=$2
4491 echo "$as_me:$LINENO: checking for $ac_word" >&5
4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4493 if test "${ac_cv_prog_YACC+set}" = set; then
4494   echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496   if test -n "$YACC"; then
4497   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4498 else
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH
4501 do
4502   IFS=$as_save_IFS
4503   test -z "$as_dir" && as_dir=.
4504   for ac_exec_ext in '' $ac_executable_extensions; do
4505   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4506     ac_cv_prog_YACC="$ac_prog"
4507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508     break 2
4509   fi
4510 done
4511 done
4512
4513 fi
4514 fi
4515 YACC=$ac_cv_prog_YACC
4516 if test -n "$YACC"; then
4517   echo "$as_me:$LINENO: result: $YACC" >&5
4518 echo "${ECHO_T}$YACC" >&6
4519 else
4520   echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6
4522 fi
4523
4524   test -n "$YACC" && break
4525 done
4526 test -n "$YACC" || YACC="yacc"
4527
4528 fi
4529 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4530 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4531 if test "$YACC" != "bison -y"; then
4532   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4533 echo "$as_me: error: bison not found but required" >&2;}
4534    { (exit 1); exit 1; }; }
4535 else
4536   BISON=bison
4537
4538 fi
4539
4540 echo "$as_me:$LINENO: checking for GNU make" >&5
4541 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4542 if test "${llvm_cv_gnu_make_command+set}" = set; then
4543   echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545   llvm_cv_gnu_make_command=''
4546  for a in "$MAKE" make gmake gnumake ; do
4547   if test -z "$a" ; then continue ; fi ;
4548   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4549   then
4550    llvm_cv_gnu_make_command=$a ;
4551    break;
4552   fi
4553  done
4554 fi
4555 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4556 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4557  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4558    ifGNUmake='' ;
4559  else
4560    ifGNUmake='#' ;
4561    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4562 echo "${ECHO_T}\"Not found\"" >&6;
4563  fi
4564
4565
4566 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4567 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4568 LN_S=$as_ln_s
4569 if test "$LN_S" = "ln -s"; then
4570   echo "$as_me:$LINENO: result: yes" >&5
4571 echo "${ECHO_T}yes" >&6
4572 else
4573   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4574 echo "${ECHO_T}no, using $LN_S" >&6
4575 fi
4576
4577 # Extract the first word of "cmp", so it can be a program name with args.
4578 set dummy cmp; ac_word=$2
4579 echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581 if test "${ac_cv_path_CMP+set}" = set; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584   case $CMP in
4585   [\\/]* | ?:[\\/]*)
4586   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4587   ;;
4588   *)
4589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4591 do
4592   IFS=$as_save_IFS
4593   test -z "$as_dir" && as_dir=.
4594   for ac_exec_ext in '' $ac_executable_extensions; do
4595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598     break 2
4599   fi
4600 done
4601 done
4602
4603   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4604   ;;
4605 esac
4606 fi
4607 CMP=$ac_cv_path_CMP
4608
4609 if test -n "$CMP"; then
4610   echo "$as_me:$LINENO: result: $CMP" >&5
4611 echo "${ECHO_T}$CMP" >&6
4612 else
4613   echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6
4615 fi
4616
4617 # Extract the first word of "cp", so it can be a program name with args.
4618 set dummy cp; ac_word=$2
4619 echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4621 if test "${ac_cv_path_CP+set}" = set; then
4622   echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624   case $CP in
4625   [\\/]* | ?:[\\/]*)
4626   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4627   ;;
4628   *)
4629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632   IFS=$as_save_IFS
4633   test -z "$as_dir" && as_dir=.
4634   for ac_exec_ext in '' $ac_executable_extensions; do
4635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638     break 2
4639   fi
4640 done
4641 done
4642
4643   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4644   ;;
4645 esac
4646 fi
4647 CP=$ac_cv_path_CP
4648
4649 if test -n "$CP"; then
4650   echo "$as_me:$LINENO: result: $CP" >&5
4651 echo "${ECHO_T}$CP" >&6
4652 else
4653   echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6
4655 fi
4656
4657 # Extract the first word of "date", so it can be a program name with args.
4658 set dummy date; ac_word=$2
4659 echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661 if test "${ac_cv_path_DATE+set}" = set; then
4662   echo $ECHO_N "(cached) $ECHO_C" >&6
4663 else
4664   case $DATE in
4665   [\\/]* | ?:[\\/]*)
4666   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4667   ;;
4668   *)
4669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672   IFS=$as_save_IFS
4673   test -z "$as_dir" && as_dir=.
4674   for ac_exec_ext in '' $ac_executable_extensions; do
4675   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678     break 2
4679   fi
4680 done
4681 done
4682
4683   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4684   ;;
4685 esac
4686 fi
4687 DATE=$ac_cv_path_DATE
4688
4689 if test -n "$DATE"; then
4690   echo "$as_me:$LINENO: result: $DATE" >&5
4691 echo "${ECHO_T}$DATE" >&6
4692 else
4693   echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6
4695 fi
4696
4697 # Extract the first word of "find", so it can be a program name with args.
4698 set dummy find; ac_word=$2
4699 echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4701 if test "${ac_cv_path_FIND+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   case $FIND in
4705   [\\/]* | ?:[\\/]*)
4706   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4707   ;;
4708   *)
4709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714   for ac_exec_ext in '' $ac_executable_extensions; do
4715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721 done
4722
4723   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4724   ;;
4725 esac
4726 fi
4727 FIND=$ac_cv_path_FIND
4728
4729 if test -n "$FIND"; then
4730   echo "$as_me:$LINENO: result: $FIND" >&5
4731 echo "${ECHO_T}$FIND" >&6
4732 else
4733   echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6
4735 fi
4736
4737 # Extract the first word of "grep", so it can be a program name with args.
4738 set dummy grep; ac_word=$2
4739 echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4741 if test "${ac_cv_path_GREP+set}" = set; then
4742   echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744   case $GREP in
4745   [\\/]* | ?:[\\/]*)
4746   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4747   ;;
4748   *)
4749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754   for ac_exec_ext in '' $ac_executable_extensions; do
4755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761 done
4762
4763   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4764   ;;
4765 esac
4766 fi
4767 GREP=$ac_cv_path_GREP
4768
4769 if test -n "$GREP"; then
4770   echo "$as_me:$LINENO: result: $GREP" >&5
4771 echo "${ECHO_T}$GREP" >&6
4772 else
4773   echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6
4775 fi
4776
4777 # Extract the first word of "mkdir", so it can be a program name with args.
4778 set dummy mkdir; ac_word=$2
4779 echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781 if test "${ac_cv_path_MKDIR+set}" = set; then
4782   echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784   case $MKDIR in
4785   [\\/]* | ?:[\\/]*)
4786   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4787   ;;
4788   *)
4789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792   IFS=$as_save_IFS
4793   test -z "$as_dir" && as_dir=.
4794   for ac_exec_ext in '' $ac_executable_extensions; do
4795   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798     break 2
4799   fi
4800 done
4801 done
4802
4803   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4804   ;;
4805 esac
4806 fi
4807 MKDIR=$ac_cv_path_MKDIR
4808
4809 if test -n "$MKDIR"; then
4810   echo "$as_me:$LINENO: result: $MKDIR" >&5
4811 echo "${ECHO_T}$MKDIR" >&6
4812 else
4813   echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6
4815 fi
4816
4817 # Extract the first word of "mv", so it can be a program name with args.
4818 set dummy mv; ac_word=$2
4819 echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4821 if test "${ac_cv_path_MV+set}" = set; then
4822   echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824   case $MV in
4825   [\\/]* | ?:[\\/]*)
4826   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4827   ;;
4828   *)
4829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH
4831 do
4832   IFS=$as_save_IFS
4833   test -z "$as_dir" && as_dir=.
4834   for ac_exec_ext in '' $ac_executable_extensions; do
4835   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4836     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4838     break 2
4839   fi
4840 done
4841 done
4842
4843   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4844   ;;
4845 esac
4846 fi
4847 MV=$ac_cv_path_MV
4848
4849 if test -n "$MV"; then
4850   echo "$as_me:$LINENO: result: $MV" >&5
4851 echo "${ECHO_T}$MV" >&6
4852 else
4853   echo "$as_me:$LINENO: result: no" >&5
4854 echo "${ECHO_T}no" >&6
4855 fi
4856
4857 if test -n "$ac_tool_prefix"; then
4858   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4859 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4860 echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862 if test "${ac_cv_prog_RANLIB+set}" = set; then
4863   echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865   if test -n "$RANLIB"; then
4866   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4870 do
4871   IFS=$as_save_IFS
4872   test -z "$as_dir" && as_dir=.
4873   for ac_exec_ext in '' $ac_executable_extensions; do
4874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877     break 2
4878   fi
4879 done
4880 done
4881
4882 fi
4883 fi
4884 RANLIB=$ac_cv_prog_RANLIB
4885 if test -n "$RANLIB"; then
4886   echo "$as_me:$LINENO: result: $RANLIB" >&5
4887 echo "${ECHO_T}$RANLIB" >&6
4888 else
4889   echo "$as_me:$LINENO: result: no" >&5
4890 echo "${ECHO_T}no" >&6
4891 fi
4892
4893 fi
4894 if test -z "$ac_cv_prog_RANLIB"; then
4895   ac_ct_RANLIB=$RANLIB
4896   # Extract the first word of "ranlib", so it can be a program name with args.
4897 set dummy ranlib; ac_word=$2
4898 echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4901   echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903   if test -n "$ac_ct_RANLIB"; then
4904   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909   IFS=$as_save_IFS
4910   test -z "$as_dir" && as_dir=.
4911   for ac_exec_ext in '' $ac_executable_extensions; do
4912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913     ac_cv_prog_ac_ct_RANLIB="ranlib"
4914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915     break 2
4916   fi
4917 done
4918 done
4919
4920   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4921 fi
4922 fi
4923 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4924 if test -n "$ac_ct_RANLIB"; then
4925   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4926 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4927 else
4928   echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6
4930 fi
4931
4932   RANLIB=$ac_ct_RANLIB
4933 else
4934   RANLIB="$ac_cv_prog_RANLIB"
4935 fi
4936
4937 # Extract the first word of "rm", so it can be a program name with args.
4938 set dummy rm; ac_word=$2
4939 echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4941 if test "${ac_cv_path_RM+set}" = set; then
4942   echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944   case $RM in
4945   [\\/]* | ?:[\\/]*)
4946   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4947   ;;
4948   *)
4949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4951 do
4952   IFS=$as_save_IFS
4953   test -z "$as_dir" && as_dir=.
4954   for ac_exec_ext in '' $ac_executable_extensions; do
4955   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958     break 2
4959   fi
4960 done
4961 done
4962
4963   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4964   ;;
4965 esac
4966 fi
4967 RM=$ac_cv_path_RM
4968
4969 if test -n "$RM"; then
4970   echo "$as_me:$LINENO: result: $RM" >&5
4971 echo "${ECHO_T}$RM" >&6
4972 else
4973   echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6
4975 fi
4976
4977 # Extract the first word of "sed", so it can be a program name with args.
4978 set dummy sed; ac_word=$2
4979 echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4981 if test "${ac_cv_path_SED+set}" = set; then
4982   echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984   case $SED in
4985   [\\/]* | ?:[\\/]*)
4986   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4987   ;;
4988   *)
4989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4991 do
4992   IFS=$as_save_IFS
4993   test -z "$as_dir" && as_dir=.
4994   for ac_exec_ext in '' $ac_executable_extensions; do
4995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998     break 2
4999   fi
5000 done
5001 done
5002
5003   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5004   ;;
5005 esac
5006 fi
5007 SED=$ac_cv_path_SED
5008
5009 if test -n "$SED"; then
5010   echo "$as_me:$LINENO: result: $SED" >&5
5011 echo "${ECHO_T}$SED" >&6
5012 else
5013   echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6
5015 fi
5016
5017 # Extract the first word of "tar", so it can be a program name with args.
5018 set dummy tar; ac_word=$2
5019 echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5021 if test "${ac_cv_path_TAR+set}" = set; then
5022   echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024   case $TAR in
5025   [\\/]* | ?:[\\/]*)
5026   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5027   ;;
5028   *)
5029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032   IFS=$as_save_IFS
5033   test -z "$as_dir" && as_dir=.
5034   for ac_exec_ext in '' $ac_executable_extensions; do
5035   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038     break 2
5039   fi
5040 done
5041 done
5042
5043   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5044   ;;
5045 esac
5046 fi
5047 TAR=$ac_cv_path_TAR
5048
5049 if test -n "$TAR"; then
5050   echo "$as_me:$LINENO: result: $TAR" >&5
5051 echo "${ECHO_T}$TAR" >&6
5052 else
5053   echo "$as_me:$LINENO: result: no" >&5
5054 echo "${ECHO_T}no" >&6
5055 fi
5056
5057
5058 # Find a good install program.  We prefer a C program (faster),
5059 # so one script is as good as another.  But avoid the broken or
5060 # incompatible versions:
5061 # SysV /etc/install, /usr/sbin/install
5062 # SunOS /usr/etc/install
5063 # IRIX /sbin/install
5064 # AIX /bin/install
5065 # AmigaOS /C/install, which installs bootblocks on floppy discs
5066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5067 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5068 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5069 # OS/2's system install, which has a completely different semantic
5070 # ./install, which can be erroneously created by make from ./install.sh.
5071 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5072 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5073 if test -z "$INSTALL"; then
5074 if test "${ac_cv_path_install+set}" = set; then
5075   echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5079 do
5080   IFS=$as_save_IFS
5081   test -z "$as_dir" && as_dir=.
5082   # Account for people who put trailing slashes in PATH elements.
5083 case $as_dir/ in
5084   ./ | .// | /cC/* | \
5085   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5086   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5087   /usr/ucb/* ) ;;
5088   *)
5089     # OSF1 and SCO ODT 3.0 have their own names for install.
5090     # Don't use installbsd from OSF since it installs stuff as root
5091     # by default.
5092     for ac_prog in ginstall scoinst install; do
5093       for ac_exec_ext in '' $ac_executable_extensions; do
5094         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5095           if test $ac_prog = install &&
5096             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5097             # AIX install.  It has an incompatible calling convention.
5098             :
5099           elif test $ac_prog = install &&
5100             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5101             # program-specific install script used by HP pwplus--don't use.
5102             :
5103           else
5104             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5105             break 3
5106           fi
5107         fi
5108       done
5109     done
5110     ;;
5111 esac
5112 done
5113
5114
5115 fi
5116   if test "${ac_cv_path_install+set}" = set; then
5117     INSTALL=$ac_cv_path_install
5118   else
5119     # As a last resort, use the slow shell script.  We don't cache a
5120     # path for INSTALL within a source directory, because that will
5121     # break other packages using the cache if that directory is
5122     # removed, or if the path is relative.
5123     INSTALL=$ac_install_sh
5124   fi
5125 fi
5126 echo "$as_me:$LINENO: result: $INSTALL" >&5
5127 echo "${ECHO_T}$INSTALL" >&6
5128
5129 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5130 # It thinks the first close brace ends the variable substitution.
5131 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5132
5133 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5134
5135 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5136
5137
5138 # Extract the first word of "bzip2", so it can be a program name with args.
5139 set dummy bzip2; ac_word=$2
5140 echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142 if test "${ac_cv_path_BZIP2+set}" = set; then
5143   echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145   case $BZIP2 in
5146   [\\/]* | ?:[\\/]*)
5147   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5148   ;;
5149   *)
5150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153   IFS=$as_save_IFS
5154   test -z "$as_dir" && as_dir=.
5155   for ac_exec_ext in '' $ac_executable_extensions; do
5156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159     break 2
5160   fi
5161 done
5162 done
5163
5164   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5165   ;;
5166 esac
5167 fi
5168 BZIP2=$ac_cv_path_BZIP2
5169
5170 if test -n "$BZIP2"; then
5171   echo "$as_me:$LINENO: result: $BZIP2" >&5
5172 echo "${ECHO_T}$BZIP2" >&6
5173 else
5174   echo "$as_me:$LINENO: result: no" >&5
5175 echo "${ECHO_T}no" >&6
5176 fi
5177
5178 # Extract the first word of "dot", so it can be a program name with args.
5179 set dummy dot; ac_word=$2
5180 echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182 if test "${ac_cv_path_DOT+set}" = set; then
5183   echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185   case $DOT in
5186   [\\/]* | ?:[\\/]*)
5187   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5188   ;;
5189   *)
5190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193   IFS=$as_save_IFS
5194   test -z "$as_dir" && as_dir=.
5195   for ac_exec_ext in '' $ac_executable_extensions; do
5196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199     break 2
5200   fi
5201 done
5202 done
5203
5204   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5205   ;;
5206 esac
5207 fi
5208 DOT=$ac_cv_path_DOT
5209
5210 if test -n "$DOT"; then
5211   echo "$as_me:$LINENO: result: $DOT" >&5
5212 echo "${ECHO_T}$DOT" >&6
5213 else
5214   echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6
5216 fi
5217
5218 # Extract the first word of "doxygen", so it can be a program name with args.
5219 set dummy doxygen; ac_word=$2
5220 echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5222 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5223   echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225   case $DOXYGEN in
5226   [\\/]* | ?:[\\/]*)
5227   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5228   ;;
5229   *)
5230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5232 do
5233   IFS=$as_save_IFS
5234   test -z "$as_dir" && as_dir=.
5235   for ac_exec_ext in '' $ac_executable_extensions; do
5236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239     break 2
5240   fi
5241 done
5242 done
5243
5244   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5245   ;;
5246 esac
5247 fi
5248 DOXYGEN=$ac_cv_path_DOXYGEN
5249
5250 if test -n "$DOXYGEN"; then
5251   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5252 echo "${ECHO_T}$DOXYGEN" >&6
5253 else
5254   echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6
5256 fi
5257
5258 # Extract the first word of "etags", so it can be a program name with args.
5259 set dummy etags; ac_word=$2
5260 echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262 if test "${ac_cv_path_ETAGS+set}" = set; then
5263   echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265   case $ETAGS in
5266   [\\/]* | ?:[\\/]*)
5267   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5268   ;;
5269   *)
5270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273   IFS=$as_save_IFS
5274   test -z "$as_dir" && as_dir=.
5275   for ac_exec_ext in '' $ac_executable_extensions; do
5276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279     break 2
5280   fi
5281 done
5282 done
5283
5284   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5285   ;;
5286 esac
5287 fi
5288 ETAGS=$ac_cv_path_ETAGS
5289
5290 if test -n "$ETAGS"; then
5291   echo "$as_me:$LINENO: result: $ETAGS" >&5
5292 echo "${ECHO_T}$ETAGS" >&6
5293 else
5294   echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6
5296 fi
5297
5298 # Extract the first word of "groff", so it can be a program name with args.
5299 set dummy groff; ac_word=$2
5300 echo "$as_me:$LINENO: checking for $ac_word" >&5
5301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5302 if test "${ac_cv_path_GROFF+set}" = set; then
5303   echo $ECHO_N "(cached) $ECHO_C" >&6
5304 else
5305   case $GROFF in
5306   [\\/]* | ?:[\\/]*)
5307   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5308   ;;
5309   *)
5310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5312 do
5313   IFS=$as_save_IFS
5314   test -z "$as_dir" && as_dir=.
5315   for ac_exec_ext in '' $ac_executable_extensions; do
5316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319     break 2
5320   fi
5321 done
5322 done
5323
5324   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5325   ;;
5326 esac
5327 fi
5328 GROFF=$ac_cv_path_GROFF
5329
5330 if test -n "$GROFF"; then
5331   echo "$as_me:$LINENO: result: $GROFF" >&5
5332 echo "${ECHO_T}$GROFF" >&6
5333 else
5334   echo "$as_me:$LINENO: result: no" >&5
5335 echo "${ECHO_T}no" >&6
5336 fi
5337
5338 # Extract the first word of "gzip", so it can be a program name with args.
5339 set dummy gzip; ac_word=$2
5340 echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342 if test "${ac_cv_path_GZIP+set}" = set; then
5343   echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345   case $GZIP in
5346   [\\/]* | ?:[\\/]*)
5347   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5348   ;;
5349   *)
5350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5352 do
5353   IFS=$as_save_IFS
5354   test -z "$as_dir" && as_dir=.
5355   for ac_exec_ext in '' $ac_executable_extensions; do
5356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5359     break 2
5360   fi
5361 done
5362 done
5363
5364   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5365   ;;
5366 esac
5367 fi
5368 GZIP=$ac_cv_path_GZIP
5369
5370 if test -n "$GZIP"; then
5371   echo "$as_me:$LINENO: result: $GZIP" >&5
5372 echo "${ECHO_T}$GZIP" >&6
5373 else
5374   echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5376 fi
5377
5378 # Extract the first word of "pod2html", so it can be a program name with args.
5379 set dummy pod2html; ac_word=$2
5380 echo "$as_me:$LINENO: checking for $ac_word" >&5
5381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5382 if test "${ac_cv_path_POD2HTML+set}" = set; then
5383   echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
5385   case $POD2HTML in
5386   [\\/]* | ?:[\\/]*)
5387   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5388   ;;
5389   *)
5390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5392 do
5393   IFS=$as_save_IFS
5394   test -z "$as_dir" && as_dir=.
5395   for ac_exec_ext in '' $ac_executable_extensions; do
5396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399     break 2
5400   fi
5401 done
5402 done
5403
5404   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5405   ;;
5406 esac
5407 fi
5408 POD2HTML=$ac_cv_path_POD2HTML
5409
5410 if test -n "$POD2HTML"; then
5411   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5412 echo "${ECHO_T}$POD2HTML" >&6
5413 else
5414   echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6
5416 fi
5417
5418 # Extract the first word of "pod2man", so it can be a program name with args.
5419 set dummy pod2man; ac_word=$2
5420 echo "$as_me:$LINENO: checking for $ac_word" >&5
5421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5422 if test "${ac_cv_path_POD2MAN+set}" = set; then
5423   echo $ECHO_N "(cached) $ECHO_C" >&6
5424 else
5425   case $POD2MAN in
5426   [\\/]* | ?:[\\/]*)
5427   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5428   ;;
5429   *)
5430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5432 do
5433   IFS=$as_save_IFS
5434   test -z "$as_dir" && as_dir=.
5435   for ac_exec_ext in '' $ac_executable_extensions; do
5436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5437     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439     break 2
5440   fi
5441 done
5442 done
5443
5444   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5445   ;;
5446 esac
5447 fi
5448 POD2MAN=$ac_cv_path_POD2MAN
5449
5450 if test -n "$POD2MAN"; then
5451   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5452 echo "${ECHO_T}$POD2MAN" >&6
5453 else
5454   echo "$as_me:$LINENO: result: no" >&5
5455 echo "${ECHO_T}no" >&6
5456 fi
5457
5458 # Extract the first word of "runtest", so it can be a program name with args.
5459 set dummy runtest; ac_word=$2
5460 echo "$as_me:$LINENO: checking for $ac_word" >&5
5461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5462 if test "${ac_cv_path_RUNTEST+set}" = set; then
5463   echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465   case $RUNTEST in
5466   [\\/]* | ?:[\\/]*)
5467   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5468   ;;
5469   *)
5470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473   IFS=$as_save_IFS
5474   test -z "$as_dir" && as_dir=.
5475   for ac_exec_ext in '' $ac_executable_extensions; do
5476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479     break 2
5480   fi
5481 done
5482 done
5483
5484   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5485   ;;
5486 esac
5487 fi
5488 RUNTEST=$ac_cv_path_RUNTEST
5489
5490 if test -n "$RUNTEST"; then
5491   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5492 echo "${ECHO_T}$RUNTEST" >&6
5493 else
5494   echo "$as_me:$LINENO: result: no" >&5
5495 echo "${ECHO_T}no" >&6
5496 fi
5497
5498
5499 no_itcl=true
5500 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5501 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5502
5503 # Check whether --with-tclinclude or --without-tclinclude was given.
5504 if test "${with_tclinclude+set}" = set; then
5505   withval="$with_tclinclude"
5506   with_tclinclude=${withval}
5507 else
5508   with_tclinclude=''
5509 fi;
5510 if test "${ac_cv_path_tclsh+set}" = set; then
5511   echo $ECHO_N "(cached) $ECHO_C" >&6
5512 else
5513
5514 if test x"${with_tclinclude}" != x ; then
5515   if test -f ${with_tclinclude}/tclsh ; then
5516     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5517   elif test -f ${with_tclinclude}/src/tclsh ; then
5518     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5519   else
5520     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5521 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5522    { (exit 1); exit 1; }; }
5523   fi
5524 fi
5525
5526 if test x"${ac_cv_path_tclsh}" = x ; then
5527   echo "$as_me:$LINENO: result: none" >&5
5528 echo "${ECHO_T}none" >&6
5529   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
5530 do
5531   # Extract the first word of "$ac_prog", so it can be a program name with args.
5532 set dummy $ac_prog; ac_word=$2
5533 echo "$as_me:$LINENO: checking for $ac_word" >&5
5534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5535 if test "${ac_cv_path_TCLSH+set}" = set; then
5536   echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538   case $TCLSH in
5539   [\\/]* | ?:[\\/]*)
5540   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5541   ;;
5542   *)
5543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546   IFS=$as_save_IFS
5547   test -z "$as_dir" && as_dir=.
5548   for ac_exec_ext in '' $ac_executable_extensions; do
5549   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5552     break 2
5553   fi
5554 done
5555 done
5556
5557   ;;
5558 esac
5559 fi
5560 TCLSH=$ac_cv_path_TCLSH
5561
5562 if test -n "$TCLSH"; then
5563   echo "$as_me:$LINENO: result: $TCLSH" >&5
5564 echo "${ECHO_T}$TCLSH" >&6
5565 else
5566   echo "$as_me:$LINENO: result: no" >&5
5567 echo "${ECHO_T}no" >&6
5568 fi
5569
5570   test -n "$TCLSH" && break
5571 done
5572
5573   if test x"${TCLSH}" = x ; then
5574     ac_cv_path_tclsh='';
5575   else
5576     ac_cv_path_tclsh="${TCLSH}";
5577   fi
5578 else
5579   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5580 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5581   TCLSH="${ac_cv_path_tclsh}"
5582
5583 fi
5584
5585 fi
5586
5587 # Extract the first word of "zip", so it can be a program name with args.
5588 set dummy zip; ac_word=$2
5589 echo "$as_me:$LINENO: checking for $ac_word" >&5
5590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5591 if test "${ac_cv_path_ZIP+set}" = set; then
5592   echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594   case $ZIP in
5595   [\\/]* | ?:[\\/]*)
5596   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5597   ;;
5598   *)
5599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 for as_dir in $PATH
5601 do
5602   IFS=$as_save_IFS
5603   test -z "$as_dir" && as_dir=.
5604   for ac_exec_ext in '' $ac_executable_extensions; do
5605   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5606     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5608     break 2
5609   fi
5610 done
5611 done
5612
5613   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5614   ;;
5615 esac
5616 fi
5617 ZIP=$ac_cv_path_ZIP
5618
5619 if test -n "$ZIP"; then
5620   echo "$as_me:$LINENO: result: $ZIP" >&5
5621 echo "${ECHO_T}$ZIP" >&6
5622 else
5623   echo "$as_me:$LINENO: result: no" >&5
5624 echo "${ECHO_T}no" >&6
5625 fi
5626
5627
5628 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5629 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5630 if test "${llvm_cv_link_use_r+set}" = set; then
5631   echo $ECHO_N "(cached) $ECHO_C" >&6
5632 else
5633    ac_ext=c
5634 ac_cpp='$CPP $CPPFLAGS'
5635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5638
5639   oldcflags="$CFLAGS"
5640   CFLAGS="$CFLAGS -Wl,-R."
5641   cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h.  */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h.  */
5647
5648 int
5649 main ()
5650 {
5651 int main() { return 0; }
5652   ;
5653   return 0;
5654 }
5655 _ACEOF
5656 rm -f conftest.$ac_objext conftest$ac_exeext
5657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5658   (eval $ac_link) 2>conftest.er1
5659   ac_status=$?
5660   grep -v '^ *+' conftest.er1 >conftest.err
5661   rm -f conftest.er1
5662   cat conftest.err >&5
5663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664   (exit $ac_status); } &&
5665          { ac_try='test -z "$ac_c_werror_flag"
5666                          || test ! -s conftest.err'
5667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668   (eval $ac_try) 2>&5
5669   ac_status=$?
5670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671   (exit $ac_status); }; } &&
5672          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5678   llvm_cv_link_use_r=yes
5679 else
5680   echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5682
5683 llvm_cv_link_use_r=no
5684 fi
5685 rm -f conftest.err conftest.$ac_objext \
5686       conftest$ac_exeext conftest.$ac_ext
5687   CFLAGS="$oldcflags"
5688   ac_ext=c
5689 ac_cpp='$CPP $CPPFLAGS'
5690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5693
5694
5695 fi
5696 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5697 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5698 if test "$llvm_cv_link_use_r" = yes ; then
5699
5700 cat >>confdefs.h <<\_ACEOF
5701 #define HAVE_LINK_R 1
5702 _ACEOF
5703
5704   fi
5705
5706
5707
5708
5709 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5710 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5711 if test "${ac_cv_c_const+set}" = set; then
5712   echo $ECHO_N "(cached) $ECHO_C" >&6
5713 else
5714   cat >conftest.$ac_ext <<_ACEOF
5715 /* confdefs.h.  */
5716 _ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h.  */
5720
5721 int
5722 main ()
5723 {
5724 /* FIXME: Include the comments suggested by Paul. */
5725 #ifndef __cplusplus
5726   /* Ultrix mips cc rejects this.  */
5727   typedef int charset[2];
5728   const charset x;
5729   /* SunOS 4.1.1 cc rejects this.  */
5730   char const *const *ccp;
5731   char **p;
5732   /* NEC SVR4.0.2 mips cc rejects this.  */
5733   struct point {int x, y;};
5734   static struct point const zero = {0,0};
5735   /* AIX XL C 1.02.0.0 rejects this.
5736      It does not let you subtract one const X* pointer from another in
5737      an arm of an if-expression whose if-part is not a constant
5738      expression */
5739   const char *g = "string";
5740   ccp = &g + (g ? g-g : 0);
5741   /* HPUX 7.0 cc rejects these. */
5742   ++ccp;
5743   p = (char**) ccp;
5744   ccp = (char const *const *) p;
5745   { /* SCO 3.2v4 cc rejects this.  */
5746     char *t;
5747     char const *s = 0 ? (char *) 0 : (char const *) 0;
5748
5749     *t++ = 0;
5750   }
5751   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5752     int x[] = {25, 17};
5753     const int *foo = &x[0];
5754     ++foo;
5755   }
5756   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5757     typedef const int *iptr;
5758     iptr p = 0;
5759     ++p;
5760   }
5761   { /* AIX XL C 1.02.0.0 rejects this saying
5762        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5763     struct s { int j; const int *ap[3]; };
5764     struct s *b; b->j = 5;
5765   }
5766   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5767     const int foo = 10;
5768   }
5769 #endif
5770
5771   ;
5772   return 0;
5773 }
5774 _ACEOF
5775 rm -f conftest.$ac_objext
5776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777   (eval $ac_compile) 2>conftest.er1
5778   ac_status=$?
5779   grep -v '^ *+' conftest.er1 >conftest.err
5780   rm -f conftest.er1
5781   cat conftest.err >&5
5782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783   (exit $ac_status); } &&
5784          { ac_try='test -z "$ac_c_werror_flag"
5785                          || test ! -s conftest.err'
5786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787   (eval $ac_try) 2>&5
5788   ac_status=$?
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); }; } &&
5791          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5797   ac_cv_c_const=yes
5798 else
5799   echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5801
5802 ac_cv_c_const=no
5803 fi
5804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5805 fi
5806 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5807 echo "${ECHO_T}$ac_cv_c_const" >&6
5808 if test $ac_cv_c_const = no; then
5809
5810 cat >>confdefs.h <<\_ACEOF
5811 #define const
5812 _ACEOF
5813
5814 fi
5815
5816
5817 echo "$as_me:$LINENO: checking for egrep" >&5
5818 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5819 if test "${ac_cv_prog_egrep+set}" = set; then
5820   echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5823     then ac_cv_prog_egrep='grep -E'
5824     else ac_cv_prog_egrep='egrep'
5825     fi
5826 fi
5827 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5828 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5829  EGREP=$ac_cv_prog_egrep
5830
5831
5832 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5833 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5834 if test "${ac_cv_header_stdc+set}" = set; then
5835   echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837   cat >conftest.$ac_ext <<_ACEOF
5838 /* confdefs.h.  */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h.  */
5843 #include <stdlib.h>
5844 #include <stdarg.h>
5845 #include <string.h>
5846 #include <float.h>
5847
5848 int
5849 main ()
5850 {
5851
5852   ;
5853   return 0;
5854 }
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858   (eval $ac_compile) 2>conftest.er1
5859   ac_status=$?
5860   grep -v '^ *+' conftest.er1 >conftest.err
5861   rm -f conftest.er1
5862   cat conftest.err >&5
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); } &&
5865          { ac_try='test -z "$ac_c_werror_flag"
5866                          || test ! -s conftest.err'
5867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868   (eval $ac_try) 2>&5
5869   ac_status=$?
5870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871   (exit $ac_status); }; } &&
5872          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5878   ac_cv_header_stdc=yes
5879 else
5880   echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5882
5883 ac_cv_header_stdc=no
5884 fi
5885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5886
5887 if test $ac_cv_header_stdc = yes; then
5888   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5889   cat >conftest.$ac_ext <<_ACEOF
5890 /* confdefs.h.  */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h.  */
5895 #include <string.h>
5896
5897 _ACEOF
5898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5899   $EGREP "memchr" >/dev/null 2>&1; then
5900   :
5901 else
5902   ac_cv_header_stdc=no
5903 fi
5904 rm -f conftest*
5905
5906 fi
5907
5908 if test $ac_cv_header_stdc = yes; then
5909   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5910   cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h.  */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h.  */
5916 #include <stdlib.h>
5917
5918 _ACEOF
5919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5920   $EGREP "free" >/dev/null 2>&1; then
5921   :
5922 else
5923   ac_cv_header_stdc=no
5924 fi
5925 rm -f conftest*
5926
5927 fi
5928
5929 if test $ac_cv_header_stdc = yes; then
5930   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5931   if test "$cross_compiling" = yes; then
5932   :
5933 else
5934   cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h.  */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h.  */
5940 #include <ctype.h>
5941 #if ((' ' & 0x0FF) == 0x020)
5942 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5943 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5944 #else
5945 # define ISLOWER(c) \
5946                    (('a' <= (c) && (c) <= 'i') \
5947                      || ('j' <= (c) && (c) <= 'r') \
5948                      || ('s' <= (c) && (c) <= 'z'))
5949 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5950 #endif
5951
5952 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5953 int
5954 main ()
5955 {
5956   int i;
5957   for (i = 0; i < 256; i++)
5958     if (XOR (islower (i), ISLOWER (i))
5959         || toupper (i) != TOUPPER (i))
5960       exit(2);
5961   exit (0);
5962 }
5963 _ACEOF
5964 rm -f conftest$ac_exeext
5965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5966   (eval $ac_link) 2>&5
5967   ac_status=$?
5968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971   (eval $ac_try) 2>&5
5972   ac_status=$?
5973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974   (exit $ac_status); }; }; then
5975   :
5976 else
5977   echo "$as_me: program exited with status $ac_status" >&5
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5980
5981 ( exit $ac_status )
5982 ac_cv_header_stdc=no
5983 fi
5984 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5985 fi
5986 fi
5987 fi
5988 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5989 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5990 if test $ac_cv_header_stdc = yes; then
5991
5992 cat >>confdefs.h <<\_ACEOF
5993 #define STDC_HEADERS 1
5994 _ACEOF
5995
5996 fi
5997
5998
5999
6000
6001
6002
6003 ac_header_dirent=no
6004 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6005   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6006 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6007 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6009   echo $ECHO_N "(cached) $ECHO_C" >&6
6010 else
6011   cat >conftest.$ac_ext <<_ACEOF
6012 /* confdefs.h.  */
6013 _ACEOF
6014 cat confdefs.h >>conftest.$ac_ext
6015 cat >>conftest.$ac_ext <<_ACEOF
6016 /* end confdefs.h.  */
6017 #include <sys/types.h>
6018 #include <$ac_hdr>
6019
6020 int
6021 main ()
6022 {
6023 if ((DIR *) 0)
6024 return 0;
6025   ;
6026   return 0;
6027 }
6028 _ACEOF
6029 rm -f conftest.$ac_objext
6030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6031   (eval $ac_compile) 2>conftest.er1
6032   ac_status=$?
6033   grep -v '^ *+' conftest.er1 >conftest.err
6034   rm -f conftest.er1
6035   cat conftest.err >&5
6036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037   (exit $ac_status); } &&
6038          { ac_try='test -z "$ac_c_werror_flag"
6039                          || test ! -s conftest.err'
6040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041   (eval $ac_try) 2>&5
6042   ac_status=$?
6043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044   (exit $ac_status); }; } &&
6045          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6051   eval "$as_ac_Header=yes"
6052 else
6053   echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6055
6056 eval "$as_ac_Header=no"
6057 fi
6058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6059 fi
6060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6063   cat >>confdefs.h <<_ACEOF
6064 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6065 _ACEOF
6066
6067 ac_header_dirent=$ac_hdr; break
6068 fi
6069
6070 done
6071 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6072 if test $ac_header_dirent = dirent.h; then
6073   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6074 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6075 if test "${ac_cv_search_opendir+set}" = set; then
6076   echo $ECHO_N "(cached) $ECHO_C" >&6
6077 else
6078   ac_func_search_save_LIBS=$LIBS
6079 ac_cv_search_opendir=no
6080 cat >conftest.$ac_ext <<_ACEOF
6081 /* confdefs.h.  */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h.  */
6086
6087 /* Override any gcc2 internal prototype to avoid an error.  */
6088 #ifdef __cplusplus
6089 extern "C"
6090 #endif
6091 /* We use char because int might match the return type of a gcc2
6092    builtin and then its argument prototype would still apply.  */
6093 char opendir ();
6094 int
6095 main ()
6096 {
6097 opendir ();
6098   ;
6099   return 0;
6100 }
6101 _ACEOF
6102 rm -f conftest.$ac_objext conftest$ac_exeext
6103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6104   (eval $ac_link) 2>conftest.er1
6105   ac_status=$?
6106   grep -v '^ *+' conftest.er1 >conftest.err
6107   rm -f conftest.er1
6108   cat conftest.err >&5
6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); } &&
6111          { ac_try='test -z "$ac_c_werror_flag"
6112                          || test ! -s conftest.err'
6113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114   (eval $ac_try) 2>&5
6115   ac_status=$?
6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117   (exit $ac_status); }; } &&
6118          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6124   ac_cv_search_opendir="none required"
6125 else
6126   echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6128
6129 fi
6130 rm -f conftest.err conftest.$ac_objext \
6131       conftest$ac_exeext conftest.$ac_ext
6132 if test "$ac_cv_search_opendir" = no; then
6133   for ac_lib in dir; do
6134     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6135     cat >conftest.$ac_ext <<_ACEOF
6136 /* confdefs.h.  */
6137 _ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h.  */
6141
6142 /* Override any gcc2 internal prototype to avoid an error.  */
6143 #ifdef __cplusplus
6144 extern "C"
6145 #endif
6146 /* We use char because int might match the return type of a gcc2
6147    builtin and then its argument prototype would still apply.  */
6148 char opendir ();
6149 int
6150 main ()
6151 {
6152 opendir ();
6153   ;
6154   return 0;
6155 }
6156 _ACEOF
6157 rm -f conftest.$ac_objext conftest$ac_exeext
6158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6159   (eval $ac_link) 2>conftest.er1
6160   ac_status=$?
6161   grep -v '^ *+' conftest.er1 >conftest.err
6162   rm -f conftest.er1
6163   cat conftest.err >&5
6164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165   (exit $ac_status); } &&
6166          { ac_try='test -z "$ac_c_werror_flag"
6167                          || test ! -s conftest.err'
6168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169   (eval $ac_try) 2>&5
6170   ac_status=$?
6171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172   (exit $ac_status); }; } &&
6173          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6179   ac_cv_search_opendir="-l$ac_lib"
6180 break
6181 else
6182   echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6184
6185 fi
6186 rm -f conftest.err conftest.$ac_objext \
6187       conftest$ac_exeext conftest.$ac_ext
6188   done
6189 fi
6190 LIBS=$ac_func_search_save_LIBS
6191 fi
6192 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6193 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6194 if test "$ac_cv_search_opendir" != no; then
6195   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6196
6197 fi
6198
6199 else
6200   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6201 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6202 if test "${ac_cv_search_opendir+set}" = set; then
6203   echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205   ac_func_search_save_LIBS=$LIBS
6206 ac_cv_search_opendir=no
6207 cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h.  */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h.  */
6213
6214 /* Override any gcc2 internal prototype to avoid an error.  */
6215 #ifdef __cplusplus
6216 extern "C"
6217 #endif
6218 /* We use char because int might match the return type of a gcc2
6219    builtin and then its argument prototype would still apply.  */
6220 char opendir ();
6221 int
6222 main ()
6223 {
6224 opendir ();
6225   ;
6226   return 0;
6227 }
6228 _ACEOF
6229 rm -f conftest.$ac_objext conftest$ac_exeext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6231   (eval $ac_link) 2>conftest.er1
6232   ac_status=$?
6233   grep -v '^ *+' conftest.er1 >conftest.err
6234   rm -f conftest.er1
6235   cat conftest.err >&5
6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); } &&
6238          { ac_try='test -z "$ac_c_werror_flag"
6239                          || test ! -s conftest.err'
6240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241   (eval $ac_try) 2>&5
6242   ac_status=$?
6243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244   (exit $ac_status); }; } &&
6245          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6251   ac_cv_search_opendir="none required"
6252 else
6253   echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256 fi
6257 rm -f conftest.err conftest.$ac_objext \
6258       conftest$ac_exeext conftest.$ac_ext
6259 if test "$ac_cv_search_opendir" = no; then
6260   for ac_lib in x; do
6261     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6262     cat >conftest.$ac_ext <<_ACEOF
6263 /* confdefs.h.  */
6264 _ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h.  */
6268
6269 /* Override any gcc2 internal prototype to avoid an error.  */
6270 #ifdef __cplusplus
6271 extern "C"
6272 #endif
6273 /* We use char because int might match the return type of a gcc2
6274    builtin and then its argument prototype would still apply.  */
6275 char opendir ();
6276 int
6277 main ()
6278 {
6279 opendir ();
6280   ;
6281   return 0;
6282 }
6283 _ACEOF
6284 rm -f conftest.$ac_objext conftest$ac_exeext
6285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6286   (eval $ac_link) 2>conftest.er1
6287   ac_status=$?
6288   grep -v '^ *+' conftest.er1 >conftest.err
6289   rm -f conftest.er1
6290   cat conftest.err >&5
6291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292   (exit $ac_status); } &&
6293          { ac_try='test -z "$ac_c_werror_flag"
6294                          || test ! -s conftest.err'
6295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296   (eval $ac_try) 2>&5
6297   ac_status=$?
6298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299   (exit $ac_status); }; } &&
6300          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6306   ac_cv_search_opendir="-l$ac_lib"
6307 break
6308 else
6309   echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6311
6312 fi
6313 rm -f conftest.err conftest.$ac_objext \
6314       conftest$ac_exeext conftest.$ac_ext
6315   done
6316 fi
6317 LIBS=$ac_func_search_save_LIBS
6318 fi
6319 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6320 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6321 if test "$ac_cv_search_opendir" != no; then
6322   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6323
6324 fi
6325
6326 fi
6327
6328 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6339                   inttypes.h stdint.h unistd.h
6340 do
6341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6342 echo "$as_me:$LINENO: checking for $ac_header" >&5
6343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6345   echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347   cat >conftest.$ac_ext <<_ACEOF
6348 /* confdefs.h.  */
6349 _ACEOF
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h.  */
6353 $ac_includes_default
6354
6355 #include <$ac_header>
6356 _ACEOF
6357 rm -f conftest.$ac_objext
6358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6359   (eval $ac_compile) 2>conftest.er1
6360   ac_status=$?
6361   grep -v '^ *+' conftest.er1 >conftest.err
6362   rm -f conftest.er1
6363   cat conftest.err >&5
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); } &&
6366          { ac_try='test -z "$ac_c_werror_flag"
6367                          || test ! -s conftest.err'
6368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369   (eval $ac_try) 2>&5
6370   ac_status=$?
6371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372   (exit $ac_status); }; } &&
6373          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6379   eval "$as_ac_Header=yes"
6380 else
6381   echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6383
6384 eval "$as_ac_Header=no"
6385 fi
6386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6387 fi
6388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6391   cat >>confdefs.h <<_ACEOF
6392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6393 _ACEOF
6394
6395 fi
6396
6397 done
6398
6399
6400
6401 for ac_header in dlfcn.h
6402 do
6403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6405   echo "$as_me:$LINENO: checking for $ac_header" >&5
6406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408   echo $ECHO_N "(cached) $ECHO_C" >&6
6409 fi
6410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6412 else
6413   # Is the header compilable?
6414 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6416 cat >conftest.$ac_ext <<_ACEOF
6417 /* confdefs.h.  */
6418 _ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h.  */
6422 $ac_includes_default
6423 #include <$ac_header>
6424 _ACEOF
6425 rm -f conftest.$ac_objext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427   (eval $ac_compile) 2>conftest.er1
6428   ac_status=$?
6429   grep -v '^ *+' conftest.er1 >conftest.err
6430   rm -f conftest.er1
6431   cat conftest.err >&5
6432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433   (exit $ac_status); } &&
6434          { ac_try='test -z "$ac_c_werror_flag"
6435                          || test ! -s conftest.err'
6436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437   (eval $ac_try) 2>&5
6438   ac_status=$?
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); }; } &&
6441          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6447   ac_header_compiler=yes
6448 else
6449   echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6451
6452 ac_header_compiler=no
6453 fi
6454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6455 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6456 echo "${ECHO_T}$ac_header_compiler" >&6
6457
6458 # Is the header present?
6459 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6461 cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h.  */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h.  */
6467 #include <$ac_header>
6468 _ACEOF
6469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6470   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6471   ac_status=$?
6472   grep -v '^ *+' conftest.er1 >conftest.err
6473   rm -f conftest.er1
6474   cat conftest.err >&5
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); } >/dev/null; then
6477   if test -s conftest.err; then
6478     ac_cpp_err=$ac_c_preproc_warn_flag
6479     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6480   else
6481     ac_cpp_err=
6482   fi
6483 else
6484   ac_cpp_err=yes
6485 fi
6486 if test -z "$ac_cpp_err"; then
6487   ac_header_preproc=yes
6488 else
6489   echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6491
6492   ac_header_preproc=no
6493 fi
6494 rm -f conftest.err conftest.$ac_ext
6495 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6496 echo "${ECHO_T}$ac_header_preproc" >&6
6497
6498 # So?  What about this header?
6499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6500   yes:no: )
6501     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6505     ac_header_preproc=yes
6506     ;;
6507   no:yes:* )
6508     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6510     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6511 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6512     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6514     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6515 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6518     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6520     (
6521       cat <<\_ASBOX
6522 ## ----------------------------------- ##
6523 ## Report this to llvmbugs@cs.uiuc.edu ##
6524 ## ----------------------------------- ##
6525 _ASBOX
6526     ) |
6527       sed "s/^/$as_me: WARNING:     /" >&2
6528     ;;
6529 esac
6530 echo "$as_me:$LINENO: checking for $ac_header" >&5
6531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6533   echo $ECHO_N "(cached) $ECHO_C" >&6
6534 else
6535   eval "$as_ac_Header=\$ac_header_preproc"
6536 fi
6537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6539
6540 fi
6541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6542   cat >>confdefs.h <<_ACEOF
6543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6544 _ACEOF
6545
6546 fi
6547
6548 done
6549
6550 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6551 if test "${enable_ltdl_install+set}" = set; then
6552   enableval="$enable_ltdl_install"
6553
6554 fi;
6555
6556
6557
6558 if test x"${enable_ltdl_install-no}" != xno; then
6559   INSTALL_LTDL_TRUE=
6560   INSTALL_LTDL_FALSE='#'
6561 else
6562   INSTALL_LTDL_TRUE='#'
6563   INSTALL_LTDL_FALSE=
6564 fi
6565
6566
6567
6568 if test x"${enable_ltdl_convenience-no}" != xno; then
6569   CONVENIENCE_LTDL_TRUE=
6570   CONVENIENCE_LTDL_FALSE='#'
6571 else
6572   CONVENIENCE_LTDL_TRUE='#'
6573   CONVENIENCE_LTDL_FALSE=
6574 fi
6575
6576
6577 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6578 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6579 library_names_spec=
6580 libname_spec='lib$name'
6581 soname_spec=
6582 shrext_cmds=".so"
6583 postinstall_cmds=
6584 postuninstall_cmds=
6585 finish_cmds=
6586 finish_eval=
6587 shlibpath_var=
6588 shlibpath_overrides_runpath=unknown
6589 version_type=none
6590 dynamic_linker="$host_os ld.so"
6591 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6592 if test "$GCC" = yes; then
6593   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6594   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6595     # if the path contains ";" then we assume it to be the separator
6596     # otherwise default to the standard path separator (i.e. ":") - it is
6597     # assumed that no part of a normal pathname contains ";" but that should
6598     # okay in the real world where ";" in dirpaths is itself problematic.
6599     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6600   else
6601     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6602   fi
6603 else
6604   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6605 fi
6606 need_lib_prefix=unknown
6607 hardcode_into_libs=no
6608
6609 # when you set need_version to no, make sure it does not cause -set_version
6610 # flags to be left without arguments
6611 need_version=unknown
6612
6613 case $host_os in
6614 aix3*)
6615   version_type=linux
6616   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6617   shlibpath_var=LIBPATH
6618
6619   # AIX 3 has no versioning support, so we append a major version to the name.
6620   soname_spec='${libname}${release}${shared_ext}$major'
6621   ;;
6622
6623 aix4* | aix5*)
6624   version_type=linux
6625   need_lib_prefix=no
6626   need_version=no
6627   hardcode_into_libs=yes
6628   if test "$host_cpu" = ia64; then
6629     # AIX 5 supports IA64
6630     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6631     shlibpath_var=LD_LIBRARY_PATH
6632   else
6633     # With GCC up to 2.95.x, collect2 would create an import file
6634     # for dependence libraries.  The import file would start with
6635     # the line `#! .'.  This would cause the generated library to
6636     # depend on `.', always an invalid library.  This was fixed in
6637     # development snapshots of GCC prior to 3.0.
6638     case $host_os in
6639       aix4 | aix4.[01] | aix4.[01].*)
6640       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6641            echo ' yes '
6642            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6643         :
6644       else
6645         can_build_shared=no
6646       fi
6647       ;;
6648     esac
6649     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6650     # soname into executable. Probably we can add versioning support to
6651     # collect2, so additional links can be useful in future.
6652     if test "$aix_use_runtimelinking" = yes; then
6653       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6654       # instead of lib<name>.a to let people know that these are not
6655       # typical AIX shared libraries.
6656       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6657     else
6658       # We preserve .a as extension for shared libraries through AIX4.2
6659       # and later when we are not doing run time linking.
6660       library_names_spec='${libname}${release}.a $libname.a'
6661       soname_spec='${libname}${release}${shared_ext}$major'
6662     fi
6663     shlibpath_var=LIBPATH
6664   fi
6665   ;;
6666
6667 amigaos*)
6668   library_names_spec='$libname.ixlibrary $libname.a'
6669   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6670   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'
6671   ;;
6672
6673 beos*)
6674   library_names_spec='${libname}${shared_ext}'
6675   dynamic_linker="$host_os ld.so"
6676   shlibpath_var=LIBRARY_PATH
6677   ;;
6678
6679 bsdi[45]*)
6680   version_type=linux
6681   need_version=no
6682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6683   soname_spec='${libname}${release}${shared_ext}$major'
6684   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6685   shlibpath_var=LD_LIBRARY_PATH
6686   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6687   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6688   # the default ld.so.conf also contains /usr/contrib/lib and
6689   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6690   # libtool to hard-code these into programs
6691   ;;
6692
6693 cygwin* | mingw* | pw32*)
6694   version_type=windows
6695   shrext_cmds=".dll"
6696   need_version=no
6697   need_lib_prefix=no
6698
6699   case $GCC,$host_os in
6700   yes,cygwin* | yes,mingw* | yes,pw32*)
6701     library_names_spec='$libname.dll.a'
6702     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6703     postinstall_cmds='base_file=`basename \${file}`~
6704       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6705       dldir=$destdir/`dirname \$dlpath`~
6706       test -d \$dldir || mkdir -p \$dldir~
6707       $install_prog $dir/$dlname \$dldir/$dlname'
6708     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6709       dlpath=$dir/\$dldll~
6710        $rm \$dlpath'
6711     shlibpath_overrides_runpath=yes
6712
6713     case $host_os in
6714     cygwin*)
6715       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6716       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6717       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6718       ;;
6719     mingw*)
6720       # MinGW DLLs use traditional 'lib' prefix
6721       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6722       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6723       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6724         # It is most probably a Windows format PATH printed by
6725         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6726         # path with ; separators, and with drive letters. We can handle the
6727         # drive letters (cygwin fileutils understands them), so leave them,
6728         # especially as we might pass files found there to a mingw objdump,
6729         # which wouldn't understand a cygwinified path. Ahh.
6730         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6731       else
6732         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6733       fi
6734       ;;
6735     pw32*)
6736       # pw32 DLLs use 'pw' prefix rather than 'lib'
6737       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6738       ;;
6739     esac
6740     ;;
6741
6742   *)
6743     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6744     ;;
6745   esac
6746   dynamic_linker='Win32 ld.exe'
6747   # FIXME: first we should search . and the directory the executable is in
6748   shlibpath_var=PATH
6749   ;;
6750
6751 darwin* | rhapsody*)
6752   dynamic_linker="$host_os dyld"
6753   version_type=darwin
6754   need_lib_prefix=no
6755   need_version=no
6756   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6757   soname_spec='${libname}${release}${major}$shared_ext'
6758   shlibpath_overrides_runpath=yes
6759   shlibpath_var=DYLD_LIBRARY_PATH
6760   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6761   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6762   if test "$GCC" = yes; then
6763     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"`
6764   else
6765     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6766   fi
6767   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6768   ;;
6769
6770 dgux*)
6771   version_type=linux
6772   need_lib_prefix=no
6773   need_version=no
6774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6775   soname_spec='${libname}${release}${shared_ext}$major'
6776   shlibpath_var=LD_LIBRARY_PATH
6777   ;;
6778
6779 freebsd1*)
6780   dynamic_linker=no
6781   ;;
6782
6783 kfreebsd*-gnu)
6784   version_type=linux
6785   need_lib_prefix=no
6786   need_version=no
6787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6788   soname_spec='${libname}${release}${shared_ext}$major'
6789   shlibpath_var=LD_LIBRARY_PATH
6790   shlibpath_overrides_runpath=no
6791   hardcode_into_libs=yes
6792   dynamic_linker='GNU ld.so'
6793   ;;
6794
6795 freebsd*)
6796   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6797   version_type=freebsd-$objformat
6798   case $version_type in
6799     freebsd-elf*)
6800       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6801       need_version=no
6802       need_lib_prefix=no
6803       ;;
6804     freebsd-*)
6805       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6806       need_version=yes
6807       ;;
6808   esac
6809   shlibpath_var=LD_LIBRARY_PATH
6810   case $host_os in
6811   freebsd2*)
6812     shlibpath_overrides_runpath=yes
6813     ;;
6814   freebsd3.01* | freebsdelf3.01*)
6815     shlibpath_overrides_runpath=yes
6816     hardcode_into_libs=yes
6817     ;;
6818   *) # from 3.2 on
6819     shlibpath_overrides_runpath=no
6820     hardcode_into_libs=yes
6821     ;;
6822   esac
6823   ;;
6824
6825 gnu*)
6826   version_type=linux
6827   need_lib_prefix=no
6828   need_version=no
6829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6830   soname_spec='${libname}${release}${shared_ext}$major'
6831   shlibpath_var=LD_LIBRARY_PATH
6832   hardcode_into_libs=yes
6833   ;;
6834
6835 hpux9* | hpux10* | hpux11*)
6836   # Give a soname corresponding to the major version so that dld.sl refuses to
6837   # link against other versions.
6838   version_type=sunos
6839   need_lib_prefix=no
6840   need_version=no
6841   case "$host_cpu" in
6842   ia64*)
6843     shrext_cmds='.so'
6844     hardcode_into_libs=yes
6845     dynamic_linker="$host_os dld.so"
6846     shlibpath_var=LD_LIBRARY_PATH
6847     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6849     soname_spec='${libname}${release}${shared_ext}$major'
6850     if test "X$HPUX_IA64_MODE" = X32; then
6851       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6852     else
6853       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6854     fi
6855     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6856     ;;
6857    hppa*64*)
6858      shrext_cmds='.sl'
6859      hardcode_into_libs=yes
6860      dynamic_linker="$host_os dld.sl"
6861      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6862      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6863      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6864      soname_spec='${libname}${release}${shared_ext}$major'
6865      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6866      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6867      ;;
6868    *)
6869     shrext_cmds='.sl'
6870     dynamic_linker="$host_os dld.sl"
6871     shlibpath_var=SHLIB_PATH
6872     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6873     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6874     soname_spec='${libname}${release}${shared_ext}$major'
6875     ;;
6876   esac
6877   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6878   postinstall_cmds='chmod 555 $lib'
6879   ;;
6880
6881 irix5* | irix6* | nonstopux*)
6882   case $host_os in
6883     nonstopux*) version_type=nonstopux ;;
6884     *)
6885         if test "$lt_cv_prog_gnu_ld" = yes; then
6886                 version_type=linux
6887         else
6888                 version_type=irix
6889         fi ;;
6890   esac
6891   need_lib_prefix=no
6892   need_version=no
6893   soname_spec='${libname}${release}${shared_ext}$major'
6894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6895   case $host_os in
6896   irix5* | nonstopux*)
6897     libsuff= shlibsuff=
6898     ;;
6899   *)
6900     case $LD in # libtool.m4 will add one of these switches to LD
6901     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6902       libsuff= shlibsuff= libmagic=32-bit;;
6903     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6904       libsuff=32 shlibsuff=N32 libmagic=N32;;
6905     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6906       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6907     *) libsuff= shlibsuff= libmagic=never-match;;
6908     esac
6909     ;;
6910   esac
6911   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6912   shlibpath_overrides_runpath=no
6913   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6914   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6915   hardcode_into_libs=yes
6916   ;;
6917
6918 # No shared lib support for Linux oldld, aout, or coff.
6919 linux*oldld* | linux*aout* | linux*coff*)
6920   dynamic_linker=no
6921   ;;
6922
6923 # This must be Linux ELF.
6924 linux*)
6925   version_type=linux
6926   need_lib_prefix=no
6927   need_version=no
6928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6929   soname_spec='${libname}${release}${shared_ext}$major'
6930   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6931   shlibpath_var=LD_LIBRARY_PATH
6932   shlibpath_overrides_runpath=no
6933   # This implies no fast_install, which is unacceptable.
6934   # Some rework will be needed to allow for fast_install
6935   # before this can be enabled.
6936   hardcode_into_libs=yes
6937
6938   # Append ld.so.conf contents to the search path
6939   if test -f /etc/ld.so.conf; then
6940     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6941     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6942   fi
6943
6944   # We used to test for /lib/ld.so.1 and disable shared libraries on
6945   # powerpc, because MkLinux only supported shared libraries with the
6946   # GNU dynamic linker.  Since this was broken with cross compilers,
6947   # most powerpc-linux boxes support dynamic linking these days and
6948   # people can always --disable-shared, the test was removed, and we
6949   # assume the GNU/Linux dynamic linker is in use.
6950   dynamic_linker='GNU/Linux ld.so'
6951   ;;
6952
6953 knetbsd*-gnu)
6954   version_type=linux
6955   need_lib_prefix=no
6956   need_version=no
6957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6958   soname_spec='${libname}${release}${shared_ext}$major'
6959   shlibpath_var=LD_LIBRARY_PATH
6960   shlibpath_overrides_runpath=no
6961   hardcode_into_libs=yes
6962   dynamic_linker='GNU ld.so'
6963   ;;
6964
6965 netbsd*)
6966   version_type=sunos
6967   need_lib_prefix=no
6968   need_version=no
6969   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6970     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6971     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6972     dynamic_linker='NetBSD (a.out) ld.so'
6973   else
6974     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6975     soname_spec='${libname}${release}${shared_ext}$major'
6976     dynamic_linker='NetBSD ld.elf_so'
6977   fi
6978   shlibpath_var=LD_LIBRARY_PATH
6979   shlibpath_overrides_runpath=yes
6980   hardcode_into_libs=yes
6981   ;;
6982
6983 newsos6)
6984   version_type=linux
6985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6986   shlibpath_var=LD_LIBRARY_PATH
6987   shlibpath_overrides_runpath=yes
6988   ;;
6989
6990 nto-qnx*)
6991   version_type=linux
6992   need_lib_prefix=no
6993   need_version=no
6994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6995   soname_spec='${libname}${release}${shared_ext}$major'
6996   shlibpath_var=LD_LIBRARY_PATH
6997   shlibpath_overrides_runpath=yes
6998   ;;
6999
7000 openbsd*)
7001   version_type=sunos
7002   need_lib_prefix=no
7003   need_version=no
7004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7005   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7006   shlibpath_var=LD_LIBRARY_PATH
7007   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7008     case $host_os in
7009       openbsd2.[89] | openbsd2.[89].*)
7010         shlibpath_overrides_runpath=no
7011         ;;
7012       *)
7013         shlibpath_overrides_runpath=yes
7014         ;;
7015       esac
7016   else
7017     shlibpath_overrides_runpath=yes
7018   fi
7019   ;;
7020
7021 os2*)
7022   libname_spec='$name'
7023   shrext_cmds=".dll"
7024   need_lib_prefix=no
7025   library_names_spec='$libname${shared_ext} $libname.a'
7026   dynamic_linker='OS/2 ld.exe'
7027   shlibpath_var=LIBPATH
7028   ;;
7029
7030 osf3* | osf4* | osf5*)
7031   version_type=osf
7032   need_lib_prefix=no
7033   need_version=no
7034   soname_spec='${libname}${release}${shared_ext}$major'
7035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7036   shlibpath_var=LD_LIBRARY_PATH
7037   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7038   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7039   ;;
7040
7041 sco3.2v5*)
7042   version_type=osf
7043   soname_spec='${libname}${release}${shared_ext}$major'
7044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7045   shlibpath_var=LD_LIBRARY_PATH
7046   ;;
7047
7048 solaris*)
7049   version_type=linux
7050   need_lib_prefix=no
7051   need_version=no
7052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7053   soname_spec='${libname}${release}${shared_ext}$major'
7054   shlibpath_var=LD_LIBRARY_PATH
7055   shlibpath_overrides_runpath=yes
7056   hardcode_into_libs=yes
7057   # ldd complains unless libraries are executable
7058   postinstall_cmds='chmod +x $lib'
7059   ;;
7060
7061 sunos4*)
7062   version_type=sunos
7063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7064   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7065   shlibpath_var=LD_LIBRARY_PATH
7066   shlibpath_overrides_runpath=yes
7067   if test "$with_gnu_ld" = yes; then
7068     need_lib_prefix=no
7069   fi
7070   need_version=yes
7071   ;;
7072
7073 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7074   version_type=linux
7075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7076   soname_spec='${libname}${release}${shared_ext}$major'
7077   shlibpath_var=LD_LIBRARY_PATH
7078   case $host_vendor in
7079     sni)
7080       shlibpath_overrides_runpath=no
7081       need_lib_prefix=no
7082       export_dynamic_flag_spec='${wl}-Blargedynsym'
7083       runpath_var=LD_RUN_PATH
7084       ;;
7085     siemens)
7086       need_lib_prefix=no
7087       ;;
7088     motorola)
7089       need_lib_prefix=no
7090       need_version=no
7091       shlibpath_overrides_runpath=no
7092       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7093       ;;
7094   esac
7095   ;;
7096
7097 sysv4*MP*)
7098   if test -d /usr/nec ;then
7099     version_type=linux
7100     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7101     soname_spec='$libname${shared_ext}.$major'
7102     shlibpath_var=LD_LIBRARY_PATH
7103   fi
7104   ;;
7105
7106 uts4*)
7107   version_type=linux
7108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7109   soname_spec='${libname}${release}${shared_ext}$major'
7110   shlibpath_var=LD_LIBRARY_PATH
7111   ;;
7112
7113 *)
7114   dynamic_linker=no
7115   ;;
7116 esac
7117 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7118 echo "${ECHO_T}$dynamic_linker" >&6
7119 test "$dynamic_linker" = no && can_build_shared=no
7120
7121
7122 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7123 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7124 if test "${libltdl_cv_shlibext+set}" = set; then
7125   echo $ECHO_N "(cached) $ECHO_C" >&6
7126 else
7127
7128 module=yes
7129 eval libltdl_cv_shlibext=$shrext_cmds
7130
7131 fi
7132 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7133 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7134 if test -n "$libltdl_cv_shlibext"; then
7135
7136 cat >>confdefs.h <<_ACEOF
7137 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7138 _ACEOF
7139
7140 fi
7141
7142
7143 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7144 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7145 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7146   echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148   libltdl_cv_shlibpath_var="$shlibpath_var"
7149 fi
7150 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7151 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7152 if test -n "$libltdl_cv_shlibpath_var"; then
7153
7154 cat >>confdefs.h <<_ACEOF
7155 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7156 _ACEOF
7157
7158 fi
7159
7160
7161 echo "$as_me:$LINENO: checking for the default library search path" >&5
7162 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7163 if test "${libltdl_cv_sys_search_path+set}" = set; then
7164   echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7167 fi
7168 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7169 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7170 if test -n "$libltdl_cv_sys_search_path"; then
7171   sys_search_path=
7172   for dir in $libltdl_cv_sys_search_path; do
7173     if test -z "$sys_search_path"; then
7174       sys_search_path="$dir"
7175     else
7176       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7177     fi
7178   done
7179
7180 cat >>confdefs.h <<_ACEOF
7181 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7182 _ACEOF
7183
7184 fi
7185
7186 echo "$as_me:$LINENO: checking for objdir" >&5
7187 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7188 if test "${libltdl_cv_objdir+set}" = set; then
7189   echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191   libltdl_cv_objdir="$objdir"
7192   if test -n "$objdir"; then
7193     :
7194   else
7195     rm -f .libs 2>/dev/null
7196     mkdir .libs 2>/dev/null
7197     if test -d .libs; then
7198       libltdl_cv_objdir=.libs
7199     else
7200       # MS-DOS does not allow filenames that begin with a dot.
7201       libltdl_cv_objdir=_libs
7202     fi
7203   rmdir .libs 2>/dev/null
7204   fi
7205
7206 fi
7207 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7208 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7209
7210 cat >>confdefs.h <<_ACEOF
7211 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7212 _ACEOF
7213
7214
7215 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7216 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7217 if test "${lt_cv_path_NM+set}" = set; then
7218   echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220   if test -n "$NM"; then
7221   # Let the user override the test.
7222   lt_cv_path_NM="$NM"
7223 else
7224   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7225   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7226     IFS="$lt_save_ifs"
7227     test -z "$ac_dir" && ac_dir=.
7228     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7229     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7230       # Check to see if the nm accepts a BSD-compat flag.
7231       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7232       #   nm: unknown option "B" ignored
7233       # Tru64's nm complains that /dev/null is an invalid object file
7234       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7235       */dev/null* | *'Invalid file or object type'*)
7236         lt_cv_path_NM="$tmp_nm -B"
7237         break
7238         ;;
7239       *)
7240         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7241         */dev/null*)
7242           lt_cv_path_NM="$tmp_nm -p"
7243           break
7244           ;;
7245         *)
7246           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7247           continue # so that we can try to find one that supports BSD flags
7248           ;;
7249         esac
7250       esac
7251     fi
7252   done
7253   IFS="$lt_save_ifs"
7254   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7255 fi
7256 fi
7257 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7258 echo "${ECHO_T}$lt_cv_path_NM" >&6
7259 NM="$lt_cv_path_NM"
7260
7261
7262
7263
7264
7265 # Check for command to grab the raw symbol name followed by C symbol from nm.
7266 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7267 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7268 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7269   echo $ECHO_N "(cached) $ECHO_C" >&6
7270 else
7271
7272 # These are sane defaults that work on at least a few old systems.
7273 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7274
7275 # Character class describing NM global symbol codes.
7276 symcode='[BCDEGRST]'
7277
7278 # Regexp to match symbols that can be accessed directly from C.
7279 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7280
7281 # Transform the above into a raw symbol and a C symbol.
7282 symxfrm='\1 \2\3 \3'
7283
7284 # Transform an extracted symbol line into a proper C declaration
7285 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7286
7287 # Transform an extracted symbol line into symbol name and symbol address
7288 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'"
7289
7290 # Define system-specific variables.
7291 case $host_os in
7292 aix*)
7293   symcode='[BCDT]'
7294   ;;
7295 cygwin* | mingw* | pw32*)
7296   symcode='[ABCDGISTW]'
7297   ;;
7298 hpux*) # Its linker distinguishes data from code symbols
7299   if test "$host_cpu" = ia64; then
7300     symcode='[ABCDEGRST]'
7301   fi
7302   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7303   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'"
7304   ;;
7305 linux*)
7306   if test "$host_cpu" = ia64; then
7307     symcode='[ABCDGIRSTW]'
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   fi
7311   ;;
7312 irix* | nonstopux*)
7313   symcode='[BCDEGRST]'
7314   ;;
7315 osf*)
7316   symcode='[BCDEGQRST]'
7317   ;;
7318 solaris* | sysv5*)
7319   symcode='[BDRT]'
7320   ;;
7321 sysv4)
7322   symcode='[DFNSTU]'
7323   ;;
7324 esac
7325
7326 # Handle CRLF in mingw tool chain
7327 opt_cr=
7328 case $build_os in
7329 mingw*)
7330   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7331   ;;
7332 esac
7333
7334 # If we're using GNU nm, then use its standard symbol codes.
7335 case `$NM -V 2>&1` in
7336 *GNU* | *'with BFD'*)
7337   symcode='[ABCDGIRSTW]' ;;
7338 esac
7339
7340 # Try without a prefix undercore, then with it.
7341 for ac_symprfx in "" "_"; do
7342
7343   # Write the raw and C identifiers.
7344   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7345
7346   # Check to see that the pipe works correctly.
7347   pipe_works=no
7348
7349   rm -f conftest*
7350   cat > conftest.$ac_ext <<EOF
7351 #ifdef __cplusplus
7352 extern "C" {
7353 #endif
7354 char nm_test_var;
7355 void nm_test_func(){}
7356 #ifdef __cplusplus
7357 }
7358 #endif
7359 int main(){nm_test_var='a';nm_test_func();return(0);}
7360 EOF
7361
7362   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7363   (eval $ac_compile) 2>&5
7364   ac_status=$?
7365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366   (exit $ac_status); }; then
7367     # Now try to grab the symbols.
7368     nlist=conftest.nm
7369     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7370   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7371   ac_status=$?
7372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373   (exit $ac_status); } && test -s "$nlist"; then
7374       # Try sorting and uniquifying the output.
7375       if sort "$nlist" | uniq > "$nlist"T; then
7376         mv -f "$nlist"T "$nlist"
7377       else
7378         rm -f "$nlist"T
7379       fi
7380
7381       # Make sure that we snagged all the symbols we need.
7382       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7383         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7384           cat <<EOF > conftest.$ac_ext
7385 #ifdef __cplusplus
7386 extern "C" {
7387 #endif
7388
7389 EOF
7390           # Now generate the symbol file.
7391           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7392
7393           cat <<EOF >> conftest.$ac_ext
7394 #if defined (__STDC__) && __STDC__
7395 # define lt_ptr_t void *
7396 #else
7397 # define lt_ptr_t char *
7398 # define const
7399 #endif
7400
7401 /* The mapping between symbol names and symbols. */
7402 const struct {
7403   const char *name;
7404   lt_ptr_t address;
7405 }
7406 lt_preloaded_symbols[] =
7407 {
7408 EOF
7409           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7410           cat <<\EOF >> conftest.$ac_ext
7411   {0, (lt_ptr_t) 0}
7412 };
7413
7414 #ifdef __cplusplus
7415 }
7416 #endif
7417 EOF
7418           # Now try linking the two files.
7419           mv conftest.$ac_objext conftstm.$ac_objext
7420           lt_save_LIBS="$LIBS"
7421           lt_save_CFLAGS="$CFLAGS"
7422           LIBS="conftstm.$ac_objext"
7423           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7424           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7425   (eval $ac_link) 2>&5
7426   ac_status=$?
7427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7429             pipe_works=yes
7430           fi
7431           LIBS="$lt_save_LIBS"
7432           CFLAGS="$lt_save_CFLAGS"
7433         else
7434           echo "cannot find nm_test_func in $nlist" >&5
7435         fi
7436       else
7437         echo "cannot find nm_test_var in $nlist" >&5
7438       fi
7439     else
7440       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7441     fi
7442   else
7443     echo "$progname: failed program was:" >&5
7444     cat conftest.$ac_ext >&5
7445   fi
7446   rm -f conftest* conftst*
7447
7448   # Do not use the global_symbol_pipe unless it works.
7449   if test "$pipe_works" = yes; then
7450     break
7451   else
7452     lt_cv_sys_global_symbol_pipe=
7453   fi
7454 done
7455
7456 fi
7457
7458 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7459   lt_cv_sys_global_symbol_to_cdecl=
7460 fi
7461 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7462   echo "$as_me:$LINENO: result: failed" >&5
7463 echo "${ECHO_T}failed" >&6
7464 else
7465   echo "$as_me:$LINENO: result: ok" >&5
7466 echo "${ECHO_T}ok" >&6
7467 fi
7468
7469
7470 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7471 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7472 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7473   echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7476     libltdl_cv_preloaded_symbols=yes
7477   else
7478     libltdl_cv_preloaded_symbols=no
7479   fi
7480
7481 fi
7482 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7483 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7484 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7485
7486 cat >>confdefs.h <<\_ACEOF
7487 #define HAVE_PRELOADED_SYMBOLS 1
7488 _ACEOF
7489
7490 fi
7491
7492 LIBADD_DL=
7493
7494 ac_ext=c
7495 ac_cpp='$CPP $CPPFLAGS'
7496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7499
7500
7501 echo "$as_me:$LINENO: checking for shl_load" >&5
7502 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7503 if test "${ac_cv_func_shl_load+set}" = set; then
7504   echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506   cat >conftest.$ac_ext <<_ACEOF
7507 /* confdefs.h.  */
7508 _ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h.  */
7512 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7513    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7514 #define shl_load innocuous_shl_load
7515
7516 /* System header to define __stub macros and hopefully few prototypes,
7517     which can conflict with char shl_load (); below.
7518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7519     <limits.h> exists even on freestanding compilers.  */
7520
7521 #ifdef __STDC__
7522 # include <limits.h>
7523 #else
7524 # include <assert.h>
7525 #endif
7526
7527 #undef shl_load
7528
7529 /* Override any gcc2 internal prototype to avoid an error.  */
7530 #ifdef __cplusplus
7531 extern "C"
7532 {
7533 #endif
7534 /* We use char because int might match the return type of a gcc2
7535    builtin and then its argument prototype would still apply.  */
7536 char shl_load ();
7537 /* The GNU C library defines this for functions which it implements
7538     to always fail with ENOSYS.  Some functions are actually named
7539     something starting with __ and the normal name is an alias.  */
7540 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7541 choke me
7542 #else
7543 char (*f) () = shl_load;
7544 #endif
7545 #ifdef __cplusplus
7546 }
7547 #endif
7548
7549 int
7550 main ()
7551 {
7552 return f != shl_load;
7553   ;
7554   return 0;
7555 }
7556 _ACEOF
7557 rm -f conftest.$ac_objext conftest$ac_exeext
7558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7559   (eval $ac_link) 2>conftest.er1
7560   ac_status=$?
7561   grep -v '^ *+' conftest.er1 >conftest.err
7562   rm -f conftest.er1
7563   cat conftest.err >&5
7564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565   (exit $ac_status); } &&
7566          { ac_try='test -z "$ac_c_werror_flag"
7567                          || test ! -s conftest.err'
7568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569   (eval $ac_try) 2>&5
7570   ac_status=$?
7571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572   (exit $ac_status); }; } &&
7573          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7579   ac_cv_func_shl_load=yes
7580 else
7581   echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7583
7584 ac_cv_func_shl_load=no
7585 fi
7586 rm -f conftest.err conftest.$ac_objext \
7587       conftest$ac_exeext conftest.$ac_ext
7588 fi
7589 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7590 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7591 if test $ac_cv_func_shl_load = yes; then
7592
7593 cat >>confdefs.h <<\_ACEOF
7594 #define HAVE_SHL_LOAD 1
7595 _ACEOF
7596
7597 else
7598   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7599 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7600 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7601   echo $ECHO_N "(cached) $ECHO_C" >&6
7602 else
7603   ac_check_lib_save_LIBS=$LIBS
7604 LIBS="-ldld  $LIBS"
7605 cat >conftest.$ac_ext <<_ACEOF
7606 /* confdefs.h.  */
7607 _ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h.  */
7611
7612 /* Override any gcc2 internal prototype to avoid an error.  */
7613 #ifdef __cplusplus
7614 extern "C"
7615 #endif
7616 /* We use char because int might match the return type of a gcc2
7617    builtin and then its argument prototype would still apply.  */
7618 char shl_load ();
7619 int
7620 main ()
7621 {
7622 shl_load ();
7623   ;
7624   return 0;
7625 }
7626 _ACEOF
7627 rm -f conftest.$ac_objext conftest$ac_exeext
7628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7629   (eval $ac_link) 2>conftest.er1
7630   ac_status=$?
7631   grep -v '^ *+' conftest.er1 >conftest.err
7632   rm -f conftest.er1
7633   cat conftest.err >&5
7634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); } &&
7636          { ac_try='test -z "$ac_c_werror_flag"
7637                          || test ! -s conftest.err'
7638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639   (eval $ac_try) 2>&5
7640   ac_status=$?
7641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642   (exit $ac_status); }; } &&
7643          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7649   ac_cv_lib_dld_shl_load=yes
7650 else
7651   echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7653
7654 ac_cv_lib_dld_shl_load=no
7655 fi
7656 rm -f conftest.err conftest.$ac_objext \
7657       conftest$ac_exeext conftest.$ac_ext
7658 LIBS=$ac_check_lib_save_LIBS
7659 fi
7660 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7661 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7662 if test $ac_cv_lib_dld_shl_load = yes; then
7663
7664 cat >>confdefs.h <<\_ACEOF
7665 #define HAVE_SHL_LOAD 1
7666 _ACEOF
7667
7668         LIBADD_DL="$LIBADD_DL -ldld"
7669 else
7670   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7671 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7672 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7673   echo $ECHO_N "(cached) $ECHO_C" >&6
7674 else
7675   ac_check_lib_save_LIBS=$LIBS
7676 LIBS="-ldl  $LIBS"
7677 cat >conftest.$ac_ext <<_ACEOF
7678 /* confdefs.h.  */
7679 _ACEOF
7680 cat confdefs.h >>conftest.$ac_ext
7681 cat >>conftest.$ac_ext <<_ACEOF
7682 /* end confdefs.h.  */
7683
7684 /* Override any gcc2 internal prototype to avoid an error.  */
7685 #ifdef __cplusplus
7686 extern "C"
7687 #endif
7688 /* We use char because int might match the return type of a gcc2
7689    builtin and then its argument prototype would still apply.  */
7690 char dlopen ();
7691 int
7692 main ()
7693 {
7694 dlopen ();
7695   ;
7696   return 0;
7697 }
7698 _ACEOF
7699 rm -f conftest.$ac_objext conftest$ac_exeext
7700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7701   (eval $ac_link) 2>conftest.er1
7702   ac_status=$?
7703   grep -v '^ *+' conftest.er1 >conftest.err
7704   rm -f conftest.er1
7705   cat conftest.err >&5
7706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707   (exit $ac_status); } &&
7708          { ac_try='test -z "$ac_c_werror_flag"
7709                          || test ! -s conftest.err'
7710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711   (eval $ac_try) 2>&5
7712   ac_status=$?
7713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714   (exit $ac_status); }; } &&
7715          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7721   ac_cv_lib_dl_dlopen=yes
7722 else
7723   echo "$as_me: failed program was:" >&5
7724 sed 's/^/| /' conftest.$ac_ext >&5
7725
7726 ac_cv_lib_dl_dlopen=no
7727 fi
7728 rm -f conftest.err conftest.$ac_objext \
7729       conftest$ac_exeext conftest.$ac_ext
7730 LIBS=$ac_check_lib_save_LIBS
7731 fi
7732 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7733 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7734 if test $ac_cv_lib_dl_dlopen = yes; then
7735
7736 cat >>confdefs.h <<\_ACEOF
7737 #define HAVE_LIBDL 1
7738 _ACEOF
7739
7740                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7741 else
7742   cat >conftest.$ac_ext <<_ACEOF
7743 /* confdefs.h.  */
7744 _ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h.  */
7748 #if HAVE_DLFCN_H
7749 #  include <dlfcn.h>
7750 #endif
7751
7752 int
7753 main ()
7754 {
7755 dlopen(0, 0);
7756   ;
7757   return 0;
7758 }
7759 _ACEOF
7760 rm -f conftest.$ac_objext conftest$ac_exeext
7761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7762   (eval $ac_link) 2>conftest.er1
7763   ac_status=$?
7764   grep -v '^ *+' conftest.er1 >conftest.err
7765   rm -f conftest.er1
7766   cat conftest.err >&5
7767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768   (exit $ac_status); } &&
7769          { ac_try='test -z "$ac_c_werror_flag"
7770                          || test ! -s conftest.err'
7771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772   (eval $ac_try) 2>&5
7773   ac_status=$?
7774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775   (exit $ac_status); }; } &&
7776          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7782
7783 cat >>confdefs.h <<\_ACEOF
7784 #define HAVE_LIBDL 1
7785 _ACEOF
7786  libltdl_cv_func_dlopen="yes"
7787 else
7788   echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7790
7791 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7792 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7793 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7794   echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796   ac_check_lib_save_LIBS=$LIBS
7797 LIBS="-lsvld  $LIBS"
7798 cat >conftest.$ac_ext <<_ACEOF
7799 /* confdefs.h.  */
7800 _ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h.  */
7804
7805 /* Override any gcc2 internal prototype to avoid an error.  */
7806 #ifdef __cplusplus
7807 extern "C"
7808 #endif
7809 /* We use char because int might match the return type of a gcc2
7810    builtin and then its argument prototype would still apply.  */
7811 char dlopen ();
7812 int
7813 main ()
7814 {
7815 dlopen ();
7816   ;
7817   return 0;
7818 }
7819 _ACEOF
7820 rm -f conftest.$ac_objext conftest$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822   (eval $ac_link) 2>conftest.er1
7823   ac_status=$?
7824   grep -v '^ *+' conftest.er1 >conftest.err
7825   rm -f conftest.er1
7826   cat conftest.err >&5
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); } &&
7829          { ac_try='test -z "$ac_c_werror_flag"
7830                          || test ! -s conftest.err'
7831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832   (eval $ac_try) 2>&5
7833   ac_status=$?
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); }; } &&
7836          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7842   ac_cv_lib_svld_dlopen=yes
7843 else
7844   echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7846
7847 ac_cv_lib_svld_dlopen=no
7848 fi
7849 rm -f conftest.err conftest.$ac_objext \
7850       conftest$ac_exeext conftest.$ac_ext
7851 LIBS=$ac_check_lib_save_LIBS
7852 fi
7853 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7854 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7855 if test $ac_cv_lib_svld_dlopen = yes; then
7856
7857 cat >>confdefs.h <<\_ACEOF
7858 #define HAVE_LIBDL 1
7859 _ACEOF
7860
7861                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7862 else
7863   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7864 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7865 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7866   echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868   ac_check_lib_save_LIBS=$LIBS
7869 LIBS="-ldld  $LIBS"
7870 cat >conftest.$ac_ext <<_ACEOF
7871 /* confdefs.h.  */
7872 _ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h.  */
7876
7877 /* Override any gcc2 internal prototype to avoid an error.  */
7878 #ifdef __cplusplus
7879 extern "C"
7880 #endif
7881 /* We use char because int might match the return type of a gcc2
7882    builtin and then its argument prototype would still apply.  */
7883 char dld_link ();
7884 int
7885 main ()
7886 {
7887 dld_link ();
7888   ;
7889   return 0;
7890 }
7891 _ACEOF
7892 rm -f conftest.$ac_objext conftest$ac_exeext
7893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894   (eval $ac_link) 2>conftest.er1
7895   ac_status=$?
7896   grep -v '^ *+' conftest.er1 >conftest.err
7897   rm -f conftest.er1
7898   cat conftest.err >&5
7899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900   (exit $ac_status); } &&
7901          { ac_try='test -z "$ac_c_werror_flag"
7902                          || test ! -s conftest.err'
7903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904   (eval $ac_try) 2>&5
7905   ac_status=$?
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); }; } &&
7908          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7914   ac_cv_lib_dld_dld_link=yes
7915 else
7916   echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7918
7919 ac_cv_lib_dld_dld_link=no
7920 fi
7921 rm -f conftest.err conftest.$ac_objext \
7922       conftest$ac_exeext conftest.$ac_ext
7923 LIBS=$ac_check_lib_save_LIBS
7924 fi
7925 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7926 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7927 if test $ac_cv_lib_dld_dld_link = yes; then
7928
7929 cat >>confdefs.h <<\_ACEOF
7930 #define HAVE_DLD 1
7931 _ACEOF
7932
7933                 LIBADD_DL="$LIBADD_DL -ldld"
7934 else
7935   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7936 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7937 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7938   echo $ECHO_N "(cached) $ECHO_C" >&6
7939 else
7940   cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h.  */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h.  */
7946 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7948 #define _dyld_func_lookup innocuous__dyld_func_lookup
7949
7950 /* System header to define __stub macros and hopefully few prototypes,
7951     which can conflict with char _dyld_func_lookup (); below.
7952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7953     <limits.h> exists even on freestanding compilers.  */
7954
7955 #ifdef __STDC__
7956 # include <limits.h>
7957 #else
7958 # include <assert.h>
7959 #endif
7960
7961 #undef _dyld_func_lookup
7962
7963 /* Override any gcc2 internal prototype to avoid an error.  */
7964 #ifdef __cplusplus
7965 extern "C"
7966 {
7967 #endif
7968 /* We use char because int might match the return type of a gcc2
7969    builtin and then its argument prototype would still apply.  */
7970 char _dyld_func_lookup ();
7971 /* The GNU C library defines this for functions which it implements
7972     to always fail with ENOSYS.  Some functions are actually named
7973     something starting with __ and the normal name is an alias.  */
7974 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7975 choke me
7976 #else
7977 char (*f) () = _dyld_func_lookup;
7978 #endif
7979 #ifdef __cplusplus
7980 }
7981 #endif
7982
7983 int
7984 main ()
7985 {
7986 return f != _dyld_func_lookup;
7987   ;
7988   return 0;
7989 }
7990 _ACEOF
7991 rm -f conftest.$ac_objext conftest$ac_exeext
7992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7993   (eval $ac_link) 2>conftest.er1
7994   ac_status=$?
7995   grep -v '^ *+' conftest.er1 >conftest.err
7996   rm -f conftest.er1
7997   cat conftest.err >&5
7998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999   (exit $ac_status); } &&
8000          { ac_try='test -z "$ac_c_werror_flag"
8001                          || test ! -s conftest.err'
8002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003   (eval $ac_try) 2>&5
8004   ac_status=$?
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); }; } &&
8007          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8013   ac_cv_func__dyld_func_lookup=yes
8014 else
8015   echo "$as_me: failed program was:" >&5
8016 sed 's/^/| /' conftest.$ac_ext >&5
8017
8018 ac_cv_func__dyld_func_lookup=no
8019 fi
8020 rm -f conftest.err conftest.$ac_objext \
8021       conftest$ac_exeext conftest.$ac_ext
8022 fi
8023 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8024 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8025 if test $ac_cv_func__dyld_func_lookup = yes; then
8026
8027 cat >>confdefs.h <<\_ACEOF
8028 #define HAVE_DYLD 1
8029 _ACEOF
8030
8031 fi
8032
8033
8034 fi
8035
8036
8037 fi
8038
8039
8040 fi
8041 rm -f conftest.err conftest.$ac_objext \
8042       conftest$ac_exeext conftest.$ac_ext
8043
8044 fi
8045
8046
8047 fi
8048
8049
8050 fi
8051
8052
8053 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8054 then
8055   lt_save_LIBS="$LIBS"
8056   LIBS="$LIBS $LIBADD_DL"
8057
8058 for ac_func in dlerror
8059 do
8060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8061 echo "$as_me:$LINENO: checking for $ac_func" >&5
8062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8063 if eval "test \"\${$as_ac_var+set}\" = set"; then
8064   echo $ECHO_N "(cached) $ECHO_C" >&6
8065 else
8066   cat >conftest.$ac_ext <<_ACEOF
8067 /* confdefs.h.  */
8068 _ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h.  */
8072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8073    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8074 #define $ac_func innocuous_$ac_func
8075
8076 /* System header to define __stub macros and hopefully few prototypes,
8077     which can conflict with char $ac_func (); below.
8078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8079     <limits.h> exists even on freestanding compilers.  */
8080
8081 #ifdef __STDC__
8082 # include <limits.h>
8083 #else
8084 # include <assert.h>
8085 #endif
8086
8087 #undef $ac_func
8088
8089 /* Override any gcc2 internal prototype to avoid an error.  */
8090 #ifdef __cplusplus
8091 extern "C"
8092 {
8093 #endif
8094 /* We use char because int might match the return type of a gcc2
8095    builtin and then its argument prototype would still apply.  */
8096 char $ac_func ();
8097 /* The GNU C library defines this for functions which it implements
8098     to always fail with ENOSYS.  Some functions are actually named
8099     something starting with __ and the normal name is an alias.  */
8100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8101 choke me
8102 #else
8103 char (*f) () = $ac_func;
8104 #endif
8105 #ifdef __cplusplus
8106 }
8107 #endif
8108
8109 int
8110 main ()
8111 {
8112 return f != $ac_func;
8113   ;
8114   return 0;
8115 }
8116 _ACEOF
8117 rm -f conftest.$ac_objext conftest$ac_exeext
8118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8119   (eval $ac_link) 2>conftest.er1
8120   ac_status=$?
8121   grep -v '^ *+' conftest.er1 >conftest.err
8122   rm -f conftest.er1
8123   cat conftest.err >&5
8124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125   (exit $ac_status); } &&
8126          { ac_try='test -z "$ac_c_werror_flag"
8127                          || test ! -s conftest.err'
8128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129   (eval $ac_try) 2>&5
8130   ac_status=$?
8131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); }; } &&
8133          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8139   eval "$as_ac_var=yes"
8140 else
8141   echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8143
8144 eval "$as_ac_var=no"
8145 fi
8146 rm -f conftest.err conftest.$ac_objext \
8147       conftest$ac_exeext conftest.$ac_ext
8148 fi
8149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8151 if test `eval echo '${'$as_ac_var'}'` = yes; then
8152   cat >>confdefs.h <<_ACEOF
8153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8154 _ACEOF
8155
8156 fi
8157 done
8158
8159   LIBS="$lt_save_LIBS"
8160 fi
8161 ac_ext=c
8162 ac_cpp='$CPP $CPPFLAGS'
8163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8166
8167
8168
8169 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8170 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8171 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8172   echo $ECHO_N "(cached) $ECHO_C" >&6
8173 else
8174   ac_cv_sys_symbol_underscore=no
8175   cat > conftest.$ac_ext <<EOF
8176 void nm_test_func(){}
8177 int main(){nm_test_func;return 0;}
8178 EOF
8179   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180   (eval $ac_compile) 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); }; then
8184     # Now try to grab the symbols.
8185     ac_nlist=conftest.nm
8186     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8187   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8188   ac_status=$?
8189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   (exit $ac_status); } && test -s "$ac_nlist"; then
8191       # See whether the symbols have a leading underscore.
8192       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8193         ac_cv_sys_symbol_underscore=yes
8194       else
8195         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8196           :
8197         else
8198           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8199         fi
8200       fi
8201     else
8202       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8203     fi
8204   else
8205     echo "configure: failed program was:" >&5
8206     cat conftest.c >&5
8207   fi
8208   rm -rf conftest*
8209
8210 fi
8211 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8212 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8213
8214
8215 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8216   if test x"$libltdl_cv_func_dlopen" = xyes ||
8217      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8218         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8219 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8220 if test "${libltdl_cv_need_uscore+set}" = set; then
8221   echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223   libltdl_cv_need_uscore=unknown
8224           save_LIBS="$LIBS"
8225           LIBS="$LIBS $LIBADD_DL"
8226           if test "$cross_compiling" = yes; then :
8227   libltdl_cv_need_uscore=cross
8228 else
8229   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8230   lt_status=$lt_dlunknown
8231   cat > conftest.$ac_ext <<EOF
8232 #line 8232 "configure"
8233 #include "confdefs.h"
8234
8235 #if HAVE_DLFCN_H
8236 #include <dlfcn.h>
8237 #endif
8238
8239 #include <stdio.h>
8240
8241 #ifdef RTLD_GLOBAL
8242 #  define LT_DLGLOBAL           RTLD_GLOBAL
8243 #else
8244 #  ifdef DL_GLOBAL
8245 #    define LT_DLGLOBAL         DL_GLOBAL
8246 #  else
8247 #    define LT_DLGLOBAL         0
8248 #  endif
8249 #endif
8250
8251 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8252    find out it does not work in some platform. */
8253 #ifndef LT_DLLAZY_OR_NOW
8254 #  ifdef RTLD_LAZY
8255 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8256 #  else
8257 #    ifdef DL_LAZY
8258 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8259 #    else
8260 #      ifdef RTLD_NOW
8261 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8262 #      else
8263 #        ifdef DL_NOW
8264 #          define LT_DLLAZY_OR_NOW      DL_NOW
8265 #        else
8266 #          define LT_DLLAZY_OR_NOW      0
8267 #        endif
8268 #      endif
8269 #    endif
8270 #  endif
8271 #endif
8272
8273 #ifdef __cplusplus
8274 extern "C" void exit (int);
8275 #endif
8276
8277 void fnord() { int i=42;}
8278 int main ()
8279 {
8280   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8281   int status = $lt_dlunknown;
8282
8283   if (self)
8284     {
8285       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8286       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8287       /* dlclose (self); */
8288     }
8289
8290     exit (status);
8291 }
8292 EOF
8293   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8294   (eval $ac_link) 2>&5
8295   ac_status=$?
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8298     (./conftest; exit; ) 2>/dev/null
8299     lt_status=$?
8300     case x$lt_status in
8301       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8302       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8303       x$lt_unknown|x*)  ;;
8304     esac
8305   else :
8306     # compilation failed
8307
8308   fi
8309 fi
8310 rm -fr conftest*
8311
8312           LIBS="$save_LIBS"
8313
8314 fi
8315 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8316 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8317   fi
8318 fi
8319
8320 if test x"$libltdl_cv_need_uscore" = xyes; then
8321
8322 cat >>confdefs.h <<\_ACEOF
8323 #define NEED_USCORE 1
8324 _ACEOF
8325
8326 fi
8327
8328
8329 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8330 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8331 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8332   echo $ECHO_N "(cached) $ECHO_C" >&6
8333 else
8334   # PORTME does your system automatically load deplibs for dlopen?
8335   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8336   # For now, we just catch OSes we know something about -- in the
8337   # future, we'll try test this programmatically.
8338   libltdl_cv_sys_dlopen_deplibs=unknown
8339   case "$host_os" in
8340   aix3*|aix4.1.*|aix4.2.*)
8341     # Unknown whether this is true for these versions of AIX, but
8342     # we want this `case' here to explicitly catch those versions.
8343     libltdl_cv_sys_dlopen_deplibs=unknown
8344     ;;
8345   aix[45]*)
8346     libltdl_cv_sys_dlopen_deplibs=yes
8347     ;;
8348   darwin*)
8349     # Assuming the user has installed a libdl from somewhere, this is true
8350     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8351     libltdl_cv_sys_dlopen_deplibs=yes
8352     ;;
8353   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8354     # GNU and its variants, using gnu ld.so (Glibc)
8355     libltdl_cv_sys_dlopen_deplibs=yes
8356     ;;
8357   hpux10*|hpux11*)
8358     libltdl_cv_sys_dlopen_deplibs=yes
8359     ;;
8360   irix[12345]*|irix6.[01]*)
8361     # Catch all versions of IRIX before 6.2, and indicate that we don't
8362     # know how it worked for any of those versions.
8363     libltdl_cv_sys_dlopen_deplibs=unknown
8364     ;;
8365   irix*)
8366     # The case above catches anything before 6.2, and it's known that
8367     # at 6.2 and later dlopen does load deplibs.
8368     libltdl_cv_sys_dlopen_deplibs=yes
8369     ;;
8370   netbsd*)
8371     libltdl_cv_sys_dlopen_deplibs=yes
8372     ;;
8373   openbsd*)
8374     libltdl_cv_sys_dlopen_deplibs=yes
8375     ;;
8376   osf[1234]*)
8377     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8378     # it did *not* use an RPATH in a shared library to find objects the
8379     # library depends on, so we explictly say `no'.
8380     libltdl_cv_sys_dlopen_deplibs=no
8381     ;;
8382   osf5.0|osf5.0a|osf5.1)
8383     # dlopen *does* load deplibs and with the right loader patch applied
8384     # it even uses RPATH in a shared library to search for shared objects
8385     # that the library depends on, but there's no easy way to know if that
8386     # patch is installed.  Since this is the case, all we can really
8387     # say is unknown -- it depends on the patch being installed.  If
8388     # it is, this changes to `yes'.  Without it, it would be `no'.
8389     libltdl_cv_sys_dlopen_deplibs=unknown
8390     ;;
8391   osf*)
8392     # the two cases above should catch all versions of osf <= 5.1.  Read
8393     # the comments above for what we know about them.
8394     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8395     # is used to find them so we can finally say `yes'.
8396     libltdl_cv_sys_dlopen_deplibs=yes
8397     ;;
8398   solaris*)
8399     libltdl_cv_sys_dlopen_deplibs=yes
8400     ;;
8401   esac
8402
8403 fi
8404 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8405 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8406 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8407
8408 cat >>confdefs.h <<\_ACEOF
8409 #define LTDL_DLOPEN_DEPLIBS 1
8410 _ACEOF
8411
8412 fi
8413
8414
8415 for ac_header in argz.h
8416 do
8417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8419   echo "$as_me:$LINENO: checking for $ac_header" >&5
8420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8422   echo $ECHO_N "(cached) $ECHO_C" >&6
8423 fi
8424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8426 else
8427   # Is the header compilable?
8428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8430 cat >conftest.$ac_ext <<_ACEOF
8431 /* confdefs.h.  */
8432 _ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h.  */
8436 $ac_includes_default
8437 #include <$ac_header>
8438 _ACEOF
8439 rm -f conftest.$ac_objext
8440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8441   (eval $ac_compile) 2>conftest.er1
8442   ac_status=$?
8443   grep -v '^ *+' conftest.er1 >conftest.err
8444   rm -f conftest.er1
8445   cat conftest.err >&5
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); } &&
8448          { ac_try='test -z "$ac_c_werror_flag"
8449                          || test ! -s conftest.err'
8450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451   (eval $ac_try) 2>&5
8452   ac_status=$?
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); }; } &&
8455          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8461   ac_header_compiler=yes
8462 else
8463   echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8465
8466 ac_header_compiler=no
8467 fi
8468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8470 echo "${ECHO_T}$ac_header_compiler" >&6
8471
8472 # Is the header present?
8473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8475 cat >conftest.$ac_ext <<_ACEOF
8476 /* confdefs.h.  */
8477 _ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h.  */
8481 #include <$ac_header>
8482 _ACEOF
8483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8484   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8485   ac_status=$?
8486   grep -v '^ *+' conftest.er1 >conftest.err
8487   rm -f conftest.er1
8488   cat conftest.err >&5
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); } >/dev/null; then
8491   if test -s conftest.err; then
8492     ac_cpp_err=$ac_c_preproc_warn_flag
8493     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8494   else
8495     ac_cpp_err=
8496   fi
8497 else
8498   ac_cpp_err=yes
8499 fi
8500 if test -z "$ac_cpp_err"; then
8501   ac_header_preproc=yes
8502 else
8503   echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8505
8506   ac_header_preproc=no
8507 fi
8508 rm -f conftest.err conftest.$ac_ext
8509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8510 echo "${ECHO_T}$ac_header_preproc" >&6
8511
8512 # So?  What about this header?
8513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8514   yes:no: )
8515     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8519     ac_header_preproc=yes
8520     ;;
8521   no:yes:* )
8522     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8524     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8525 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8526     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8528     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8529 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8532     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8534     (
8535       cat <<\_ASBOX
8536 ## ----------------------------------- ##
8537 ## Report this to llvmbugs@cs.uiuc.edu ##
8538 ## ----------------------------------- ##
8539 _ASBOX
8540     ) |
8541       sed "s/^/$as_me: WARNING:     /" >&2
8542     ;;
8543 esac
8544 echo "$as_me:$LINENO: checking for $ac_header" >&5
8545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8547   echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549   eval "$as_ac_Header=\$ac_header_preproc"
8550 fi
8551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8553
8554 fi
8555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8556   cat >>confdefs.h <<_ACEOF
8557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8558 _ACEOF
8559
8560 fi
8561
8562 done
8563
8564
8565 echo "$as_me:$LINENO: checking for error_t" >&5
8566 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8567 if test "${ac_cv_type_error_t+set}" = set; then
8568   echo $ECHO_N "(cached) $ECHO_C" >&6
8569 else
8570   cat >conftest.$ac_ext <<_ACEOF
8571 /* confdefs.h.  */
8572 _ACEOF
8573 cat confdefs.h >>conftest.$ac_ext
8574 cat >>conftest.$ac_ext <<_ACEOF
8575 /* end confdefs.h.  */
8576 #if HAVE_ARGZ_H
8577 #  include <argz.h>
8578 #endif
8579
8580 int
8581 main ()
8582 {
8583 if ((error_t *) 0)
8584   return 0;
8585 if (sizeof (error_t))
8586   return 0;
8587   ;
8588   return 0;
8589 }
8590 _ACEOF
8591 rm -f conftest.$ac_objext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8593   (eval $ac_compile) 2>conftest.er1
8594   ac_status=$?
8595   grep -v '^ *+' conftest.er1 >conftest.err
8596   rm -f conftest.er1
8597   cat conftest.err >&5
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); } &&
8600          { ac_try='test -z "$ac_c_werror_flag"
8601                          || test ! -s conftest.err'
8602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603   (eval $ac_try) 2>&5
8604   ac_status=$?
8605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606   (exit $ac_status); }; } &&
8607          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8613   ac_cv_type_error_t=yes
8614 else
8615   echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8617
8618 ac_cv_type_error_t=no
8619 fi
8620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8621 fi
8622 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8623 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8624 if test $ac_cv_type_error_t = yes; then
8625
8626 cat >>confdefs.h <<_ACEOF
8627 #define HAVE_ERROR_T 1
8628 _ACEOF
8629
8630
8631 else
8632
8633 cat >>confdefs.h <<\_ACEOF
8634 #define error_t int
8635 _ACEOF
8636
8637 fi
8638
8639
8640
8641
8642
8643
8644
8645 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8646 do
8647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8648 echo "$as_me:$LINENO: checking for $ac_func" >&5
8649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8650 if eval "test \"\${$as_ac_var+set}\" = set"; then
8651   echo $ECHO_N "(cached) $ECHO_C" >&6
8652 else
8653   cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h.  */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h.  */
8659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8661 #define $ac_func innocuous_$ac_func
8662
8663 /* System header to define __stub macros and hopefully few prototypes,
8664     which can conflict with char $ac_func (); below.
8665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8666     <limits.h> exists even on freestanding compilers.  */
8667
8668 #ifdef __STDC__
8669 # include <limits.h>
8670 #else
8671 # include <assert.h>
8672 #endif
8673
8674 #undef $ac_func
8675
8676 /* Override any gcc2 internal prototype to avoid an error.  */
8677 #ifdef __cplusplus
8678 extern "C"
8679 {
8680 #endif
8681 /* We use char because int might match the return type of a gcc2
8682    builtin and then its argument prototype would still apply.  */
8683 char $ac_func ();
8684 /* The GNU C library defines this for functions which it implements
8685     to always fail with ENOSYS.  Some functions are actually named
8686     something starting with __ and the normal name is an alias.  */
8687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8688 choke me
8689 #else
8690 char (*f) () = $ac_func;
8691 #endif
8692 #ifdef __cplusplus
8693 }
8694 #endif
8695
8696 int
8697 main ()
8698 {
8699 return f != $ac_func;
8700   ;
8701   return 0;
8702 }
8703 _ACEOF
8704 rm -f conftest.$ac_objext conftest$ac_exeext
8705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8706   (eval $ac_link) 2>conftest.er1
8707   ac_status=$?
8708   grep -v '^ *+' conftest.er1 >conftest.err
8709   rm -f conftest.er1
8710   cat conftest.err >&5
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); } &&
8713          { ac_try='test -z "$ac_c_werror_flag"
8714                          || test ! -s conftest.err'
8715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716   (eval $ac_try) 2>&5
8717   ac_status=$?
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); }; } &&
8720          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8726   eval "$as_ac_var=yes"
8727 else
8728   echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8730
8731 eval "$as_ac_var=no"
8732 fi
8733 rm -f conftest.err conftest.$ac_objext \
8734       conftest$ac_exeext conftest.$ac_ext
8735 fi
8736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8737 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8738 if test `eval echo '${'$as_ac_var'}'` = yes; then
8739   cat >>confdefs.h <<_ACEOF
8740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8741 _ACEOF
8742
8743 fi
8744 done
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8774                   stdio.h unistd.h
8775 do
8776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8778   echo "$as_me:$LINENO: checking for $ac_header" >&5
8779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8781   echo $ECHO_N "(cached) $ECHO_C" >&6
8782 fi
8783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8785 else
8786   # Is the header compilable?
8787 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8789 cat >conftest.$ac_ext <<_ACEOF
8790 /* confdefs.h.  */
8791 _ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h.  */
8795 $ac_includes_default
8796 #include <$ac_header>
8797 _ACEOF
8798 rm -f conftest.$ac_objext
8799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8800   (eval $ac_compile) 2>conftest.er1
8801   ac_status=$?
8802   grep -v '^ *+' conftest.er1 >conftest.err
8803   rm -f conftest.er1
8804   cat conftest.err >&5
8805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806   (exit $ac_status); } &&
8807          { ac_try='test -z "$ac_c_werror_flag"
8808                          || test ! -s conftest.err'
8809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810   (eval $ac_try) 2>&5
8811   ac_status=$?
8812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813   (exit $ac_status); }; } &&
8814          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8820   ac_header_compiler=yes
8821 else
8822   echo "$as_me: failed program was:" >&5
8823 sed 's/^/| /' conftest.$ac_ext >&5
8824
8825 ac_header_compiler=no
8826 fi
8827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8828 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8829 echo "${ECHO_T}$ac_header_compiler" >&6
8830
8831 # Is the header present?
8832 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8834 cat >conftest.$ac_ext <<_ACEOF
8835 /* confdefs.h.  */
8836 _ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h.  */
8840 #include <$ac_header>
8841 _ACEOF
8842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8843   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8844   ac_status=$?
8845   grep -v '^ *+' conftest.er1 >conftest.err
8846   rm -f conftest.er1
8847   cat conftest.err >&5
8848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849   (exit $ac_status); } >/dev/null; then
8850   if test -s conftest.err; then
8851     ac_cpp_err=$ac_c_preproc_warn_flag
8852     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8853   else
8854     ac_cpp_err=
8855   fi
8856 else
8857   ac_cpp_err=yes
8858 fi
8859 if test -z "$ac_cpp_err"; then
8860   ac_header_preproc=yes
8861 else
8862   echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8864
8865   ac_header_preproc=no
8866 fi
8867 rm -f conftest.err conftest.$ac_ext
8868 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8869 echo "${ECHO_T}$ac_header_preproc" >&6
8870
8871 # So?  What about this header?
8872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8873   yes:no: )
8874     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8876     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8878     ac_header_preproc=yes
8879     ;;
8880   no:yes:* )
8881     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8883     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8884 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8885     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8886 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8887     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8888 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8889     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8891     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8892 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8893     (
8894       cat <<\_ASBOX
8895 ## ----------------------------------- ##
8896 ## Report this to llvmbugs@cs.uiuc.edu ##
8897 ## ----------------------------------- ##
8898 _ASBOX
8899     ) |
8900       sed "s/^/$as_me: WARNING:     /" >&2
8901     ;;
8902 esac
8903 echo "$as_me:$LINENO: checking for $ac_header" >&5
8904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8906   echo $ECHO_N "(cached) $ECHO_C" >&6
8907 else
8908   eval "$as_ac_Header=\$ac_header_preproc"
8909 fi
8910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8912
8913 fi
8914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8915   cat >>confdefs.h <<_ACEOF
8916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8917 _ACEOF
8918
8919 fi
8920
8921 done
8922
8923
8924
8925
8926
8927 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8928 do
8929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8931   echo "$as_me:$LINENO: checking for $ac_header" >&5
8932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8934   echo $ECHO_N "(cached) $ECHO_C" >&6
8935 fi
8936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8938 else
8939   # Is the header compilable?
8940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8942 cat >conftest.$ac_ext <<_ACEOF
8943 /* confdefs.h.  */
8944 _ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h.  */
8948 $ac_includes_default
8949 #include <$ac_header>
8950 _ACEOF
8951 rm -f conftest.$ac_objext
8952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8953   (eval $ac_compile) 2>conftest.er1
8954   ac_status=$?
8955   grep -v '^ *+' conftest.er1 >conftest.err
8956   rm -f conftest.er1
8957   cat conftest.err >&5
8958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959   (exit $ac_status); } &&
8960          { ac_try='test -z "$ac_c_werror_flag"
8961                          || test ! -s conftest.err'
8962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963   (eval $ac_try) 2>&5
8964   ac_status=$?
8965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966   (exit $ac_status); }; } &&
8967          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8973   ac_header_compiler=yes
8974 else
8975   echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8977
8978 ac_header_compiler=no
8979 fi
8980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8982 echo "${ECHO_T}$ac_header_compiler" >&6
8983
8984 # Is the header present?
8985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8987 cat >conftest.$ac_ext <<_ACEOF
8988 /* confdefs.h.  */
8989 _ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h.  */
8993 #include <$ac_header>
8994 _ACEOF
8995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8996   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8997   ac_status=$?
8998   grep -v '^ *+' conftest.er1 >conftest.err
8999   rm -f conftest.er1
9000   cat conftest.err >&5
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); } >/dev/null; then
9003   if test -s conftest.err; then
9004     ac_cpp_err=$ac_c_preproc_warn_flag
9005     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9006   else
9007     ac_cpp_err=
9008   fi
9009 else
9010   ac_cpp_err=yes
9011 fi
9012 if test -z "$ac_cpp_err"; then
9013   ac_header_preproc=yes
9014 else
9015   echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9017
9018   ac_header_preproc=no
9019 fi
9020 rm -f conftest.err conftest.$ac_ext
9021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9022 echo "${ECHO_T}$ac_header_preproc" >&6
9023
9024 # So?  What about this header?
9025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9026   yes:no: )
9027     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9031     ac_header_preproc=yes
9032     ;;
9033   no:yes:* )
9034     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9036     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9037 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9038     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9040     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9041 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9044     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9046     (
9047       cat <<\_ASBOX
9048 ## ----------------------------------- ##
9049 ## Report this to llvmbugs@cs.uiuc.edu ##
9050 ## ----------------------------------- ##
9051 _ASBOX
9052     ) |
9053       sed "s/^/$as_me: WARNING:     /" >&2
9054     ;;
9055 esac
9056 echo "$as_me:$LINENO: checking for $ac_header" >&5
9057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9059   echo $ECHO_N "(cached) $ECHO_C" >&6
9060 else
9061   eval "$as_ac_Header=\$ac_header_preproc"
9062 fi
9063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9065
9066 fi
9067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9068   cat >>confdefs.h <<_ACEOF
9069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9070 _ACEOF
9071
9072 fi
9073
9074 done
9075
9076
9077
9078 for ac_header in string.h strings.h
9079 do
9080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9082   echo "$as_me:$LINENO: checking for $ac_header" >&5
9083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9085   echo $ECHO_N "(cached) $ECHO_C" >&6
9086 fi
9087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9089 else
9090   # Is the header compilable?
9091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h.  */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h.  */
9099 $ac_includes_default
9100 #include <$ac_header>
9101 _ACEOF
9102 rm -f conftest.$ac_objext
9103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9104   (eval $ac_compile) 2>conftest.er1
9105   ac_status=$?
9106   grep -v '^ *+' conftest.er1 >conftest.err
9107   rm -f conftest.er1
9108   cat conftest.err >&5
9109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110   (exit $ac_status); } &&
9111          { ac_try='test -z "$ac_c_werror_flag"
9112                          || test ! -s conftest.err'
9113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114   (eval $ac_try) 2>&5
9115   ac_status=$?
9116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117   (exit $ac_status); }; } &&
9118          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9124   ac_header_compiler=yes
9125 else
9126   echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9128
9129 ac_header_compiler=no
9130 fi
9131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9133 echo "${ECHO_T}$ac_header_compiler" >&6
9134
9135 # Is the header present?
9136 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9138 cat >conftest.$ac_ext <<_ACEOF
9139 /* confdefs.h.  */
9140 _ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h.  */
9144 #include <$ac_header>
9145 _ACEOF
9146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9147   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9148   ac_status=$?
9149   grep -v '^ *+' conftest.er1 >conftest.err
9150   rm -f conftest.er1
9151   cat conftest.err >&5
9152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153   (exit $ac_status); } >/dev/null; then
9154   if test -s conftest.err; then
9155     ac_cpp_err=$ac_c_preproc_warn_flag
9156     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9157   else
9158     ac_cpp_err=
9159   fi
9160 else
9161   ac_cpp_err=yes
9162 fi
9163 if test -z "$ac_cpp_err"; then
9164   ac_header_preproc=yes
9165 else
9166   echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9168
9169   ac_header_preproc=no
9170 fi
9171 rm -f conftest.err conftest.$ac_ext
9172 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9173 echo "${ECHO_T}$ac_header_preproc" >&6
9174
9175 # So?  What about this header?
9176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9177   yes:no: )
9178     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9182     ac_header_preproc=yes
9183     ;;
9184   no:yes:* )
9185     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9187     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9188 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9189     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9191     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9192 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9195     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9197     (
9198       cat <<\_ASBOX
9199 ## ----------------------------------- ##
9200 ## Report this to llvmbugs@cs.uiuc.edu ##
9201 ## ----------------------------------- ##
9202 _ASBOX
9203     ) |
9204       sed "s/^/$as_me: WARNING:     /" >&2
9205     ;;
9206 esac
9207 echo "$as_me:$LINENO: checking for $ac_header" >&5
9208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9210   echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212   eval "$as_ac_Header=\$ac_header_preproc"
9213 fi
9214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9216
9217 fi
9218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9219   cat >>confdefs.h <<_ACEOF
9220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9221 _ACEOF
9222  break
9223 fi
9224
9225 done
9226
9227
9228
9229
9230 for ac_func in strchr index
9231 do
9232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9233 echo "$as_me:$LINENO: checking for $ac_func" >&5
9234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9235 if eval "test \"\${$as_ac_var+set}\" = set"; then
9236   echo $ECHO_N "(cached) $ECHO_C" >&6
9237 else
9238   cat >conftest.$ac_ext <<_ACEOF
9239 /* confdefs.h.  */
9240 _ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h.  */
9244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9246 #define $ac_func innocuous_$ac_func
9247
9248 /* System header to define __stub macros and hopefully few prototypes,
9249     which can conflict with char $ac_func (); below.
9250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9251     <limits.h> exists even on freestanding compilers.  */
9252
9253 #ifdef __STDC__
9254 # include <limits.h>
9255 #else
9256 # include <assert.h>
9257 #endif
9258
9259 #undef $ac_func
9260
9261 /* Override any gcc2 internal prototype to avoid an error.  */
9262 #ifdef __cplusplus
9263 extern "C"
9264 {
9265 #endif
9266 /* We use char because int might match the return type of a gcc2
9267    builtin and then its argument prototype would still apply.  */
9268 char $ac_func ();
9269 /* The GNU C library defines this for functions which it implements
9270     to always fail with ENOSYS.  Some functions are actually named
9271     something starting with __ and the normal name is an alias.  */
9272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9273 choke me
9274 #else
9275 char (*f) () = $ac_func;
9276 #endif
9277 #ifdef __cplusplus
9278 }
9279 #endif
9280
9281 int
9282 main ()
9283 {
9284 return f != $ac_func;
9285   ;
9286   return 0;
9287 }
9288 _ACEOF
9289 rm -f conftest.$ac_objext conftest$ac_exeext
9290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9291   (eval $ac_link) 2>conftest.er1
9292   ac_status=$?
9293   grep -v '^ *+' conftest.er1 >conftest.err
9294   rm -f conftest.er1
9295   cat conftest.err >&5
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); } &&
9298          { ac_try='test -z "$ac_c_werror_flag"
9299                          || test ! -s conftest.err'
9300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301   (eval $ac_try) 2>&5
9302   ac_status=$?
9303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304   (exit $ac_status); }; } &&
9305          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9311   eval "$as_ac_var=yes"
9312 else
9313   echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9315
9316 eval "$as_ac_var=no"
9317 fi
9318 rm -f conftest.err conftest.$ac_objext \
9319       conftest$ac_exeext conftest.$ac_ext
9320 fi
9321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9323 if test `eval echo '${'$as_ac_var'}'` = yes; then
9324   cat >>confdefs.h <<_ACEOF
9325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9326 _ACEOF
9327  break
9328 fi
9329 done
9330
9331
9332
9333 for ac_func in strrchr rindex
9334 do
9335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9336 echo "$as_me:$LINENO: checking for $ac_func" >&5
9337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9338 if eval "test \"\${$as_ac_var+set}\" = set"; then
9339   echo $ECHO_N "(cached) $ECHO_C" >&6
9340 else
9341   cat >conftest.$ac_ext <<_ACEOF
9342 /* confdefs.h.  */
9343 _ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h.  */
9347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9349 #define $ac_func innocuous_$ac_func
9350
9351 /* System header to define __stub macros and hopefully few prototypes,
9352     which can conflict with char $ac_func (); below.
9353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9354     <limits.h> exists even on freestanding compilers.  */
9355
9356 #ifdef __STDC__
9357 # include <limits.h>
9358 #else
9359 # include <assert.h>
9360 #endif
9361
9362 #undef $ac_func
9363
9364 /* Override any gcc2 internal prototype to avoid an error.  */
9365 #ifdef __cplusplus
9366 extern "C"
9367 {
9368 #endif
9369 /* We use char because int might match the return type of a gcc2
9370    builtin and then its argument prototype would still apply.  */
9371 char $ac_func ();
9372 /* The GNU C library defines this for functions which it implements
9373     to always fail with ENOSYS.  Some functions are actually named
9374     something starting with __ and the normal name is an alias.  */
9375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9376 choke me
9377 #else
9378 char (*f) () = $ac_func;
9379 #endif
9380 #ifdef __cplusplus
9381 }
9382 #endif
9383
9384 int
9385 main ()
9386 {
9387 return f != $ac_func;
9388   ;
9389   return 0;
9390 }
9391 _ACEOF
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9394   (eval $ac_link) 2>conftest.er1
9395   ac_status=$?
9396   grep -v '^ *+' conftest.er1 >conftest.err
9397   rm -f conftest.er1
9398   cat conftest.err >&5
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); } &&
9401          { ac_try='test -z "$ac_c_werror_flag"
9402                          || test ! -s conftest.err'
9403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404   (eval $ac_try) 2>&5
9405   ac_status=$?
9406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407   (exit $ac_status); }; } &&
9408          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9414   eval "$as_ac_var=yes"
9415 else
9416   echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9418
9419 eval "$as_ac_var=no"
9420 fi
9421 rm -f conftest.err conftest.$ac_objext \
9422       conftest$ac_exeext conftest.$ac_ext
9423 fi
9424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9425 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9426 if test `eval echo '${'$as_ac_var'}'` = yes; then
9427   cat >>confdefs.h <<_ACEOF
9428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9429 _ACEOF
9430  break
9431 fi
9432 done
9433
9434
9435
9436 for ac_func in memcpy bcopy
9437 do
9438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9439 echo "$as_me:$LINENO: checking for $ac_func" >&5
9440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9441 if eval "test \"\${$as_ac_var+set}\" = set"; then
9442   echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444   cat >conftest.$ac_ext <<_ACEOF
9445 /* confdefs.h.  */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h.  */
9450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9452 #define $ac_func innocuous_$ac_func
9453
9454 /* System header to define __stub macros and hopefully few prototypes,
9455     which can conflict with char $ac_func (); below.
9456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9457     <limits.h> exists even on freestanding compilers.  */
9458
9459 #ifdef __STDC__
9460 # include <limits.h>
9461 #else
9462 # include <assert.h>
9463 #endif
9464
9465 #undef $ac_func
9466
9467 /* Override any gcc2 internal prototype to avoid an error.  */
9468 #ifdef __cplusplus
9469 extern "C"
9470 {
9471 #endif
9472 /* We use char because int might match the return type of a gcc2
9473    builtin and then its argument prototype would still apply.  */
9474 char $ac_func ();
9475 /* The GNU C library defines this for functions which it implements
9476     to always fail with ENOSYS.  Some functions are actually named
9477     something starting with __ and the normal name is an alias.  */
9478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9479 choke me
9480 #else
9481 char (*f) () = $ac_func;
9482 #endif
9483 #ifdef __cplusplus
9484 }
9485 #endif
9486
9487 int
9488 main ()
9489 {
9490 return f != $ac_func;
9491   ;
9492   return 0;
9493 }
9494 _ACEOF
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9497   (eval $ac_link) 2>conftest.er1
9498   ac_status=$?
9499   grep -v '^ *+' conftest.er1 >conftest.err
9500   rm -f conftest.er1
9501   cat conftest.err >&5
9502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503   (exit $ac_status); } &&
9504          { ac_try='test -z "$ac_c_werror_flag"
9505                          || test ! -s conftest.err'
9506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507   (eval $ac_try) 2>&5
9508   ac_status=$?
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   (exit $ac_status); }; } &&
9511          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9517   eval "$as_ac_var=yes"
9518 else
9519   echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9521
9522 eval "$as_ac_var=no"
9523 fi
9524 rm -f conftest.err conftest.$ac_objext \
9525       conftest$ac_exeext conftest.$ac_ext
9526 fi
9527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9529 if test `eval echo '${'$as_ac_var'}'` = yes; then
9530   cat >>confdefs.h <<_ACEOF
9531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9532 _ACEOF
9533  break
9534 fi
9535 done
9536
9537
9538
9539 for ac_func in memmove strcmp
9540 do
9541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9542 echo "$as_me:$LINENO: checking for $ac_func" >&5
9543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9544 if eval "test \"\${$as_ac_var+set}\" = set"; then
9545   echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547   cat >conftest.$ac_ext <<_ACEOF
9548 /* confdefs.h.  */
9549 _ACEOF
9550 cat confdefs.h >>conftest.$ac_ext
9551 cat >>conftest.$ac_ext <<_ACEOF
9552 /* end confdefs.h.  */
9553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9555 #define $ac_func innocuous_$ac_func
9556
9557 /* System header to define __stub macros and hopefully few prototypes,
9558     which can conflict with char $ac_func (); below.
9559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9560     <limits.h> exists even on freestanding compilers.  */
9561
9562 #ifdef __STDC__
9563 # include <limits.h>
9564 #else
9565 # include <assert.h>
9566 #endif
9567
9568 #undef $ac_func
9569
9570 /* Override any gcc2 internal prototype to avoid an error.  */
9571 #ifdef __cplusplus
9572 extern "C"
9573 {
9574 #endif
9575 /* We use char because int might match the return type of a gcc2
9576    builtin and then its argument prototype would still apply.  */
9577 char $ac_func ();
9578 /* The GNU C library defines this for functions which it implements
9579     to always fail with ENOSYS.  Some functions are actually named
9580     something starting with __ and the normal name is an alias.  */
9581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9582 choke me
9583 #else
9584 char (*f) () = $ac_func;
9585 #endif
9586 #ifdef __cplusplus
9587 }
9588 #endif
9589
9590 int
9591 main ()
9592 {
9593 return f != $ac_func;
9594   ;
9595   return 0;
9596 }
9597 _ACEOF
9598 rm -f conftest.$ac_objext conftest$ac_exeext
9599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9600   (eval $ac_link) 2>conftest.er1
9601   ac_status=$?
9602   grep -v '^ *+' conftest.er1 >conftest.err
9603   rm -f conftest.er1
9604   cat conftest.err >&5
9605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606   (exit $ac_status); } &&
9607          { ac_try='test -z "$ac_c_werror_flag"
9608                          || test ! -s conftest.err'
9609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9610   (eval $ac_try) 2>&5
9611   ac_status=$?
9612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613   (exit $ac_status); }; } &&
9614          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9620   eval "$as_ac_var=yes"
9621 else
9622   echo "$as_me: failed program was:" >&5
9623 sed 's/^/| /' conftest.$ac_ext >&5
9624
9625 eval "$as_ac_var=no"
9626 fi
9627 rm -f conftest.err conftest.$ac_objext \
9628       conftest$ac_exeext conftest.$ac_ext
9629 fi
9630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9632 if test `eval echo '${'$as_ac_var'}'` = yes; then
9633   cat >>confdefs.h <<_ACEOF
9634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9635 _ACEOF
9636
9637 fi
9638 done
9639
9640
9641
9642
9643 for ac_func in closedir opendir readdir
9644 do
9645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9646 echo "$as_me:$LINENO: checking for $ac_func" >&5
9647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9648 if eval "test \"\${$as_ac_var+set}\" = set"; then
9649   echo $ECHO_N "(cached) $ECHO_C" >&6
9650 else
9651   cat >conftest.$ac_ext <<_ACEOF
9652 /* confdefs.h.  */
9653 _ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h.  */
9657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9658    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9659 #define $ac_func innocuous_$ac_func
9660
9661 /* System header to define __stub macros and hopefully few prototypes,
9662     which can conflict with char $ac_func (); below.
9663     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9664     <limits.h> exists even on freestanding compilers.  */
9665
9666 #ifdef __STDC__
9667 # include <limits.h>
9668 #else
9669 # include <assert.h>
9670 #endif
9671
9672 #undef $ac_func
9673
9674 /* Override any gcc2 internal prototype to avoid an error.  */
9675 #ifdef __cplusplus
9676 extern "C"
9677 {
9678 #endif
9679 /* We use char because int might match the return type of a gcc2
9680    builtin and then its argument prototype would still apply.  */
9681 char $ac_func ();
9682 /* The GNU C library defines this for functions which it implements
9683     to always fail with ENOSYS.  Some functions are actually named
9684     something starting with __ and the normal name is an alias.  */
9685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9686 choke me
9687 #else
9688 char (*f) () = $ac_func;
9689 #endif
9690 #ifdef __cplusplus
9691 }
9692 #endif
9693
9694 int
9695 main ()
9696 {
9697 return f != $ac_func;
9698   ;
9699   return 0;
9700 }
9701 _ACEOF
9702 rm -f conftest.$ac_objext conftest$ac_exeext
9703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9704   (eval $ac_link) 2>conftest.er1
9705   ac_status=$?
9706   grep -v '^ *+' conftest.er1 >conftest.err
9707   rm -f conftest.er1
9708   cat conftest.err >&5
9709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710   (exit $ac_status); } &&
9711          { ac_try='test -z "$ac_c_werror_flag"
9712                          || test ! -s conftest.err'
9713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714   (eval $ac_try) 2>&5
9715   ac_status=$?
9716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717   (exit $ac_status); }; } &&
9718          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9724   eval "$as_ac_var=yes"
9725 else
9726   echo "$as_me: failed program was:" >&5
9727 sed 's/^/| /' conftest.$ac_ext >&5
9728
9729 eval "$as_ac_var=no"
9730 fi
9731 rm -f conftest.err conftest.$ac_objext \
9732       conftest$ac_exeext conftest.$ac_ext
9733 fi
9734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9736 if test `eval echo '${'$as_ac_var'}'` = yes; then
9737   cat >>confdefs.h <<_ACEOF
9738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9739 _ACEOF
9740
9741 fi
9742 done
9743
9744
9745 # Check whether --enable-shared or --disable-shared was given.
9746 if test "${enable_shared+set}" = set; then
9747   enableval="$enable_shared"
9748   p=${PACKAGE-default}
9749     case $enableval in
9750     yes) enable_shared=yes ;;
9751     no) enable_shared=no ;;
9752     *)
9753       enable_shared=no
9754       # Look at the argument we got.  We use all the common list separators.
9755       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9756       for pkg in $enableval; do
9757         IFS="$lt_save_ifs"
9758         if test "X$pkg" = "X$p"; then
9759           enable_shared=yes
9760         fi
9761       done
9762       IFS="$lt_save_ifs"
9763       ;;
9764     esac
9765 else
9766   enable_shared=yes
9767 fi;
9768
9769 # Check whether --enable-static or --disable-static was given.
9770 if test "${enable_static+set}" = set; then
9771   enableval="$enable_static"
9772   p=${PACKAGE-default}
9773     case $enableval in
9774     yes) enable_static=yes ;;
9775     no) enable_static=no ;;
9776     *)
9777      enable_static=no
9778       # Look at the argument we got.  We use all the common list separators.
9779       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9780       for pkg in $enableval; do
9781         IFS="$lt_save_ifs"
9782         if test "X$pkg" = "X$p"; then
9783           enable_static=yes
9784         fi
9785       done
9786       IFS="$lt_save_ifs"
9787       ;;
9788     esac
9789 else
9790   enable_static=yes
9791 fi;
9792
9793 # Check whether --enable-fast-install or --disable-fast-install was given.
9794 if test "${enable_fast_install+set}" = set; then
9795   enableval="$enable_fast_install"
9796   p=${PACKAGE-default}
9797     case $enableval in
9798     yes) enable_fast_install=yes ;;
9799     no) enable_fast_install=no ;;
9800     *)
9801       enable_fast_install=no
9802       # Look at the argument we got.  We use all the common list separators.
9803       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9804       for pkg in $enableval; do
9805         IFS="$lt_save_ifs"
9806         if test "X$pkg" = "X$p"; then
9807           enable_fast_install=yes
9808         fi
9809       done
9810       IFS="$lt_save_ifs"
9811       ;;
9812     esac
9813 else
9814   enable_fast_install=yes
9815 fi;
9816
9817 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9818 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9819 if test "${lt_cv_path_SED+set}" = set; then
9820   echo $ECHO_N "(cached) $ECHO_C" >&6
9821 else
9822   # Loop through the user's path and test for sed and gsed.
9823 # Then use that list of sed's as ones to test for truncation.
9824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825 for as_dir in $PATH
9826 do
9827   IFS=$as_save_IFS
9828   test -z "$as_dir" && as_dir=.
9829   for lt_ac_prog in sed gsed; do
9830     for ac_exec_ext in '' $ac_executable_extensions; do
9831       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9832         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9833       fi
9834     done
9835   done
9836 done
9837 lt_ac_max=0
9838 lt_ac_count=0
9839 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9840 # along with /bin/sed that truncates output.
9841 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9842   test ! -f $lt_ac_sed && break
9843   cat /dev/null > conftest.in
9844   lt_ac_count=0
9845   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9846   # Check for GNU sed and select it if it is found.
9847   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9848     lt_cv_path_SED=$lt_ac_sed
9849     break
9850   fi
9851   while true; do
9852     cat conftest.in conftest.in >conftest.tmp
9853     mv conftest.tmp conftest.in
9854     cp conftest.in conftest.nl
9855     echo >>conftest.nl
9856     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9857     cmp -s conftest.out conftest.nl || break
9858     # 10000 chars as input seems more than enough
9859     test $lt_ac_count -gt 10 && break
9860     lt_ac_count=`expr $lt_ac_count + 1`
9861     if test $lt_ac_count -gt $lt_ac_max; then
9862       lt_ac_max=$lt_ac_count
9863       lt_cv_path_SED=$lt_ac_sed
9864     fi
9865   done
9866 done
9867
9868 fi
9869
9870 SED=$lt_cv_path_SED
9871 echo "$as_me:$LINENO: result: $SED" >&5
9872 echo "${ECHO_T}$SED" >&6
9873
9874
9875 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9876 if test "${with_gnu_ld+set}" = set; then
9877   withval="$with_gnu_ld"
9878   test "$withval" = no || with_gnu_ld=yes
9879 else
9880   with_gnu_ld=no
9881 fi;
9882 ac_prog=ld
9883 if test "$GCC" = yes; then
9884   # Check if gcc -print-prog-name=ld gives a path.
9885   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9886 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9887   case $host in
9888   *-*-mingw*)
9889     # gcc leaves a trailing carriage return which upsets mingw
9890     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9891   *)
9892     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9893   esac
9894   case $ac_prog in
9895     # Accept absolute paths.
9896     [\\/]* | ?:[\\/]*)
9897       re_direlt='/[^/][^/]*/\.\./'
9898       # Canonicalize the pathname of ld
9899       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9900       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9901         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9902       done
9903       test -z "$LD" && LD="$ac_prog"
9904       ;;
9905   "")
9906     # If it fails, then pretend we aren't using GCC.
9907     ac_prog=ld
9908     ;;
9909   *)
9910     # If it is relative, then search for the first ld in PATH.
9911     with_gnu_ld=unknown
9912     ;;
9913   esac
9914 elif test "$with_gnu_ld" = yes; then
9915   echo "$as_me:$LINENO: checking for GNU ld" >&5
9916 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9917 else
9918   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9919 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9920 fi
9921 if test "${lt_cv_path_LD+set}" = set; then
9922   echo $ECHO_N "(cached) $ECHO_C" >&6
9923 else
9924   if test -z "$LD"; then
9925   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9926   for ac_dir in $PATH; do
9927     IFS="$lt_save_ifs"
9928     test -z "$ac_dir" && ac_dir=.
9929     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9930       lt_cv_path_LD="$ac_dir/$ac_prog"
9931       # Check to see if the program is GNU ld.  I'd rather use --version,
9932       # but apparently some GNU ld's only accept -v.
9933       # Break only if it was the GNU/non-GNU ld that we prefer.
9934       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9935       *GNU* | *'with BFD'*)
9936         test "$with_gnu_ld" != no && break
9937         ;;
9938       *)
9939         test "$with_gnu_ld" != yes && break
9940         ;;
9941       esac
9942     fi
9943   done
9944   IFS="$lt_save_ifs"
9945 else
9946   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9947 fi
9948 fi
9949
9950 LD="$lt_cv_path_LD"
9951 if test -n "$LD"; then
9952   echo "$as_me:$LINENO: result: $LD" >&5
9953 echo "${ECHO_T}$LD" >&6
9954 else
9955   echo "$as_me:$LINENO: result: no" >&5
9956 echo "${ECHO_T}no" >&6
9957 fi
9958 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9959 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9960    { (exit 1); exit 1; }; }
9961 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9962 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9963 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9964   echo $ECHO_N "(cached) $ECHO_C" >&6
9965 else
9966   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9967 case `$LD -v 2>&1 </dev/null` in
9968 *GNU* | *'with BFD'*)
9969   lt_cv_prog_gnu_ld=yes
9970   ;;
9971 *)
9972   lt_cv_prog_gnu_ld=no
9973   ;;
9974 esac
9975 fi
9976 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9977 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9978 with_gnu_ld=$lt_cv_prog_gnu_ld
9979
9980
9981 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9982 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9983 if test "${lt_cv_ld_reload_flag+set}" = set; then
9984   echo $ECHO_N "(cached) $ECHO_C" >&6
9985 else
9986   lt_cv_ld_reload_flag='-r'
9987 fi
9988 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9989 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9990 reload_flag=$lt_cv_ld_reload_flag
9991 case $reload_flag in
9992 "" | " "*) ;;
9993 *) reload_flag=" $reload_flag" ;;
9994 esac
9995 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9996 case $host_os in
9997   darwin*)
9998     if test "$GCC" = yes; then
9999       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10000     else
10001       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10002     fi
10003     ;;
10004 esac
10005
10006 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10007 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10008 if test "${lt_cv_deplibs_check_method+set}" = set; then
10009   echo $ECHO_N "(cached) $ECHO_C" >&6
10010 else
10011   lt_cv_file_magic_cmd='$MAGIC_CMD'
10012 lt_cv_file_magic_test_file=
10013 lt_cv_deplibs_check_method='unknown'
10014 # Need to set the preceding variable on all platforms that support
10015 # interlibrary dependencies.
10016 # 'none' -- dependencies not supported.
10017 # `unknown' -- same as none, but documents that we really don't know.
10018 # 'pass_all' -- all dependencies passed with no checks.
10019 # 'test_compile' -- check by making test program.
10020 # 'file_magic [[regex]]' -- check by looking for files in library path
10021 # which responds to the $file_magic_cmd with a given extended regex.
10022 # If you have `file' or equivalent on your system and you're not sure
10023 # whether `pass_all' will *always* work, you probably want this one.
10024
10025 case $host_os in
10026 aix4* | aix5*)
10027   lt_cv_deplibs_check_method=pass_all
10028   ;;
10029
10030 beos*)
10031   lt_cv_deplibs_check_method=pass_all
10032   ;;
10033
10034 bsdi[45]*)
10035   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10036   lt_cv_file_magic_cmd='/usr/bin/file -L'
10037   lt_cv_file_magic_test_file=/shlib/libc.so
10038   ;;
10039
10040 cygwin*)
10041   # func_win32_libid is a shell function defined in ltmain.sh
10042   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10043   lt_cv_file_magic_cmd='func_win32_libid'
10044   ;;
10045
10046 mingw* | pw32*)
10047   # Base MSYS/MinGW do not provide the 'file' command needed by
10048   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10049   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10050   lt_cv_file_magic_cmd='$OBJDUMP -f'
10051   ;;
10052
10053 darwin* | rhapsody*)
10054   lt_cv_deplibs_check_method=pass_all
10055   ;;
10056
10057 freebsd* | kfreebsd*-gnu)
10058   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10059     case $host_cpu in
10060     i*86 )
10061       # Not sure whether the presence of OpenBSD here was a mistake.
10062       # Let's accept both of them until this is cleared up.
10063       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10064       lt_cv_file_magic_cmd=/usr/bin/file
10065       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10066       ;;
10067     esac
10068   else
10069     lt_cv_deplibs_check_method=pass_all
10070   fi
10071   ;;
10072
10073 gnu*)
10074   lt_cv_deplibs_check_method=pass_all
10075   ;;
10076
10077 hpux10.20* | hpux11*)
10078   lt_cv_file_magic_cmd=/usr/bin/file
10079   case "$host_cpu" in
10080   ia64*)
10081     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10082     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10083     ;;
10084   hppa*64*)
10085     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]'
10086     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10087     ;;
10088   *)
10089     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10090     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10091     ;;
10092   esac
10093   ;;
10094
10095 irix5* | irix6* | nonstopux*)
10096   case $LD in
10097   *-32|*"-32 ") libmagic=32-bit;;
10098   *-n32|*"-n32 ") libmagic=N32;;
10099   *-64|*"-64 ") libmagic=64-bit;;
10100   *) libmagic=never-match;;
10101   esac
10102   lt_cv_deplibs_check_method=pass_all
10103   ;;
10104
10105 # This must be Linux ELF.
10106 linux*)
10107   lt_cv_deplibs_check_method=pass_all
10108   ;;
10109
10110 netbsd*)
10111   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10112     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10113   else
10114     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10115   fi
10116   ;;
10117
10118 newos6*)
10119   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10120   lt_cv_file_magic_cmd=/usr/bin/file
10121   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10122   ;;
10123
10124 nto-qnx*)
10125   lt_cv_deplibs_check_method=unknown
10126   ;;
10127
10128 openbsd*)
10129   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10130     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10131   else
10132     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10133   fi
10134   ;;
10135
10136 osf3* | osf4* | osf5*)
10137   lt_cv_deplibs_check_method=pass_all
10138   ;;
10139
10140 sco3.2v5*)
10141   lt_cv_deplibs_check_method=pass_all
10142   ;;
10143
10144 solaris*)
10145   lt_cv_deplibs_check_method=pass_all
10146   ;;
10147
10148 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10149   case $host_vendor in
10150   motorola)
10151     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]'
10152     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10153     ;;
10154   ncr)
10155     lt_cv_deplibs_check_method=pass_all
10156     ;;
10157   sequent)
10158     lt_cv_file_magic_cmd='/bin/file'
10159     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10160     ;;
10161   sni)
10162     lt_cv_file_magic_cmd='/bin/file'
10163     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10164     lt_cv_file_magic_test_file=/lib/libc.so
10165     ;;
10166   siemens)
10167     lt_cv_deplibs_check_method=pass_all
10168     ;;
10169   esac
10170   ;;
10171
10172 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10173   lt_cv_deplibs_check_method=pass_all
10174   ;;
10175 esac
10176
10177 fi
10178 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10179 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10180 file_magic_cmd=$lt_cv_file_magic_cmd
10181 deplibs_check_method=$lt_cv_deplibs_check_method
10182 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10183
10184
10185
10186 # If no C compiler was specified, use CC.
10187 LTCC=${LTCC-"$CC"}
10188
10189 # Allow CC to be a program name with arguments.
10190 compiler=$CC
10191
10192 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10193 if test "${enable_libtool_lock+set}" = set; then
10194   enableval="$enable_libtool_lock"
10195
10196 fi;
10197 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10198
10199 # Some flags need to be propagated to the compiler or linker for good
10200 # libtool support.
10201 case $host in
10202 ia64-*-hpux*)
10203   # Find out which ABI we are using.
10204   echo 'int i;' > conftest.$ac_ext
10205   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10206   (eval $ac_compile) 2>&5
10207   ac_status=$?
10208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209   (exit $ac_status); }; then
10210     case `/usr/bin/file conftest.$ac_objext` in
10211     *ELF-32*)
10212       HPUX_IA64_MODE="32"
10213       ;;
10214     *ELF-64*)
10215       HPUX_IA64_MODE="64"
10216       ;;
10217     esac
10218   fi
10219   rm -rf conftest*
10220   ;;
10221 *-*-irix6*)
10222   # Find out which ABI we are using.
10223   echo '#line 10223 "configure"' > conftest.$ac_ext
10224   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10225   (eval $ac_compile) 2>&5
10226   ac_status=$?
10227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228   (exit $ac_status); }; then
10229    if test "$lt_cv_prog_gnu_ld" = yes; then
10230     case `/usr/bin/file conftest.$ac_objext` in
10231     *32-bit*)
10232       LD="${LD-ld} -melf32bsmip"
10233       ;;
10234     *N32*)
10235       LD="${LD-ld} -melf32bmipn32"
10236       ;;
10237     *64-bit*)
10238       LD="${LD-ld} -melf64bmip"
10239       ;;
10240     esac
10241    else
10242     case `/usr/bin/file conftest.$ac_objext` in
10243     *32-bit*)
10244       LD="${LD-ld} -32"
10245       ;;
10246     *N32*)
10247       LD="${LD-ld} -n32"
10248       ;;
10249     *64-bit*)
10250       LD="${LD-ld} -64"
10251       ;;
10252     esac
10253    fi
10254   fi
10255   rm -rf conftest*
10256   ;;
10257
10258 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10259   # Find out which ABI we are using.
10260   echo 'int i;' > conftest.$ac_ext
10261   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10262   (eval $ac_compile) 2>&5
10263   ac_status=$?
10264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); }; then
10266     case "`/usr/bin/file conftest.o`" in
10267     *32-bit*)
10268       case $host in
10269         x86_64-*linux*)
10270           LD="${LD-ld} -m elf_i386"
10271           ;;
10272         ppc64-*linux*|powerpc64-*linux*)
10273           LD="${LD-ld} -m elf32ppclinux"
10274           ;;
10275         s390x-*linux*)
10276           LD="${LD-ld} -m elf_s390"
10277           ;;
10278         sparc64-*linux*)
10279           LD="${LD-ld} -m elf32_sparc"
10280           ;;
10281       esac
10282       ;;
10283     *64-bit*)
10284       case $host in
10285         x86_64-*linux*)
10286           LD="${LD-ld} -m elf_x86_64"
10287           ;;
10288         ppc*-*linux*|powerpc*-*linux*)
10289           LD="${LD-ld} -m elf64ppc"
10290           ;;
10291         s390*-*linux*)
10292           LD="${LD-ld} -m elf64_s390"
10293           ;;
10294         sparc*-*linux*)
10295           LD="${LD-ld} -m elf64_sparc"
10296           ;;
10297       esac
10298       ;;
10299     esac
10300   fi
10301   rm -rf conftest*
10302   ;;
10303
10304 *-*-sco3.2v5*)
10305   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10306   SAVE_CFLAGS="$CFLAGS"
10307   CFLAGS="$CFLAGS -belf"
10308   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10309 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10310 if test "${lt_cv_cc_needs_belf+set}" = set; then
10311   echo $ECHO_N "(cached) $ECHO_C" >&6
10312 else
10313   ac_ext=c
10314 ac_cpp='$CPP $CPPFLAGS'
10315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10318
10319      cat >conftest.$ac_ext <<_ACEOF
10320 /* confdefs.h.  */
10321 _ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h.  */
10325
10326 _ACEOF
10327 rm -f conftest.$ac_objext conftest$ac_exeext
10328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10329   (eval $ac_link) 2>conftest.er1
10330   ac_status=$?
10331   grep -v '^ *+' conftest.er1 >conftest.err
10332   rm -f conftest.er1
10333   cat conftest.err >&5
10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); } &&
10336          { ac_try='test -z "$ac_c_werror_flag"
10337                          || test ! -s conftest.err'
10338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339   (eval $ac_try) 2>&5
10340   ac_status=$?
10341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342   (exit $ac_status); }; } &&
10343          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10349   lt_cv_cc_needs_belf=yes
10350 else
10351   echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10353
10354 lt_cv_cc_needs_belf=no
10355 fi
10356 rm -f conftest.err conftest.$ac_objext \
10357       conftest$ac_exeext conftest.$ac_ext
10358      ac_ext=c
10359 ac_cpp='$CPP $CPPFLAGS'
10360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10363
10364 fi
10365 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10366 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10367   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10368     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10369     CFLAGS="$SAVE_CFLAGS"
10370   fi
10371   ;;
10372
10373 esac
10374
10375 need_locks="$enable_libtool_lock"
10376
10377
10378
10379
10380 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10381     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10382     (test "X$CXX" != "Xg++"))) ; then
10383   ac_ext=cc
10384 ac_cpp='$CXXCPP $CPPFLAGS'
10385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10388 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10389 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10390 if test -z "$CXXCPP"; then
10391   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10392   echo $ECHO_N "(cached) $ECHO_C" >&6
10393 else
10394       # Double quotes because CXXCPP needs to be expanded
10395     for CXXCPP in "$CXX -E" "/lib/cpp"
10396     do
10397       ac_preproc_ok=false
10398 for ac_cxx_preproc_warn_flag in '' yes
10399 do
10400   # Use a header file that comes with gcc, so configuring glibc
10401   # with a fresh cross-compiler works.
10402   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10403   # <limits.h> exists even on freestanding compilers.
10404   # On the NeXT, cc -E runs the code through the compiler's parser,
10405   # not just through cpp. "Syntax error" is here to catch this case.
10406   cat >conftest.$ac_ext <<_ACEOF
10407 /* confdefs.h.  */
10408 _ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h.  */
10412 #ifdef __STDC__
10413 # include <limits.h>
10414 #else
10415 # include <assert.h>
10416 #endif
10417                      Syntax error
10418 _ACEOF
10419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10420   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10421   ac_status=$?
10422   grep -v '^ *+' conftest.er1 >conftest.err
10423   rm -f conftest.er1
10424   cat conftest.err >&5
10425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); } >/dev/null; then
10427   if test -s conftest.err; then
10428     ac_cpp_err=$ac_cxx_preproc_warn_flag
10429     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10430   else
10431     ac_cpp_err=
10432   fi
10433 else
10434   ac_cpp_err=yes
10435 fi
10436 if test -z "$ac_cpp_err"; then
10437   :
10438 else
10439   echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10441
10442   # Broken: fails on valid input.
10443 continue
10444 fi
10445 rm -f conftest.err conftest.$ac_ext
10446
10447   # OK, works on sane cases.  Now check whether non-existent headers
10448   # can be detected and how.
10449   cat >conftest.$ac_ext <<_ACEOF
10450 /* confdefs.h.  */
10451 _ACEOF
10452 cat confdefs.h >>conftest.$ac_ext
10453 cat >>conftest.$ac_ext <<_ACEOF
10454 /* end confdefs.h.  */
10455 #include <ac_nonexistent.h>
10456 _ACEOF
10457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10458   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10459   ac_status=$?
10460   grep -v '^ *+' conftest.er1 >conftest.err
10461   rm -f conftest.er1
10462   cat conftest.err >&5
10463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464   (exit $ac_status); } >/dev/null; then
10465   if test -s conftest.err; then
10466     ac_cpp_err=$ac_cxx_preproc_warn_flag
10467     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10468   else
10469     ac_cpp_err=
10470   fi
10471 else
10472   ac_cpp_err=yes
10473 fi
10474 if test -z "$ac_cpp_err"; then
10475   # Broken: success on invalid input.
10476 continue
10477 else
10478   echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10480
10481   # Passes both tests.
10482 ac_preproc_ok=:
10483 break
10484 fi
10485 rm -f conftest.err conftest.$ac_ext
10486
10487 done
10488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10489 rm -f conftest.err conftest.$ac_ext
10490 if $ac_preproc_ok; then
10491   break
10492 fi
10493
10494     done
10495     ac_cv_prog_CXXCPP=$CXXCPP
10496
10497 fi
10498   CXXCPP=$ac_cv_prog_CXXCPP
10499 else
10500   ac_cv_prog_CXXCPP=$CXXCPP
10501 fi
10502 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10503 echo "${ECHO_T}$CXXCPP" >&6
10504 ac_preproc_ok=false
10505 for ac_cxx_preproc_warn_flag in '' yes
10506 do
10507   # Use a header file that comes with gcc, so configuring glibc
10508   # with a fresh cross-compiler works.
10509   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10510   # <limits.h> exists even on freestanding compilers.
10511   # On the NeXT, cc -E runs the code through the compiler's parser,
10512   # not just through cpp. "Syntax error" is here to catch this case.
10513   cat >conftest.$ac_ext <<_ACEOF
10514 /* confdefs.h.  */
10515 _ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h.  */
10519 #ifdef __STDC__
10520 # include <limits.h>
10521 #else
10522 # include <assert.h>
10523 #endif
10524                      Syntax error
10525 _ACEOF
10526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10527   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10528   ac_status=$?
10529   grep -v '^ *+' conftest.er1 >conftest.err
10530   rm -f conftest.er1
10531   cat conftest.err >&5
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); } >/dev/null; then
10534   if test -s conftest.err; then
10535     ac_cpp_err=$ac_cxx_preproc_warn_flag
10536     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10537   else
10538     ac_cpp_err=
10539   fi
10540 else
10541   ac_cpp_err=yes
10542 fi
10543 if test -z "$ac_cpp_err"; then
10544   :
10545 else
10546   echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10548
10549   # Broken: fails on valid input.
10550 continue
10551 fi
10552 rm -f conftest.err conftest.$ac_ext
10553
10554   # OK, works on sane cases.  Now check whether non-existent headers
10555   # can be detected and how.
10556   cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h.  */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h.  */
10562 #include <ac_nonexistent.h>
10563 _ACEOF
10564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10565   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10566   ac_status=$?
10567   grep -v '^ *+' conftest.er1 >conftest.err
10568   rm -f conftest.er1
10569   cat conftest.err >&5
10570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571   (exit $ac_status); } >/dev/null; then
10572   if test -s conftest.err; then
10573     ac_cpp_err=$ac_cxx_preproc_warn_flag
10574     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10575   else
10576     ac_cpp_err=
10577   fi
10578 else
10579   ac_cpp_err=yes
10580 fi
10581 if test -z "$ac_cpp_err"; then
10582   # Broken: success on invalid input.
10583 continue
10584 else
10585   echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10587
10588   # Passes both tests.
10589 ac_preproc_ok=:
10590 break
10591 fi
10592 rm -f conftest.err conftest.$ac_ext
10593
10594 done
10595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10596 rm -f conftest.err conftest.$ac_ext
10597 if $ac_preproc_ok; then
10598   :
10599 else
10600   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10601 See \`config.log' for more details." >&5
10602 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10603 See \`config.log' for more details." >&2;}
10604    { (exit 1); exit 1; }; }
10605 fi
10606
10607 ac_ext=cc
10608 ac_cpp='$CXXCPP $CPPFLAGS'
10609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10612
10613 fi
10614
10615
10616 ac_ext=f
10617 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10618 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10619 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10620 if test -n "$ac_tool_prefix"; then
10621   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10622   do
10623     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10625 echo "$as_me:$LINENO: checking for $ac_word" >&5
10626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10627 if test "${ac_cv_prog_F77+set}" = set; then
10628   echo $ECHO_N "(cached) $ECHO_C" >&6
10629 else
10630   if test -n "$F77"; then
10631   ac_cv_prog_F77="$F77" # Let the user override the test.
10632 else
10633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634 for as_dir in $PATH
10635 do
10636   IFS=$as_save_IFS
10637   test -z "$as_dir" && as_dir=.
10638   for ac_exec_ext in '' $ac_executable_extensions; do
10639   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10640     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10642     break 2
10643   fi
10644 done
10645 done
10646
10647 fi
10648 fi
10649 F77=$ac_cv_prog_F77
10650 if test -n "$F77"; then
10651   echo "$as_me:$LINENO: result: $F77" >&5
10652 echo "${ECHO_T}$F77" >&6
10653 else
10654   echo "$as_me:$LINENO: result: no" >&5
10655 echo "${ECHO_T}no" >&6
10656 fi
10657
10658     test -n "$F77" && break
10659   done
10660 fi
10661 if test -z "$F77"; then
10662   ac_ct_F77=$F77
10663   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10664 do
10665   # Extract the first word of "$ac_prog", so it can be a program name with args.
10666 set dummy $ac_prog; ac_word=$2
10667 echo "$as_me:$LINENO: checking for $ac_word" >&5
10668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10669 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10670   echo $ECHO_N "(cached) $ECHO_C" >&6
10671 else
10672   if test -n "$ac_ct_F77"; then
10673   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10674 else
10675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10676 for as_dir in $PATH
10677 do
10678   IFS=$as_save_IFS
10679   test -z "$as_dir" && as_dir=.
10680   for ac_exec_ext in '' $ac_executable_extensions; do
10681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10682     ac_cv_prog_ac_ct_F77="$ac_prog"
10683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10684     break 2
10685   fi
10686 done
10687 done
10688
10689 fi
10690 fi
10691 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10692 if test -n "$ac_ct_F77"; then
10693   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10694 echo "${ECHO_T}$ac_ct_F77" >&6
10695 else
10696   echo "$as_me:$LINENO: result: no" >&5
10697 echo "${ECHO_T}no" >&6
10698 fi
10699
10700   test -n "$ac_ct_F77" && break
10701 done
10702
10703   F77=$ac_ct_F77
10704 fi
10705
10706
10707 # Provide some information about the compiler.
10708 echo "$as_me:10708:" \
10709      "checking for Fortran 77 compiler version" >&5
10710 ac_compiler=`set X $ac_compile; echo $2`
10711 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10712   (eval $ac_compiler --version </dev/null >&5) 2>&5
10713   ac_status=$?
10714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715   (exit $ac_status); }
10716 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10717   (eval $ac_compiler -v </dev/null >&5) 2>&5
10718   ac_status=$?
10719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720   (exit $ac_status); }
10721 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10722   (eval $ac_compiler -V </dev/null >&5) 2>&5
10723   ac_status=$?
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); }
10726 rm -f a.out
10727
10728 # If we don't use `.F' as extension, the preprocessor is not run on the
10729 # input file.  (Note that this only needs to work for GNU compilers.)
10730 ac_save_ext=$ac_ext
10731 ac_ext=F
10732 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10733 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10734 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10735   echo $ECHO_N "(cached) $ECHO_C" >&6
10736 else
10737   cat >conftest.$ac_ext <<_ACEOF
10738       program main
10739 #ifndef __GNUC__
10740        choke me
10741 #endif
10742
10743       end
10744 _ACEOF
10745 rm -f conftest.$ac_objext
10746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10747   (eval $ac_compile) 2>conftest.er1
10748   ac_status=$?
10749   grep -v '^ *+' conftest.er1 >conftest.err
10750   rm -f conftest.er1
10751   cat conftest.err >&5
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); } &&
10754          { ac_try='test -z "$ac_f77_werror_flag"
10755                          || test ! -s conftest.err'
10756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757   (eval $ac_try) 2>&5
10758   ac_status=$?
10759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760   (exit $ac_status); }; } &&
10761          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10767   ac_compiler_gnu=yes
10768 else
10769   echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10771
10772 ac_compiler_gnu=no
10773 fi
10774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10775 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10776
10777 fi
10778 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10779 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10780 ac_ext=$ac_save_ext
10781 ac_test_FFLAGS=${FFLAGS+set}
10782 ac_save_FFLAGS=$FFLAGS
10783 FFLAGS=
10784 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10785 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10786 if test "${ac_cv_prog_f77_g+set}" = set; then
10787   echo $ECHO_N "(cached) $ECHO_C" >&6
10788 else
10789   FFLAGS=-g
10790 cat >conftest.$ac_ext <<_ACEOF
10791       program main
10792
10793       end
10794 _ACEOF
10795 rm -f conftest.$ac_objext
10796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10797   (eval $ac_compile) 2>conftest.er1
10798   ac_status=$?
10799   grep -v '^ *+' conftest.er1 >conftest.err
10800   rm -f conftest.er1
10801   cat conftest.err >&5
10802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803   (exit $ac_status); } &&
10804          { ac_try='test -z "$ac_f77_werror_flag"
10805                          || test ! -s conftest.err'
10806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807   (eval $ac_try) 2>&5
10808   ac_status=$?
10809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810   (exit $ac_status); }; } &&
10811          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10817   ac_cv_prog_f77_g=yes
10818 else
10819   echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10821
10822 ac_cv_prog_f77_g=no
10823 fi
10824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10825
10826 fi
10827 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10828 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10829 if test "$ac_test_FFLAGS" = set; then
10830   FFLAGS=$ac_save_FFLAGS
10831 elif test $ac_cv_prog_f77_g = yes; then
10832   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10833     FFLAGS="-g -O2"
10834   else
10835     FFLAGS="-g"
10836   fi
10837 else
10838   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10839     FFLAGS="-O2"
10840   else
10841     FFLAGS=
10842   fi
10843 fi
10844
10845 G77=`test $ac_compiler_gnu = yes && echo yes`
10846 ac_ext=c
10847 ac_cpp='$CPP $CPPFLAGS'
10848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10851
10852
10853
10854 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10855
10856 # find the maximum length of command line arguments
10857 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10858 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10859 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10860   echo $ECHO_N "(cached) $ECHO_C" >&6
10861 else
10862     i=0
10863   teststring="ABCD"
10864
10865   case $build_os in
10866   msdosdjgpp*)
10867     # On DJGPP, this test can blow up pretty badly due to problems in libc
10868     # (any single argument exceeding 2000 bytes causes a buffer overrun
10869     # during glob expansion).  Even if it were fixed, the result of this
10870     # check would be larger than it should be.
10871     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10872     ;;
10873
10874   gnu*)
10875     # Under GNU Hurd, this test is not required because there is
10876     # no limit to the length of command line arguments.
10877     # Libtool will interpret -1 as no limit whatsoever
10878     lt_cv_sys_max_cmd_len=-1;
10879     ;;
10880
10881   cygwin* | mingw*)
10882     # On Win9x/ME, this test blows up -- it succeeds, but takes
10883     # about 5 minutes as the teststring grows exponentially.
10884     # Worse, since 9x/ME are not pre-emptively multitasking,
10885     # you end up with a "frozen" computer, even though with patience
10886     # the test eventually succeeds (with a max line length of 256k).
10887     # Instead, let's just punt: use the minimum linelength reported by
10888     # all of the supported platforms: 8192 (on NT/2K/XP).
10889     lt_cv_sys_max_cmd_len=8192;
10890     ;;
10891
10892   amigaos*)
10893     # On AmigaOS with pdksh, this test takes hours, literally.
10894     # So we just punt and use a minimum line length of 8192.
10895     lt_cv_sys_max_cmd_len=8192;
10896     ;;
10897
10898   netbsd* | freebsd* | openbsd* | darwin* )
10899     # This has been around since 386BSD, at least.  Likely further.
10900     if test -x /sbin/sysctl; then
10901       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10902     elif test -x /usr/sbin/sysctl; then
10903       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10904     else
10905       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10906     fi
10907     # And add a safety zone
10908     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10909     ;;
10910
10911  *)
10912     # If test is not a shell built-in, we'll probably end up computing a
10913     # maximum length that is only half of the actual maximum length, but
10914     # we can't tell.
10915     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10916     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10917                = "XX$teststring") >/dev/null 2>&1 &&
10918             new_result=`expr "X$teststring" : ".*" 2>&1` &&
10919             lt_cv_sys_max_cmd_len=$new_result &&
10920             test $i != 17 # 1/2 MB should be enough
10921     do
10922       i=`expr $i + 1`
10923       teststring=$teststring$teststring
10924     done
10925     teststring=
10926     # Add a significant safety factor because C++ compilers can tack on massive
10927     # amounts of additional arguments before passing them to the linker.
10928     # It appears as though 1/2 is a usable value.
10929     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10930     ;;
10931   esac
10932
10933 fi
10934
10935 if test -n $lt_cv_sys_max_cmd_len ; then
10936   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10937 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10938 else
10939   echo "$as_me:$LINENO: result: none" >&5
10940 echo "${ECHO_T}none" >&6
10941 fi
10942
10943
10944
10945
10946 # Check for command to grab the raw symbol name followed by C symbol from nm.
10947 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10948 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10949 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10950   echo $ECHO_N "(cached) $ECHO_C" >&6
10951 else
10952
10953 # These are sane defaults that work on at least a few old systems.
10954 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10955
10956 # Character class describing NM global symbol codes.
10957 symcode='[BCDEGRST]'
10958
10959 # Regexp to match symbols that can be accessed directly from C.
10960 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10961
10962 # Transform the above into a raw symbol and a C symbol.
10963 symxfrm='\1 \2\3 \3'
10964
10965 # Transform an extracted symbol line into a proper C declaration
10966 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10967
10968 # Transform an extracted symbol line into symbol name and symbol address
10969 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'"
10970
10971 # Define system-specific variables.
10972 case $host_os in
10973 aix*)
10974   symcode='[BCDT]'
10975   ;;
10976 cygwin* | mingw* | pw32*)
10977   symcode='[ABCDGISTW]'
10978   ;;
10979 hpux*) # Its linker distinguishes data from code symbols
10980   if test "$host_cpu" = ia64; then
10981     symcode='[ABCDEGRST]'
10982   fi
10983   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10984   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'"
10985   ;;
10986 linux*)
10987   if test "$host_cpu" = ia64; then
10988     symcode='[ABCDGIRSTW]'
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   fi
10992   ;;
10993 irix* | nonstopux*)
10994   symcode='[BCDEGRST]'
10995   ;;
10996 osf*)
10997   symcode='[BCDEGQRST]'
10998   ;;
10999 solaris* | sysv5*)
11000   symcode='[BDRT]'
11001   ;;
11002 sysv4)
11003   symcode='[DFNSTU]'
11004   ;;
11005 esac
11006
11007 # Handle CRLF in mingw tool chain
11008 opt_cr=
11009 case $build_os in
11010 mingw*)
11011   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11012   ;;
11013 esac
11014
11015 # If we're using GNU nm, then use its standard symbol codes.
11016 case `$NM -V 2>&1` in
11017 *GNU* | *'with BFD'*)
11018   symcode='[ABCDGIRSTW]' ;;
11019 esac
11020
11021 # Try without a prefix undercore, then with it.
11022 for ac_symprfx in "" "_"; do
11023
11024   # Write the raw and C identifiers.
11025   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11026
11027   # Check to see that the pipe works correctly.
11028   pipe_works=no
11029
11030   rm -f conftest*
11031   cat > conftest.$ac_ext <<EOF
11032 #ifdef __cplusplus
11033 extern "C" {
11034 #endif
11035 char nm_test_var;
11036 void nm_test_func(){}
11037 #ifdef __cplusplus
11038 }
11039 #endif
11040 int main(){nm_test_var='a';nm_test_func();return(0);}
11041 EOF
11042
11043   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044   (eval $ac_compile) 2>&5
11045   ac_status=$?
11046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047   (exit $ac_status); }; then
11048     # Now try to grab the symbols.
11049     nlist=conftest.nm
11050     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11051   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11052   ac_status=$?
11053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054   (exit $ac_status); } && test -s "$nlist"; then
11055       # Try sorting and uniquifying the output.
11056       if sort "$nlist" | uniq > "$nlist"T; then
11057         mv -f "$nlist"T "$nlist"
11058       else
11059         rm -f "$nlist"T
11060       fi
11061
11062       # Make sure that we snagged all the symbols we need.
11063       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11064         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11065           cat <<EOF > conftest.$ac_ext
11066 #ifdef __cplusplus
11067 extern "C" {
11068 #endif
11069
11070 EOF
11071           # Now generate the symbol file.
11072           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11073
11074           cat <<EOF >> conftest.$ac_ext
11075 #if defined (__STDC__) && __STDC__
11076 # define lt_ptr_t void *
11077 #else
11078 # define lt_ptr_t char *
11079 # define const
11080 #endif
11081
11082 /* The mapping between symbol names and symbols. */
11083 const struct {
11084   const char *name;
11085   lt_ptr_t address;
11086 }
11087 lt_preloaded_symbols[] =
11088 {
11089 EOF
11090           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11091           cat <<\EOF >> conftest.$ac_ext
11092   {0, (lt_ptr_t) 0}
11093 };
11094
11095 #ifdef __cplusplus
11096 }
11097 #endif
11098 EOF
11099           # Now try linking the two files.
11100           mv conftest.$ac_objext conftstm.$ac_objext
11101           lt_save_LIBS="$LIBS"
11102           lt_save_CFLAGS="$CFLAGS"
11103           LIBS="conftstm.$ac_objext"
11104           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11105           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11106   (eval $ac_link) 2>&5
11107   ac_status=$?
11108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11110             pipe_works=yes
11111           fi
11112           LIBS="$lt_save_LIBS"
11113           CFLAGS="$lt_save_CFLAGS"
11114         else
11115           echo "cannot find nm_test_func in $nlist" >&5
11116         fi
11117       else
11118         echo "cannot find nm_test_var in $nlist" >&5
11119       fi
11120     else
11121       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11122     fi
11123   else
11124     echo "$progname: failed program was:" >&5
11125     cat conftest.$ac_ext >&5
11126   fi
11127   rm -f conftest* conftst*
11128
11129   # Do not use the global_symbol_pipe unless it works.
11130   if test "$pipe_works" = yes; then
11131     break
11132   else
11133     lt_cv_sys_global_symbol_pipe=
11134   fi
11135 done
11136
11137 fi
11138
11139 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11140   lt_cv_sys_global_symbol_to_cdecl=
11141 fi
11142 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11143   echo "$as_me:$LINENO: result: failed" >&5
11144 echo "${ECHO_T}failed" >&6
11145 else
11146   echo "$as_me:$LINENO: result: ok" >&5
11147 echo "${ECHO_T}ok" >&6
11148 fi
11149
11150 echo "$as_me:$LINENO: checking for objdir" >&5
11151 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11152 if test "${lt_cv_objdir+set}" = set; then
11153   echo $ECHO_N "(cached) $ECHO_C" >&6
11154 else
11155   rm -f .libs 2>/dev/null
11156 mkdir .libs 2>/dev/null
11157 if test -d .libs; then
11158   lt_cv_objdir=.libs
11159 else
11160   # MS-DOS does not allow filenames that begin with a dot.
11161   lt_cv_objdir=_libs
11162 fi
11163 rmdir .libs 2>/dev/null
11164 fi
11165 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11166 echo "${ECHO_T}$lt_cv_objdir" >&6
11167 objdir=$lt_cv_objdir
11168
11169
11170
11171
11172
11173 case $host_os in
11174 aix3*)
11175   # AIX sometimes has problems with the GCC collect2 program.  For some
11176   # reason, if we set the COLLECT_NAMES environment variable, the problems
11177   # vanish in a puff of smoke.
11178   if test "X${COLLECT_NAMES+set}" != Xset; then
11179     COLLECT_NAMES=
11180     export COLLECT_NAMES
11181   fi
11182   ;;
11183 esac
11184
11185 # Sed substitution that helps us do robust quoting.  It backslashifies
11186 # metacharacters that are still active within double-quoted strings.
11187 Xsed='sed -e s/^X//'
11188 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11189
11190 # Same as above, but do not quote variable references.
11191 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11192
11193 # Sed substitution to delay expansion of an escaped shell variable in a
11194 # double_quote_subst'ed string.
11195 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11196
11197 # Sed substitution to avoid accidental globbing in evaled expressions
11198 no_glob_subst='s/\*/\\\*/g'
11199
11200 # Constants:
11201 rm="rm -f"
11202
11203 # Global variables:
11204 default_ofile=mklib
11205 can_build_shared=yes
11206
11207 # All known linkers require a `.a' archive for static linking (except M$VC,
11208 # which needs '.lib').
11209 libext=a
11210 ltmain="$ac_aux_dir/ltmain.sh"
11211 ofile="$default_ofile"
11212 with_gnu_ld="$lt_cv_prog_gnu_ld"
11213
11214 if test -n "$ac_tool_prefix"; then
11215   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11216 set dummy ${ac_tool_prefix}ar; ac_word=$2
11217 echo "$as_me:$LINENO: checking for $ac_word" >&5
11218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11219 if test "${ac_cv_prog_AR+set}" = set; then
11220   echo $ECHO_N "(cached) $ECHO_C" >&6
11221 else
11222   if test -n "$AR"; then
11223   ac_cv_prog_AR="$AR" # Let the user override the test.
11224 else
11225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226 for as_dir in $PATH
11227 do
11228   IFS=$as_save_IFS
11229   test -z "$as_dir" && as_dir=.
11230   for ac_exec_ext in '' $ac_executable_extensions; do
11231   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11232     ac_cv_prog_AR="${ac_tool_prefix}ar"
11233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11234     break 2
11235   fi
11236 done
11237 done
11238
11239 fi
11240 fi
11241 AR=$ac_cv_prog_AR
11242 if test -n "$AR"; then
11243   echo "$as_me:$LINENO: result: $AR" >&5
11244 echo "${ECHO_T}$AR" >&6
11245 else
11246   echo "$as_me:$LINENO: result: no" >&5
11247 echo "${ECHO_T}no" >&6
11248 fi
11249
11250 fi
11251 if test -z "$ac_cv_prog_AR"; then
11252   ac_ct_AR=$AR
11253   # Extract the first word of "ar", so it can be a program name with args.
11254 set dummy ar; ac_word=$2
11255 echo "$as_me:$LINENO: checking for $ac_word" >&5
11256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11257 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11258   echo $ECHO_N "(cached) $ECHO_C" >&6
11259 else
11260   if test -n "$ac_ct_AR"; then
11261   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11262 else
11263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264 for as_dir in $PATH
11265 do
11266   IFS=$as_save_IFS
11267   test -z "$as_dir" && as_dir=.
11268   for ac_exec_ext in '' $ac_executable_extensions; do
11269   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11270     ac_cv_prog_ac_ct_AR="ar"
11271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11272     break 2
11273   fi
11274 done
11275 done
11276
11277   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11278 fi
11279 fi
11280 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11281 if test -n "$ac_ct_AR"; then
11282   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11283 echo "${ECHO_T}$ac_ct_AR" >&6
11284 else
11285   echo "$as_me:$LINENO: result: no" >&5
11286 echo "${ECHO_T}no" >&6
11287 fi
11288
11289   AR=$ac_ct_AR
11290 else
11291   AR="$ac_cv_prog_AR"
11292 fi
11293
11294 if test -n "$ac_tool_prefix"; then
11295   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11296 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11297 echo "$as_me:$LINENO: checking for $ac_word" >&5
11298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11299 if test "${ac_cv_prog_RANLIB+set}" = set; then
11300   echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302   if test -n "$RANLIB"; then
11303   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11304 else
11305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11306 for as_dir in $PATH
11307 do
11308   IFS=$as_save_IFS
11309   test -z "$as_dir" && as_dir=.
11310   for ac_exec_ext in '' $ac_executable_extensions; do
11311   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11312     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11314     break 2
11315   fi
11316 done
11317 done
11318
11319 fi
11320 fi
11321 RANLIB=$ac_cv_prog_RANLIB
11322 if test -n "$RANLIB"; then
11323   echo "$as_me:$LINENO: result: $RANLIB" >&5
11324 echo "${ECHO_T}$RANLIB" >&6
11325 else
11326   echo "$as_me:$LINENO: result: no" >&5
11327 echo "${ECHO_T}no" >&6
11328 fi
11329
11330 fi
11331 if test -z "$ac_cv_prog_RANLIB"; then
11332   ac_ct_RANLIB=$RANLIB
11333   # Extract the first word of "ranlib", so it can be a program name with args.
11334 set dummy ranlib; ac_word=$2
11335 echo "$as_me:$LINENO: checking for $ac_word" >&5
11336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11337 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11338   echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340   if test -n "$ac_ct_RANLIB"; then
11341   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11342 else
11343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344 for as_dir in $PATH
11345 do
11346   IFS=$as_save_IFS
11347   test -z "$as_dir" && as_dir=.
11348   for ac_exec_ext in '' $ac_executable_extensions; do
11349   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11350     ac_cv_prog_ac_ct_RANLIB="ranlib"
11351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11352     break 2
11353   fi
11354 done
11355 done
11356
11357   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11358 fi
11359 fi
11360 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11361 if test -n "$ac_ct_RANLIB"; then
11362   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11363 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11364 else
11365   echo "$as_me:$LINENO: result: no" >&5
11366 echo "${ECHO_T}no" >&6
11367 fi
11368
11369   RANLIB=$ac_ct_RANLIB
11370 else
11371   RANLIB="$ac_cv_prog_RANLIB"
11372 fi
11373
11374 if test -n "$ac_tool_prefix"; then
11375   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11376 set dummy ${ac_tool_prefix}strip; ac_word=$2
11377 echo "$as_me:$LINENO: checking for $ac_word" >&5
11378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11379 if test "${ac_cv_prog_STRIP+set}" = set; then
11380   echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382   if test -n "$STRIP"; then
11383   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11384 else
11385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386 for as_dir in $PATH
11387 do
11388   IFS=$as_save_IFS
11389   test -z "$as_dir" && as_dir=.
11390   for ac_exec_ext in '' $ac_executable_extensions; do
11391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11392     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11394     break 2
11395   fi
11396 done
11397 done
11398
11399 fi
11400 fi
11401 STRIP=$ac_cv_prog_STRIP
11402 if test -n "$STRIP"; then
11403   echo "$as_me:$LINENO: result: $STRIP" >&5
11404 echo "${ECHO_T}$STRIP" >&6
11405 else
11406   echo "$as_me:$LINENO: result: no" >&5
11407 echo "${ECHO_T}no" >&6
11408 fi
11409
11410 fi
11411 if test -z "$ac_cv_prog_STRIP"; then
11412   ac_ct_STRIP=$STRIP
11413   # Extract the first word of "strip", so it can be a program name with args.
11414 set dummy strip; ac_word=$2
11415 echo "$as_me:$LINENO: checking for $ac_word" >&5
11416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11417 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11418   echo $ECHO_N "(cached) $ECHO_C" >&6
11419 else
11420   if test -n "$ac_ct_STRIP"; then
11421   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11422 else
11423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424 for as_dir in $PATH
11425 do
11426   IFS=$as_save_IFS
11427   test -z "$as_dir" && as_dir=.
11428   for ac_exec_ext in '' $ac_executable_extensions; do
11429   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11430     ac_cv_prog_ac_ct_STRIP="strip"
11431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11432     break 2
11433   fi
11434 done
11435 done
11436
11437   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11438 fi
11439 fi
11440 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11441 if test -n "$ac_ct_STRIP"; then
11442   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11443 echo "${ECHO_T}$ac_ct_STRIP" >&6
11444 else
11445   echo "$as_me:$LINENO: result: no" >&5
11446 echo "${ECHO_T}no" >&6
11447 fi
11448
11449   STRIP=$ac_ct_STRIP
11450 else
11451   STRIP="$ac_cv_prog_STRIP"
11452 fi
11453
11454
11455 old_CC="$CC"
11456 old_CFLAGS="$CFLAGS"
11457
11458 # Set sane defaults for various variables
11459 test -z "$AR" && AR=ar
11460 test -z "$AR_FLAGS" && AR_FLAGS=cru
11461 test -z "$AS" && AS=as
11462 test -z "$CC" && CC=cc
11463 test -z "$LTCC" && LTCC=$CC
11464 test -z "$DLLTOOL" && DLLTOOL=dlltool
11465 test -z "$LD" && LD=ld
11466 test -z "$LN_S" && LN_S="ln -s"
11467 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11468 test -z "$NM" && NM=nm
11469 test -z "$SED" && SED=sed
11470 test -z "$OBJDUMP" && OBJDUMP=objdump
11471 test -z "$RANLIB" && RANLIB=:
11472 test -z "$STRIP" && STRIP=:
11473 test -z "$ac_objext" && ac_objext=o
11474
11475 # Determine commands to create old-style static archives.
11476 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11477 old_postinstall_cmds='chmod 644 $oldlib'
11478 old_postuninstall_cmds=
11479
11480 if test -n "$RANLIB"; then
11481   case $host_os in
11482   openbsd*)
11483     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11484     ;;
11485   *)
11486     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11487     ;;
11488   esac
11489   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11490 fi
11491
11492 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11493
11494 # Only perform the check for file, if the check method requires it
11495 case $deplibs_check_method in
11496 file_magic*)
11497   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11498     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11499 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11500 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11501   echo $ECHO_N "(cached) $ECHO_C" >&6
11502 else
11503   case $MAGIC_CMD in
11504 [\\/*] |  ?:[\\/]*)
11505   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11506   ;;
11507 *)
11508   lt_save_MAGIC_CMD="$MAGIC_CMD"
11509   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11510   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11511   for ac_dir in $ac_dummy; do
11512     IFS="$lt_save_ifs"
11513     test -z "$ac_dir" && ac_dir=.
11514     if test -f $ac_dir/${ac_tool_prefix}file; then
11515       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11516       if test -n "$file_magic_test_file"; then
11517         case $deplibs_check_method in
11518         "file_magic "*)
11519           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11520           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11521           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11522             $EGREP "$file_magic_regex" > /dev/null; then
11523             :
11524           else
11525             cat <<EOF 1>&2
11526
11527 *** Warning: the command libtool uses to detect shared libraries,
11528 *** $file_magic_cmd, produces output that libtool cannot recognize.
11529 *** The result is that libtool may fail to recognize shared libraries
11530 *** as such.  This will affect the creation of libtool libraries that
11531 *** depend on shared libraries, but programs linked with such libtool
11532 *** libraries will work regardless of this problem.  Nevertheless, you
11533 *** may want to report the problem to your system manager and/or to
11534 *** bug-libtool@gnu.org
11535
11536 EOF
11537           fi ;;
11538         esac
11539       fi
11540       break
11541     fi
11542   done
11543   IFS="$lt_save_ifs"
11544   MAGIC_CMD="$lt_save_MAGIC_CMD"
11545   ;;
11546 esac
11547 fi
11548
11549 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11550 if test -n "$MAGIC_CMD"; then
11551   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11552 echo "${ECHO_T}$MAGIC_CMD" >&6
11553 else
11554   echo "$as_me:$LINENO: result: no" >&5
11555 echo "${ECHO_T}no" >&6
11556 fi
11557
11558 if test -z "$lt_cv_path_MAGIC_CMD"; then
11559   if test -n "$ac_tool_prefix"; then
11560     echo "$as_me:$LINENO: checking for file" >&5
11561 echo $ECHO_N "checking for file... $ECHO_C" >&6
11562 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11563   echo $ECHO_N "(cached) $ECHO_C" >&6
11564 else
11565   case $MAGIC_CMD in
11566 [\\/*] |  ?:[\\/]*)
11567   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11568   ;;
11569 *)
11570   lt_save_MAGIC_CMD="$MAGIC_CMD"
11571   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11572   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11573   for ac_dir in $ac_dummy; do
11574     IFS="$lt_save_ifs"
11575     test -z "$ac_dir" && ac_dir=.
11576     if test -f $ac_dir/file; then
11577       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11578       if test -n "$file_magic_test_file"; then
11579         case $deplibs_check_method in
11580         "file_magic "*)
11581           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11582           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11583           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11584             $EGREP "$file_magic_regex" > /dev/null; then
11585             :
11586           else
11587             cat <<EOF 1>&2
11588
11589 *** Warning: the command libtool uses to detect shared libraries,
11590 *** $file_magic_cmd, produces output that libtool cannot recognize.
11591 *** The result is that libtool may fail to recognize shared libraries
11592 *** as such.  This will affect the creation of libtool libraries that
11593 *** depend on shared libraries, but programs linked with such libtool
11594 *** libraries will work regardless of this problem.  Nevertheless, you
11595 *** may want to report the problem to your system manager and/or to
11596 *** bug-libtool@gnu.org
11597
11598 EOF
11599           fi ;;
11600         esac
11601       fi
11602       break
11603     fi
11604   done
11605   IFS="$lt_save_ifs"
11606   MAGIC_CMD="$lt_save_MAGIC_CMD"
11607   ;;
11608 esac
11609 fi
11610
11611 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11612 if test -n "$MAGIC_CMD"; then
11613   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11614 echo "${ECHO_T}$MAGIC_CMD" >&6
11615 else
11616   echo "$as_me:$LINENO: result: no" >&5
11617 echo "${ECHO_T}no" >&6
11618 fi
11619
11620   else
11621     MAGIC_CMD=:
11622   fi
11623 fi
11624
11625   fi
11626   ;;
11627 esac
11628
11629 enable_dlopen=yes
11630 enable_win32_dll=no
11631
11632 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11633 if test "${enable_libtool_lock+set}" = set; then
11634   enableval="$enable_libtool_lock"
11635
11636 fi;
11637 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11638
11639
11640 # Check whether --with-pic or --without-pic was given.
11641 if test "${with_pic+set}" = set; then
11642   withval="$with_pic"
11643   pic_mode="$withval"
11644 else
11645   pic_mode=default
11646 fi;
11647 test -z "$pic_mode" && pic_mode=default
11648
11649 # Use C for the default configuration in the libtool script
11650 tagname=
11651 lt_save_CC="$CC"
11652 ac_ext=c
11653 ac_cpp='$CPP $CPPFLAGS'
11654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11657
11658
11659 # Source file extension for C test sources.
11660 ac_ext=c
11661
11662 # Object file extension for compiled C test sources.
11663 objext=o
11664 objext=$objext
11665
11666 # Code to be used in simple compile tests
11667 lt_simple_compile_test_code="int some_variable = 0;\n"
11668
11669 # Code to be used in simple link tests
11670 lt_simple_link_test_code='int main(){return(0);}\n'
11671
11672
11673 # If no C compiler was specified, use CC.
11674 LTCC=${LTCC-"$CC"}
11675
11676 # Allow CC to be a program name with arguments.
11677 compiler=$CC
11678
11679
11680 #
11681 # Check for any special shared library compilation flags.
11682 #
11683 lt_prog_cc_shlib=
11684 if test "$GCC" = no; then
11685   case $host_os in
11686   sco3.2v5*)
11687     lt_prog_cc_shlib='-belf'
11688     ;;
11689   esac
11690 fi
11691 if test -n "$lt_prog_cc_shlib"; then
11692   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11693 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11694   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11695   else
11696     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11697 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11698     lt_cv_prog_cc_can_build_shared=no
11699   fi
11700 fi
11701
11702
11703 #
11704 # Check to make sure the static flag actually works.
11705 #
11706 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11707 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11708 if test "${lt_prog_compiler_static_works+set}" = set; then
11709   echo $ECHO_N "(cached) $ECHO_C" >&6
11710 else
11711   lt_prog_compiler_static_works=no
11712    save_LDFLAGS="$LDFLAGS"
11713    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11714    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11715    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11716      # The compiler can only warn and ignore the option if not recognized
11717      # So say no if there are warnings
11718      if test -s conftest.err; then
11719        # Append any errors to the config.log.
11720        cat conftest.err 1>&5
11721      else
11722        lt_prog_compiler_static_works=yes
11723      fi
11724    fi
11725    $rm conftest*
11726    LDFLAGS="$save_LDFLAGS"
11727
11728 fi
11729 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11730 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11731
11732 if test x"$lt_prog_compiler_static_works" = xyes; then
11733     :
11734 else
11735     lt_prog_compiler_static=
11736 fi
11737
11738
11739
11740
11741 lt_prog_compiler_no_builtin_flag=
11742
11743 if test "$GCC" = yes; then
11744   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11745
11746
11747 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11748 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11749 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11750   echo $ECHO_N "(cached) $ECHO_C" >&6
11751 else
11752   lt_cv_prog_compiler_rtti_exceptions=no
11753   ac_outfile=conftest.$ac_objext
11754    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11755    lt_compiler_flag="-fno-rtti -fno-exceptions"
11756    # Insert the option either (1) after the last *FLAGS variable, or
11757    # (2) before a word containing "conftest.", or (3) at the end.
11758    # Note that $ac_compile itself does not contain backslashes and begins
11759    # with a dollar sign (not a hyphen), so the echo should work correctly.
11760    # The option is referenced via a variable to avoid confusing sed.
11761    lt_compile=`echo "$ac_compile" | $SED \
11762    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11763    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11764    -e 's:$: $lt_compiler_flag:'`
11765    (eval echo "\"\$as_me:11765: $lt_compile\"" >&5)
11766    (eval "$lt_compile" 2>conftest.err)
11767    ac_status=$?
11768    cat conftest.err >&5
11769    echo "$as_me:11769: \$? = $ac_status" >&5
11770    if (exit $ac_status) && test -s "$ac_outfile"; then
11771      # The compiler can only warn and ignore the option if not recognized
11772      # So say no if there are warnings
11773      if test ! -s conftest.err; then
11774        lt_cv_prog_compiler_rtti_exceptions=yes
11775      fi
11776    fi
11777    $rm conftest*
11778
11779 fi
11780 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11781 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11782
11783 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11784     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11785 else
11786     :
11787 fi
11788
11789 fi
11790
11791 lt_prog_compiler_wl=
11792 lt_prog_compiler_pic=
11793 lt_prog_compiler_static=
11794
11795 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11796 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11797
11798   if test "$GCC" = yes; then
11799     lt_prog_compiler_wl='-Wl,'
11800     lt_prog_compiler_static='-static'
11801
11802     case $host_os in
11803       aix*)
11804       # All AIX code is PIC.
11805       if test "$host_cpu" = ia64; then
11806         # AIX 5 now supports IA64 processor
11807         lt_prog_compiler_static='-Bstatic'
11808       fi
11809       ;;
11810
11811     amigaos*)
11812       # FIXME: we need at least 68020 code to build shared libraries, but
11813       # adding the `-m68020' flag to GCC prevents building anything better,
11814       # like `-m68040'.
11815       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11816       ;;
11817
11818     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11819       # PIC is the default for these OSes.
11820       ;;
11821
11822     mingw* | pw32* | os2*)
11823       # This hack is so that the source file can tell whether it is being
11824       # built for inclusion in a dll (and should export symbols for example).
11825       lt_prog_compiler_pic='-DDLL_EXPORT'
11826       ;;
11827
11828     darwin* | rhapsody*)
11829       # PIC is the default on this platform
11830       # Common symbols not allowed in MH_DYLIB files
11831       lt_prog_compiler_pic='-fno-common'
11832       ;;
11833
11834     msdosdjgpp*)
11835       # Just because we use GCC doesn't mean we suddenly get shared libraries
11836       # on systems that don't support them.
11837       lt_prog_compiler_can_build_shared=no
11838       enable_shared=no
11839       ;;
11840
11841     sysv4*MP*)
11842       if test -d /usr/nec; then
11843         lt_prog_compiler_pic=-Kconform_pic
11844       fi
11845       ;;
11846
11847     hpux*)
11848       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11849       # not for PA HP-UX.
11850       case "$host_cpu" in
11851       hppa*64*|ia64*)
11852         # +Z the default
11853         ;;
11854       *)
11855         lt_prog_compiler_pic='-fPIC'
11856         ;;
11857       esac
11858       ;;
11859
11860     *)
11861       lt_prog_compiler_pic='-fPIC'
11862       ;;
11863     esac
11864   else
11865     # PORTME Check for flag to pass linker flags through the system compiler.
11866     case $host_os in
11867     aix*)
11868       lt_prog_compiler_wl='-Wl,'
11869       if test "$host_cpu" = ia64; then
11870         # AIX 5 now supports IA64 processor
11871         lt_prog_compiler_static='-Bstatic'
11872       else
11873         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11874       fi
11875       ;;
11876       darwin*)
11877         # PIC is the default on this platform
11878         # Common symbols not allowed in MH_DYLIB files
11879        case "$cc_basename" in
11880          xlc*)
11881          lt_prog_compiler_pic='-qnocommon'
11882          lt_prog_compiler_wl='-Wl,'
11883          ;;
11884        esac
11885        ;;
11886
11887     mingw* | pw32* | os2*)
11888       # This hack is so that the source file can tell whether it is being
11889       # built for inclusion in a dll (and should export symbols for example).
11890       lt_prog_compiler_pic='-DDLL_EXPORT'
11891       ;;
11892
11893     hpux9* | hpux10* | hpux11*)
11894       lt_prog_compiler_wl='-Wl,'
11895       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11896       # not for PA HP-UX.
11897       case "$host_cpu" in
11898       hppa*64*|ia64*)
11899         # +Z the default
11900         ;;
11901       *)
11902         lt_prog_compiler_pic='+Z'
11903         ;;
11904       esac
11905       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11906       lt_prog_compiler_static='${wl}-a ${wl}archive'
11907       ;;
11908
11909     irix5* | irix6* | nonstopux*)
11910       lt_prog_compiler_wl='-Wl,'
11911       # PIC (with -KPIC) is the default.
11912       lt_prog_compiler_static='-non_shared'
11913       ;;
11914
11915     newsos6)
11916       lt_prog_compiler_pic='-KPIC'
11917       lt_prog_compiler_static='-Bstatic'
11918       ;;
11919
11920     linux*)
11921       case $CC in
11922       icc* | ecc*)
11923         lt_prog_compiler_wl='-Wl,'
11924         lt_prog_compiler_pic='-KPIC'
11925         lt_prog_compiler_static='-static'
11926         ;;
11927       ccc*)
11928         lt_prog_compiler_wl='-Wl,'
11929         # All Alpha code is PIC.
11930         lt_prog_compiler_static='-non_shared'
11931         ;;
11932       esac
11933       ;;
11934
11935     osf3* | osf4* | osf5*)
11936       lt_prog_compiler_wl='-Wl,'
11937       # All OSF/1 code is PIC.
11938       lt_prog_compiler_static='-non_shared'
11939       ;;
11940
11941     sco3.2v5*)
11942       lt_prog_compiler_pic='-Kpic'
11943       lt_prog_compiler_static='-dn'
11944       ;;
11945
11946     solaris*)
11947       lt_prog_compiler_wl='-Wl,'
11948       lt_prog_compiler_pic='-KPIC'
11949       lt_prog_compiler_static='-Bstatic'
11950       ;;
11951
11952     sunos4*)
11953       lt_prog_compiler_wl='-Qoption ld '
11954       lt_prog_compiler_pic='-PIC'
11955       lt_prog_compiler_static='-Bstatic'
11956       ;;
11957
11958     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11959       lt_prog_compiler_wl='-Wl,'
11960       lt_prog_compiler_pic='-KPIC'
11961       lt_prog_compiler_static='-Bstatic'
11962       ;;
11963
11964     sysv4*MP*)
11965       if test -d /usr/nec ;then
11966         lt_prog_compiler_pic='-Kconform_pic'
11967         lt_prog_compiler_static='-Bstatic'
11968       fi
11969       ;;
11970
11971     uts4*)
11972       lt_prog_compiler_pic='-pic'
11973       lt_prog_compiler_static='-Bstatic'
11974       ;;
11975
11976     *)
11977       lt_prog_compiler_can_build_shared=no
11978       ;;
11979     esac
11980   fi
11981
11982 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11983 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11984
11985 #
11986 # Check to make sure the PIC flag actually works.
11987 #
11988 if test -n "$lt_prog_compiler_pic"; then
11989
11990 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11991 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11992 if test "${lt_prog_compiler_pic_works+set}" = set; then
11993   echo $ECHO_N "(cached) $ECHO_C" >&6
11994 else
11995   lt_prog_compiler_pic_works=no
11996   ac_outfile=conftest.$ac_objext
11997    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11998    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11999    # Insert the option either (1) after the last *FLAGS variable, or
12000    # (2) before a word containing "conftest.", or (3) at the end.
12001    # Note that $ac_compile itself does not contain backslashes and begins
12002    # with a dollar sign (not a hyphen), so the echo should work correctly.
12003    # The option is referenced via a variable to avoid confusing sed.
12004    lt_compile=`echo "$ac_compile" | $SED \
12005    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12006    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12007    -e 's:$: $lt_compiler_flag:'`
12008    (eval echo "\"\$as_me:12008: $lt_compile\"" >&5)
12009    (eval "$lt_compile" 2>conftest.err)
12010    ac_status=$?
12011    cat conftest.err >&5
12012    echo "$as_me:12012: \$? = $ac_status" >&5
12013    if (exit $ac_status) && test -s "$ac_outfile"; then
12014      # The compiler can only warn and ignore the option if not recognized
12015      # So say no if there are warnings
12016      if test ! -s conftest.err; then
12017        lt_prog_compiler_pic_works=yes
12018      fi
12019    fi
12020    $rm conftest*
12021
12022 fi
12023 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12024 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12025
12026 if test x"$lt_prog_compiler_pic_works" = xyes; then
12027     case $lt_prog_compiler_pic in
12028      "" | " "*) ;;
12029      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12030      esac
12031 else
12032     lt_prog_compiler_pic=
12033      lt_prog_compiler_can_build_shared=no
12034 fi
12035
12036 fi
12037 case "$host_os" in
12038   # For platforms which do not support PIC, -DPIC is meaningless:
12039   *djgpp*)
12040     lt_prog_compiler_pic=
12041     ;;
12042   *)
12043     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12044     ;;
12045 esac
12046
12047 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12048 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12049 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12050   echo $ECHO_N "(cached) $ECHO_C" >&6
12051 else
12052   lt_cv_prog_compiler_c_o=no
12053    $rm -r conftest 2>/dev/null
12054    mkdir conftest
12055    cd conftest
12056    mkdir out
12057    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12058
12059    lt_compiler_flag="-o out/conftest2.$ac_objext"
12060    # Insert the option either (1) after the last *FLAGS variable, or
12061    # (2) before a word containing "conftest.", or (3) at the end.
12062    # Note that $ac_compile itself does not contain backslashes and begins
12063    # with a dollar sign (not a hyphen), so the echo should work correctly.
12064    lt_compile=`echo "$ac_compile" | $SED \
12065    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12066    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12067    -e 's:$: $lt_compiler_flag:'`
12068    (eval echo "\"\$as_me:12068: $lt_compile\"" >&5)
12069    (eval "$lt_compile" 2>out/conftest.err)
12070    ac_status=$?
12071    cat out/conftest.err >&5
12072    echo "$as_me:12072: \$? = $ac_status" >&5
12073    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12074    then
12075      # The compiler can only warn and ignore the option if not recognized
12076      # So say no if there are warnings
12077      if test ! -s out/conftest.err; then
12078        lt_cv_prog_compiler_c_o=yes
12079      fi
12080    fi
12081    chmod u+w .
12082    $rm conftest*
12083    # SGI C++ compiler will create directory out/ii_files/ for
12084    # template instantiation
12085    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12086    $rm out/* && rmdir out
12087    cd ..
12088    rmdir conftest
12089    $rm conftest*
12090
12091 fi
12092 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12093 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12094
12095
12096 hard_links="nottested"
12097 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12098   # do not overwrite the value of need_locks provided by the user
12099   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12100 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12101   hard_links=yes
12102   $rm conftest*
12103   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12104   touch conftest.a
12105   ln conftest.a conftest.b 2>&5 || hard_links=no
12106   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12107   echo "$as_me:$LINENO: result: $hard_links" >&5
12108 echo "${ECHO_T}$hard_links" >&6
12109   if test "$hard_links" = no; then
12110     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12111 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12112     need_locks=warn
12113   fi
12114 else
12115   need_locks=no
12116 fi
12117
12118 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12119 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12120
12121   runpath_var=
12122   allow_undefined_flag=
12123   enable_shared_with_static_runtimes=no
12124   archive_cmds=
12125   archive_expsym_cmds=
12126   old_archive_From_new_cmds=
12127   old_archive_from_expsyms_cmds=
12128   export_dynamic_flag_spec=
12129   whole_archive_flag_spec=
12130   thread_safe_flag_spec=
12131   hardcode_libdir_flag_spec=
12132   hardcode_libdir_flag_spec_ld=
12133   hardcode_libdir_separator=
12134   hardcode_direct=no
12135   hardcode_minus_L=no
12136   hardcode_shlibpath_var=unsupported
12137   link_all_deplibs=unknown
12138   hardcode_automatic=no
12139   module_cmds=
12140   module_expsym_cmds=
12141   always_export_symbols=no
12142   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12143   # include_expsyms should be a list of space-separated symbols to be *always*
12144   # included in the symbol list
12145   include_expsyms=
12146   # exclude_expsyms can be an extended regexp of symbols to exclude
12147   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12148   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12149   # as well as any symbol that contains `d'.
12150   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12151   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12152   # platforms (ab)use it in PIC code, but their linkers get confused if
12153   # the symbol is explicitly referenced.  Since portable code cannot
12154   # rely on this symbol name, it's probably fine to never include it in
12155   # preloaded symbol tables.
12156   extract_expsyms_cmds=
12157
12158   case $host_os in
12159   cygwin* | mingw* | pw32*)
12160     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12161     # When not using gcc, we currently assume that we are using
12162     # Microsoft Visual C++.
12163     if test "$GCC" != yes; then
12164       with_gnu_ld=no
12165     fi
12166     ;;
12167   openbsd*)
12168     with_gnu_ld=no
12169     ;;
12170   esac
12171
12172   ld_shlibs=yes
12173   if test "$with_gnu_ld" = yes; then
12174     # If archive_cmds runs LD, not CC, wlarc should be empty
12175     wlarc='${wl}'
12176
12177     # See if GNU ld supports shared libraries.
12178     case $host_os in
12179     aix3* | aix4* | aix5*)
12180       # On AIX/PPC, the GNU linker is very broken
12181       if test "$host_cpu" != ia64; then
12182         ld_shlibs=no
12183         cat <<EOF 1>&2
12184
12185 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12186 *** to be unable to reliably create shared libraries on AIX.
12187 *** Therefore, libtool is disabling shared libraries support.  If you
12188 *** really care for shared libraries, you may want to modify your PATH
12189 *** so that a non-GNU linker is found, and then restart.
12190
12191 EOF
12192       fi
12193       ;;
12194
12195     amigaos*)
12196       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)'
12197       hardcode_libdir_flag_spec='-L$libdir'
12198       hardcode_minus_L=yes
12199
12200       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12201       # that the semantics of dynamic libraries on AmigaOS, at least up
12202       # to version 4, is to share data among multiple programs linked
12203       # with the same dynamic library.  Since this doesn't match the
12204       # behavior of shared libraries on other platforms, we can't use
12205       # them.
12206       ld_shlibs=no
12207       ;;
12208
12209     beos*)
12210       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12211         allow_undefined_flag=unsupported
12212         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12213         # support --undefined.  This deserves some investigation.  FIXME
12214         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12215       else
12216         ld_shlibs=no
12217       fi
12218       ;;
12219
12220     cygwin* | mingw* | pw32*)
12221       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12222       # as there is no search path for DLLs.
12223       hardcode_libdir_flag_spec='-L$libdir'
12224       allow_undefined_flag=unsupported
12225       always_export_symbols=no
12226       enable_shared_with_static_runtimes=yes
12227       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12228
12229       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12230         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12231         # If the export-symbols file already is a .def file (1st line
12232         # is EXPORTS), use it as is; otherwise, prepend...
12233         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12234           cp $export_symbols $output_objdir/$soname.def;
12235         else
12236           echo EXPORTS > $output_objdir/$soname.def;
12237           cat $export_symbols >> $output_objdir/$soname.def;
12238         fi~
12239         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12240       else
12241         ld_shlibs=no
12242       fi
12243       ;;
12244
12245     netbsd*)
12246       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12247         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12248         wlarc=
12249       else
12250         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12251         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12252       fi
12253       ;;
12254
12255     solaris* | sysv5*)
12256       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12257         ld_shlibs=no
12258         cat <<EOF 1>&2
12259
12260 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12261 *** create shared libraries on Solaris systems.  Therefore, libtool
12262 *** is disabling shared libraries support.  We urge you to upgrade GNU
12263 *** binutils to release 2.9.1 or newer.  Another option is to modify
12264 *** your PATH or compiler configuration so that the native linker is
12265 *** used, and then restart.
12266
12267 EOF
12268       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12269         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12270         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12271       else
12272         ld_shlibs=no
12273       fi
12274       ;;
12275
12276     sunos4*)
12277       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12278       wlarc=
12279       hardcode_direct=yes
12280       hardcode_shlibpath_var=no
12281       ;;
12282
12283   linux*)
12284     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12285         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12286         archive_cmds="$tmp_archive_cmds"
12287       supports_anon_versioning=no
12288       case `$LD -v 2>/dev/null` in
12289         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12290         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12291         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12292         *\ 2.11.*) ;; # other 2.11 versions
12293         *) supports_anon_versioning=yes ;;
12294       esac
12295       if test $supports_anon_versioning = yes; then
12296         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12297 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12298 $echo "local: *; };" >> $output_objdir/$libname.ver~
12299         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12300       else
12301         archive_expsym_cmds="$tmp_archive_cmds"
12302       fi
12303     else
12304       ld_shlibs=no
12305     fi
12306     ;;
12307
12308     *)
12309       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12310         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12311         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12312       else
12313         ld_shlibs=no
12314       fi
12315       ;;
12316     esac
12317
12318     if test "$ld_shlibs" = yes; then
12319       runpath_var=LD_RUN_PATH
12320       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12321       export_dynamic_flag_spec='${wl}--export-dynamic'
12322       # ancient GNU ld didn't support --whole-archive et. al.
12323       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12324         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12325       else
12326         whole_archive_flag_spec=
12327       fi
12328     fi
12329   else
12330     # PORTME fill in a description of your system's linker (not GNU ld)
12331     case $host_os in
12332     aix3*)
12333       allow_undefined_flag=unsupported
12334       always_export_symbols=yes
12335       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'
12336       # Note: this linker hardcodes the directories in LIBPATH if there
12337       # are no directories specified by -L.
12338       hardcode_minus_L=yes
12339       if test "$GCC" = yes && test -z "$link_static_flag"; then
12340         # Neither direct hardcoding nor static linking is supported with a
12341         # broken collect2.
12342         hardcode_direct=unsupported
12343       fi
12344       ;;
12345
12346     aix4* | aix5*)
12347       if test "$host_cpu" = ia64; then
12348         # On IA64, the linker does run time linking by default, so we don't
12349         # have to do anything special.
12350         aix_use_runtimelinking=no
12351         exp_sym_flag='-Bexport'
12352         no_entry_flag=""
12353       else
12354         # If we're using GNU nm, then we don't want the "-C" option.
12355         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12356         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12357           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'
12358         else
12359           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'
12360         fi
12361         aix_use_runtimelinking=no
12362
12363         # Test if we are trying to use run time linking or normal
12364         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12365         # need to do runtime linking.
12366         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12367           for ld_flag in $LDFLAGS; do
12368           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12369             aix_use_runtimelinking=yes
12370             break
12371           fi
12372           done
12373         esac
12374
12375         exp_sym_flag='-bexport'
12376         no_entry_flag='-bnoentry'
12377       fi
12378
12379       # When large executables or shared objects are built, AIX ld can
12380       # have problems creating the table of contents.  If linking a library
12381       # or program results in "error TOC overflow" add -mminimal-toc to
12382       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12383       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12384
12385       archive_cmds=''
12386       hardcode_direct=yes
12387       hardcode_libdir_separator=':'
12388       link_all_deplibs=yes
12389
12390       if test "$GCC" = yes; then
12391         case $host_os in aix4.012|aix4.012.*)
12392         # We only want to do this on AIX 4.2 and lower, the check
12393         # below for broken collect2 doesn't work under 4.3+
12394           collect2name=`${CC} -print-prog-name=collect2`
12395           if test -f "$collect2name" && \
12396            strings "$collect2name" | grep resolve_lib_name >/dev/null
12397           then
12398           # We have reworked collect2
12399           hardcode_direct=yes
12400           else
12401           # We have old collect2
12402           hardcode_direct=unsupported
12403           # It fails to find uninstalled libraries when the uninstalled
12404           # path is not listed in the libpath.  Setting hardcode_minus_L
12405           # to unsupported forces relinking
12406           hardcode_minus_L=yes
12407           hardcode_libdir_flag_spec='-L$libdir'
12408           hardcode_libdir_separator=
12409           fi
12410         esac
12411         shared_flag='-shared'
12412       else
12413         # not using gcc
12414         if test "$host_cpu" = ia64; then
12415         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12416         # chokes on -Wl,-G. The following line is correct:
12417           shared_flag='-G'
12418         else
12419         if test "$aix_use_runtimelinking" = yes; then
12420             shared_flag='${wl}-G'
12421           else
12422             shared_flag='${wl}-bM:SRE'
12423         fi
12424         fi
12425       fi
12426
12427       # It seems that -bexpall does not export symbols beginning with
12428       # underscore (_), so it is better to generate a list of symbols to export.
12429       always_export_symbols=yes
12430       if test "$aix_use_runtimelinking" = yes; then
12431         # Warning - without using the other runtime loading flags (-brtl),
12432         # -berok will link without error, but may produce a broken library.
12433         allow_undefined_flag='-berok'
12434        # Determine the default libpath from the value encoded in an empty executable.
12435        cat >conftest.$ac_ext <<_ACEOF
12436 /* confdefs.h.  */
12437 _ACEOF
12438 cat confdefs.h >>conftest.$ac_ext
12439 cat >>conftest.$ac_ext <<_ACEOF
12440 /* end confdefs.h.  */
12441
12442 int
12443 main ()
12444 {
12445
12446   ;
12447   return 0;
12448 }
12449 _ACEOF
12450 rm -f conftest.$ac_objext conftest$ac_exeext
12451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12452   (eval $ac_link) 2>conftest.er1
12453   ac_status=$?
12454   grep -v '^ *+' conftest.er1 >conftest.err
12455   rm -f conftest.er1
12456   cat conftest.err >&5
12457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458   (exit $ac_status); } &&
12459          { ac_try='test -z "$ac_c_werror_flag"
12460                          || test ! -s conftest.err'
12461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12462   (eval $ac_try) 2>&5
12463   ac_status=$?
12464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465   (exit $ac_status); }; } &&
12466          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12472
12473 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12474 }'`
12475 # Check for a 64-bit object if we didn't find anything.
12476 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; }
12477 }'`; fi
12478 else
12479   echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12481
12482 fi
12483 rm -f conftest.err conftest.$ac_objext \
12484       conftest$ac_exeext conftest.$ac_ext
12485 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12486
12487        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12488         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"
12489        else
12490         if test "$host_cpu" = ia64; then
12491           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12492           allow_undefined_flag="-z nodefs"
12493           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"
12494         else
12495          # Determine the default libpath from the value encoded in an empty executable.
12496          cat >conftest.$ac_ext <<_ACEOF
12497 /* confdefs.h.  */
12498 _ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h.  */
12502
12503 int
12504 main ()
12505 {
12506
12507   ;
12508   return 0;
12509 }
12510 _ACEOF
12511 rm -f conftest.$ac_objext conftest$ac_exeext
12512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12513   (eval $ac_link) 2>conftest.er1
12514   ac_status=$?
12515   grep -v '^ *+' conftest.er1 >conftest.err
12516   rm -f conftest.er1
12517   cat conftest.err >&5
12518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); } &&
12520          { ac_try='test -z "$ac_c_werror_flag"
12521                          || test ! -s conftest.err'
12522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523   (eval $ac_try) 2>&5
12524   ac_status=$?
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); }; } &&
12527          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12533
12534 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12535 }'`
12536 # Check for a 64-bit object if we didn't find anything.
12537 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; }
12538 }'`; fi
12539 else
12540   echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12542
12543 fi
12544 rm -f conftest.err conftest.$ac_objext \
12545       conftest$ac_exeext conftest.$ac_ext
12546 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12547
12548          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12549           # Warning - without using the other run time loading flags,
12550           # -berok will link without error, but may produce a broken library.
12551           no_undefined_flag=' ${wl}-bernotok'
12552           allow_undefined_flag=' ${wl}-berok'
12553           # -bexpall does not export symbols beginning with underscore (_)
12554           always_export_symbols=yes
12555           # Exported symbols can be pulled into shared objects from archives
12556           whole_archive_flag_spec=' '
12557           archive_cmds_need_lc=yes
12558           # This is similar to how AIX traditionally builds it's shared libraries.
12559           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'
12560         fi
12561       fi
12562       ;;
12563
12564     amigaos*)
12565       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)'
12566       hardcode_libdir_flag_spec='-L$libdir'
12567       hardcode_minus_L=yes
12568       # see comment about different semantics on the GNU ld section
12569       ld_shlibs=no
12570       ;;
12571
12572     bsdi[45]*)
12573       export_dynamic_flag_spec=-rdynamic
12574       ;;
12575
12576     cygwin* | mingw* | pw32*)
12577       # When not using gcc, we currently assume that we are using
12578       # Microsoft Visual C++.
12579       # hardcode_libdir_flag_spec is actually meaningless, as there is
12580       # no search path for DLLs.
12581       hardcode_libdir_flag_spec=' '
12582       allow_undefined_flag=unsupported
12583       # Tell ltmain to make .lib files, not .a files.
12584       libext=lib
12585       # Tell ltmain to make .dll files, not .so files.
12586       shrext_cmds=".dll"
12587       # FIXME: Setting linknames here is a bad hack.
12588       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12589       # The linker will automatically build a .lib file if we build a DLL.
12590       old_archive_From_new_cmds='true'
12591       # FIXME: Should let the user specify the lib program.
12592       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12593       fix_srcfile_path='`cygpath -w "$srcfile"`'
12594       enable_shared_with_static_runtimes=yes
12595       ;;
12596
12597     darwin* | rhapsody*)
12598       case "$host_os" in
12599         rhapsody* | darwin1.[012])
12600          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12601          ;;
12602        *) # Darwin 1.3 on
12603          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12604            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12605          else
12606            case ${MACOSX_DEPLOYMENT_TARGET} in
12607              10.[012])
12608                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12609                ;;
12610              10.*)
12611                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12612                ;;
12613            esac
12614          fi
12615          ;;
12616       esac
12617       archive_cmds_need_lc=no
12618       hardcode_direct=no
12619       hardcode_automatic=yes
12620       hardcode_shlibpath_var=unsupported
12621       whole_archive_flag_spec=''
12622       link_all_deplibs=yes
12623     if test "$GCC" = yes ; then
12624         output_verbose_link_cmd='echo'
12625         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12626       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12627       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12628       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}'
12629       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}'
12630     else
12631       case "$cc_basename" in
12632         xlc*)
12633          output_verbose_link_cmd='echo'
12634          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12635          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12636           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12637          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}'
12638           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}'
12639           ;;
12640        *)
12641          ld_shlibs=no
12642           ;;
12643       esac
12644     fi
12645       ;;
12646
12647     dgux*)
12648       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12649       hardcode_libdir_flag_spec='-L$libdir'
12650       hardcode_shlibpath_var=no
12651       ;;
12652
12653     freebsd1*)
12654       ld_shlibs=no
12655       ;;
12656
12657     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12658     # support.  Future versions do this automatically, but an explicit c++rt0.o
12659     # does not break anything, and helps significantly (at the cost of a little
12660     # extra space).
12661     freebsd2.2*)
12662       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12663       hardcode_libdir_flag_spec='-R$libdir'
12664       hardcode_direct=yes
12665       hardcode_shlibpath_var=no
12666       ;;
12667
12668     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12669     freebsd2*)
12670       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12671       hardcode_direct=yes
12672       hardcode_minus_L=yes
12673       hardcode_shlibpath_var=no
12674       ;;
12675
12676     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12677     freebsd* | kfreebsd*-gnu)
12678       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12679       hardcode_libdir_flag_spec='-R$libdir'
12680       hardcode_direct=yes
12681       hardcode_shlibpath_var=no
12682       ;;
12683
12684     hpux9*)
12685       if test "$GCC" = yes; then
12686         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'
12687       else
12688         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'
12689       fi
12690       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12691       hardcode_libdir_separator=:
12692       hardcode_direct=yes
12693
12694       # hardcode_minus_L: Not really in the search PATH,
12695       # but as the default location of the library.
12696       hardcode_minus_L=yes
12697       export_dynamic_flag_spec='${wl}-E'
12698       ;;
12699
12700     hpux10* | hpux11*)
12701       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12702         case "$host_cpu" in
12703         hppa*64*|ia64*)
12704           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12705           ;;
12706         *)
12707           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12708           ;;
12709         esac
12710       else
12711         case "$host_cpu" in
12712         hppa*64*|ia64*)
12713           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12714           ;;
12715         *)
12716           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12717           ;;
12718         esac
12719       fi
12720       if test "$with_gnu_ld" = no; then
12721         case "$host_cpu" in
12722         hppa*64*)
12723           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12724           hardcode_libdir_flag_spec_ld='+b $libdir'
12725           hardcode_libdir_separator=:
12726           hardcode_direct=no
12727           hardcode_shlibpath_var=no
12728           ;;
12729         ia64*)
12730           hardcode_libdir_flag_spec='-L$libdir'
12731           hardcode_direct=no
12732           hardcode_shlibpath_var=no
12733
12734           # hardcode_minus_L: Not really in the search PATH,
12735           # but as the default location of the library.
12736           hardcode_minus_L=yes
12737           ;;
12738         *)
12739           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12740           hardcode_libdir_separator=:
12741           hardcode_direct=yes
12742           export_dynamic_flag_spec='${wl}-E'
12743
12744           # hardcode_minus_L: Not really in the search PATH,
12745           # but as the default location of the library.
12746           hardcode_minus_L=yes
12747           ;;
12748         esac
12749       fi
12750       ;;
12751
12752     irix5* | irix6* | nonstopux*)
12753       if test "$GCC" = yes; then
12754         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'
12755       else
12756         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'
12757         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12758       fi
12759       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12760       hardcode_libdir_separator=:
12761       link_all_deplibs=yes
12762       ;;
12763
12764     netbsd*)
12765       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12766         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12767       else
12768         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12769       fi
12770       hardcode_libdir_flag_spec='-R$libdir'
12771       hardcode_direct=yes
12772       hardcode_shlibpath_var=no
12773       ;;
12774
12775     newsos6)
12776       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12777       hardcode_direct=yes
12778       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12779       hardcode_libdir_separator=:
12780       hardcode_shlibpath_var=no
12781       ;;
12782
12783     openbsd*)
12784       hardcode_direct=yes
12785       hardcode_shlibpath_var=no
12786       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12787         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12788         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12789         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12790         export_dynamic_flag_spec='${wl}-E'
12791       else
12792        case $host_os in
12793          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12794            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12795            hardcode_libdir_flag_spec='-R$libdir'
12796            ;;
12797          *)
12798            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12799            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12800            ;;
12801        esac
12802       fi
12803       ;;
12804
12805     os2*)
12806       hardcode_libdir_flag_spec='-L$libdir'
12807       hardcode_minus_L=yes
12808       allow_undefined_flag=unsupported
12809       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'
12810       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12811       ;;
12812
12813     osf3*)
12814       if test "$GCC" = yes; then
12815         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12816         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'
12817       else
12818         allow_undefined_flag=' -expect_unresolved \*'
12819         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'
12820       fi
12821       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12822       hardcode_libdir_separator=:
12823       ;;
12824
12825     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12826       if test "$GCC" = yes; then
12827         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12828         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'
12829         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12830       else
12831         allow_undefined_flag=' -expect_unresolved \*'
12832         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'
12833         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12834         $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'
12835
12836         # Both c and cxx compiler support -rpath directly
12837         hardcode_libdir_flag_spec='-rpath $libdir'
12838       fi
12839       hardcode_libdir_separator=:
12840       ;;
12841
12842     sco3.2v5*)
12843       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12844       hardcode_shlibpath_var=no
12845       export_dynamic_flag_spec='${wl}-Bexport'
12846       runpath_var=LD_RUN_PATH
12847       hardcode_runpath_var=yes
12848       ;;
12849
12850     solaris*)
12851       no_undefined_flag=' -z text'
12852       if test "$GCC" = yes; then
12853         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12854         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12855           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12856       else
12857         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12858         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12859         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12860       fi
12861       hardcode_libdir_flag_spec='-R$libdir'
12862       hardcode_shlibpath_var=no
12863       case $host_os in
12864       solaris2.[0-5] | solaris2.[0-5].*) ;;
12865       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12866         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12867       esac
12868       link_all_deplibs=yes
12869       ;;
12870
12871     sunos4*)
12872       if test "x$host_vendor" = xsequent; then
12873         # Use $CC to link under sequent, because it throws in some extra .o
12874         # files that make .init and .fini sections work.
12875         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12876       else
12877         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12878       fi
12879       hardcode_libdir_flag_spec='-L$libdir'
12880       hardcode_direct=yes
12881       hardcode_minus_L=yes
12882       hardcode_shlibpath_var=no
12883       ;;
12884
12885     sysv4)
12886       case $host_vendor in
12887         sni)
12888           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12889           hardcode_direct=yes # is this really true???
12890         ;;
12891         siemens)
12892           ## LD is ld it makes a PLAMLIB
12893           ## CC just makes a GrossModule.
12894           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12895           reload_cmds='$CC -r -o $output$reload_objs'
12896           hardcode_direct=no
12897         ;;
12898         motorola)
12899           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12900           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12901         ;;
12902       esac
12903       runpath_var='LD_RUN_PATH'
12904       hardcode_shlibpath_var=no
12905       ;;
12906
12907     sysv4.3*)
12908       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12909       hardcode_shlibpath_var=no
12910       export_dynamic_flag_spec='-Bexport'
12911       ;;
12912
12913     sysv4*MP*)
12914       if test -d /usr/nec; then
12915         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12916         hardcode_shlibpath_var=no
12917         runpath_var=LD_RUN_PATH
12918         hardcode_runpath_var=yes
12919         ld_shlibs=yes
12920       fi
12921       ;;
12922
12923     sysv4.2uw2*)
12924       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12925       hardcode_direct=yes
12926       hardcode_minus_L=no
12927       hardcode_shlibpath_var=no
12928       hardcode_runpath_var=yes
12929       runpath_var=LD_RUN_PATH
12930       ;;
12931
12932    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12933       no_undefined_flag='${wl}-z ${wl}text'
12934       if test "$GCC" = yes; then
12935         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12936       else
12937         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12938       fi
12939       runpath_var='LD_RUN_PATH'
12940       hardcode_shlibpath_var=no
12941       ;;
12942
12943     sysv5*)
12944       no_undefined_flag=' -z text'
12945       # $CC -shared without GNU ld will not create a library from C++
12946       # object files and a static libstdc++, better avoid it by now
12947       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12948       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12949                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12950       hardcode_libdir_flag_spec=
12951       hardcode_shlibpath_var=no
12952       runpath_var='LD_RUN_PATH'
12953       ;;
12954
12955     uts4*)
12956       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12957       hardcode_libdir_flag_spec='-L$libdir'
12958       hardcode_shlibpath_var=no
12959       ;;
12960
12961     *)
12962       ld_shlibs=no
12963       ;;
12964     esac
12965   fi
12966
12967 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12968 echo "${ECHO_T}$ld_shlibs" >&6
12969 test "$ld_shlibs" = no && can_build_shared=no
12970
12971 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12972 if test "$GCC" = yes; then
12973   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12974 fi
12975
12976 #
12977 # Do we need to explicitly link libc?
12978 #
12979 case "x$archive_cmds_need_lc" in
12980 x|xyes)
12981   # Assume -lc should be added
12982   archive_cmds_need_lc=yes
12983
12984   if test "$enable_shared" = yes && test "$GCC" = yes; then
12985     case $archive_cmds in
12986     *'~'*)
12987       # FIXME: we may have to deal with multi-command sequences.
12988       ;;
12989     '$CC '*)
12990       # Test whether the compiler implicitly links with -lc since on some
12991       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12992       # to ld, don't add -lc before -lgcc.
12993       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12994 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12995       $rm conftest*
12996       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12997
12998       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12999   (eval $ac_compile) 2>&5
13000   ac_status=$?
13001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002   (exit $ac_status); } 2>conftest.err; then
13003         soname=conftest
13004         lib=conftest
13005         libobjs=conftest.$ac_objext
13006         deplibs=
13007         wl=$lt_prog_compiler_wl
13008         compiler_flags=-v
13009         linker_flags=-v
13010         verstring=
13011         output_objdir=.
13012         libname=conftest
13013         lt_save_allow_undefined_flag=$allow_undefined_flag
13014         allow_undefined_flag=
13015         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13016   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13017   ac_status=$?
13018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019   (exit $ac_status); }
13020         then
13021           archive_cmds_need_lc=no
13022         else
13023           archive_cmds_need_lc=yes
13024         fi
13025         allow_undefined_flag=$lt_save_allow_undefined_flag
13026       else
13027         cat conftest.err 1>&5
13028       fi
13029       $rm conftest*
13030       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13031 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13032       ;;
13033     esac
13034   fi
13035   ;;
13036 esac
13037
13038 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13039 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13040 library_names_spec=
13041 libname_spec='lib$name'
13042 soname_spec=
13043 shrext_cmds=".so"
13044 postinstall_cmds=
13045 postuninstall_cmds=
13046 finish_cmds=
13047 finish_eval=
13048 shlibpath_var=
13049 shlibpath_overrides_runpath=unknown
13050 version_type=none
13051 dynamic_linker="$host_os ld.so"
13052 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13053 if test "$GCC" = yes; then
13054   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13055   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13056     # if the path contains ";" then we assume it to be the separator
13057     # otherwise default to the standard path separator (i.e. ":") - it is
13058     # assumed that no part of a normal pathname contains ";" but that should
13059     # okay in the real world where ";" in dirpaths is itself problematic.
13060     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13061   else
13062     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13063   fi
13064 else
13065   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13066 fi
13067 need_lib_prefix=unknown
13068 hardcode_into_libs=no
13069
13070 # when you set need_version to no, make sure it does not cause -set_version
13071 # flags to be left without arguments
13072 need_version=unknown
13073
13074 case $host_os in
13075 aix3*)
13076   version_type=linux
13077   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13078   shlibpath_var=LIBPATH
13079
13080   # AIX 3 has no versioning support, so we append a major version to the name.
13081   soname_spec='${libname}${release}${shared_ext}$major'
13082   ;;
13083
13084 aix4* | aix5*)
13085   version_type=linux
13086   need_lib_prefix=no
13087   need_version=no
13088   hardcode_into_libs=yes
13089   if test "$host_cpu" = ia64; then
13090     # AIX 5 supports IA64
13091     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13092     shlibpath_var=LD_LIBRARY_PATH
13093   else
13094     # With GCC up to 2.95.x, collect2 would create an import file
13095     # for dependence libraries.  The import file would start with
13096     # the line `#! .'.  This would cause the generated library to
13097     # depend on `.', always an invalid library.  This was fixed in
13098     # development snapshots of GCC prior to 3.0.
13099     case $host_os in
13100       aix4 | aix4.[01] | aix4.[01].*)
13101       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13102            echo ' yes '
13103            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13104         :
13105       else
13106         can_build_shared=no
13107       fi
13108       ;;
13109     esac
13110     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13111     # soname into executable. Probably we can add versioning support to
13112     # collect2, so additional links can be useful in future.
13113     if test "$aix_use_runtimelinking" = yes; then
13114       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13115       # instead of lib<name>.a to let people know that these are not
13116       # typical AIX shared libraries.
13117       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13118     else
13119       # We preserve .a as extension for shared libraries through AIX4.2
13120       # and later when we are not doing run time linking.
13121       library_names_spec='${libname}${release}.a $libname.a'
13122       soname_spec='${libname}${release}${shared_ext}$major'
13123     fi
13124     shlibpath_var=LIBPATH
13125   fi
13126   ;;
13127
13128 amigaos*)
13129   library_names_spec='$libname.ixlibrary $libname.a'
13130   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13131   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'
13132   ;;
13133
13134 beos*)
13135   library_names_spec='${libname}${shared_ext}'
13136   dynamic_linker="$host_os ld.so"
13137   shlibpath_var=LIBRARY_PATH
13138   ;;
13139
13140 bsdi[45]*)
13141   version_type=linux
13142   need_version=no
13143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13144   soname_spec='${libname}${release}${shared_ext}$major'
13145   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13146   shlibpath_var=LD_LIBRARY_PATH
13147   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13148   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13149   # the default ld.so.conf also contains /usr/contrib/lib and
13150   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13151   # libtool to hard-code these into programs
13152   ;;
13153
13154 cygwin* | mingw* | pw32*)
13155   version_type=windows
13156   shrext_cmds=".dll"
13157   need_version=no
13158   need_lib_prefix=no
13159
13160   case $GCC,$host_os in
13161   yes,cygwin* | yes,mingw* | yes,pw32*)
13162     library_names_spec='$libname.dll.a'
13163     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13164     postinstall_cmds='base_file=`basename \${file}`~
13165       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13166       dldir=$destdir/`dirname \$dlpath`~
13167       test -d \$dldir || mkdir -p \$dldir~
13168       $install_prog $dir/$dlname \$dldir/$dlname'
13169     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13170       dlpath=$dir/\$dldll~
13171        $rm \$dlpath'
13172     shlibpath_overrides_runpath=yes
13173
13174     case $host_os in
13175     cygwin*)
13176       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13177       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13178       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13179       ;;
13180     mingw*)
13181       # MinGW DLLs use traditional 'lib' prefix
13182       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13183       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13184       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13185         # It is most probably a Windows format PATH printed by
13186         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13187         # path with ; separators, and with drive letters. We can handle the
13188         # drive letters (cygwin fileutils understands them), so leave them,
13189         # especially as we might pass files found there to a mingw objdump,
13190         # which wouldn't understand a cygwinified path. Ahh.
13191         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13192       else
13193         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13194       fi
13195       ;;
13196     pw32*)
13197       # pw32 DLLs use 'pw' prefix rather than 'lib'
13198       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13199       ;;
13200     esac
13201     ;;
13202
13203   *)
13204     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13205     ;;
13206   esac
13207   dynamic_linker='Win32 ld.exe'
13208   # FIXME: first we should search . and the directory the executable is in
13209   shlibpath_var=PATH
13210   ;;
13211
13212 darwin* | rhapsody*)
13213   dynamic_linker="$host_os dyld"
13214   version_type=darwin
13215   need_lib_prefix=no
13216   need_version=no
13217   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13218   soname_spec='${libname}${release}${major}$shared_ext'
13219   shlibpath_overrides_runpath=yes
13220   shlibpath_var=DYLD_LIBRARY_PATH
13221   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13222   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13223   if test "$GCC" = yes; then
13224     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"`
13225   else
13226     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13227   fi
13228   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13229   ;;
13230
13231 dgux*)
13232   version_type=linux
13233   need_lib_prefix=no
13234   need_version=no
13235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13236   soname_spec='${libname}${release}${shared_ext}$major'
13237   shlibpath_var=LD_LIBRARY_PATH
13238   ;;
13239
13240 freebsd1*)
13241   dynamic_linker=no
13242   ;;
13243
13244 kfreebsd*-gnu)
13245   version_type=linux
13246   need_lib_prefix=no
13247   need_version=no
13248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13249   soname_spec='${libname}${release}${shared_ext}$major'
13250   shlibpath_var=LD_LIBRARY_PATH
13251   shlibpath_overrides_runpath=no
13252   hardcode_into_libs=yes
13253   dynamic_linker='GNU ld.so'
13254   ;;
13255
13256 freebsd*)
13257   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13258   version_type=freebsd-$objformat
13259   case $version_type in
13260     freebsd-elf*)
13261       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13262       need_version=no
13263       need_lib_prefix=no
13264       ;;
13265     freebsd-*)
13266       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13267       need_version=yes
13268       ;;
13269   esac
13270   shlibpath_var=LD_LIBRARY_PATH
13271   case $host_os in
13272   freebsd2*)
13273     shlibpath_overrides_runpath=yes
13274     ;;
13275   freebsd3.01* | freebsdelf3.01*)
13276     shlibpath_overrides_runpath=yes
13277     hardcode_into_libs=yes
13278     ;;
13279   *) # from 3.2 on
13280     shlibpath_overrides_runpath=no
13281     hardcode_into_libs=yes
13282     ;;
13283   esac
13284   ;;
13285
13286 gnu*)
13287   version_type=linux
13288   need_lib_prefix=no
13289   need_version=no
13290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13291   soname_spec='${libname}${release}${shared_ext}$major'
13292   shlibpath_var=LD_LIBRARY_PATH
13293   hardcode_into_libs=yes
13294   ;;
13295
13296 hpux9* | hpux10* | hpux11*)
13297   # Give a soname corresponding to the major version so that dld.sl refuses to
13298   # link against other versions.
13299   version_type=sunos
13300   need_lib_prefix=no
13301   need_version=no
13302   case "$host_cpu" in
13303   ia64*)
13304     shrext_cmds='.so'
13305     hardcode_into_libs=yes
13306     dynamic_linker="$host_os dld.so"
13307     shlibpath_var=LD_LIBRARY_PATH
13308     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13309     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13310     soname_spec='${libname}${release}${shared_ext}$major'
13311     if test "X$HPUX_IA64_MODE" = X32; then
13312       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13313     else
13314       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13315     fi
13316     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13317     ;;
13318    hppa*64*)
13319      shrext_cmds='.sl'
13320      hardcode_into_libs=yes
13321      dynamic_linker="$host_os dld.sl"
13322      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13323      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13324      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13325      soname_spec='${libname}${release}${shared_ext}$major'
13326      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13327      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13328      ;;
13329    *)
13330     shrext_cmds='.sl'
13331     dynamic_linker="$host_os dld.sl"
13332     shlibpath_var=SHLIB_PATH
13333     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13334     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13335     soname_spec='${libname}${release}${shared_ext}$major'
13336     ;;
13337   esac
13338   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13339   postinstall_cmds='chmod 555 $lib'
13340   ;;
13341
13342 irix5* | irix6* | nonstopux*)
13343   case $host_os in
13344     nonstopux*) version_type=nonstopux ;;
13345     *)
13346         if test "$lt_cv_prog_gnu_ld" = yes; then
13347                 version_type=linux
13348         else
13349                 version_type=irix
13350         fi ;;
13351   esac
13352   need_lib_prefix=no
13353   need_version=no
13354   soname_spec='${libname}${release}${shared_ext}$major'
13355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13356   case $host_os in
13357   irix5* | nonstopux*)
13358     libsuff= shlibsuff=
13359     ;;
13360   *)
13361     case $LD in # libtool.m4 will add one of these switches to LD
13362     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13363       libsuff= shlibsuff= libmagic=32-bit;;
13364     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13365       libsuff=32 shlibsuff=N32 libmagic=N32;;
13366     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13367       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13368     *) libsuff= shlibsuff= libmagic=never-match;;
13369     esac
13370     ;;
13371   esac
13372   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13373   shlibpath_overrides_runpath=no
13374   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13375   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13376   hardcode_into_libs=yes
13377   ;;
13378
13379 # No shared lib support for Linux oldld, aout, or coff.
13380 linux*oldld* | linux*aout* | linux*coff*)
13381   dynamic_linker=no
13382   ;;
13383
13384 # This must be Linux ELF.
13385 linux*)
13386   version_type=linux
13387   need_lib_prefix=no
13388   need_version=no
13389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13390   soname_spec='${libname}${release}${shared_ext}$major'
13391   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13392   shlibpath_var=LD_LIBRARY_PATH
13393   shlibpath_overrides_runpath=no
13394   # This implies no fast_install, which is unacceptable.
13395   # Some rework will be needed to allow for fast_install
13396   # before this can be enabled.
13397   hardcode_into_libs=yes
13398
13399   # Append ld.so.conf contents to the search path
13400   if test -f /etc/ld.so.conf; then
13401     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13402     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13403   fi
13404
13405   # We used to test for /lib/ld.so.1 and disable shared libraries on
13406   # powerpc, because MkLinux only supported shared libraries with the
13407   # GNU dynamic linker.  Since this was broken with cross compilers,
13408   # most powerpc-linux boxes support dynamic linking these days and
13409   # people can always --disable-shared, the test was removed, and we
13410   # assume the GNU/Linux dynamic linker is in use.
13411   dynamic_linker='GNU/Linux ld.so'
13412   ;;
13413
13414 knetbsd*-gnu)
13415   version_type=linux
13416   need_lib_prefix=no
13417   need_version=no
13418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13419   soname_spec='${libname}${release}${shared_ext}$major'
13420   shlibpath_var=LD_LIBRARY_PATH
13421   shlibpath_overrides_runpath=no
13422   hardcode_into_libs=yes
13423   dynamic_linker='GNU ld.so'
13424   ;;
13425
13426 netbsd*)
13427   version_type=sunos
13428   need_lib_prefix=no
13429   need_version=no
13430   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13431     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13432     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13433     dynamic_linker='NetBSD (a.out) ld.so'
13434   else
13435     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13436     soname_spec='${libname}${release}${shared_ext}$major'
13437     dynamic_linker='NetBSD ld.elf_so'
13438   fi
13439   shlibpath_var=LD_LIBRARY_PATH
13440   shlibpath_overrides_runpath=yes
13441   hardcode_into_libs=yes
13442   ;;
13443
13444 newsos6)
13445   version_type=linux
13446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13447   shlibpath_var=LD_LIBRARY_PATH
13448   shlibpath_overrides_runpath=yes
13449   ;;
13450
13451 nto-qnx*)
13452   version_type=linux
13453   need_lib_prefix=no
13454   need_version=no
13455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13456   soname_spec='${libname}${release}${shared_ext}$major'
13457   shlibpath_var=LD_LIBRARY_PATH
13458   shlibpath_overrides_runpath=yes
13459   ;;
13460
13461 openbsd*)
13462   version_type=sunos
13463   need_lib_prefix=no
13464   need_version=no
13465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13466   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13467   shlibpath_var=LD_LIBRARY_PATH
13468   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13469     case $host_os in
13470       openbsd2.[89] | openbsd2.[89].*)
13471         shlibpath_overrides_runpath=no
13472         ;;
13473       *)
13474         shlibpath_overrides_runpath=yes
13475         ;;
13476       esac
13477   else
13478     shlibpath_overrides_runpath=yes
13479   fi
13480   ;;
13481
13482 os2*)
13483   libname_spec='$name'
13484   shrext_cmds=".dll"
13485   need_lib_prefix=no
13486   library_names_spec='$libname${shared_ext} $libname.a'
13487   dynamic_linker='OS/2 ld.exe'
13488   shlibpath_var=LIBPATH
13489   ;;
13490
13491 osf3* | osf4* | osf5*)
13492   version_type=osf
13493   need_lib_prefix=no
13494   need_version=no
13495   soname_spec='${libname}${release}${shared_ext}$major'
13496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13497   shlibpath_var=LD_LIBRARY_PATH
13498   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13499   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13500   ;;
13501
13502 sco3.2v5*)
13503   version_type=osf
13504   soname_spec='${libname}${release}${shared_ext}$major'
13505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13506   shlibpath_var=LD_LIBRARY_PATH
13507   ;;
13508
13509 solaris*)
13510   version_type=linux
13511   need_lib_prefix=no
13512   need_version=no
13513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13514   soname_spec='${libname}${release}${shared_ext}$major'
13515   shlibpath_var=LD_LIBRARY_PATH
13516   shlibpath_overrides_runpath=yes
13517   hardcode_into_libs=yes
13518   # ldd complains unless libraries are executable
13519   postinstall_cmds='chmod +x $lib'
13520   ;;
13521
13522 sunos4*)
13523   version_type=sunos
13524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13525   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13526   shlibpath_var=LD_LIBRARY_PATH
13527   shlibpath_overrides_runpath=yes
13528   if test "$with_gnu_ld" = yes; then
13529     need_lib_prefix=no
13530   fi
13531   need_version=yes
13532   ;;
13533
13534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13535   version_type=linux
13536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13537   soname_spec='${libname}${release}${shared_ext}$major'
13538   shlibpath_var=LD_LIBRARY_PATH
13539   case $host_vendor in
13540     sni)
13541       shlibpath_overrides_runpath=no
13542       need_lib_prefix=no
13543       export_dynamic_flag_spec='${wl}-Blargedynsym'
13544       runpath_var=LD_RUN_PATH
13545       ;;
13546     siemens)
13547       need_lib_prefix=no
13548       ;;
13549     motorola)
13550       need_lib_prefix=no
13551       need_version=no
13552       shlibpath_overrides_runpath=no
13553       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13554       ;;
13555   esac
13556   ;;
13557
13558 sysv4*MP*)
13559   if test -d /usr/nec ;then
13560     version_type=linux
13561     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13562     soname_spec='$libname${shared_ext}.$major'
13563     shlibpath_var=LD_LIBRARY_PATH
13564   fi
13565   ;;
13566
13567 uts4*)
13568   version_type=linux
13569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13570   soname_spec='${libname}${release}${shared_ext}$major'
13571   shlibpath_var=LD_LIBRARY_PATH
13572   ;;
13573
13574 *)
13575   dynamic_linker=no
13576   ;;
13577 esac
13578 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13579 echo "${ECHO_T}$dynamic_linker" >&6
13580 test "$dynamic_linker" = no && can_build_shared=no
13581
13582 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13583 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13584 hardcode_action=
13585 if test -n "$hardcode_libdir_flag_spec" || \
13586    test -n "$runpath_var" || \
13587    test "X$hardcode_automatic" = "Xyes" ; then
13588
13589   # We can hardcode non-existant directories.
13590   if test "$hardcode_direct" != no &&
13591      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13592      # have to relink, otherwise we might link with an installed library
13593      # when we should be linking with a yet-to-be-installed one
13594      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13595      test "$hardcode_minus_L" != no; then
13596     # Linking always hardcodes the temporary library directory.
13597     hardcode_action=relink
13598   else
13599     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13600     hardcode_action=immediate
13601   fi
13602 else
13603   # We cannot hardcode anything, or else we can only hardcode existing
13604   # directories.
13605   hardcode_action=unsupported
13606 fi
13607 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13608 echo "${ECHO_T}$hardcode_action" >&6
13609
13610 if test "$hardcode_action" = relink; then
13611   # Fast installation is not supported
13612   enable_fast_install=no
13613 elif test "$shlibpath_overrides_runpath" = yes ||
13614      test "$enable_shared" = no; then
13615   # Fast installation is not necessary
13616   enable_fast_install=needless
13617 fi
13618
13619 striplib=
13620 old_striplib=
13621 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13622 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13623 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13624   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13625   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13626   echo "$as_me:$LINENO: result: yes" >&5
13627 echo "${ECHO_T}yes" >&6
13628 else
13629 # FIXME - insert some real tests, host_os isn't really good enough
13630   case $host_os in
13631    darwin*)
13632        if test -n "$STRIP" ; then
13633          striplib="$STRIP -x"
13634          echo "$as_me:$LINENO: result: yes" >&5
13635 echo "${ECHO_T}yes" >&6
13636        else
13637   echo "$as_me:$LINENO: result: no" >&5
13638 echo "${ECHO_T}no" >&6
13639 fi
13640        ;;
13641    *)
13642   echo "$as_me:$LINENO: result: no" >&5
13643 echo "${ECHO_T}no" >&6
13644     ;;
13645   esac
13646 fi
13647
13648 if test "x$enable_dlopen" != xyes; then
13649   enable_dlopen=unknown
13650   enable_dlopen_self=unknown
13651   enable_dlopen_self_static=unknown
13652 else
13653   lt_cv_dlopen=no
13654   lt_cv_dlopen_libs=
13655
13656   case $host_os in
13657   beos*)
13658     lt_cv_dlopen="load_add_on"
13659     lt_cv_dlopen_libs=
13660     lt_cv_dlopen_self=yes
13661     ;;
13662
13663   mingw* | pw32*)
13664     lt_cv_dlopen="LoadLibrary"
13665     lt_cv_dlopen_libs=
13666    ;;
13667
13668   cygwin*)
13669     lt_cv_dlopen="dlopen"
13670     lt_cv_dlopen_libs=
13671    ;;
13672
13673   darwin*)
13674   # if libdl is installed we need to link against it
13675     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13676 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13677 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13678   echo $ECHO_N "(cached) $ECHO_C" >&6
13679 else
13680   ac_check_lib_save_LIBS=$LIBS
13681 LIBS="-ldl  $LIBS"
13682 cat >conftest.$ac_ext <<_ACEOF
13683 /* confdefs.h.  */
13684 _ACEOF
13685 cat confdefs.h >>conftest.$ac_ext
13686 cat >>conftest.$ac_ext <<_ACEOF
13687 /* end confdefs.h.  */
13688
13689 /* Override any gcc2 internal prototype to avoid an error.  */
13690 #ifdef __cplusplus
13691 extern "C"
13692 #endif
13693 /* We use char because int might match the return type of a gcc2
13694    builtin and then its argument prototype would still apply.  */
13695 char dlopen ();
13696 int
13697 main ()
13698 {
13699 dlopen ();
13700   ;
13701   return 0;
13702 }
13703 _ACEOF
13704 rm -f conftest.$ac_objext conftest$ac_exeext
13705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13706   (eval $ac_link) 2>conftest.er1
13707   ac_status=$?
13708   grep -v '^ *+' conftest.er1 >conftest.err
13709   rm -f conftest.er1
13710   cat conftest.err >&5
13711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); } &&
13713          { ac_try='test -z "$ac_c_werror_flag"
13714                          || test ! -s conftest.err'
13715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716   (eval $ac_try) 2>&5
13717   ac_status=$?
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); }; } &&
13720          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13726   ac_cv_lib_dl_dlopen=yes
13727 else
13728   echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13730
13731 ac_cv_lib_dl_dlopen=no
13732 fi
13733 rm -f conftest.err conftest.$ac_objext \
13734       conftest$ac_exeext conftest.$ac_ext
13735 LIBS=$ac_check_lib_save_LIBS
13736 fi
13737 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13738 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13739 if test $ac_cv_lib_dl_dlopen = yes; then
13740   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13741 else
13742
13743     lt_cv_dlopen="dyld"
13744     lt_cv_dlopen_libs=
13745     lt_cv_dlopen_self=yes
13746
13747 fi
13748
13749    ;;
13750
13751   *)
13752     echo "$as_me:$LINENO: checking for shl_load" >&5
13753 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13754 if test "${ac_cv_func_shl_load+set}" = set; then
13755   echo $ECHO_N "(cached) $ECHO_C" >&6
13756 else
13757   cat >conftest.$ac_ext <<_ACEOF
13758 /* confdefs.h.  */
13759 _ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h.  */
13763 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13765 #define shl_load innocuous_shl_load
13766
13767 /* System header to define __stub macros and hopefully few prototypes,
13768     which can conflict with char shl_load (); below.
13769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13770     <limits.h> exists even on freestanding compilers.  */
13771
13772 #ifdef __STDC__
13773 # include <limits.h>
13774 #else
13775 # include <assert.h>
13776 #endif
13777
13778 #undef shl_load
13779
13780 /* Override any gcc2 internal prototype to avoid an error.  */
13781 #ifdef __cplusplus
13782 extern "C"
13783 {
13784 #endif
13785 /* We use char because int might match the return type of a gcc2
13786    builtin and then its argument prototype would still apply.  */
13787 char shl_load ();
13788 /* The GNU C library defines this for functions which it implements
13789     to always fail with ENOSYS.  Some functions are actually named
13790     something starting with __ and the normal name is an alias.  */
13791 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13792 choke me
13793 #else
13794 char (*f) () = shl_load;
13795 #endif
13796 #ifdef __cplusplus
13797 }
13798 #endif
13799
13800 int
13801 main ()
13802 {
13803 return f != shl_load;
13804   ;
13805   return 0;
13806 }
13807 _ACEOF
13808 rm -f conftest.$ac_objext conftest$ac_exeext
13809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13810   (eval $ac_link) 2>conftest.er1
13811   ac_status=$?
13812   grep -v '^ *+' conftest.er1 >conftest.err
13813   rm -f conftest.er1
13814   cat conftest.err >&5
13815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816   (exit $ac_status); } &&
13817          { ac_try='test -z "$ac_c_werror_flag"
13818                          || test ! -s conftest.err'
13819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820   (eval $ac_try) 2>&5
13821   ac_status=$?
13822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823   (exit $ac_status); }; } &&
13824          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13830   ac_cv_func_shl_load=yes
13831 else
13832   echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13834
13835 ac_cv_func_shl_load=no
13836 fi
13837 rm -f conftest.err conftest.$ac_objext \
13838       conftest$ac_exeext conftest.$ac_ext
13839 fi
13840 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13841 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13842 if test $ac_cv_func_shl_load = yes; then
13843   lt_cv_dlopen="shl_load"
13844 else
13845   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13846 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13847 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13848   echo $ECHO_N "(cached) $ECHO_C" >&6
13849 else
13850   ac_check_lib_save_LIBS=$LIBS
13851 LIBS="-ldld  $LIBS"
13852 cat >conftest.$ac_ext <<_ACEOF
13853 /* confdefs.h.  */
13854 _ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h.  */
13858
13859 /* Override any gcc2 internal prototype to avoid an error.  */
13860 #ifdef __cplusplus
13861 extern "C"
13862 #endif
13863 /* We use char because int might match the return type of a gcc2
13864    builtin and then its argument prototype would still apply.  */
13865 char shl_load ();
13866 int
13867 main ()
13868 {
13869 shl_load ();
13870   ;
13871   return 0;
13872 }
13873 _ACEOF
13874 rm -f conftest.$ac_objext conftest$ac_exeext
13875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13876   (eval $ac_link) 2>conftest.er1
13877   ac_status=$?
13878   grep -v '^ *+' conftest.er1 >conftest.err
13879   rm -f conftest.er1
13880   cat conftest.err >&5
13881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882   (exit $ac_status); } &&
13883          { ac_try='test -z "$ac_c_werror_flag"
13884                          || test ! -s conftest.err'
13885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886   (eval $ac_try) 2>&5
13887   ac_status=$?
13888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889   (exit $ac_status); }; } &&
13890          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13896   ac_cv_lib_dld_shl_load=yes
13897 else
13898   echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13900
13901 ac_cv_lib_dld_shl_load=no
13902 fi
13903 rm -f conftest.err conftest.$ac_objext \
13904       conftest$ac_exeext conftest.$ac_ext
13905 LIBS=$ac_check_lib_save_LIBS
13906 fi
13907 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13908 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13909 if test $ac_cv_lib_dld_shl_load = yes; then
13910   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13911 else
13912   echo "$as_me:$LINENO: checking for dlopen" >&5
13913 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13914 if test "${ac_cv_func_dlopen+set}" = set; then
13915   echo $ECHO_N "(cached) $ECHO_C" >&6
13916 else
13917   cat >conftest.$ac_ext <<_ACEOF
13918 /* confdefs.h.  */
13919 _ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h.  */
13923 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13925 #define dlopen innocuous_dlopen
13926
13927 /* System header to define __stub macros and hopefully few prototypes,
13928     which can conflict with char dlopen (); below.
13929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13930     <limits.h> exists even on freestanding compilers.  */
13931
13932 #ifdef __STDC__
13933 # include <limits.h>
13934 #else
13935 # include <assert.h>
13936 #endif
13937
13938 #undef dlopen
13939
13940 /* Override any gcc2 internal prototype to avoid an error.  */
13941 #ifdef __cplusplus
13942 extern "C"
13943 {
13944 #endif
13945 /* We use char because int might match the return type of a gcc2
13946    builtin and then its argument prototype would still apply.  */
13947 char dlopen ();
13948 /* The GNU C library defines this for functions which it implements
13949     to always fail with ENOSYS.  Some functions are actually named
13950     something starting with __ and the normal name is an alias.  */
13951 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13952 choke me
13953 #else
13954 char (*f) () = dlopen;
13955 #endif
13956 #ifdef __cplusplus
13957 }
13958 #endif
13959
13960 int
13961 main ()
13962 {
13963 return f != dlopen;
13964   ;
13965   return 0;
13966 }
13967 _ACEOF
13968 rm -f conftest.$ac_objext conftest$ac_exeext
13969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13970   (eval $ac_link) 2>conftest.er1
13971   ac_status=$?
13972   grep -v '^ *+' conftest.er1 >conftest.err
13973   rm -f conftest.er1
13974   cat conftest.err >&5
13975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976   (exit $ac_status); } &&
13977          { ac_try='test -z "$ac_c_werror_flag"
13978                          || test ! -s conftest.err'
13979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980   (eval $ac_try) 2>&5
13981   ac_status=$?
13982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983   (exit $ac_status); }; } &&
13984          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13990   ac_cv_func_dlopen=yes
13991 else
13992   echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.$ac_ext >&5
13994
13995 ac_cv_func_dlopen=no
13996 fi
13997 rm -f conftest.err conftest.$ac_objext \
13998       conftest$ac_exeext conftest.$ac_ext
13999 fi
14000 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14001 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14002 if test $ac_cv_func_dlopen = yes; then
14003   lt_cv_dlopen="dlopen"
14004 else
14005   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14006 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14007 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14008   echo $ECHO_N "(cached) $ECHO_C" >&6
14009 else
14010   ac_check_lib_save_LIBS=$LIBS
14011 LIBS="-ldl  $LIBS"
14012 cat >conftest.$ac_ext <<_ACEOF
14013 /* confdefs.h.  */
14014 _ACEOF
14015 cat confdefs.h >>conftest.$ac_ext
14016 cat >>conftest.$ac_ext <<_ACEOF
14017 /* end confdefs.h.  */
14018
14019 /* Override any gcc2 internal prototype to avoid an error.  */
14020 #ifdef __cplusplus
14021 extern "C"
14022 #endif
14023 /* We use char because int might match the return type of a gcc2
14024    builtin and then its argument prototype would still apply.  */
14025 char dlopen ();
14026 int
14027 main ()
14028 {
14029 dlopen ();
14030   ;
14031   return 0;
14032 }
14033 _ACEOF
14034 rm -f conftest.$ac_objext conftest$ac_exeext
14035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14036   (eval $ac_link) 2>conftest.er1
14037   ac_status=$?
14038   grep -v '^ *+' conftest.er1 >conftest.err
14039   rm -f conftest.er1
14040   cat conftest.err >&5
14041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042   (exit $ac_status); } &&
14043          { ac_try='test -z "$ac_c_werror_flag"
14044                          || test ! -s conftest.err'
14045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046   (eval $ac_try) 2>&5
14047   ac_status=$?
14048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049   (exit $ac_status); }; } &&
14050          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14056   ac_cv_lib_dl_dlopen=yes
14057 else
14058   echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14060
14061 ac_cv_lib_dl_dlopen=no
14062 fi
14063 rm -f conftest.err conftest.$ac_objext \
14064       conftest$ac_exeext conftest.$ac_ext
14065 LIBS=$ac_check_lib_save_LIBS
14066 fi
14067 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14068 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14069 if test $ac_cv_lib_dl_dlopen = yes; then
14070   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14071 else
14072   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14073 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14074 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14075   echo $ECHO_N "(cached) $ECHO_C" >&6
14076 else
14077   ac_check_lib_save_LIBS=$LIBS
14078 LIBS="-lsvld  $LIBS"
14079 cat >conftest.$ac_ext <<_ACEOF
14080 /* confdefs.h.  */
14081 _ACEOF
14082 cat confdefs.h >>conftest.$ac_ext
14083 cat >>conftest.$ac_ext <<_ACEOF
14084 /* end confdefs.h.  */
14085
14086 /* Override any gcc2 internal prototype to avoid an error.  */
14087 #ifdef __cplusplus
14088 extern "C"
14089 #endif
14090 /* We use char because int might match the return type of a gcc2
14091    builtin and then its argument prototype would still apply.  */
14092 char dlopen ();
14093 int
14094 main ()
14095 {
14096 dlopen ();
14097   ;
14098   return 0;
14099 }
14100 _ACEOF
14101 rm -f conftest.$ac_objext conftest$ac_exeext
14102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14103   (eval $ac_link) 2>conftest.er1
14104   ac_status=$?
14105   grep -v '^ *+' conftest.er1 >conftest.err
14106   rm -f conftest.er1
14107   cat conftest.err >&5
14108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109   (exit $ac_status); } &&
14110          { ac_try='test -z "$ac_c_werror_flag"
14111                          || test ! -s conftest.err'
14112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113   (eval $ac_try) 2>&5
14114   ac_status=$?
14115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116   (exit $ac_status); }; } &&
14117          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14123   ac_cv_lib_svld_dlopen=yes
14124 else
14125   echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14127
14128 ac_cv_lib_svld_dlopen=no
14129 fi
14130 rm -f conftest.err conftest.$ac_objext \
14131       conftest$ac_exeext conftest.$ac_ext
14132 LIBS=$ac_check_lib_save_LIBS
14133 fi
14134 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14135 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14136 if test $ac_cv_lib_svld_dlopen = yes; then
14137   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14138 else
14139   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14140 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14141 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14142   echo $ECHO_N "(cached) $ECHO_C" >&6
14143 else
14144   ac_check_lib_save_LIBS=$LIBS
14145 LIBS="-ldld  $LIBS"
14146 cat >conftest.$ac_ext <<_ACEOF
14147 /* confdefs.h.  */
14148 _ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h.  */
14152
14153 /* Override any gcc2 internal prototype to avoid an error.  */
14154 #ifdef __cplusplus
14155 extern "C"
14156 #endif
14157 /* We use char because int might match the return type of a gcc2
14158    builtin and then its argument prototype would still apply.  */
14159 char dld_link ();
14160 int
14161 main ()
14162 {
14163 dld_link ();
14164   ;
14165   return 0;
14166 }
14167 _ACEOF
14168 rm -f conftest.$ac_objext conftest$ac_exeext
14169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14170   (eval $ac_link) 2>conftest.er1
14171   ac_status=$?
14172   grep -v '^ *+' conftest.er1 >conftest.err
14173   rm -f conftest.er1
14174   cat conftest.err >&5
14175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176   (exit $ac_status); } &&
14177          { ac_try='test -z "$ac_c_werror_flag"
14178                          || test ! -s conftest.err'
14179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180   (eval $ac_try) 2>&5
14181   ac_status=$?
14182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183   (exit $ac_status); }; } &&
14184          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14190   ac_cv_lib_dld_dld_link=yes
14191 else
14192   echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14194
14195 ac_cv_lib_dld_dld_link=no
14196 fi
14197 rm -f conftest.err conftest.$ac_objext \
14198       conftest$ac_exeext conftest.$ac_ext
14199 LIBS=$ac_check_lib_save_LIBS
14200 fi
14201 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14202 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14203 if test $ac_cv_lib_dld_dld_link = yes; then
14204   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14205 fi
14206
14207
14208 fi
14209
14210
14211 fi
14212
14213
14214 fi
14215
14216
14217 fi
14218
14219
14220 fi
14221
14222     ;;
14223   esac
14224
14225   if test "x$lt_cv_dlopen" != xno; then
14226     enable_dlopen=yes
14227   else
14228     enable_dlopen=no
14229   fi
14230
14231   case $lt_cv_dlopen in
14232   dlopen)
14233     save_CPPFLAGS="$CPPFLAGS"
14234     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14235
14236     save_LDFLAGS="$LDFLAGS"
14237     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14238
14239     save_LIBS="$LIBS"
14240     LIBS="$lt_cv_dlopen_libs $LIBS"
14241
14242     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14243 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14244 if test "${lt_cv_dlopen_self+set}" = set; then
14245   echo $ECHO_N "(cached) $ECHO_C" >&6
14246 else
14247           if test "$cross_compiling" = yes; then :
14248   lt_cv_dlopen_self=cross
14249 else
14250   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14251   lt_status=$lt_dlunknown
14252   cat > conftest.$ac_ext <<EOF
14253 #line 14253 "configure"
14254 #include "confdefs.h"
14255
14256 #if HAVE_DLFCN_H
14257 #include <dlfcn.h>
14258 #endif
14259
14260 #include <stdio.h>
14261
14262 #ifdef RTLD_GLOBAL
14263 #  define LT_DLGLOBAL           RTLD_GLOBAL
14264 #else
14265 #  ifdef DL_GLOBAL
14266 #    define LT_DLGLOBAL         DL_GLOBAL
14267 #  else
14268 #    define LT_DLGLOBAL         0
14269 #  endif
14270 #endif
14271
14272 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14273    find out it does not work in some platform. */
14274 #ifndef LT_DLLAZY_OR_NOW
14275 #  ifdef RTLD_LAZY
14276 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14277 #  else
14278 #    ifdef DL_LAZY
14279 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14280 #    else
14281 #      ifdef RTLD_NOW
14282 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14283 #      else
14284 #        ifdef DL_NOW
14285 #          define LT_DLLAZY_OR_NOW      DL_NOW
14286 #        else
14287 #          define LT_DLLAZY_OR_NOW      0
14288 #        endif
14289 #      endif
14290 #    endif
14291 #  endif
14292 #endif
14293
14294 #ifdef __cplusplus
14295 extern "C" void exit (int);
14296 #endif
14297
14298 void fnord() { int i=42;}
14299 int main ()
14300 {
14301   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14302   int status = $lt_dlunknown;
14303
14304   if (self)
14305     {
14306       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14307       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14308       /* dlclose (self); */
14309     }
14310
14311     exit (status);
14312 }
14313 EOF
14314   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14315   (eval $ac_link) 2>&5
14316   ac_status=$?
14317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14319     (./conftest; exit; ) 2>/dev/null
14320     lt_status=$?
14321     case x$lt_status in
14322       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14323       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14324       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14325     esac
14326   else :
14327     # compilation failed
14328     lt_cv_dlopen_self=no
14329   fi
14330 fi
14331 rm -fr conftest*
14332
14333
14334 fi
14335 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14336 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14337
14338     if test "x$lt_cv_dlopen_self" = xyes; then
14339       LDFLAGS="$LDFLAGS $link_static_flag"
14340       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14341 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14342 if test "${lt_cv_dlopen_self_static+set}" = set; then
14343   echo $ECHO_N "(cached) $ECHO_C" >&6
14344 else
14345           if test "$cross_compiling" = yes; then :
14346   lt_cv_dlopen_self_static=cross
14347 else
14348   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14349   lt_status=$lt_dlunknown
14350   cat > conftest.$ac_ext <<EOF
14351 #line 14351 "configure"
14352 #include "confdefs.h"
14353
14354 #if HAVE_DLFCN_H
14355 #include <dlfcn.h>
14356 #endif
14357
14358 #include <stdio.h>
14359
14360 #ifdef RTLD_GLOBAL
14361 #  define LT_DLGLOBAL           RTLD_GLOBAL
14362 #else
14363 #  ifdef DL_GLOBAL
14364 #    define LT_DLGLOBAL         DL_GLOBAL
14365 #  else
14366 #    define LT_DLGLOBAL         0
14367 #  endif
14368 #endif
14369
14370 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14371    find out it does not work in some platform. */
14372 #ifndef LT_DLLAZY_OR_NOW
14373 #  ifdef RTLD_LAZY
14374 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14375 #  else
14376 #    ifdef DL_LAZY
14377 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14378 #    else
14379 #      ifdef RTLD_NOW
14380 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14381 #      else
14382 #        ifdef DL_NOW
14383 #          define LT_DLLAZY_OR_NOW      DL_NOW
14384 #        else
14385 #          define LT_DLLAZY_OR_NOW      0
14386 #        endif
14387 #      endif
14388 #    endif
14389 #  endif
14390 #endif
14391
14392 #ifdef __cplusplus
14393 extern "C" void exit (int);
14394 #endif
14395
14396 void fnord() { int i=42;}
14397 int main ()
14398 {
14399   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14400   int status = $lt_dlunknown;
14401
14402   if (self)
14403     {
14404       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14405       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14406       /* dlclose (self); */
14407     }
14408
14409     exit (status);
14410 }
14411 EOF
14412   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14413   (eval $ac_link) 2>&5
14414   ac_status=$?
14415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14417     (./conftest; exit; ) 2>/dev/null
14418     lt_status=$?
14419     case x$lt_status in
14420       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14421       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14422       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14423     esac
14424   else :
14425     # compilation failed
14426     lt_cv_dlopen_self_static=no
14427   fi
14428 fi
14429 rm -fr conftest*
14430
14431
14432 fi
14433 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14434 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14435     fi
14436
14437     CPPFLAGS="$save_CPPFLAGS"
14438     LDFLAGS="$save_LDFLAGS"
14439     LIBS="$save_LIBS"
14440     ;;
14441   esac
14442
14443   case $lt_cv_dlopen_self in
14444   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14445   *) enable_dlopen_self=unknown ;;
14446   esac
14447
14448   case $lt_cv_dlopen_self_static in
14449   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14450   *) enable_dlopen_self_static=unknown ;;
14451   esac
14452 fi
14453
14454
14455 # Report which librarie types wil actually be built
14456 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14457 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14458 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14459 echo "${ECHO_T}$can_build_shared" >&6
14460
14461 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14462 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14463 test "$can_build_shared" = "no" && enable_shared=no
14464
14465 # On AIX, shared libraries and static libraries use the same namespace, and
14466 # are all built from PIC.
14467 case "$host_os" in
14468 aix3*)
14469   test "$enable_shared" = yes && enable_static=no
14470   if test -n "$RANLIB"; then
14471     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14472     postinstall_cmds='$RANLIB $lib'
14473   fi
14474   ;;
14475
14476 aix4* | aix5*)
14477   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14478     test "$enable_shared" = yes && enable_static=no
14479   fi
14480     ;;
14481 esac
14482 echo "$as_me:$LINENO: result: $enable_shared" >&5
14483 echo "${ECHO_T}$enable_shared" >&6
14484
14485 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14486 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14487 # Make sure either enable_shared or enable_static is yes.
14488 test "$enable_shared" = yes || enable_static=yes
14489 echo "$as_me:$LINENO: result: $enable_static" >&5
14490 echo "${ECHO_T}$enable_static" >&6
14491
14492 # The else clause should only fire when bootstrapping the
14493 # libtool distribution, otherwise you forgot to ship ltmain.sh
14494 # with your package, and you will get complaints that there are
14495 # no rules to generate ltmain.sh.
14496 if test -f "$ltmain"; then
14497   # See if we are running on zsh, and set the options which allow our commands through
14498   # without removal of \ escapes.
14499   if test -n "${ZSH_VERSION+set}" ; then
14500     setopt NO_GLOB_SUBST
14501   fi
14502   # Now quote all the things that may contain metacharacters while being
14503   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14504   # variables and quote the copies for generation of the libtool script.
14505   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14506     SED SHELL STRIP \
14507     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14508     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14509     deplibs_check_method reload_flag reload_cmds need_locks \
14510     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14511     lt_cv_sys_global_symbol_to_c_name_address \
14512     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14513     old_postinstall_cmds old_postuninstall_cmds \
14514     compiler \
14515     CC \
14516     LD \
14517     lt_prog_compiler_wl \
14518     lt_prog_compiler_pic \
14519     lt_prog_compiler_static \
14520     lt_prog_compiler_no_builtin_flag \
14521     export_dynamic_flag_spec \
14522     thread_safe_flag_spec \
14523     whole_archive_flag_spec \
14524     enable_shared_with_static_runtimes \
14525     old_archive_cmds \
14526     old_archive_from_new_cmds \
14527     predep_objects \
14528     postdep_objects \
14529     predeps \
14530     postdeps \
14531     compiler_lib_search_path \
14532     archive_cmds \
14533     archive_expsym_cmds \
14534     postinstall_cmds \
14535     postuninstall_cmds \
14536     old_archive_from_expsyms_cmds \
14537     allow_undefined_flag \
14538     no_undefined_flag \
14539     export_symbols_cmds \
14540     hardcode_libdir_flag_spec \
14541     hardcode_libdir_flag_spec_ld \
14542     hardcode_libdir_separator \
14543     hardcode_automatic \
14544     module_cmds \
14545     module_expsym_cmds \
14546     lt_cv_prog_compiler_c_o \
14547     exclude_expsyms \
14548     include_expsyms; do
14549
14550     case $var in
14551     old_archive_cmds | \
14552     old_archive_from_new_cmds | \
14553     archive_cmds | \
14554     archive_expsym_cmds | \
14555     module_cmds | \
14556     module_expsym_cmds | \
14557     old_archive_from_expsyms_cmds | \
14558     export_symbols_cmds | \
14559     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14560     postinstall_cmds | postuninstall_cmds | \
14561     old_postinstall_cmds | old_postuninstall_cmds | \
14562     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14563       # Double-quote double-evaled strings.
14564       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14565       ;;
14566     *)
14567       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14568       ;;
14569     esac
14570   done
14571
14572   case $lt_echo in
14573   *'\$0 --fallback-echo"')
14574     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14575     ;;
14576   esac
14577
14578 cfgfile="${ofile}T"
14579   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14580   $rm -f "$cfgfile"
14581   { echo "$as_me:$LINENO: creating $ofile" >&5
14582 echo "$as_me: creating $ofile" >&6;}
14583
14584   cat <<__EOF__ >> "$cfgfile"
14585 #! $SHELL
14586
14587 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14588 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14589 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14590 #
14591 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14592 # Free Software Foundation, Inc.
14593 #
14594 # This file is part of GNU Libtool:
14595 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14596 #
14597 # This program is free software; you can redistribute it and/or modify
14598 # it under the terms of the GNU General Public License as published by
14599 # the Free Software Foundation; either version 2 of the License, or
14600 # (at your option) any later version.
14601 #
14602 # This program is distributed in the hope that it will be useful, but
14603 # WITHOUT ANY WARRANTY; without even the implied warranty of
14604 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14605 # General Public License for more details.
14606 #
14607 # You should have received a copy of the GNU General Public License
14608 # along with this program; if not, write to the Free Software
14609 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14610 #
14611 # As a special exception to the GNU General Public License, if you
14612 # distribute this file as part of a program that contains a
14613 # configuration script generated by Autoconf, you may include it under
14614 # the same distribution terms that you use for the rest of that program.
14615
14616 # A sed program that does not truncate output.
14617 SED=$lt_SED
14618
14619 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14620 Xsed="$SED -e s/^X//"
14621
14622 # The HP-UX ksh and POSIX shell print the target directory to stdout
14623 # if CDPATH is set.
14624 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14625
14626 # The names of the tagged configurations supported by this script.
14627 available_tags=
14628
14629 # ### BEGIN LIBTOOL CONFIG
14630
14631 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14632
14633 # Shell to use when invoking shell scripts.
14634 SHELL=$lt_SHELL
14635
14636 # Whether or not to build shared libraries.
14637 build_libtool_libs=$enable_shared
14638
14639 # Whether or not to build static libraries.
14640 build_old_libs=$enable_static
14641
14642 # Whether or not to add -lc for building shared libraries.
14643 build_libtool_need_lc=$archive_cmds_need_lc
14644
14645 # Whether or not to disallow shared libs when runtime libs are static
14646 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14647
14648 # Whether or not to optimize for fast installation.
14649 fast_install=$enable_fast_install
14650
14651 # The host system.
14652 host_alias=$host_alias
14653 host=$host
14654
14655 # An echo program that does not interpret backslashes.
14656 echo=$lt_echo
14657
14658 # The archiver.
14659 AR=$lt_AR
14660 AR_FLAGS=$lt_AR_FLAGS
14661
14662 # A C compiler.
14663 LTCC=$lt_LTCC
14664
14665 # A language-specific compiler.
14666 CC=$lt_compiler
14667
14668 # Is the compiler the GNU C compiler?
14669 with_gcc=$GCC
14670
14671 # An ERE matcher.
14672 EGREP=$lt_EGREP
14673
14674 # The linker used to build libraries.
14675 LD=$lt_LD
14676
14677 # Whether we need hard or soft links.
14678 LN_S=$lt_LN_S
14679
14680 # A BSD-compatible nm program.
14681 NM=$lt_NM
14682
14683 # A symbol stripping program
14684 STRIP=$lt_STRIP
14685
14686 # Used to examine libraries when file_magic_cmd begins "file"
14687 MAGIC_CMD=$MAGIC_CMD
14688
14689 # Used on cygwin: DLL creation program.
14690 DLLTOOL="$DLLTOOL"
14691
14692 # Used on cygwin: object dumper.
14693 OBJDUMP="$OBJDUMP"
14694
14695 # Used on cygwin: assembler.
14696 AS="$AS"
14697
14698 # The name of the directory that contains temporary libtool files.
14699 objdir=$objdir
14700
14701 # How to create reloadable object files.
14702 reload_flag=$lt_reload_flag
14703 reload_cmds=$lt_reload_cmds
14704
14705 # How to pass a linker flag through the compiler.
14706 wl=$lt_lt_prog_compiler_wl
14707
14708 # Object file suffix (normally "o").
14709 objext="$ac_objext"
14710
14711 # Old archive suffix (normally "a").
14712 libext="$libext"
14713
14714 # Shared library suffix (normally ".so").
14715 shrext_cmds='$shrext_cmds'
14716
14717 # Executable file suffix (normally "").
14718 exeext="$exeext"
14719
14720 # Additional compiler flags for building library objects.
14721 pic_flag=$lt_lt_prog_compiler_pic
14722 pic_mode=$pic_mode
14723
14724 # What is the maximum length of a command?
14725 max_cmd_len=$lt_cv_sys_max_cmd_len
14726
14727 # Does compiler simultaneously support -c and -o options?
14728 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14729
14730 # Must we lock files when doing compilation ?
14731 need_locks=$lt_need_locks
14732
14733 # Do we need the lib prefix for modules?
14734 need_lib_prefix=$need_lib_prefix
14735
14736 # Do we need a version for libraries?
14737 need_version=$need_version
14738
14739 # Whether dlopen is supported.
14740 dlopen_support=$enable_dlopen
14741
14742 # Whether dlopen of programs is supported.
14743 dlopen_self=$enable_dlopen_self
14744
14745 # Whether dlopen of statically linked programs is supported.
14746 dlopen_self_static=$enable_dlopen_self_static
14747
14748 # Compiler flag to prevent dynamic linking.
14749 link_static_flag=$lt_lt_prog_compiler_static
14750
14751 # Compiler flag to turn off builtin functions.
14752 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14753
14754 # Compiler flag to allow reflexive dlopens.
14755 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14756
14757 # Compiler flag to generate shared objects directly from archives.
14758 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14759
14760 # Compiler flag to generate thread-safe objects.
14761 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14762
14763 # Library versioning type.
14764 version_type=$version_type
14765
14766 # Format of library name prefix.
14767 libname_spec=$lt_libname_spec
14768
14769 # List of archive names.  First name is the real one, the rest are links.
14770 # The last name is the one that the linker finds with -lNAME.
14771 library_names_spec=$lt_library_names_spec
14772
14773 # The coded name of the library, if different from the real name.
14774 soname_spec=$lt_soname_spec
14775
14776 # Commands used to build and install an old-style archive.
14777 RANLIB=$lt_RANLIB
14778 old_archive_cmds=$lt_old_archive_cmds
14779 old_postinstall_cmds=$lt_old_postinstall_cmds
14780 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14781
14782 # Create an old-style archive from a shared archive.
14783 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14784
14785 # Create a temporary old-style archive to link instead of a shared archive.
14786 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14787
14788 # Commands used to build and install a shared archive.
14789 archive_cmds=$lt_archive_cmds
14790 archive_expsym_cmds=$lt_archive_expsym_cmds
14791 postinstall_cmds=$lt_postinstall_cmds
14792 postuninstall_cmds=$lt_postuninstall_cmds
14793
14794 # Commands used to build a loadable module (assumed same as above if empty)
14795 module_cmds=$lt_module_cmds
14796 module_expsym_cmds=$lt_module_expsym_cmds
14797
14798 # Commands to strip libraries.
14799 old_striplib=$lt_old_striplib
14800 striplib=$lt_striplib
14801
14802 # Dependencies to place before the objects being linked to create a
14803 # shared library.
14804 predep_objects=$lt_predep_objects
14805
14806 # Dependencies to place after the objects being linked to create a
14807 # shared library.
14808 postdep_objects=$lt_postdep_objects
14809
14810 # Dependencies to place before the objects being linked to create a
14811 # shared library.
14812 predeps=$lt_predeps
14813
14814 # Dependencies to place after the objects being linked to create a
14815 # shared library.
14816 postdeps=$lt_postdeps
14817
14818 # The library search path used internally by the compiler when linking
14819 # a shared library.
14820 compiler_lib_search_path=$lt_compiler_lib_search_path
14821
14822 # Method to check whether dependent libraries are shared objects.
14823 deplibs_check_method=$lt_deplibs_check_method
14824
14825 # Command to use when deplibs_check_method == file_magic.
14826 file_magic_cmd=$lt_file_magic_cmd
14827
14828 # Flag that allows shared libraries with undefined symbols to be built.
14829 allow_undefined_flag=$lt_allow_undefined_flag
14830
14831 # Flag that forces no undefined symbols.
14832 no_undefined_flag=$lt_no_undefined_flag
14833
14834 # Commands used to finish a libtool library installation in a directory.
14835 finish_cmds=$lt_finish_cmds
14836
14837 # Same as above, but a single script fragment to be evaled but not shown.
14838 finish_eval=$lt_finish_eval
14839
14840 # Take the output of nm and produce a listing of raw symbols and C names.
14841 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14842
14843 # Transform the output of nm in a proper C declaration
14844 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14845
14846 # Transform the output of nm in a C name address pair
14847 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14848
14849 # This is the shared library runtime path variable.
14850 runpath_var=$runpath_var
14851
14852 # This is the shared library path variable.
14853 shlibpath_var=$shlibpath_var
14854
14855 # Is shlibpath searched before the hard-coded library search path?
14856 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14857
14858 # How to hardcode a shared library path into an executable.
14859 hardcode_action=$hardcode_action
14860
14861 # Whether we should hardcode library paths into libraries.
14862 hardcode_into_libs=$hardcode_into_libs
14863
14864 # Flag to hardcode \$libdir into a binary during linking.
14865 # This must work even if \$libdir does not exist.
14866 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14867
14868 # If ld is used when linking, flag to hardcode \$libdir into
14869 # a binary during linking. This must work even if \$libdir does
14870 # not exist.
14871 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14872
14873 # Whether we need a single -rpath flag with a separated argument.
14874 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14875
14876 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14877 # resulting binary.
14878 hardcode_direct=$hardcode_direct
14879
14880 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14881 # resulting binary.
14882 hardcode_minus_L=$hardcode_minus_L
14883
14884 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14885 # the resulting binary.
14886 hardcode_shlibpath_var=$hardcode_shlibpath_var
14887
14888 # Set to yes if building a shared library automatically hardcodes DIR into the library
14889 # and all subsequent libraries and executables linked against it.
14890 hardcode_automatic=$hardcode_automatic
14891
14892 # Variables whose values should be saved in libtool wrapper scripts and
14893 # restored at relink time.
14894 variables_saved_for_relink="$variables_saved_for_relink"
14895
14896 # Whether libtool must link a program against all its dependency libraries.
14897 link_all_deplibs=$link_all_deplibs
14898
14899 # Compile-time system search path for libraries
14900 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14901
14902 # Run-time system search path for libraries
14903 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14904
14905 # Fix the shell variable \$srcfile for the compiler.
14906 fix_srcfile_path="$fix_srcfile_path"
14907
14908 # Set to yes if exported symbols are required.
14909 always_export_symbols=$always_export_symbols
14910
14911 # The commands to list exported symbols.
14912 export_symbols_cmds=$lt_export_symbols_cmds
14913
14914 # The commands to extract the exported symbol list from a shared archive.
14915 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14916
14917 # Symbols that should not be listed in the preloaded symbols.
14918 exclude_expsyms=$lt_exclude_expsyms
14919
14920 # Symbols that must always be exported.
14921 include_expsyms=$lt_include_expsyms
14922
14923 # ### END LIBTOOL CONFIG
14924
14925 __EOF__
14926
14927
14928   case $host_os in
14929   aix3*)
14930     cat <<\EOF >> "$cfgfile"
14931
14932 # AIX sometimes has problems with the GCC collect2 program.  For some
14933 # reason, if we set the COLLECT_NAMES environment variable, the problems
14934 # vanish in a puff of smoke.
14935 if test "X${COLLECT_NAMES+set}" != Xset; then
14936   COLLECT_NAMES=
14937   export COLLECT_NAMES
14938 fi
14939 EOF
14940     ;;
14941   esac
14942
14943   # We use sed instead of cat because bash on DJGPP gets confused if
14944   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14945   # text mode, it properly converts lines to CR/LF.  This bash problem
14946   # is reportedly fixed, but why not run on old versions too?
14947   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14948
14949   mv -f "$cfgfile" "$ofile" || \
14950     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14951   chmod +x "$ofile"
14952
14953 else
14954   # If there is no Makefile yet, we rely on a make rule to execute
14955   # `config.status --recheck' to rerun these tests and create the
14956   # libtool script then.
14957   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14958   if test -f "$ltmain_in"; then
14959     test -f Makefile && make "$ltmain"
14960   fi
14961 fi
14962
14963
14964 ac_ext=c
14965 ac_cpp='$CPP $CPPFLAGS'
14966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14969
14970 CC="$lt_save_CC"
14971
14972
14973 # Check whether --with-tags or --without-tags was given.
14974 if test "${with_tags+set}" = set; then
14975   withval="$with_tags"
14976   tagnames="$withval"
14977 fi;
14978
14979 if test -f "$ltmain" && test -n "$tagnames"; then
14980   if test ! -f "${ofile}"; then
14981     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14982 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14983   fi
14984
14985   if test -z "$LTCC"; then
14986     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14987     if test -z "$LTCC"; then
14988       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14989 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14990     else
14991       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14992 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14993     fi
14994   fi
14995
14996   # Extract list of available tagged configurations in $ofile.
14997   # Note that this assumes the entire list is on one line.
14998   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14999
15000   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15001   for tagname in $tagnames; do
15002     IFS="$lt_save_ifs"
15003     # Check whether tagname contains only valid characters
15004     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15005     "") ;;
15006     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15007 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15008    { (exit 1); exit 1; }; }
15009         ;;
15010     esac
15011
15012     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15013     then
15014       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15015 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15016    { (exit 1); exit 1; }; }
15017     fi
15018
15019     # Update the list of available tags.
15020     if test -n "$tagname"; then
15021       echo appending configuration tag "$tagname" to $ofile
15022
15023       case $tagname in
15024       CXX)
15025         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15026             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15027             (test "X$CXX" != "Xg++"))) ; then
15028           ac_ext=cc
15029 ac_cpp='$CXXCPP $CPPFLAGS'
15030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15033
15034
15035
15036
15037 archive_cmds_need_lc_CXX=no
15038 allow_undefined_flag_CXX=
15039 always_export_symbols_CXX=no
15040 archive_expsym_cmds_CXX=
15041 export_dynamic_flag_spec_CXX=
15042 hardcode_direct_CXX=no
15043 hardcode_libdir_flag_spec_CXX=
15044 hardcode_libdir_flag_spec_ld_CXX=
15045 hardcode_libdir_separator_CXX=
15046 hardcode_minus_L_CXX=no
15047 hardcode_automatic_CXX=no
15048 module_cmds_CXX=
15049 module_expsym_cmds_CXX=
15050 link_all_deplibs_CXX=unknown
15051 old_archive_cmds_CXX=$old_archive_cmds
15052 no_undefined_flag_CXX=
15053 whole_archive_flag_spec_CXX=
15054 enable_shared_with_static_runtimes_CXX=no
15055
15056 # Dependencies to place before and after the object being linked:
15057 predep_objects_CXX=
15058 postdep_objects_CXX=
15059 predeps_CXX=
15060 postdeps_CXX=
15061 compiler_lib_search_path_CXX=
15062
15063 # Source file extension for C++ test sources.
15064 ac_ext=cc
15065
15066 # Object file extension for compiled C++ test sources.
15067 objext=o
15068 objext_CXX=$objext
15069
15070 # Code to be used in simple compile tests
15071 lt_simple_compile_test_code="int some_variable = 0;\n"
15072
15073 # Code to be used in simple link tests
15074 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15075
15076 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15077
15078 # If no C compiler was specified, use CC.
15079 LTCC=${LTCC-"$CC"}
15080
15081 # Allow CC to be a program name with arguments.
15082 compiler=$CC
15083
15084
15085 # Allow CC to be a program name with arguments.
15086 lt_save_CC=$CC
15087 lt_save_LD=$LD
15088 lt_save_GCC=$GCC
15089 GCC=$GXX
15090 lt_save_with_gnu_ld=$with_gnu_ld
15091 lt_save_path_LD=$lt_cv_path_LD
15092 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15093   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15094 else
15095   unset lt_cv_prog_gnu_ld
15096 fi
15097 if test -n "${lt_cv_path_LDCXX+set}"; then
15098   lt_cv_path_LD=$lt_cv_path_LDCXX
15099 else
15100   unset lt_cv_path_LD
15101 fi
15102 test -z "${LDCXX+set}" || LD=$LDCXX
15103 CC=${CXX-"c++"}
15104 compiler=$CC
15105 compiler_CXX=$CC
15106 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15107
15108 # We don't want -fno-exception wen compiling C++ code, so set the
15109 # no_builtin_flag separately
15110 if test "$GXX" = yes; then
15111   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15112 else
15113   lt_prog_compiler_no_builtin_flag_CXX=
15114 fi
15115
15116 if test "$GXX" = yes; then
15117   # Set up default GNU C++ configuration
15118
15119
15120 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15121 if test "${with_gnu_ld+set}" = set; then
15122   withval="$with_gnu_ld"
15123   test "$withval" = no || with_gnu_ld=yes
15124 else
15125   with_gnu_ld=no
15126 fi;
15127 ac_prog=ld
15128 if test "$GCC" = yes; then
15129   # Check if gcc -print-prog-name=ld gives a path.
15130   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15131 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15132   case $host in
15133   *-*-mingw*)
15134     # gcc leaves a trailing carriage return which upsets mingw
15135     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15136   *)
15137     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15138   esac
15139   case $ac_prog in
15140     # Accept absolute paths.
15141     [\\/]* | ?:[\\/]*)
15142       re_direlt='/[^/][^/]*/\.\./'
15143       # Canonicalize the pathname of ld
15144       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15145       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15146         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15147       done
15148       test -z "$LD" && LD="$ac_prog"
15149       ;;
15150   "")
15151     # If it fails, then pretend we aren't using GCC.
15152     ac_prog=ld
15153     ;;
15154   *)
15155     # If it is relative, then search for the first ld in PATH.
15156     with_gnu_ld=unknown
15157     ;;
15158   esac
15159 elif test "$with_gnu_ld" = yes; then
15160   echo "$as_me:$LINENO: checking for GNU ld" >&5
15161 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15162 else
15163   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15164 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15165 fi
15166 if test "${lt_cv_path_LD+set}" = set; then
15167   echo $ECHO_N "(cached) $ECHO_C" >&6
15168 else
15169   if test -z "$LD"; then
15170   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15171   for ac_dir in $PATH; do
15172     IFS="$lt_save_ifs"
15173     test -z "$ac_dir" && ac_dir=.
15174     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15175       lt_cv_path_LD="$ac_dir/$ac_prog"
15176       # Check to see if the program is GNU ld.  I'd rather use --version,
15177       # but apparently some GNU ld's only accept -v.
15178       # Break only if it was the GNU/non-GNU ld that we prefer.
15179       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15180       *GNU* | *'with BFD'*)
15181         test "$with_gnu_ld" != no && break
15182         ;;
15183       *)
15184         test "$with_gnu_ld" != yes && break
15185         ;;
15186       esac
15187     fi
15188   done
15189   IFS="$lt_save_ifs"
15190 else
15191   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15192 fi
15193 fi
15194
15195 LD="$lt_cv_path_LD"
15196 if test -n "$LD"; then
15197   echo "$as_me:$LINENO: result: $LD" >&5
15198 echo "${ECHO_T}$LD" >&6
15199 else
15200   echo "$as_me:$LINENO: result: no" >&5
15201 echo "${ECHO_T}no" >&6
15202 fi
15203 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15204 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15205    { (exit 1); exit 1; }; }
15206 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15207 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15208 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15209   echo $ECHO_N "(cached) $ECHO_C" >&6
15210 else
15211   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15212 case `$LD -v 2>&1 </dev/null` in
15213 *GNU* | *'with BFD'*)
15214   lt_cv_prog_gnu_ld=yes
15215   ;;
15216 *)
15217   lt_cv_prog_gnu_ld=no
15218   ;;
15219 esac
15220 fi
15221 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15222 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15223 with_gnu_ld=$lt_cv_prog_gnu_ld
15224
15225
15226
15227   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15228   # archiving commands below assume that GNU ld is being used.
15229   if test "$with_gnu_ld" = yes; then
15230     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15231     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'
15232
15233     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15234     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15235
15236     # If archive_cmds runs LD, not CC, wlarc should be empty
15237     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15238     #     investigate it a little bit more. (MM)
15239     wlarc='${wl}'
15240
15241     # ancient GNU ld didn't support --whole-archive et. al.
15242     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15243         grep 'no-whole-archive' > /dev/null; then
15244       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15245     else
15246       whole_archive_flag_spec_CXX=
15247     fi
15248   else
15249     with_gnu_ld=no
15250     wlarc=
15251
15252     # A generic and very simple default shared library creation
15253     # command for GNU C++ for the case where it uses the native
15254     # linker, instead of GNU ld.  If possible, this setting should
15255     # overridden to take advantage of the native linker features on
15256     # the platform it is being used on.
15257     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15258   fi
15259
15260   # Commands to make compiler produce verbose output that lists
15261   # what "hidden" libraries, object files and flags are used when
15262   # linking a shared library.
15263   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15264
15265 else
15266   GXX=no
15267   with_gnu_ld=no
15268   wlarc=
15269 fi
15270
15271 # PORTME: fill in a description of your system's C++ link characteristics
15272 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15273 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15274 ld_shlibs_CXX=yes
15275 case $host_os in
15276   aix3*)
15277     # FIXME: insert proper C++ library support
15278     ld_shlibs_CXX=no
15279     ;;
15280   aix4* | aix5*)
15281     if test "$host_cpu" = ia64; then
15282       # On IA64, the linker does run time linking by default, so we don't
15283       # have to do anything special.
15284       aix_use_runtimelinking=no
15285       exp_sym_flag='-Bexport'
15286       no_entry_flag=""
15287     else
15288       aix_use_runtimelinking=no
15289
15290       # Test if we are trying to use run time linking or normal
15291       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15292       # need to do runtime linking.
15293       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15294         for ld_flag in $LDFLAGS; do
15295           case $ld_flag in
15296           *-brtl*)
15297             aix_use_runtimelinking=yes
15298             break
15299             ;;
15300           esac
15301         done
15302       esac
15303
15304       exp_sym_flag='-bexport'
15305       no_entry_flag='-bnoentry'
15306     fi
15307
15308     # When large executables or shared objects are built, AIX ld can
15309     # have problems creating the table of contents.  If linking a library
15310     # or program results in "error TOC overflow" add -mminimal-toc to
15311     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15312     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15313
15314     archive_cmds_CXX=''
15315     hardcode_direct_CXX=yes
15316     hardcode_libdir_separator_CXX=':'
15317     link_all_deplibs_CXX=yes
15318
15319     if test "$GXX" = yes; then
15320       case $host_os in aix4.012|aix4.012.*)
15321       # We only want to do this on AIX 4.2 and lower, the check
15322       # below for broken collect2 doesn't work under 4.3+
15323         collect2name=`${CC} -print-prog-name=collect2`
15324         if test -f "$collect2name" && \
15325            strings "$collect2name" | grep resolve_lib_name >/dev/null
15326         then
15327           # We have reworked collect2
15328           hardcode_direct_CXX=yes
15329         else
15330           # We have old collect2
15331           hardcode_direct_CXX=unsupported
15332           # It fails to find uninstalled libraries when the uninstalled
15333           # path is not listed in the libpath.  Setting hardcode_minus_L
15334           # to unsupported forces relinking
15335           hardcode_minus_L_CXX=yes
15336           hardcode_libdir_flag_spec_CXX='-L$libdir'
15337           hardcode_libdir_separator_CXX=
15338         fi
15339       esac
15340       shared_flag='-shared'
15341     else
15342       # not using gcc
15343       if test "$host_cpu" = ia64; then
15344         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15345         # chokes on -Wl,-G. The following line is correct:
15346         shared_flag='-G'
15347       else
15348         if test "$aix_use_runtimelinking" = yes; then
15349           shared_flag='${wl}-G'
15350         else
15351           shared_flag='${wl}-bM:SRE'
15352         fi
15353       fi
15354     fi
15355
15356     # It seems that -bexpall does not export symbols beginning with
15357     # underscore (_), so it is better to generate a list of symbols to export.
15358     always_export_symbols_CXX=yes
15359     if test "$aix_use_runtimelinking" = yes; then
15360       # Warning - without using the other runtime loading flags (-brtl),
15361       # -berok will link without error, but may produce a broken library.
15362       allow_undefined_flag_CXX='-berok'
15363       # Determine the default libpath from the value encoded in an empty executable.
15364       cat >conftest.$ac_ext <<_ACEOF
15365 /* confdefs.h.  */
15366 _ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h.  */
15370
15371 int
15372 main ()
15373 {
15374
15375   ;
15376   return 0;
15377 }
15378 _ACEOF
15379 rm -f conftest.$ac_objext conftest$ac_exeext
15380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15381   (eval $ac_link) 2>conftest.er1
15382   ac_status=$?
15383   grep -v '^ *+' conftest.er1 >conftest.err
15384   rm -f conftest.er1
15385   cat conftest.err >&5
15386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387   (exit $ac_status); } &&
15388          { ac_try='test -z "$ac_cxx_werror_flag"
15389                          || test ! -s conftest.err'
15390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391   (eval $ac_try) 2>&5
15392   ac_status=$?
15393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394   (exit $ac_status); }; } &&
15395          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15401
15402 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15403 }'`
15404 # Check for a 64-bit object if we didn't find anything.
15405 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; }
15406 }'`; fi
15407 else
15408   echo "$as_me: failed program was:" >&5
15409 sed 's/^/| /' conftest.$ac_ext >&5
15410
15411 fi
15412 rm -f conftest.err conftest.$ac_objext \
15413       conftest$ac_exeext conftest.$ac_ext
15414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15415
15416       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15417
15418       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"
15419      else
15420       if test "$host_cpu" = ia64; then
15421         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15422         allow_undefined_flag_CXX="-z nodefs"
15423         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"
15424       else
15425         # Determine the default libpath from the value encoded in an empty executable.
15426         cat >conftest.$ac_ext <<_ACEOF
15427 /* confdefs.h.  */
15428 _ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h.  */
15432
15433 int
15434 main ()
15435 {
15436
15437   ;
15438   return 0;
15439 }
15440 _ACEOF
15441 rm -f conftest.$ac_objext conftest$ac_exeext
15442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15443   (eval $ac_link) 2>conftest.er1
15444   ac_status=$?
15445   grep -v '^ *+' conftest.er1 >conftest.err
15446   rm -f conftest.er1
15447   cat conftest.err >&5
15448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449   (exit $ac_status); } &&
15450          { ac_try='test -z "$ac_cxx_werror_flag"
15451                          || test ! -s conftest.err'
15452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453   (eval $ac_try) 2>&5
15454   ac_status=$?
15455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   (exit $ac_status); }; } &&
15457          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15463
15464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15465 }'`
15466 # Check for a 64-bit object if we didn't find anything.
15467 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; }
15468 }'`; fi
15469 else
15470   echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15472
15473 fi
15474 rm -f conftest.err conftest.$ac_objext \
15475       conftest$ac_exeext conftest.$ac_ext
15476 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15477
15478         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15479         # Warning - without using the other run time loading flags,
15480         # -berok will link without error, but may produce a broken library.
15481         no_undefined_flag_CXX=' ${wl}-bernotok'
15482         allow_undefined_flag_CXX=' ${wl}-berok'
15483         # -bexpall does not export symbols beginning with underscore (_)
15484         always_export_symbols_CXX=yes
15485         # Exported symbols can be pulled into shared objects from archives
15486         whole_archive_flag_spec_CXX=' '
15487         archive_cmds_need_lc_CXX=yes
15488         # This is similar to how AIX traditionally builds it's shared libraries.
15489         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'
15490       fi
15491     fi
15492     ;;
15493   chorus*)
15494     case $cc_basename in
15495       *)
15496         # FIXME: insert proper C++ library support
15497         ld_shlibs_CXX=no
15498         ;;
15499     esac
15500     ;;
15501
15502
15503   cygwin* | mingw* | pw32*)
15504     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15505     # as there is no search path for DLLs.
15506     hardcode_libdir_flag_spec_CXX='-L$libdir'
15507     allow_undefined_flag_CXX=unsupported
15508     always_export_symbols_CXX=no
15509     enable_shared_with_static_runtimes_CXX=yes
15510
15511     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15512       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'
15513       # If the export-symbols file already is a .def file (1st line
15514       # is EXPORTS), use it as is; otherwise, prepend...
15515       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15516         cp $export_symbols $output_objdir/$soname.def;
15517       else
15518         echo EXPORTS > $output_objdir/$soname.def;
15519         cat $export_symbols >> $output_objdir/$soname.def;
15520       fi~
15521       $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'
15522     else
15523       ld_shlibs_CXX=no
15524     fi
15525   ;;
15526       darwin* | rhapsody*)
15527         case "$host_os" in
15528         rhapsody* | darwin1.[012])
15529          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15530          ;;
15531        *) # Darwin 1.3 on
15532          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15533            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15534          else
15535            case ${MACOSX_DEPLOYMENT_TARGET} in
15536              10.[012])
15537                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15538                ;;
15539              10.*)
15540                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15541                ;;
15542            esac
15543          fi
15544          ;;
15545         esac
15546       archive_cmds_need_lc_CXX=no
15547       hardcode_direct_CXX=no
15548       hardcode_automatic_CXX=yes
15549       hardcode_shlibpath_var_CXX=unsupported
15550       whole_archive_flag_spec_CXX=''
15551       link_all_deplibs_CXX=yes
15552
15553     if test "$GXX" = yes ; then
15554       lt_int_apple_cc_single_mod=no
15555       output_verbose_link_cmd='echo'
15556       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15557        lt_int_apple_cc_single_mod=yes
15558       fi
15559       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15560        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15561       else
15562           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'
15563         fi
15564         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15565         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15566           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15567             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}'
15568           else
15569             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}'
15570           fi
15571             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}'
15572       else
15573       case "$cc_basename" in
15574         xlc*)
15575          output_verbose_link_cmd='echo'
15576           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'
15577           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15578           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15579           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}'
15580           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}'
15581           ;;
15582        *)
15583          ld_shlibs_CXX=no
15584           ;;
15585       esac
15586       fi
15587         ;;
15588
15589   dgux*)
15590     case $cc_basename in
15591       ec++)
15592         # FIXME: insert proper C++ library support
15593         ld_shlibs_CXX=no
15594         ;;
15595       ghcx)
15596         # Green Hills C++ Compiler
15597         # FIXME: insert proper C++ library support
15598         ld_shlibs_CXX=no
15599         ;;
15600       *)
15601         # FIXME: insert proper C++ library support
15602         ld_shlibs_CXX=no
15603         ;;
15604     esac
15605     ;;
15606   freebsd12*)
15607     # C++ shared libraries reported to be fairly broken before switch to ELF
15608     ld_shlibs_CXX=no
15609     ;;
15610   freebsd-elf*)
15611     archive_cmds_need_lc_CXX=no
15612     ;;
15613   freebsd* | kfreebsd*-gnu)
15614     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15615     # conventions
15616     ld_shlibs_CXX=yes
15617     ;;
15618   gnu*)
15619     ;;
15620   hpux9*)
15621     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15622     hardcode_libdir_separator_CXX=:
15623     export_dynamic_flag_spec_CXX='${wl}-E'
15624     hardcode_direct_CXX=yes
15625     hardcode_minus_L_CXX=yes # Not in the search PATH,
15626                                 # but as the default
15627                                 # location of the library.
15628
15629     case $cc_basename in
15630     CC)
15631       # FIXME: insert proper C++ library support
15632       ld_shlibs_CXX=no
15633       ;;
15634     aCC)
15635       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'
15636       # Commands to make compiler produce verbose output that lists
15637       # what "hidden" libraries, object files and flags are used when
15638       # linking a shared library.
15639       #
15640       # There doesn't appear to be a way to prevent this compiler from
15641       # explicitly linking system object files so we need to strip them
15642       # from the output so that they don't get included in the library
15643       # dependencies.
15644       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'
15645       ;;
15646     *)
15647       if test "$GXX" = yes; then
15648         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'
15649       else
15650         # FIXME: insert proper C++ library support
15651         ld_shlibs_CXX=no
15652       fi
15653       ;;
15654     esac
15655     ;;
15656   hpux10*|hpux11*)
15657     if test $with_gnu_ld = no; then
15658       case "$host_cpu" in
15659       hppa*64*)
15660         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15661         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15662         hardcode_libdir_separator_CXX=:
15663         ;;
15664       ia64*)
15665         hardcode_libdir_flag_spec_CXX='-L$libdir'
15666         ;;
15667       *)
15668         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15669         hardcode_libdir_separator_CXX=:
15670         export_dynamic_flag_spec_CXX='${wl}-E'
15671         ;;
15672       esac
15673     fi
15674     case "$host_cpu" in
15675     hppa*64*)
15676       hardcode_direct_CXX=no
15677       hardcode_shlibpath_var_CXX=no
15678       ;;
15679     ia64*)
15680       hardcode_direct_CXX=no
15681       hardcode_shlibpath_var_CXX=no
15682       hardcode_minus_L_CXX=yes # Not in the search PATH,
15683                                               # but as the default
15684                                               # location of the library.
15685       ;;
15686     *)
15687       hardcode_direct_CXX=yes
15688       hardcode_minus_L_CXX=yes # Not in the search PATH,
15689                                               # but as the default
15690                                               # location of the library.
15691       ;;
15692     esac
15693
15694     case $cc_basename in
15695       CC)
15696         # FIXME: insert proper C++ library support
15697         ld_shlibs_CXX=no
15698         ;;
15699       aCC)
15700         case "$host_cpu" in
15701         hppa*64*|ia64*)
15702           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15703           ;;
15704         *)
15705           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15706           ;;
15707         esac
15708         # Commands to make compiler produce verbose output that lists
15709         # what "hidden" libraries, object files and flags are used when
15710         # linking a shared library.
15711         #
15712         # There doesn't appear to be a way to prevent this compiler from
15713         # explicitly linking system object files so we need to strip them
15714         # from the output so that they don't get included in the library
15715         # dependencies.
15716         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'
15717         ;;
15718       *)
15719         if test "$GXX" = yes; then
15720           if test $with_gnu_ld = no; then
15721             case "$host_cpu" in
15722             ia64*|hppa*64*)
15723               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15724               ;;
15725             *)
15726               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'
15727               ;;
15728             esac
15729           fi
15730         else
15731           # FIXME: insert proper C++ library support
15732           ld_shlibs_CXX=no
15733         fi
15734         ;;
15735     esac
15736     ;;
15737   irix5* | irix6*)
15738     case $cc_basename in
15739       CC)
15740         # SGI C++
15741         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'
15742
15743         # Archives containing C++ object files must be created using
15744         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15745         # necessary to make sure instantiated templates are included
15746         # in the archive.
15747         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15748         ;;
15749       *)
15750         if test "$GXX" = yes; then
15751           if test "$with_gnu_ld" = no; then
15752             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'
15753           else
15754             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'
15755           fi
15756         fi
15757         link_all_deplibs_CXX=yes
15758         ;;
15759     esac
15760     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15761     hardcode_libdir_separator_CXX=:
15762     ;;
15763   linux*)
15764     case $cc_basename in
15765       KCC)
15766         # Kuck and Associates, Inc. (KAI) C++ Compiler
15767
15768         # KCC will only create a shared library if the output file
15769         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15770         # to its proper name (with version) after linking.
15771         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'
15772         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'
15773         # Commands to make compiler produce verbose output that lists
15774         # what "hidden" libraries, object files and flags are used when
15775         # linking a shared library.
15776         #
15777         # There doesn't appear to be a way to prevent this compiler from
15778         # explicitly linking system object files so we need to strip them
15779         # from the output so that they don't get included in the library
15780         # dependencies.
15781         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'
15782
15783         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15784         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15785
15786         # Archives containing C++ object files must be created using
15787         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15788         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15789         ;;
15790       icpc)
15791         # Intel C++
15792         with_gnu_ld=yes
15793         # version 8.0 and above of icpc choke on multiply defined symbols
15794         # if we add $predep_objects and $postdep_objects, however 7.1 and
15795         # earlier do not add the objects themselves.
15796         case `$CC -V 2>&1` in
15797         *"Version 7."*)
15798           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15799           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'
15800           ;;
15801         *)  # Version 8.0 or newer
15802           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15803         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15804           ;;
15805         esac
15806         archive_cmds_need_lc_CXX=no
15807         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15808         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15809         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15810         ;;
15811       cxx)
15812         # Compaq C++
15813         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15814         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'
15815
15816         runpath_var=LD_RUN_PATH
15817         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15818         hardcode_libdir_separator_CXX=:
15819
15820         # Commands to make compiler produce verbose output that lists
15821         # what "hidden" libraries, object files and flags are used when
15822         # linking a shared library.
15823         #
15824         # There doesn't appear to be a way to prevent this compiler from
15825         # explicitly linking system object files so we need to strip them
15826         # from the output so that they don't get included in the library
15827         # dependencies.
15828         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'
15829         ;;
15830     esac
15831     ;;
15832   lynxos*)
15833     # FIXME: insert proper C++ library support
15834     ld_shlibs_CXX=no
15835     ;;
15836   m88k*)
15837     # FIXME: insert proper C++ library support
15838     ld_shlibs_CXX=no
15839     ;;
15840   mvs*)
15841     case $cc_basename in
15842       cxx)
15843         # FIXME: insert proper C++ library support
15844         ld_shlibs_CXX=no
15845         ;;
15846       *)
15847         # FIXME: insert proper C++ library support
15848         ld_shlibs_CXX=no
15849         ;;
15850     esac
15851     ;;
15852   netbsd*)
15853     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15854       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15855       wlarc=
15856       hardcode_libdir_flag_spec_CXX='-R$libdir'
15857       hardcode_direct_CXX=yes
15858       hardcode_shlibpath_var_CXX=no
15859     fi
15860     # Workaround some broken pre-1.5 toolchains
15861     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15862     ;;
15863   openbsd2*)
15864     # C++ shared libraries are fairly broken
15865     ld_shlibs_CXX=no
15866     ;;
15867   openbsd*)
15868     hardcode_direct_CXX=yes
15869     hardcode_shlibpath_var_CXX=no
15870     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15871     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15872     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15873       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15874       export_dynamic_flag_spec_CXX='${wl}-E'
15875       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15876     fi
15877     output_verbose_link_cmd='echo'
15878     ;;
15879   osf3*)
15880     case $cc_basename in
15881       KCC)
15882         # Kuck and Associates, Inc. (KAI) C++ Compiler
15883
15884         # KCC will only create a shared library if the output file
15885         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15886         # to its proper name (with version) after linking.
15887         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'
15888
15889         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15890         hardcode_libdir_separator_CXX=:
15891
15892         # Archives containing C++ object files must be created using
15893         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15894         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15895
15896         ;;
15897       RCC)
15898         # Rational C++ 2.4.1
15899         # FIXME: insert proper C++ library support
15900         ld_shlibs_CXX=no
15901         ;;
15902       cxx)
15903         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15904         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'
15905
15906         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15907         hardcode_libdir_separator_CXX=:
15908
15909         # Commands to make compiler produce verbose output that lists
15910         # what "hidden" libraries, object files and flags are used when
15911         # linking a shared library.
15912         #
15913         # There doesn't appear to be a way to prevent this compiler from
15914         # explicitly linking system object files so we need to strip them
15915         # from the output so that they don't get included in the library
15916         # dependencies.
15917         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'
15918         ;;
15919       *)
15920         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15921           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15922           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'
15923
15924           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15925           hardcode_libdir_separator_CXX=:
15926
15927           # Commands to make compiler produce verbose output that lists
15928           # what "hidden" libraries, object files and flags are used when
15929           # linking a shared library.
15930           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15931
15932         else
15933           # FIXME: insert proper C++ library support
15934           ld_shlibs_CXX=no
15935         fi
15936         ;;
15937     esac
15938     ;;
15939   osf4* | osf5*)
15940     case $cc_basename in
15941       KCC)
15942         # Kuck and Associates, Inc. (KAI) C++ Compiler
15943
15944         # KCC will only create a shared library if the output file
15945         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15946         # to its proper name (with version) after linking.
15947         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'
15948
15949         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15950         hardcode_libdir_separator_CXX=:
15951
15952         # Archives containing C++ object files must be created using
15953         # the KAI C++ compiler.
15954         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15955         ;;
15956       RCC)
15957         # Rational C++ 2.4.1
15958         # FIXME: insert proper C++ library support
15959         ld_shlibs_CXX=no
15960         ;;
15961       cxx)
15962         allow_undefined_flag_CXX=' -expect_unresolved \*'
15963         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'
15964         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15965           echo "-hidden">> $lib.exp~
15966           $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~
15967           $rm $lib.exp'
15968
15969         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15970         hardcode_libdir_separator_CXX=:
15971
15972         # Commands to make compiler produce verbose output that lists
15973         # what "hidden" libraries, object files and flags are used when
15974         # linking a shared library.
15975         #
15976         # There doesn't appear to be a way to prevent this compiler from
15977         # explicitly linking system object files so we need to strip them
15978         # from the output so that they don't get included in the library
15979         # dependencies.
15980         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'
15981         ;;
15982       *)
15983         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15984           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15985          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'
15986
15987           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15988           hardcode_libdir_separator_CXX=:
15989
15990           # Commands to make compiler produce verbose output that lists
15991           # what "hidden" libraries, object files and flags are used when
15992           # linking a shared library.
15993           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15994
15995         else
15996           # FIXME: insert proper C++ library support
15997           ld_shlibs_CXX=no
15998         fi
15999         ;;
16000     esac
16001     ;;
16002   psos*)
16003     # FIXME: insert proper C++ library support
16004     ld_shlibs_CXX=no
16005     ;;
16006   sco*)
16007     archive_cmds_need_lc_CXX=no
16008     case $cc_basename in
16009       CC)
16010         # FIXME: insert proper C++ library support
16011         ld_shlibs_CXX=no
16012         ;;
16013       *)
16014         # FIXME: insert proper C++ library support
16015         ld_shlibs_CXX=no
16016         ;;
16017     esac
16018     ;;
16019   sunos4*)
16020     case $cc_basename in
16021       CC)
16022         # Sun C++ 4.x
16023         # FIXME: insert proper C++ library support
16024         ld_shlibs_CXX=no
16025         ;;
16026       lcc)
16027         # Lucid
16028         # FIXME: insert proper C++ library support
16029         ld_shlibs_CXX=no
16030         ;;
16031       *)
16032         # FIXME: insert proper C++ library support
16033         ld_shlibs_CXX=no
16034         ;;
16035     esac
16036     ;;
16037   solaris*)
16038     case $cc_basename in
16039       CC)
16040         # Sun C++ 4.2, 5.x and Centerline C++
16041         no_undefined_flag_CXX=' -zdefs'
16042         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16043         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16044         $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'
16045
16046         hardcode_libdir_flag_spec_CXX='-R$libdir'
16047         hardcode_shlibpath_var_CXX=no
16048         case $host_os in
16049           solaris2.0-5 | solaris2.0-5.*) ;;
16050           *)
16051             # The C++ compiler is used as linker so we must use $wl
16052             # flag to pass the commands to the underlying system
16053             # linker.
16054             # Supported since Solaris 2.6 (maybe 2.5.1?)
16055             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16056             ;;
16057         esac
16058         link_all_deplibs_CXX=yes
16059
16060         # Commands to make compiler produce verbose output that lists
16061         # what "hidden" libraries, object files and flags are used when
16062         # linking a shared library.
16063         #
16064         # There doesn't appear to be a way to prevent this compiler from
16065         # explicitly linking system object files so we need to strip them
16066         # from the output so that they don't get included in the library
16067         # dependencies.
16068         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'
16069
16070         # Archives containing C++ object files must be created using
16071         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16072         # necessary to make sure instantiated templates are included
16073         # in the archive.
16074         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16075         ;;
16076       gcx)
16077         # Green Hills C++ Compiler
16078         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16079
16080         # The C++ compiler must be used to create the archive.
16081         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16082         ;;
16083       *)
16084         # GNU C++ compiler with Solaris linker
16085         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16086           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16087           if $CC --version | grep -v '^2\.7' > /dev/null; then
16088             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16089             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16090                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16091
16092             # Commands to make compiler produce verbose output that lists
16093             # what "hidden" libraries, object files and flags are used when
16094             # linking a shared library.
16095             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16096           else
16097             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16098             # platform.
16099             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16100             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16101                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16102
16103             # Commands to make compiler produce verbose output that lists
16104             # what "hidden" libraries, object files and flags are used when
16105             # linking a shared library.
16106             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16107           fi
16108
16109           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16110         fi
16111         ;;
16112     esac
16113     ;;
16114   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16115     archive_cmds_need_lc_CXX=no
16116     ;;
16117   tandem*)
16118     case $cc_basename in
16119       NCC)
16120         # NonStop-UX NCC 3.20
16121         # FIXME: insert proper C++ library support
16122         ld_shlibs_CXX=no
16123         ;;
16124       *)
16125         # FIXME: insert proper C++ library support
16126         ld_shlibs_CXX=no
16127         ;;
16128     esac
16129     ;;
16130   vxworks*)
16131     # FIXME: insert proper C++ library support
16132     ld_shlibs_CXX=no
16133     ;;
16134   *)
16135     # FIXME: insert proper C++ library support
16136     ld_shlibs_CXX=no
16137     ;;
16138 esac
16139 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16140 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16141 test "$ld_shlibs_CXX" = no && can_build_shared=no
16142
16143 GCC_CXX="$GXX"
16144 LD_CXX="$LD"
16145
16146
16147 cat > conftest.$ac_ext <<EOF
16148 class Foo
16149 {
16150 public:
16151   Foo (void) { a = 0; }
16152 private:
16153   int a;
16154 };
16155 EOF
16156
16157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16158   (eval $ac_compile) 2>&5
16159   ac_status=$?
16160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161   (exit $ac_status); }; then
16162   # Parse the compiler output and extract the necessary
16163   # objects, libraries and library flags.
16164
16165   # Sentinel used to keep track of whether or not we are before
16166   # the conftest object file.
16167   pre_test_object_deps_done=no
16168
16169   # The `*' in the case matches for architectures that use `case' in
16170   # $output_verbose_cmd can trigger glob expansion during the loop
16171   # eval without this substitution.
16172   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16173
16174   for p in `eval $output_verbose_link_cmd`; do
16175     case $p in
16176
16177     -L* | -R* | -l*)
16178        # Some compilers place space between "-{L,R}" and the path.
16179        # Remove the space.
16180        if test $p = "-L" \
16181           || test $p = "-R"; then
16182          prev=$p
16183          continue
16184        else
16185          prev=
16186        fi
16187
16188        if test "$pre_test_object_deps_done" = no; then
16189          case $p in
16190          -L* | -R*)
16191            # Internal compiler library paths should come after those
16192            # provided the user.  The postdeps already come after the
16193            # user supplied libs so there is no need to process them.
16194            if test -z "$compiler_lib_search_path_CXX"; then
16195              compiler_lib_search_path_CXX="${prev}${p}"
16196            else
16197              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16198            fi
16199            ;;
16200          # The "-l" case would never come before the object being
16201          # linked, so don't bother handling this case.
16202          esac
16203        else
16204          if test -z "$postdeps_CXX"; then
16205            postdeps_CXX="${prev}${p}"
16206          else
16207            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16208          fi
16209        fi
16210        ;;
16211
16212     *.$objext)
16213        # This assumes that the test object file only shows up
16214        # once in the compiler output.
16215        if test "$p" = "conftest.$objext"; then
16216          pre_test_object_deps_done=yes
16217          continue
16218        fi
16219
16220        if test "$pre_test_object_deps_done" = no; then
16221          if test -z "$predep_objects_CXX"; then
16222            predep_objects_CXX="$p"
16223          else
16224            predep_objects_CXX="$predep_objects_CXX $p"
16225          fi
16226        else
16227          if test -z "$postdep_objects_CXX"; then
16228            postdep_objects_CXX="$p"
16229          else
16230            postdep_objects_CXX="$postdep_objects_CXX $p"
16231          fi
16232        fi
16233        ;;
16234
16235     *) ;; # Ignore the rest.
16236
16237     esac
16238   done
16239
16240   # Clean up.
16241   rm -f a.out a.exe
16242 else
16243   echo "libtool.m4: error: problem compiling CXX test program"
16244 fi
16245
16246 $rm -f confest.$objext
16247
16248 case " $postdeps_CXX " in
16249 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16250 esac
16251
16252 lt_prog_compiler_wl_CXX=
16253 lt_prog_compiler_pic_CXX=
16254 lt_prog_compiler_static_CXX=
16255
16256 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16257 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16258
16259   # C++ specific cases for pic, static, wl, etc.
16260   if test "$GXX" = yes; then
16261     lt_prog_compiler_wl_CXX='-Wl,'
16262     lt_prog_compiler_static_CXX='-static'
16263
16264     case $host_os in
16265     aix*)
16266       # All AIX code is PIC.
16267       if test "$host_cpu" = ia64; then
16268         # AIX 5 now supports IA64 processor
16269         lt_prog_compiler_static_CXX='-Bstatic'
16270       fi
16271       ;;
16272     amigaos*)
16273       # FIXME: we need at least 68020 code to build shared libraries, but
16274       # adding the `-m68020' flag to GCC prevents building anything better,
16275       # like `-m68040'.
16276       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16277       ;;
16278     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16279       # PIC is the default for these OSes.
16280       ;;
16281     mingw* | os2* | pw32*)
16282       # This hack is so that the source file can tell whether it is being
16283       # built for inclusion in a dll (and should export symbols for example).
16284       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16285       ;;
16286     darwin* | rhapsody*)
16287       # PIC is the default on this platform
16288       # Common symbols not allowed in MH_DYLIB files
16289       lt_prog_compiler_pic_CXX='-fno-common'
16290       ;;
16291     *djgpp*)
16292       # DJGPP does not support shared libraries at all
16293       lt_prog_compiler_pic_CXX=
16294       ;;
16295     sysv4*MP*)
16296       if test -d /usr/nec; then
16297         lt_prog_compiler_pic_CXX=-Kconform_pic
16298       fi
16299       ;;
16300     hpux*)
16301       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16302       # not for PA HP-UX.
16303       case "$host_cpu" in
16304       hppa*64*|ia64*)
16305         ;;
16306       *)
16307         lt_prog_compiler_pic_CXX='-fPIC'
16308         ;;
16309       esac
16310       ;;
16311     *)
16312       lt_prog_compiler_pic_CXX='-fPIC'
16313       ;;
16314     esac
16315   else
16316     case $host_os in
16317       aix4* | aix5*)
16318         # All AIX code is PIC.
16319         if test "$host_cpu" = ia64; then
16320           # AIX 5 now supports IA64 processor
16321           lt_prog_compiler_static_CXX='-Bstatic'
16322         else
16323           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16324         fi
16325         ;;
16326       chorus*)
16327         case $cc_basename in
16328         cxch68)
16329           # Green Hills C++ Compiler
16330           # _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"
16331           ;;
16332         esac
16333         ;;
16334        darwin*)
16335          # PIC is the default on this platform
16336          # Common symbols not allowed in MH_DYLIB files
16337          case "$cc_basename" in
16338            xlc*)
16339            lt_prog_compiler_pic_CXX='-qnocommon'
16340            lt_prog_compiler_wl_CXX='-Wl,'
16341            ;;
16342          esac
16343        ;;
16344       dgux*)
16345         case $cc_basename in
16346           ec++)
16347             lt_prog_compiler_pic_CXX='-KPIC'
16348             ;;
16349           ghcx)
16350             # Green Hills C++ Compiler
16351             lt_prog_compiler_pic_CXX='-pic'
16352             ;;
16353           *)
16354             ;;
16355         esac
16356         ;;
16357       freebsd* | kfreebsd*-gnu)
16358         # FreeBSD uses GNU C++
16359         ;;
16360       hpux9* | hpux10* | hpux11*)
16361         case $cc_basename in
16362           CC)
16363             lt_prog_compiler_wl_CXX='-Wl,'
16364             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16365             if test "$host_cpu" != ia64; then
16366               lt_prog_compiler_pic_CXX='+Z'
16367             fi
16368             ;;
16369           aCC)
16370             lt_prog_compiler_wl_CXX='-Wl,'
16371             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16372             case "$host_cpu" in
16373             hppa*64*|ia64*)
16374               # +Z the default
16375               ;;
16376             *)
16377               lt_prog_compiler_pic_CXX='+Z'
16378               ;;
16379             esac
16380             ;;
16381           *)
16382             ;;
16383         esac
16384         ;;
16385       irix5* | irix6* | nonstopux*)
16386         case $cc_basename in
16387           CC)
16388             lt_prog_compiler_wl_CXX='-Wl,'
16389             lt_prog_compiler_static_CXX='-non_shared'
16390             # CC pic flag -KPIC is the default.
16391             ;;
16392           *)
16393             ;;
16394         esac
16395         ;;
16396       linux*)
16397         case $cc_basename in
16398           KCC)
16399             # KAI C++ Compiler
16400             lt_prog_compiler_wl_CXX='--backend -Wl,'
16401             lt_prog_compiler_pic_CXX='-fPIC'
16402             ;;
16403           icpc)
16404             # Intel C++
16405             lt_prog_compiler_wl_CXX='-Wl,'
16406             lt_prog_compiler_pic_CXX='-KPIC'
16407             lt_prog_compiler_static_CXX='-static'
16408             ;;
16409           cxx)
16410             # Compaq C++
16411             # Make sure the PIC flag is empty.  It appears that all Alpha
16412             # Linux and Compaq Tru64 Unix objects are PIC.
16413             lt_prog_compiler_pic_CXX=
16414             lt_prog_compiler_static_CXX='-non_shared'
16415             ;;
16416           *)
16417             ;;
16418         esac
16419         ;;
16420       lynxos*)
16421         ;;
16422       m88k*)
16423         ;;
16424       mvs*)
16425         case $cc_basename in
16426           cxx)
16427             lt_prog_compiler_pic_CXX='-W c,exportall'
16428             ;;
16429           *)
16430             ;;
16431         esac
16432         ;;
16433       netbsd*)
16434         ;;
16435       osf3* | osf4* | osf5*)
16436         case $cc_basename in
16437           KCC)
16438             lt_prog_compiler_wl_CXX='--backend -Wl,'
16439             ;;
16440           RCC)
16441             # Rational C++ 2.4.1
16442             lt_prog_compiler_pic_CXX='-pic'
16443             ;;
16444           cxx)
16445             # Digital/Compaq C++
16446             lt_prog_compiler_wl_CXX='-Wl,'
16447             # Make sure the PIC flag is empty.  It appears that all Alpha
16448             # Linux and Compaq Tru64 Unix objects are PIC.
16449             lt_prog_compiler_pic_CXX=
16450             lt_prog_compiler_static_CXX='-non_shared'
16451             ;;
16452           *)
16453             ;;
16454         esac
16455         ;;
16456       psos*)
16457         ;;
16458       sco*)
16459         case $cc_basename in
16460           CC)
16461             lt_prog_compiler_pic_CXX='-fPIC'
16462             ;;
16463           *)
16464             ;;
16465         esac
16466         ;;
16467       solaris*)
16468         case $cc_basename in
16469           CC)
16470             # Sun C++ 4.2, 5.x and Centerline C++
16471             lt_prog_compiler_pic_CXX='-KPIC'
16472             lt_prog_compiler_static_CXX='-Bstatic'
16473             lt_prog_compiler_wl_CXX='-Qoption ld '
16474             ;;
16475           gcx)
16476             # Green Hills C++ Compiler
16477             lt_prog_compiler_pic_CXX='-PIC'
16478             ;;
16479           *)
16480             ;;
16481         esac
16482         ;;
16483       sunos4*)
16484         case $cc_basename in
16485           CC)
16486             # Sun C++ 4.x
16487             lt_prog_compiler_pic_CXX='-pic'
16488             lt_prog_compiler_static_CXX='-Bstatic'
16489             ;;
16490           lcc)
16491             # Lucid
16492             lt_prog_compiler_pic_CXX='-pic'
16493             ;;
16494           *)
16495             ;;
16496         esac
16497         ;;
16498       tandem*)
16499         case $cc_basename in
16500           NCC)
16501             # NonStop-UX NCC 3.20
16502             lt_prog_compiler_pic_CXX='-KPIC'
16503             ;;
16504           *)
16505             ;;
16506         esac
16507         ;;
16508       unixware*)
16509         ;;
16510       vxworks*)
16511         ;;
16512       *)
16513         lt_prog_compiler_can_build_shared_CXX=no
16514         ;;
16515     esac
16516   fi
16517
16518 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16519 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16520
16521 #
16522 # Check to make sure the PIC flag actually works.
16523 #
16524 if test -n "$lt_prog_compiler_pic_CXX"; then
16525
16526 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16527 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16528 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16529   echo $ECHO_N "(cached) $ECHO_C" >&6
16530 else
16531   lt_prog_compiler_pic_works_CXX=no
16532   ac_outfile=conftest.$ac_objext
16533    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16534    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16535    # Insert the option either (1) after the last *FLAGS variable, or
16536    # (2) before a word containing "conftest.", or (3) at the end.
16537    # Note that $ac_compile itself does not contain backslashes and begins
16538    # with a dollar sign (not a hyphen), so the echo should work correctly.
16539    # The option is referenced via a variable to avoid confusing sed.
16540    lt_compile=`echo "$ac_compile" | $SED \
16541    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16542    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16543    -e 's:$: $lt_compiler_flag:'`
16544    (eval echo "\"\$as_me:16544: $lt_compile\"" >&5)
16545    (eval "$lt_compile" 2>conftest.err)
16546    ac_status=$?
16547    cat conftest.err >&5
16548    echo "$as_me:16548: \$? = $ac_status" >&5
16549    if (exit $ac_status) && test -s "$ac_outfile"; then
16550      # The compiler can only warn and ignore the option if not recognized
16551      # So say no if there are warnings
16552      if test ! -s conftest.err; then
16553        lt_prog_compiler_pic_works_CXX=yes
16554      fi
16555    fi
16556    $rm conftest*
16557
16558 fi
16559 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16560 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16561
16562 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16563     case $lt_prog_compiler_pic_CXX in
16564      "" | " "*) ;;
16565      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16566      esac
16567 else
16568     lt_prog_compiler_pic_CXX=
16569      lt_prog_compiler_can_build_shared_CXX=no
16570 fi
16571
16572 fi
16573 case "$host_os" in
16574   # For platforms which do not support PIC, -DPIC is meaningless:
16575   *djgpp*)
16576     lt_prog_compiler_pic_CXX=
16577     ;;
16578   *)
16579     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16580     ;;
16581 esac
16582
16583 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16584 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16585 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16586   echo $ECHO_N "(cached) $ECHO_C" >&6
16587 else
16588   lt_cv_prog_compiler_c_o_CXX=no
16589    $rm -r conftest 2>/dev/null
16590    mkdir conftest
16591    cd conftest
16592    mkdir out
16593    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16594
16595    lt_compiler_flag="-o out/conftest2.$ac_objext"
16596    # Insert the option either (1) after the last *FLAGS variable, or
16597    # (2) before a word containing "conftest.", or (3) at the end.
16598    # Note that $ac_compile itself does not contain backslashes and begins
16599    # with a dollar sign (not a hyphen), so the echo should work correctly.
16600    lt_compile=`echo "$ac_compile" | $SED \
16601    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16602    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16603    -e 's:$: $lt_compiler_flag:'`
16604    (eval echo "\"\$as_me:16604: $lt_compile\"" >&5)
16605    (eval "$lt_compile" 2>out/conftest.err)
16606    ac_status=$?
16607    cat out/conftest.err >&5
16608    echo "$as_me:16608: \$? = $ac_status" >&5
16609    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16610    then
16611      # The compiler can only warn and ignore the option if not recognized
16612      # So say no if there are warnings
16613      if test ! -s out/conftest.err; then
16614        lt_cv_prog_compiler_c_o_CXX=yes
16615      fi
16616    fi
16617    chmod u+w .
16618    $rm conftest*
16619    # SGI C++ compiler will create directory out/ii_files/ for
16620    # template instantiation
16621    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16622    $rm out/* && rmdir out
16623    cd ..
16624    rmdir conftest
16625    $rm conftest*
16626
16627 fi
16628 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16629 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16630
16631
16632 hard_links="nottested"
16633 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16634   # do not overwrite the value of need_locks provided by the user
16635   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16636 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16637   hard_links=yes
16638   $rm conftest*
16639   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16640   touch conftest.a
16641   ln conftest.a conftest.b 2>&5 || hard_links=no
16642   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16643   echo "$as_me:$LINENO: result: $hard_links" >&5
16644 echo "${ECHO_T}$hard_links" >&6
16645   if test "$hard_links" = no; then
16646     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16647 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16648     need_locks=warn
16649   fi
16650 else
16651   need_locks=no
16652 fi
16653
16654 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16655 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16656
16657   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16658   case $host_os in
16659   aix4* | aix5*)
16660     # If we're using GNU nm, then we don't want the "-C" option.
16661     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16662     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16663       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'
16664     else
16665       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'
16666     fi
16667     ;;
16668   pw32*)
16669     export_symbols_cmds_CXX="$ltdll_cmds"
16670   ;;
16671   cygwin* | mingw*)
16672     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16673   ;;
16674   *)
16675     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16676   ;;
16677   esac
16678
16679 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16680 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16681 test "$ld_shlibs_CXX" = no && can_build_shared=no
16682
16683 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16684 if test "$GCC" = yes; then
16685   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16686 fi
16687
16688 #
16689 # Do we need to explicitly link libc?
16690 #
16691 case "x$archive_cmds_need_lc_CXX" in
16692 x|xyes)
16693   # Assume -lc should be added
16694   archive_cmds_need_lc_CXX=yes
16695
16696   if test "$enable_shared" = yes && test "$GCC" = yes; then
16697     case $archive_cmds_CXX in
16698     *'~'*)
16699       # FIXME: we may have to deal with multi-command sequences.
16700       ;;
16701     '$CC '*)
16702       # Test whether the compiler implicitly links with -lc since on some
16703       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16704       # to ld, don't add -lc before -lgcc.
16705       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16706 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16707       $rm conftest*
16708       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16709
16710       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16711   (eval $ac_compile) 2>&5
16712   ac_status=$?
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); } 2>conftest.err; then
16715         soname=conftest
16716         lib=conftest
16717         libobjs=conftest.$ac_objext
16718         deplibs=
16719         wl=$lt_prog_compiler_wl_CXX
16720         compiler_flags=-v
16721         linker_flags=-v
16722         verstring=
16723         output_objdir=.
16724         libname=conftest
16725         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16726         allow_undefined_flag_CXX=
16727         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16728   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16729   ac_status=$?
16730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731   (exit $ac_status); }
16732         then
16733           archive_cmds_need_lc_CXX=no
16734         else
16735           archive_cmds_need_lc_CXX=yes
16736         fi
16737         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16738       else
16739         cat conftest.err 1>&5
16740       fi
16741       $rm conftest*
16742       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16743 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16744       ;;
16745     esac
16746   fi
16747   ;;
16748 esac
16749
16750 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16751 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16752 library_names_spec=
16753 libname_spec='lib$name'
16754 soname_spec=
16755 shrext_cmds=".so"
16756 postinstall_cmds=
16757 postuninstall_cmds=
16758 finish_cmds=
16759 finish_eval=
16760 shlibpath_var=
16761 shlibpath_overrides_runpath=unknown
16762 version_type=none
16763 dynamic_linker="$host_os ld.so"
16764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16765 if test "$GCC" = yes; then
16766   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16767   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16768     # if the path contains ";" then we assume it to be the separator
16769     # otherwise default to the standard path separator (i.e. ":") - it is
16770     # assumed that no part of a normal pathname contains ";" but that should
16771     # okay in the real world where ";" in dirpaths is itself problematic.
16772     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16773   else
16774     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16775   fi
16776 else
16777   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16778 fi
16779 need_lib_prefix=unknown
16780 hardcode_into_libs=no
16781
16782 # when you set need_version to no, make sure it does not cause -set_version
16783 # flags to be left without arguments
16784 need_version=unknown
16785
16786 case $host_os in
16787 aix3*)
16788   version_type=linux
16789   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16790   shlibpath_var=LIBPATH
16791
16792   # AIX 3 has no versioning support, so we append a major version to the name.
16793   soname_spec='${libname}${release}${shared_ext}$major'
16794   ;;
16795
16796 aix4* | aix5*)
16797   version_type=linux
16798   need_lib_prefix=no
16799   need_version=no
16800   hardcode_into_libs=yes
16801   if test "$host_cpu" = ia64; then
16802     # AIX 5 supports IA64
16803     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16804     shlibpath_var=LD_LIBRARY_PATH
16805   else
16806     # With GCC up to 2.95.x, collect2 would create an import file
16807     # for dependence libraries.  The import file would start with
16808     # the line `#! .'.  This would cause the generated library to
16809     # depend on `.', always an invalid library.  This was fixed in
16810     # development snapshots of GCC prior to 3.0.
16811     case $host_os in
16812       aix4 | aix4.[01] | aix4.[01].*)
16813       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16814            echo ' yes '
16815            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16816         :
16817       else
16818         can_build_shared=no
16819       fi
16820       ;;
16821     esac
16822     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16823     # soname into executable. Probably we can add versioning support to
16824     # collect2, so additional links can be useful in future.
16825     if test "$aix_use_runtimelinking" = yes; then
16826       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16827       # instead of lib<name>.a to let people know that these are not
16828       # typical AIX shared libraries.
16829       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16830     else
16831       # We preserve .a as extension for shared libraries through AIX4.2
16832       # and later when we are not doing run time linking.
16833       library_names_spec='${libname}${release}.a $libname.a'
16834       soname_spec='${libname}${release}${shared_ext}$major'
16835     fi
16836     shlibpath_var=LIBPATH
16837   fi
16838   ;;
16839
16840 amigaos*)
16841   library_names_spec='$libname.ixlibrary $libname.a'
16842   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16843   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'
16844   ;;
16845
16846 beos*)
16847   library_names_spec='${libname}${shared_ext}'
16848   dynamic_linker="$host_os ld.so"
16849   shlibpath_var=LIBRARY_PATH
16850   ;;
16851
16852 bsdi[45]*)
16853   version_type=linux
16854   need_version=no
16855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16856   soname_spec='${libname}${release}${shared_ext}$major'
16857   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16858   shlibpath_var=LD_LIBRARY_PATH
16859   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16860   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16861   # the default ld.so.conf also contains /usr/contrib/lib and
16862   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16863   # libtool to hard-code these into programs
16864   ;;
16865
16866 cygwin* | mingw* | pw32*)
16867   version_type=windows
16868   shrext_cmds=".dll"
16869   need_version=no
16870   need_lib_prefix=no
16871
16872   case $GCC,$host_os in
16873   yes,cygwin* | yes,mingw* | yes,pw32*)
16874     library_names_spec='$libname.dll.a'
16875     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16876     postinstall_cmds='base_file=`basename \${file}`~
16877       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16878       dldir=$destdir/`dirname \$dlpath`~
16879       test -d \$dldir || mkdir -p \$dldir~
16880       $install_prog $dir/$dlname \$dldir/$dlname'
16881     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16882       dlpath=$dir/\$dldll~
16883        $rm \$dlpath'
16884     shlibpath_overrides_runpath=yes
16885
16886     case $host_os in
16887     cygwin*)
16888       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16889       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16890       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16891       ;;
16892     mingw*)
16893       # MinGW DLLs use traditional 'lib' prefix
16894       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16895       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16896       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16897         # It is most probably a Windows format PATH printed by
16898         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16899         # path with ; separators, and with drive letters. We can handle the
16900         # drive letters (cygwin fileutils understands them), so leave them,
16901         # especially as we might pass files found there to a mingw objdump,
16902         # which wouldn't understand a cygwinified path. Ahh.
16903         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16904       else
16905         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16906       fi
16907       ;;
16908     pw32*)
16909       # pw32 DLLs use 'pw' prefix rather than 'lib'
16910       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16911       ;;
16912     esac
16913     ;;
16914
16915   *)
16916     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16917     ;;
16918   esac
16919   dynamic_linker='Win32 ld.exe'
16920   # FIXME: first we should search . and the directory the executable is in
16921   shlibpath_var=PATH
16922   ;;
16923
16924 darwin* | rhapsody*)
16925   dynamic_linker="$host_os dyld"
16926   version_type=darwin
16927   need_lib_prefix=no
16928   need_version=no
16929   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16930   soname_spec='${libname}${release}${major}$shared_ext'
16931   shlibpath_overrides_runpath=yes
16932   shlibpath_var=DYLD_LIBRARY_PATH
16933   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16934   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16935   if test "$GCC" = yes; then
16936     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"`
16937   else
16938     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16939   fi
16940   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16941   ;;
16942
16943 dgux*)
16944   version_type=linux
16945   need_lib_prefix=no
16946   need_version=no
16947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16948   soname_spec='${libname}${release}${shared_ext}$major'
16949   shlibpath_var=LD_LIBRARY_PATH
16950   ;;
16951
16952 freebsd1*)
16953   dynamic_linker=no
16954   ;;
16955
16956 kfreebsd*-gnu)
16957   version_type=linux
16958   need_lib_prefix=no
16959   need_version=no
16960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16961   soname_spec='${libname}${release}${shared_ext}$major'
16962   shlibpath_var=LD_LIBRARY_PATH
16963   shlibpath_overrides_runpath=no
16964   hardcode_into_libs=yes
16965   dynamic_linker='GNU ld.so'
16966   ;;
16967
16968 freebsd*)
16969   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16970   version_type=freebsd-$objformat
16971   case $version_type in
16972     freebsd-elf*)
16973       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16974       need_version=no
16975       need_lib_prefix=no
16976       ;;
16977     freebsd-*)
16978       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16979       need_version=yes
16980       ;;
16981   esac
16982   shlibpath_var=LD_LIBRARY_PATH
16983   case $host_os in
16984   freebsd2*)
16985     shlibpath_overrides_runpath=yes
16986     ;;
16987   freebsd3.01* | freebsdelf3.01*)
16988     shlibpath_overrides_runpath=yes
16989     hardcode_into_libs=yes
16990     ;;
16991   *) # from 3.2 on
16992     shlibpath_overrides_runpath=no
16993     hardcode_into_libs=yes
16994     ;;
16995   esac
16996   ;;
16997
16998 gnu*)
16999   version_type=linux
17000   need_lib_prefix=no
17001   need_version=no
17002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17003   soname_spec='${libname}${release}${shared_ext}$major'
17004   shlibpath_var=LD_LIBRARY_PATH
17005   hardcode_into_libs=yes
17006   ;;
17007
17008 hpux9* | hpux10* | hpux11*)
17009   # Give a soname corresponding to the major version so that dld.sl refuses to
17010   # link against other versions.
17011   version_type=sunos
17012   need_lib_prefix=no
17013   need_version=no
17014   case "$host_cpu" in
17015   ia64*)
17016     shrext_cmds='.so'
17017     hardcode_into_libs=yes
17018     dynamic_linker="$host_os dld.so"
17019     shlibpath_var=LD_LIBRARY_PATH
17020     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17021     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17022     soname_spec='${libname}${release}${shared_ext}$major'
17023     if test "X$HPUX_IA64_MODE" = X32; then
17024       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17025     else
17026       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17027     fi
17028     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17029     ;;
17030    hppa*64*)
17031      shrext_cmds='.sl'
17032      hardcode_into_libs=yes
17033      dynamic_linker="$host_os dld.sl"
17034      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17035      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17036      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17037      soname_spec='${libname}${release}${shared_ext}$major'
17038      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17039      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17040      ;;
17041    *)
17042     shrext_cmds='.sl'
17043     dynamic_linker="$host_os dld.sl"
17044     shlibpath_var=SHLIB_PATH
17045     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17046     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17047     soname_spec='${libname}${release}${shared_ext}$major'
17048     ;;
17049   esac
17050   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17051   postinstall_cmds='chmod 555 $lib'
17052   ;;
17053
17054 irix5* | irix6* | nonstopux*)
17055   case $host_os in
17056     nonstopux*) version_type=nonstopux ;;
17057     *)
17058         if test "$lt_cv_prog_gnu_ld" = yes; then
17059                 version_type=linux
17060         else
17061                 version_type=irix
17062         fi ;;
17063   esac
17064   need_lib_prefix=no
17065   need_version=no
17066   soname_spec='${libname}${release}${shared_ext}$major'
17067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17068   case $host_os in
17069   irix5* | nonstopux*)
17070     libsuff= shlibsuff=
17071     ;;
17072   *)
17073     case $LD in # libtool.m4 will add one of these switches to LD
17074     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17075       libsuff= shlibsuff= libmagic=32-bit;;
17076     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17077       libsuff=32 shlibsuff=N32 libmagic=N32;;
17078     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17079       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17080     *) libsuff= shlibsuff= libmagic=never-match;;
17081     esac
17082     ;;
17083   esac
17084   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17085   shlibpath_overrides_runpath=no
17086   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17087   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17088   hardcode_into_libs=yes
17089   ;;
17090
17091 # No shared lib support for Linux oldld, aout, or coff.
17092 linux*oldld* | linux*aout* | linux*coff*)
17093   dynamic_linker=no
17094   ;;
17095
17096 # This must be Linux ELF.
17097 linux*)
17098   version_type=linux
17099   need_lib_prefix=no
17100   need_version=no
17101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17102   soname_spec='${libname}${release}${shared_ext}$major'
17103   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17104   shlibpath_var=LD_LIBRARY_PATH
17105   shlibpath_overrides_runpath=no
17106   # This implies no fast_install, which is unacceptable.
17107   # Some rework will be needed to allow for fast_install
17108   # before this can be enabled.
17109   hardcode_into_libs=yes
17110
17111   # Append ld.so.conf contents to the search path
17112   if test -f /etc/ld.so.conf; then
17113     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17114     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17115   fi
17116
17117   # We used to test for /lib/ld.so.1 and disable shared libraries on
17118   # powerpc, because MkLinux only supported shared libraries with the
17119   # GNU dynamic linker.  Since this was broken with cross compilers,
17120   # most powerpc-linux boxes support dynamic linking these days and
17121   # people can always --disable-shared, the test was removed, and we
17122   # assume the GNU/Linux dynamic linker is in use.
17123   dynamic_linker='GNU/Linux ld.so'
17124   ;;
17125
17126 knetbsd*-gnu)
17127   version_type=linux
17128   need_lib_prefix=no
17129   need_version=no
17130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17131   soname_spec='${libname}${release}${shared_ext}$major'
17132   shlibpath_var=LD_LIBRARY_PATH
17133   shlibpath_overrides_runpath=no
17134   hardcode_into_libs=yes
17135   dynamic_linker='GNU ld.so'
17136   ;;
17137
17138 netbsd*)
17139   version_type=sunos
17140   need_lib_prefix=no
17141   need_version=no
17142   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17143     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17144     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17145     dynamic_linker='NetBSD (a.out) ld.so'
17146   else
17147     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17148     soname_spec='${libname}${release}${shared_ext}$major'
17149     dynamic_linker='NetBSD ld.elf_so'
17150   fi
17151   shlibpath_var=LD_LIBRARY_PATH
17152   shlibpath_overrides_runpath=yes
17153   hardcode_into_libs=yes
17154   ;;
17155
17156 newsos6)
17157   version_type=linux
17158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17159   shlibpath_var=LD_LIBRARY_PATH
17160   shlibpath_overrides_runpath=yes
17161   ;;
17162
17163 nto-qnx*)
17164   version_type=linux
17165   need_lib_prefix=no
17166   need_version=no
17167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17168   soname_spec='${libname}${release}${shared_ext}$major'
17169   shlibpath_var=LD_LIBRARY_PATH
17170   shlibpath_overrides_runpath=yes
17171   ;;
17172
17173 openbsd*)
17174   version_type=sunos
17175   need_lib_prefix=no
17176   need_version=no
17177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17178   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17179   shlibpath_var=LD_LIBRARY_PATH
17180   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17181     case $host_os in
17182       openbsd2.[89] | openbsd2.[89].*)
17183         shlibpath_overrides_runpath=no
17184         ;;
17185       *)
17186         shlibpath_overrides_runpath=yes
17187         ;;
17188       esac
17189   else
17190     shlibpath_overrides_runpath=yes
17191   fi
17192   ;;
17193
17194 os2*)
17195   libname_spec='$name'
17196   shrext_cmds=".dll"
17197   need_lib_prefix=no
17198   library_names_spec='$libname${shared_ext} $libname.a'
17199   dynamic_linker='OS/2 ld.exe'
17200   shlibpath_var=LIBPATH
17201   ;;
17202
17203 osf3* | osf4* | osf5*)
17204   version_type=osf
17205   need_lib_prefix=no
17206   need_version=no
17207   soname_spec='${libname}${release}${shared_ext}$major'
17208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17209   shlibpath_var=LD_LIBRARY_PATH
17210   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17211   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17212   ;;
17213
17214 sco3.2v5*)
17215   version_type=osf
17216   soname_spec='${libname}${release}${shared_ext}$major'
17217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17218   shlibpath_var=LD_LIBRARY_PATH
17219   ;;
17220
17221 solaris*)
17222   version_type=linux
17223   need_lib_prefix=no
17224   need_version=no
17225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17226   soname_spec='${libname}${release}${shared_ext}$major'
17227   shlibpath_var=LD_LIBRARY_PATH
17228   shlibpath_overrides_runpath=yes
17229   hardcode_into_libs=yes
17230   # ldd complains unless libraries are executable
17231   postinstall_cmds='chmod +x $lib'
17232   ;;
17233
17234 sunos4*)
17235   version_type=sunos
17236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17237   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17238   shlibpath_var=LD_LIBRARY_PATH
17239   shlibpath_overrides_runpath=yes
17240   if test "$with_gnu_ld" = yes; then
17241     need_lib_prefix=no
17242   fi
17243   need_version=yes
17244   ;;
17245
17246 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17247   version_type=linux
17248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17249   soname_spec='${libname}${release}${shared_ext}$major'
17250   shlibpath_var=LD_LIBRARY_PATH
17251   case $host_vendor in
17252     sni)
17253       shlibpath_overrides_runpath=no
17254       need_lib_prefix=no
17255       export_dynamic_flag_spec='${wl}-Blargedynsym'
17256       runpath_var=LD_RUN_PATH
17257       ;;
17258     siemens)
17259       need_lib_prefix=no
17260       ;;
17261     motorola)
17262       need_lib_prefix=no
17263       need_version=no
17264       shlibpath_overrides_runpath=no
17265       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17266       ;;
17267   esac
17268   ;;
17269
17270 sysv4*MP*)
17271   if test -d /usr/nec ;then
17272     version_type=linux
17273     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17274     soname_spec='$libname${shared_ext}.$major'
17275     shlibpath_var=LD_LIBRARY_PATH
17276   fi
17277   ;;
17278
17279 uts4*)
17280   version_type=linux
17281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17282   soname_spec='${libname}${release}${shared_ext}$major'
17283   shlibpath_var=LD_LIBRARY_PATH
17284   ;;
17285
17286 *)
17287   dynamic_linker=no
17288   ;;
17289 esac
17290 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17291 echo "${ECHO_T}$dynamic_linker" >&6
17292 test "$dynamic_linker" = no && can_build_shared=no
17293
17294 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17295 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17296 hardcode_action_CXX=
17297 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17298    test -n "$runpath_var_CXX" || \
17299    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17300
17301   # We can hardcode non-existant directories.
17302   if test "$hardcode_direct_CXX" != no &&
17303      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17304      # have to relink, otherwise we might link with an installed library
17305      # when we should be linking with a yet-to-be-installed one
17306      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17307      test "$hardcode_minus_L_CXX" != no; then
17308     # Linking always hardcodes the temporary library directory.
17309     hardcode_action_CXX=relink
17310   else
17311     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17312     hardcode_action_CXX=immediate
17313   fi
17314 else
17315   # We cannot hardcode anything, or else we can only hardcode existing
17316   # directories.
17317   hardcode_action_CXX=unsupported
17318 fi
17319 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17320 echo "${ECHO_T}$hardcode_action_CXX" >&6
17321
17322 if test "$hardcode_action_CXX" = relink; then
17323   # Fast installation is not supported
17324   enable_fast_install=no
17325 elif test "$shlibpath_overrides_runpath" = yes ||
17326      test "$enable_shared" = no; then
17327   # Fast installation is not necessary
17328   enable_fast_install=needless
17329 fi
17330
17331 striplib=
17332 old_striplib=
17333 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17334 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17335 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17336   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17337   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17338   echo "$as_me:$LINENO: result: yes" >&5
17339 echo "${ECHO_T}yes" >&6
17340 else
17341 # FIXME - insert some real tests, host_os isn't really good enough
17342   case $host_os in
17343    darwin*)
17344        if test -n "$STRIP" ; then
17345          striplib="$STRIP -x"
17346          echo "$as_me:$LINENO: result: yes" >&5
17347 echo "${ECHO_T}yes" >&6
17348        else
17349   echo "$as_me:$LINENO: result: no" >&5
17350 echo "${ECHO_T}no" >&6
17351 fi
17352        ;;
17353    *)
17354   echo "$as_me:$LINENO: result: no" >&5
17355 echo "${ECHO_T}no" >&6
17356     ;;
17357   esac
17358 fi
17359
17360 if test "x$enable_dlopen" != xyes; then
17361   enable_dlopen=unknown
17362   enable_dlopen_self=unknown
17363   enable_dlopen_self_static=unknown
17364 else
17365   lt_cv_dlopen=no
17366   lt_cv_dlopen_libs=
17367
17368   case $host_os in
17369   beos*)
17370     lt_cv_dlopen="load_add_on"
17371     lt_cv_dlopen_libs=
17372     lt_cv_dlopen_self=yes
17373     ;;
17374
17375   mingw* | pw32*)
17376     lt_cv_dlopen="LoadLibrary"
17377     lt_cv_dlopen_libs=
17378    ;;
17379
17380   cygwin*)
17381     lt_cv_dlopen="dlopen"
17382     lt_cv_dlopen_libs=
17383    ;;
17384
17385   darwin*)
17386   # if libdl is installed we need to link against it
17387     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17388 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17389 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17390   echo $ECHO_N "(cached) $ECHO_C" >&6
17391 else
17392   ac_check_lib_save_LIBS=$LIBS
17393 LIBS="-ldl  $LIBS"
17394 cat >conftest.$ac_ext <<_ACEOF
17395 /* confdefs.h.  */
17396 _ACEOF
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h.  */
17400
17401 /* Override any gcc2 internal prototype to avoid an error.  */
17402 #ifdef __cplusplus
17403 extern "C"
17404 #endif
17405 /* We use char because int might match the return type of a gcc2
17406    builtin and then its argument prototype would still apply.  */
17407 char dlopen ();
17408 int
17409 main ()
17410 {
17411 dlopen ();
17412   ;
17413   return 0;
17414 }
17415 _ACEOF
17416 rm -f conftest.$ac_objext conftest$ac_exeext
17417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17418   (eval $ac_link) 2>conftest.er1
17419   ac_status=$?
17420   grep -v '^ *+' conftest.er1 >conftest.err
17421   rm -f conftest.er1
17422   cat conftest.err >&5
17423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424   (exit $ac_status); } &&
17425          { ac_try='test -z "$ac_cxx_werror_flag"
17426                          || test ! -s conftest.err'
17427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428   (eval $ac_try) 2>&5
17429   ac_status=$?
17430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431   (exit $ac_status); }; } &&
17432          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17438   ac_cv_lib_dl_dlopen=yes
17439 else
17440   echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17442
17443 ac_cv_lib_dl_dlopen=no
17444 fi
17445 rm -f conftest.err conftest.$ac_objext \
17446       conftest$ac_exeext conftest.$ac_ext
17447 LIBS=$ac_check_lib_save_LIBS
17448 fi
17449 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17450 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17451 if test $ac_cv_lib_dl_dlopen = yes; then
17452   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17453 else
17454
17455     lt_cv_dlopen="dyld"
17456     lt_cv_dlopen_libs=
17457     lt_cv_dlopen_self=yes
17458
17459 fi
17460
17461    ;;
17462
17463   *)
17464     echo "$as_me:$LINENO: checking for shl_load" >&5
17465 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17466 if test "${ac_cv_func_shl_load+set}" = set; then
17467   echo $ECHO_N "(cached) $ECHO_C" >&6
17468 else
17469   cat >conftest.$ac_ext <<_ACEOF
17470 /* confdefs.h.  */
17471 _ACEOF
17472 cat confdefs.h >>conftest.$ac_ext
17473 cat >>conftest.$ac_ext <<_ACEOF
17474 /* end confdefs.h.  */
17475 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17476    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17477 #define shl_load innocuous_shl_load
17478
17479 /* System header to define __stub macros and hopefully few prototypes,
17480     which can conflict with char shl_load (); below.
17481     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17482     <limits.h> exists even on freestanding compilers.  */
17483
17484 #ifdef __STDC__
17485 # include <limits.h>
17486 #else
17487 # include <assert.h>
17488 #endif
17489
17490 #undef shl_load
17491
17492 /* Override any gcc2 internal prototype to avoid an error.  */
17493 #ifdef __cplusplus
17494 extern "C"
17495 {
17496 #endif
17497 /* We use char because int might match the return type of a gcc2
17498    builtin and then its argument prototype would still apply.  */
17499 char shl_load ();
17500 /* The GNU C library defines this for functions which it implements
17501     to always fail with ENOSYS.  Some functions are actually named
17502     something starting with __ and the normal name is an alias.  */
17503 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17504 choke me
17505 #else
17506 char (*f) () = shl_load;
17507 #endif
17508 #ifdef __cplusplus
17509 }
17510 #endif
17511
17512 int
17513 main ()
17514 {
17515 return f != shl_load;
17516   ;
17517   return 0;
17518 }
17519 _ACEOF
17520 rm -f conftest.$ac_objext conftest$ac_exeext
17521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17522   (eval $ac_link) 2>conftest.er1
17523   ac_status=$?
17524   grep -v '^ *+' conftest.er1 >conftest.err
17525   rm -f conftest.er1
17526   cat conftest.err >&5
17527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528   (exit $ac_status); } &&
17529          { ac_try='test -z "$ac_cxx_werror_flag"
17530                          || test ! -s conftest.err'
17531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532   (eval $ac_try) 2>&5
17533   ac_status=$?
17534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535   (exit $ac_status); }; } &&
17536          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17542   ac_cv_func_shl_load=yes
17543 else
17544   echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17546
17547 ac_cv_func_shl_load=no
17548 fi
17549 rm -f conftest.err conftest.$ac_objext \
17550       conftest$ac_exeext conftest.$ac_ext
17551 fi
17552 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17553 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17554 if test $ac_cv_func_shl_load = yes; then
17555   lt_cv_dlopen="shl_load"
17556 else
17557   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17558 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17559 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17560   echo $ECHO_N "(cached) $ECHO_C" >&6
17561 else
17562   ac_check_lib_save_LIBS=$LIBS
17563 LIBS="-ldld  $LIBS"
17564 cat >conftest.$ac_ext <<_ACEOF
17565 /* confdefs.h.  */
17566 _ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h.  */
17570
17571 /* Override any gcc2 internal prototype to avoid an error.  */
17572 #ifdef __cplusplus
17573 extern "C"
17574 #endif
17575 /* We use char because int might match the return type of a gcc2
17576    builtin and then its argument prototype would still apply.  */
17577 char shl_load ();
17578 int
17579 main ()
17580 {
17581 shl_load ();
17582   ;
17583   return 0;
17584 }
17585 _ACEOF
17586 rm -f conftest.$ac_objext conftest$ac_exeext
17587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17588   (eval $ac_link) 2>conftest.er1
17589   ac_status=$?
17590   grep -v '^ *+' conftest.er1 >conftest.err
17591   rm -f conftest.er1
17592   cat conftest.err >&5
17593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594   (exit $ac_status); } &&
17595          { ac_try='test -z "$ac_cxx_werror_flag"
17596                          || test ! -s conftest.err'
17597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598   (eval $ac_try) 2>&5
17599   ac_status=$?
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); }; } &&
17602          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17608   ac_cv_lib_dld_shl_load=yes
17609 else
17610   echo "$as_me: failed program was:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17612
17613 ac_cv_lib_dld_shl_load=no
17614 fi
17615 rm -f conftest.err conftest.$ac_objext \
17616       conftest$ac_exeext conftest.$ac_ext
17617 LIBS=$ac_check_lib_save_LIBS
17618 fi
17619 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17620 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17621 if test $ac_cv_lib_dld_shl_load = yes; then
17622   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17623 else
17624   echo "$as_me:$LINENO: checking for dlopen" >&5
17625 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17626 if test "${ac_cv_func_dlopen+set}" = set; then
17627   echo $ECHO_N "(cached) $ECHO_C" >&6
17628 else
17629   cat >conftest.$ac_ext <<_ACEOF
17630 /* confdefs.h.  */
17631 _ACEOF
17632 cat confdefs.h >>conftest.$ac_ext
17633 cat >>conftest.$ac_ext <<_ACEOF
17634 /* end confdefs.h.  */
17635 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17636    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17637 #define dlopen innocuous_dlopen
17638
17639 /* System header to define __stub macros and hopefully few prototypes,
17640     which can conflict with char dlopen (); below.
17641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17642     <limits.h> exists even on freestanding compilers.  */
17643
17644 #ifdef __STDC__
17645 # include <limits.h>
17646 #else
17647 # include <assert.h>
17648 #endif
17649
17650 #undef dlopen
17651
17652 /* Override any gcc2 internal prototype to avoid an error.  */
17653 #ifdef __cplusplus
17654 extern "C"
17655 {
17656 #endif
17657 /* We use char because int might match the return type of a gcc2
17658    builtin and then its argument prototype would still apply.  */
17659 char dlopen ();
17660 /* The GNU C library defines this for functions which it implements
17661     to always fail with ENOSYS.  Some functions are actually named
17662     something starting with __ and the normal name is an alias.  */
17663 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17664 choke me
17665 #else
17666 char (*f) () = dlopen;
17667 #endif
17668 #ifdef __cplusplus
17669 }
17670 #endif
17671
17672 int
17673 main ()
17674 {
17675 return f != dlopen;
17676   ;
17677   return 0;
17678 }
17679 _ACEOF
17680 rm -f conftest.$ac_objext conftest$ac_exeext
17681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17682   (eval $ac_link) 2>conftest.er1
17683   ac_status=$?
17684   grep -v '^ *+' conftest.er1 >conftest.err
17685   rm -f conftest.er1
17686   cat conftest.err >&5
17687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688   (exit $ac_status); } &&
17689          { ac_try='test -z "$ac_cxx_werror_flag"
17690                          || test ! -s conftest.err'
17691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692   (eval $ac_try) 2>&5
17693   ac_status=$?
17694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695   (exit $ac_status); }; } &&
17696          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17702   ac_cv_func_dlopen=yes
17703 else
17704   echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17706
17707 ac_cv_func_dlopen=no
17708 fi
17709 rm -f conftest.err conftest.$ac_objext \
17710       conftest$ac_exeext conftest.$ac_ext
17711 fi
17712 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17713 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17714 if test $ac_cv_func_dlopen = yes; then
17715   lt_cv_dlopen="dlopen"
17716 else
17717   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17718 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17719 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17720   echo $ECHO_N "(cached) $ECHO_C" >&6
17721 else
17722   ac_check_lib_save_LIBS=$LIBS
17723 LIBS="-ldl  $LIBS"
17724 cat >conftest.$ac_ext <<_ACEOF
17725 /* confdefs.h.  */
17726 _ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h.  */
17730
17731 /* Override any gcc2 internal prototype to avoid an error.  */
17732 #ifdef __cplusplus
17733 extern "C"
17734 #endif
17735 /* We use char because int might match the return type of a gcc2
17736    builtin and then its argument prototype would still apply.  */
17737 char dlopen ();
17738 int
17739 main ()
17740 {
17741 dlopen ();
17742   ;
17743   return 0;
17744 }
17745 _ACEOF
17746 rm -f conftest.$ac_objext conftest$ac_exeext
17747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17748   (eval $ac_link) 2>conftest.er1
17749   ac_status=$?
17750   grep -v '^ *+' conftest.er1 >conftest.err
17751   rm -f conftest.er1
17752   cat conftest.err >&5
17753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754   (exit $ac_status); } &&
17755          { ac_try='test -z "$ac_cxx_werror_flag"
17756                          || test ! -s conftest.err'
17757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758   (eval $ac_try) 2>&5
17759   ac_status=$?
17760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761   (exit $ac_status); }; } &&
17762          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17768   ac_cv_lib_dl_dlopen=yes
17769 else
17770   echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17772
17773 ac_cv_lib_dl_dlopen=no
17774 fi
17775 rm -f conftest.err conftest.$ac_objext \
17776       conftest$ac_exeext conftest.$ac_ext
17777 LIBS=$ac_check_lib_save_LIBS
17778 fi
17779 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17780 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17781 if test $ac_cv_lib_dl_dlopen = yes; then
17782   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17783 else
17784   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17785 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17786 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17787   echo $ECHO_N "(cached) $ECHO_C" >&6
17788 else
17789   ac_check_lib_save_LIBS=$LIBS
17790 LIBS="-lsvld  $LIBS"
17791 cat >conftest.$ac_ext <<_ACEOF
17792 /* confdefs.h.  */
17793 _ACEOF
17794 cat confdefs.h >>conftest.$ac_ext
17795 cat >>conftest.$ac_ext <<_ACEOF
17796 /* end confdefs.h.  */
17797
17798 /* Override any gcc2 internal prototype to avoid an error.  */
17799 #ifdef __cplusplus
17800 extern "C"
17801 #endif
17802 /* We use char because int might match the return type of a gcc2
17803    builtin and then its argument prototype would still apply.  */
17804 char dlopen ();
17805 int
17806 main ()
17807 {
17808 dlopen ();
17809   ;
17810   return 0;
17811 }
17812 _ACEOF
17813 rm -f conftest.$ac_objext conftest$ac_exeext
17814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17815   (eval $ac_link) 2>conftest.er1
17816   ac_status=$?
17817   grep -v '^ *+' conftest.er1 >conftest.err
17818   rm -f conftest.er1
17819   cat conftest.err >&5
17820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821   (exit $ac_status); } &&
17822          { ac_try='test -z "$ac_cxx_werror_flag"
17823                          || test ! -s conftest.err'
17824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825   (eval $ac_try) 2>&5
17826   ac_status=$?
17827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828   (exit $ac_status); }; } &&
17829          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17835   ac_cv_lib_svld_dlopen=yes
17836 else
17837   echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17839
17840 ac_cv_lib_svld_dlopen=no
17841 fi
17842 rm -f conftest.err conftest.$ac_objext \
17843       conftest$ac_exeext conftest.$ac_ext
17844 LIBS=$ac_check_lib_save_LIBS
17845 fi
17846 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17847 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17848 if test $ac_cv_lib_svld_dlopen = yes; then
17849   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17850 else
17851   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17852 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17853 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17854   echo $ECHO_N "(cached) $ECHO_C" >&6
17855 else
17856   ac_check_lib_save_LIBS=$LIBS
17857 LIBS="-ldld  $LIBS"
17858 cat >conftest.$ac_ext <<_ACEOF
17859 /* confdefs.h.  */
17860 _ACEOF
17861 cat confdefs.h >>conftest.$ac_ext
17862 cat >>conftest.$ac_ext <<_ACEOF
17863 /* end confdefs.h.  */
17864
17865 /* Override any gcc2 internal prototype to avoid an error.  */
17866 #ifdef __cplusplus
17867 extern "C"
17868 #endif
17869 /* We use char because int might match the return type of a gcc2
17870    builtin and then its argument prototype would still apply.  */
17871 char dld_link ();
17872 int
17873 main ()
17874 {
17875 dld_link ();
17876   ;
17877   return 0;
17878 }
17879 _ACEOF
17880 rm -f conftest.$ac_objext conftest$ac_exeext
17881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17882   (eval $ac_link) 2>conftest.er1
17883   ac_status=$?
17884   grep -v '^ *+' conftest.er1 >conftest.err
17885   rm -f conftest.er1
17886   cat conftest.err >&5
17887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888   (exit $ac_status); } &&
17889          { ac_try='test -z "$ac_cxx_werror_flag"
17890                          || test ! -s conftest.err'
17891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892   (eval $ac_try) 2>&5
17893   ac_status=$?
17894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895   (exit $ac_status); }; } &&
17896          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17902   ac_cv_lib_dld_dld_link=yes
17903 else
17904   echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17906
17907 ac_cv_lib_dld_dld_link=no
17908 fi
17909 rm -f conftest.err conftest.$ac_objext \
17910       conftest$ac_exeext conftest.$ac_ext
17911 LIBS=$ac_check_lib_save_LIBS
17912 fi
17913 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17914 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17915 if test $ac_cv_lib_dld_dld_link = yes; then
17916   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17917 fi
17918
17919
17920 fi
17921
17922
17923 fi
17924
17925
17926 fi
17927
17928
17929 fi
17930
17931
17932 fi
17933
17934     ;;
17935   esac
17936
17937   if test "x$lt_cv_dlopen" != xno; then
17938     enable_dlopen=yes
17939   else
17940     enable_dlopen=no
17941   fi
17942
17943   case $lt_cv_dlopen in
17944   dlopen)
17945     save_CPPFLAGS="$CPPFLAGS"
17946     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17947
17948     save_LDFLAGS="$LDFLAGS"
17949     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17950
17951     save_LIBS="$LIBS"
17952     LIBS="$lt_cv_dlopen_libs $LIBS"
17953
17954     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17955 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17956 if test "${lt_cv_dlopen_self+set}" = set; then
17957   echo $ECHO_N "(cached) $ECHO_C" >&6
17958 else
17959           if test "$cross_compiling" = yes; then :
17960   lt_cv_dlopen_self=cross
17961 else
17962   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17963   lt_status=$lt_dlunknown
17964   cat > conftest.$ac_ext <<EOF
17965 #line 17965 "configure"
17966 #include "confdefs.h"
17967
17968 #if HAVE_DLFCN_H
17969 #include <dlfcn.h>
17970 #endif
17971
17972 #include <stdio.h>
17973
17974 #ifdef RTLD_GLOBAL
17975 #  define LT_DLGLOBAL           RTLD_GLOBAL
17976 #else
17977 #  ifdef DL_GLOBAL
17978 #    define LT_DLGLOBAL         DL_GLOBAL
17979 #  else
17980 #    define LT_DLGLOBAL         0
17981 #  endif
17982 #endif
17983
17984 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17985    find out it does not work in some platform. */
17986 #ifndef LT_DLLAZY_OR_NOW
17987 #  ifdef RTLD_LAZY
17988 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17989 #  else
17990 #    ifdef DL_LAZY
17991 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17992 #    else
17993 #      ifdef RTLD_NOW
17994 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17995 #      else
17996 #        ifdef DL_NOW
17997 #          define LT_DLLAZY_OR_NOW      DL_NOW
17998 #        else
17999 #          define LT_DLLAZY_OR_NOW      0
18000 #        endif
18001 #      endif
18002 #    endif
18003 #  endif
18004 #endif
18005
18006 #ifdef __cplusplus
18007 extern "C" void exit (int);
18008 #endif
18009
18010 void fnord() { int i=42;}
18011 int main ()
18012 {
18013   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18014   int status = $lt_dlunknown;
18015
18016   if (self)
18017     {
18018       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18019       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18020       /* dlclose (self); */
18021     }
18022
18023     exit (status);
18024 }
18025 EOF
18026   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18027   (eval $ac_link) 2>&5
18028   ac_status=$?
18029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18031     (./conftest; exit; ) 2>/dev/null
18032     lt_status=$?
18033     case x$lt_status in
18034       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18035       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18036       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18037     esac
18038   else :
18039     # compilation failed
18040     lt_cv_dlopen_self=no
18041   fi
18042 fi
18043 rm -fr conftest*
18044
18045
18046 fi
18047 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18048 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18049
18050     if test "x$lt_cv_dlopen_self" = xyes; then
18051       LDFLAGS="$LDFLAGS $link_static_flag"
18052       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18053 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18054 if test "${lt_cv_dlopen_self_static+set}" = set; then
18055   echo $ECHO_N "(cached) $ECHO_C" >&6
18056 else
18057           if test "$cross_compiling" = yes; then :
18058   lt_cv_dlopen_self_static=cross
18059 else
18060   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18061   lt_status=$lt_dlunknown
18062   cat > conftest.$ac_ext <<EOF
18063 #line 18063 "configure"
18064 #include "confdefs.h"
18065
18066 #if HAVE_DLFCN_H
18067 #include <dlfcn.h>
18068 #endif
18069
18070 #include <stdio.h>
18071
18072 #ifdef RTLD_GLOBAL
18073 #  define LT_DLGLOBAL           RTLD_GLOBAL
18074 #else
18075 #  ifdef DL_GLOBAL
18076 #    define LT_DLGLOBAL         DL_GLOBAL
18077 #  else
18078 #    define LT_DLGLOBAL         0
18079 #  endif
18080 #endif
18081
18082 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18083    find out it does not work in some platform. */
18084 #ifndef LT_DLLAZY_OR_NOW
18085 #  ifdef RTLD_LAZY
18086 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18087 #  else
18088 #    ifdef DL_LAZY
18089 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18090 #    else
18091 #      ifdef RTLD_NOW
18092 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18093 #      else
18094 #        ifdef DL_NOW
18095 #          define LT_DLLAZY_OR_NOW      DL_NOW
18096 #        else
18097 #          define LT_DLLAZY_OR_NOW      0
18098 #        endif
18099 #      endif
18100 #    endif
18101 #  endif
18102 #endif
18103
18104 #ifdef __cplusplus
18105 extern "C" void exit (int);
18106 #endif
18107
18108 void fnord() { int i=42;}
18109 int main ()
18110 {
18111   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18112   int status = $lt_dlunknown;
18113
18114   if (self)
18115     {
18116       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18117       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18118       /* dlclose (self); */
18119     }
18120
18121     exit (status);
18122 }
18123 EOF
18124   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18125   (eval $ac_link) 2>&5
18126   ac_status=$?
18127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18129     (./conftest; exit; ) 2>/dev/null
18130     lt_status=$?
18131     case x$lt_status in
18132       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18133       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18134       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18135     esac
18136   else :
18137     # compilation failed
18138     lt_cv_dlopen_self_static=no
18139   fi
18140 fi
18141 rm -fr conftest*
18142
18143
18144 fi
18145 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18146 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18147     fi
18148
18149     CPPFLAGS="$save_CPPFLAGS"
18150     LDFLAGS="$save_LDFLAGS"
18151     LIBS="$save_LIBS"
18152     ;;
18153   esac
18154
18155   case $lt_cv_dlopen_self in
18156   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18157   *) enable_dlopen_self=unknown ;;
18158   esac
18159
18160   case $lt_cv_dlopen_self_static in
18161   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18162   *) enable_dlopen_self_static=unknown ;;
18163   esac
18164 fi
18165
18166
18167 # The else clause should only fire when bootstrapping the
18168 # libtool distribution, otherwise you forgot to ship ltmain.sh
18169 # with your package, and you will get complaints that there are
18170 # no rules to generate ltmain.sh.
18171 if test -f "$ltmain"; then
18172   # See if we are running on zsh, and set the options which allow our commands through
18173   # without removal of \ escapes.
18174   if test -n "${ZSH_VERSION+set}" ; then
18175     setopt NO_GLOB_SUBST
18176   fi
18177   # Now quote all the things that may contain metacharacters while being
18178   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18179   # variables and quote the copies for generation of the libtool script.
18180   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18181     SED SHELL STRIP \
18182     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18183     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18184     deplibs_check_method reload_flag reload_cmds need_locks \
18185     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18186     lt_cv_sys_global_symbol_to_c_name_address \
18187     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18188     old_postinstall_cmds old_postuninstall_cmds \
18189     compiler_CXX \
18190     CC_CXX \
18191     LD_CXX \
18192     lt_prog_compiler_wl_CXX \
18193     lt_prog_compiler_pic_CXX \
18194     lt_prog_compiler_static_CXX \
18195     lt_prog_compiler_no_builtin_flag_CXX \
18196     export_dynamic_flag_spec_CXX \
18197     thread_safe_flag_spec_CXX \
18198     whole_archive_flag_spec_CXX \
18199     enable_shared_with_static_runtimes_CXX \
18200     old_archive_cmds_CXX \
18201     old_archive_from_new_cmds_CXX \
18202     predep_objects_CXX \
18203     postdep_objects_CXX \
18204     predeps_CXX \
18205     postdeps_CXX \
18206     compiler_lib_search_path_CXX \
18207     archive_cmds_CXX \
18208     archive_expsym_cmds_CXX \
18209     postinstall_cmds_CXX \
18210     postuninstall_cmds_CXX \
18211     old_archive_from_expsyms_cmds_CXX \
18212     allow_undefined_flag_CXX \
18213     no_undefined_flag_CXX \
18214     export_symbols_cmds_CXX \
18215     hardcode_libdir_flag_spec_CXX \
18216     hardcode_libdir_flag_spec_ld_CXX \
18217     hardcode_libdir_separator_CXX \
18218     hardcode_automatic_CXX \
18219     module_cmds_CXX \
18220     module_expsym_cmds_CXX \
18221     lt_cv_prog_compiler_c_o_CXX \
18222     exclude_expsyms_CXX \
18223     include_expsyms_CXX; do
18224
18225     case $var in
18226     old_archive_cmds_CXX | \
18227     old_archive_from_new_cmds_CXX | \
18228     archive_cmds_CXX | \
18229     archive_expsym_cmds_CXX | \
18230     module_cmds_CXX | \
18231     module_expsym_cmds_CXX | \
18232     old_archive_from_expsyms_cmds_CXX | \
18233     export_symbols_cmds_CXX | \
18234     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18235     postinstall_cmds | postuninstall_cmds | \
18236     old_postinstall_cmds | old_postuninstall_cmds | \
18237     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18238       # Double-quote double-evaled strings.
18239       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18240       ;;
18241     *)
18242       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18243       ;;
18244     esac
18245   done
18246
18247   case $lt_echo in
18248   *'\$0 --fallback-echo"')
18249     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18250     ;;
18251   esac
18252
18253 cfgfile="$ofile"
18254
18255   cat <<__EOF__ >> "$cfgfile"
18256 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18257
18258 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18259
18260 # Shell to use when invoking shell scripts.
18261 SHELL=$lt_SHELL
18262
18263 # Whether or not to build shared libraries.
18264 build_libtool_libs=$enable_shared
18265
18266 # Whether or not to build static libraries.
18267 build_old_libs=$enable_static
18268
18269 # Whether or not to add -lc for building shared libraries.
18270 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18271
18272 # Whether or not to disallow shared libs when runtime libs are static
18273 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18274
18275 # Whether or not to optimize for fast installation.
18276 fast_install=$enable_fast_install
18277
18278 # The host system.
18279 host_alias=$host_alias
18280 host=$host
18281
18282 # An echo program that does not interpret backslashes.
18283 echo=$lt_echo
18284
18285 # The archiver.
18286 AR=$lt_AR
18287 AR_FLAGS=$lt_AR_FLAGS
18288
18289 # A C compiler.
18290 LTCC=$lt_LTCC
18291
18292 # A language-specific compiler.
18293 CC=$lt_compiler_CXX
18294
18295 # Is the compiler the GNU C compiler?
18296 with_gcc=$GCC_CXX
18297
18298 # An ERE matcher.
18299 EGREP=$lt_EGREP
18300
18301 # The linker used to build libraries.
18302 LD=$lt_LD_CXX
18303
18304 # Whether we need hard or soft links.
18305 LN_S=$lt_LN_S
18306
18307 # A BSD-compatible nm program.
18308 NM=$lt_NM
18309
18310 # A symbol stripping program
18311 STRIP=$lt_STRIP
18312
18313 # Used to examine libraries when file_magic_cmd begins "file"
18314 MAGIC_CMD=$MAGIC_CMD
18315
18316 # Used on cygwin: DLL creation program.
18317 DLLTOOL="$DLLTOOL"
18318
18319 # Used on cygwin: object dumper.
18320 OBJDUMP="$OBJDUMP"
18321
18322 # Used on cygwin: assembler.
18323 AS="$AS"
18324
18325 # The name of the directory that contains temporary libtool files.
18326 objdir=$objdir
18327
18328 # How to create reloadable object files.
18329 reload_flag=$lt_reload_flag
18330 reload_cmds=$lt_reload_cmds
18331
18332 # How to pass a linker flag through the compiler.
18333 wl=$lt_lt_prog_compiler_wl_CXX
18334
18335 # Object file suffix (normally "o").
18336 objext="$ac_objext"
18337
18338 # Old archive suffix (normally "a").
18339 libext="$libext"
18340
18341 # Shared library suffix (normally ".so").
18342 shrext_cmds='$shrext_cmds'
18343
18344 # Executable file suffix (normally "").
18345 exeext="$exeext"
18346
18347 # Additional compiler flags for building library objects.
18348 pic_flag=$lt_lt_prog_compiler_pic_CXX
18349 pic_mode=$pic_mode
18350
18351 # What is the maximum length of a command?
18352 max_cmd_len=$lt_cv_sys_max_cmd_len
18353
18354 # Does compiler simultaneously support -c and -o options?
18355 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18356
18357 # Must we lock files when doing compilation ?
18358 need_locks=$lt_need_locks
18359
18360 # Do we need the lib prefix for modules?
18361 need_lib_prefix=$need_lib_prefix
18362
18363 # Do we need a version for libraries?
18364 need_version=$need_version
18365
18366 # Whether dlopen is supported.
18367 dlopen_support=$enable_dlopen
18368
18369 # Whether dlopen of programs is supported.
18370 dlopen_self=$enable_dlopen_self
18371
18372 # Whether dlopen of statically linked programs is supported.
18373 dlopen_self_static=$enable_dlopen_self_static
18374
18375 # Compiler flag to prevent dynamic linking.
18376 link_static_flag=$lt_lt_prog_compiler_static_CXX
18377
18378 # Compiler flag to turn off builtin functions.
18379 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18380
18381 # Compiler flag to allow reflexive dlopens.
18382 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18383
18384 # Compiler flag to generate shared objects directly from archives.
18385 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18386
18387 # Compiler flag to generate thread-safe objects.
18388 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18389
18390 # Library versioning type.
18391 version_type=$version_type
18392
18393 # Format of library name prefix.
18394 libname_spec=$lt_libname_spec
18395
18396 # List of archive names.  First name is the real one, the rest are links.
18397 # The last name is the one that the linker finds with -lNAME.
18398 library_names_spec=$lt_library_names_spec
18399
18400 # The coded name of the library, if different from the real name.
18401 soname_spec=$lt_soname_spec
18402
18403 # Commands used to build and install an old-style archive.
18404 RANLIB=$lt_RANLIB
18405 old_archive_cmds=$lt_old_archive_cmds_CXX
18406 old_postinstall_cmds=$lt_old_postinstall_cmds
18407 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18408
18409 # Create an old-style archive from a shared archive.
18410 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18411
18412 # Create a temporary old-style archive to link instead of a shared archive.
18413 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18414
18415 # Commands used to build and install a shared archive.
18416 archive_cmds=$lt_archive_cmds_CXX
18417 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18418 postinstall_cmds=$lt_postinstall_cmds
18419 postuninstall_cmds=$lt_postuninstall_cmds
18420
18421 # Commands used to build a loadable module (assumed same as above if empty)
18422 module_cmds=$lt_module_cmds_CXX
18423 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18424
18425 # Commands to strip libraries.
18426 old_striplib=$lt_old_striplib
18427 striplib=$lt_striplib
18428
18429 # Dependencies to place before the objects being linked to create a
18430 # shared library.
18431 predep_objects=$lt_predep_objects_CXX
18432
18433 # Dependencies to place after the objects being linked to create a
18434 # shared library.
18435 postdep_objects=$lt_postdep_objects_CXX
18436
18437 # Dependencies to place before the objects being linked to create a
18438 # shared library.
18439 predeps=$lt_predeps_CXX
18440
18441 # Dependencies to place after the objects being linked to create a
18442 # shared library.
18443 postdeps=$lt_postdeps_CXX
18444
18445 # The library search path used internally by the compiler when linking
18446 # a shared library.
18447 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18448
18449 # Method to check whether dependent libraries are shared objects.
18450 deplibs_check_method=$lt_deplibs_check_method
18451
18452 # Command to use when deplibs_check_method == file_magic.
18453 file_magic_cmd=$lt_file_magic_cmd
18454
18455 # Flag that allows shared libraries with undefined symbols to be built.
18456 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18457
18458 # Flag that forces no undefined symbols.
18459 no_undefined_flag=$lt_no_undefined_flag_CXX
18460
18461 # Commands used to finish a libtool library installation in a directory.
18462 finish_cmds=$lt_finish_cmds
18463
18464 # Same as above, but a single script fragment to be evaled but not shown.
18465 finish_eval=$lt_finish_eval
18466
18467 # Take the output of nm and produce a listing of raw symbols and C names.
18468 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18469
18470 # Transform the output of nm in a proper C declaration
18471 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18472
18473 # Transform the output of nm in a C name address pair
18474 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18475
18476 # This is the shared library runtime path variable.
18477 runpath_var=$runpath_var
18478
18479 # This is the shared library path variable.
18480 shlibpath_var=$shlibpath_var
18481
18482 # Is shlibpath searched before the hard-coded library search path?
18483 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18484
18485 # How to hardcode a shared library path into an executable.
18486 hardcode_action=$hardcode_action_CXX
18487
18488 # Whether we should hardcode library paths into libraries.
18489 hardcode_into_libs=$hardcode_into_libs
18490
18491 # Flag to hardcode \$libdir into a binary during linking.
18492 # This must work even if \$libdir does not exist.
18493 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18494
18495 # If ld is used when linking, flag to hardcode \$libdir into
18496 # a binary during linking. This must work even if \$libdir does
18497 # not exist.
18498 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18499
18500 # Whether we need a single -rpath flag with a separated argument.
18501 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18502
18503 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18504 # resulting binary.
18505 hardcode_direct=$hardcode_direct_CXX
18506
18507 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18508 # resulting binary.
18509 hardcode_minus_L=$hardcode_minus_L_CXX
18510
18511 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18512 # the resulting binary.
18513 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18514
18515 # Set to yes if building a shared library automatically hardcodes DIR into the library
18516 # and all subsequent libraries and executables linked against it.
18517 hardcode_automatic=$hardcode_automatic_CXX
18518
18519 # Variables whose values should be saved in libtool wrapper scripts and
18520 # restored at relink time.
18521 variables_saved_for_relink="$variables_saved_for_relink"
18522
18523 # Whether libtool must link a program against all its dependency libraries.
18524 link_all_deplibs=$link_all_deplibs_CXX
18525
18526 # Compile-time system search path for libraries
18527 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18528
18529 # Run-time system search path for libraries
18530 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18531
18532 # Fix the shell variable \$srcfile for the compiler.
18533 fix_srcfile_path="$fix_srcfile_path_CXX"
18534
18535 # Set to yes if exported symbols are required.
18536 always_export_symbols=$always_export_symbols_CXX
18537
18538 # The commands to list exported symbols.
18539 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18540
18541 # The commands to extract the exported symbol list from a shared archive.
18542 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18543
18544 # Symbols that should not be listed in the preloaded symbols.
18545 exclude_expsyms=$lt_exclude_expsyms_CXX
18546
18547 # Symbols that must always be exported.
18548 include_expsyms=$lt_include_expsyms_CXX
18549
18550 # ### END LIBTOOL TAG CONFIG: $tagname
18551
18552 __EOF__
18553
18554
18555 else
18556   # If there is no Makefile yet, we rely on a make rule to execute
18557   # `config.status --recheck' to rerun these tests and create the
18558   # libtool script then.
18559   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18560   if test -f "$ltmain_in"; then
18561     test -f Makefile && make "$ltmain"
18562   fi
18563 fi
18564
18565
18566 ac_ext=c
18567 ac_cpp='$CPP $CPPFLAGS'
18568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18571
18572 CC=$lt_save_CC
18573 LDCXX=$LD
18574 LD=$lt_save_LD
18575 GCC=$lt_save_GCC
18576 with_gnu_ldcxx=$with_gnu_ld
18577 with_gnu_ld=$lt_save_with_gnu_ld
18578 lt_cv_path_LDCXX=$lt_cv_path_LD
18579 lt_cv_path_LD=$lt_save_path_LD
18580 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18581 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18582
18583         else
18584           tagname=""
18585         fi
18586         ;;
18587
18588       F77)
18589         if test -n "$F77" && test "X$F77" != "Xno"; then
18590
18591 ac_ext=f
18592 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18593 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18594 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18595
18596
18597 archive_cmds_need_lc_F77=no
18598 allow_undefined_flag_F77=
18599 always_export_symbols_F77=no
18600 archive_expsym_cmds_F77=
18601 export_dynamic_flag_spec_F77=
18602 hardcode_direct_F77=no
18603 hardcode_libdir_flag_spec_F77=
18604 hardcode_libdir_flag_spec_ld_F77=
18605 hardcode_libdir_separator_F77=
18606 hardcode_minus_L_F77=no
18607 hardcode_automatic_F77=no
18608 module_cmds_F77=
18609 module_expsym_cmds_F77=
18610 link_all_deplibs_F77=unknown
18611 old_archive_cmds_F77=$old_archive_cmds
18612 no_undefined_flag_F77=
18613 whole_archive_flag_spec_F77=
18614 enable_shared_with_static_runtimes_F77=no
18615
18616 # Source file extension for f77 test sources.
18617 ac_ext=f
18618
18619 # Object file extension for compiled f77 test sources.
18620 objext=o
18621 objext_F77=$objext
18622
18623 # Code to be used in simple compile tests
18624 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18625
18626 # Code to be used in simple link tests
18627 lt_simple_link_test_code="      program t\n      end\n"
18628
18629 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18630
18631 # If no C compiler was specified, use CC.
18632 LTCC=${LTCC-"$CC"}
18633
18634 # Allow CC to be a program name with arguments.
18635 compiler=$CC
18636
18637
18638 # Allow CC to be a program name with arguments.
18639 lt_save_CC="$CC"
18640 CC=${F77-"f77"}
18641 compiler=$CC
18642 compiler_F77=$CC
18643 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18644
18645 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18646 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18647 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18648 echo "${ECHO_T}$can_build_shared" >&6
18649
18650 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18651 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18652 test "$can_build_shared" = "no" && enable_shared=no
18653
18654 # On AIX, shared libraries and static libraries use the same namespace, and
18655 # are all built from PIC.
18656 case "$host_os" in
18657 aix3*)
18658   test "$enable_shared" = yes && enable_static=no
18659   if test -n "$RANLIB"; then
18660     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18661     postinstall_cmds='$RANLIB $lib'
18662   fi
18663   ;;
18664 aix4* | aix5*)
18665   test "$enable_shared" = yes && enable_static=no
18666   ;;
18667 esac
18668 echo "$as_me:$LINENO: result: $enable_shared" >&5
18669 echo "${ECHO_T}$enable_shared" >&6
18670
18671 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18672 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18673 # Make sure either enable_shared or enable_static is yes.
18674 test "$enable_shared" = yes || enable_static=yes
18675 echo "$as_me:$LINENO: result: $enable_static" >&5
18676 echo "${ECHO_T}$enable_static" >&6
18677
18678 test "$ld_shlibs_F77" = no && can_build_shared=no
18679
18680 GCC_F77="$G77"
18681 LD_F77="$LD"
18682
18683 lt_prog_compiler_wl_F77=
18684 lt_prog_compiler_pic_F77=
18685 lt_prog_compiler_static_F77=
18686
18687 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18688 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18689
18690   if test "$GCC" = yes; then
18691     lt_prog_compiler_wl_F77='-Wl,'
18692     lt_prog_compiler_static_F77='-static'
18693
18694     case $host_os in
18695       aix*)
18696       # All AIX code is PIC.
18697       if test "$host_cpu" = ia64; then
18698         # AIX 5 now supports IA64 processor
18699         lt_prog_compiler_static_F77='-Bstatic'
18700       fi
18701       ;;
18702
18703     amigaos*)
18704       # FIXME: we need at least 68020 code to build shared libraries, but
18705       # adding the `-m68020' flag to GCC prevents building anything better,
18706       # like `-m68040'.
18707       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18708       ;;
18709
18710     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18711       # PIC is the default for these OSes.
18712       ;;
18713
18714     mingw* | pw32* | os2*)
18715       # This hack is so that the source file can tell whether it is being
18716       # built for inclusion in a dll (and should export symbols for example).
18717       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18718       ;;
18719
18720     darwin* | rhapsody*)
18721       # PIC is the default on this platform
18722       # Common symbols not allowed in MH_DYLIB files
18723       lt_prog_compiler_pic_F77='-fno-common'
18724       ;;
18725
18726     msdosdjgpp*)
18727       # Just because we use GCC doesn't mean we suddenly get shared libraries
18728       # on systems that don't support them.
18729       lt_prog_compiler_can_build_shared_F77=no
18730       enable_shared=no
18731       ;;
18732
18733     sysv4*MP*)
18734       if test -d /usr/nec; then
18735         lt_prog_compiler_pic_F77=-Kconform_pic
18736       fi
18737       ;;
18738
18739     hpux*)
18740       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18741       # not for PA HP-UX.
18742       case "$host_cpu" in
18743       hppa*64*|ia64*)
18744         # +Z the default
18745         ;;
18746       *)
18747         lt_prog_compiler_pic_F77='-fPIC'
18748         ;;
18749       esac
18750       ;;
18751
18752     *)
18753       lt_prog_compiler_pic_F77='-fPIC'
18754       ;;
18755     esac
18756   else
18757     # PORTME Check for flag to pass linker flags through the system compiler.
18758     case $host_os in
18759     aix*)
18760       lt_prog_compiler_wl_F77='-Wl,'
18761       if test "$host_cpu" = ia64; then
18762         # AIX 5 now supports IA64 processor
18763         lt_prog_compiler_static_F77='-Bstatic'
18764       else
18765         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18766       fi
18767       ;;
18768       darwin*)
18769         # PIC is the default on this platform
18770         # Common symbols not allowed in MH_DYLIB files
18771        case "$cc_basename" in
18772          xlc*)
18773          lt_prog_compiler_pic_F77='-qnocommon'
18774          lt_prog_compiler_wl_F77='-Wl,'
18775          ;;
18776        esac
18777        ;;
18778
18779     mingw* | pw32* | os2*)
18780       # This hack is so that the source file can tell whether it is being
18781       # built for inclusion in a dll (and should export symbols for example).
18782       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18783       ;;
18784
18785     hpux9* | hpux10* | hpux11*)
18786       lt_prog_compiler_wl_F77='-Wl,'
18787       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18788       # not for PA HP-UX.
18789       case "$host_cpu" in
18790       hppa*64*|ia64*)
18791         # +Z the default
18792         ;;
18793       *)
18794         lt_prog_compiler_pic_F77='+Z'
18795         ;;
18796       esac
18797       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18798       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18799       ;;
18800
18801     irix5* | irix6* | nonstopux*)
18802       lt_prog_compiler_wl_F77='-Wl,'
18803       # PIC (with -KPIC) is the default.
18804       lt_prog_compiler_static_F77='-non_shared'
18805       ;;
18806
18807     newsos6)
18808       lt_prog_compiler_pic_F77='-KPIC'
18809       lt_prog_compiler_static_F77='-Bstatic'
18810       ;;
18811
18812     linux*)
18813       case $CC in
18814       icc* | ecc*)
18815         lt_prog_compiler_wl_F77='-Wl,'
18816         lt_prog_compiler_pic_F77='-KPIC'
18817         lt_prog_compiler_static_F77='-static'
18818         ;;
18819       ccc*)
18820         lt_prog_compiler_wl_F77='-Wl,'
18821         # All Alpha code is PIC.
18822         lt_prog_compiler_static_F77='-non_shared'
18823         ;;
18824       esac
18825       ;;
18826
18827     osf3* | osf4* | osf5*)
18828       lt_prog_compiler_wl_F77='-Wl,'
18829       # All OSF/1 code is PIC.
18830       lt_prog_compiler_static_F77='-non_shared'
18831       ;;
18832
18833     sco3.2v5*)
18834       lt_prog_compiler_pic_F77='-Kpic'
18835       lt_prog_compiler_static_F77='-dn'
18836       ;;
18837
18838     solaris*)
18839       lt_prog_compiler_wl_F77='-Wl,'
18840       lt_prog_compiler_pic_F77='-KPIC'
18841       lt_prog_compiler_static_F77='-Bstatic'
18842       ;;
18843
18844     sunos4*)
18845       lt_prog_compiler_wl_F77='-Qoption ld '
18846       lt_prog_compiler_pic_F77='-PIC'
18847       lt_prog_compiler_static_F77='-Bstatic'
18848       ;;
18849
18850     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18851       lt_prog_compiler_wl_F77='-Wl,'
18852       lt_prog_compiler_pic_F77='-KPIC'
18853       lt_prog_compiler_static_F77='-Bstatic'
18854       ;;
18855
18856     sysv4*MP*)
18857       if test -d /usr/nec ;then
18858         lt_prog_compiler_pic_F77='-Kconform_pic'
18859         lt_prog_compiler_static_F77='-Bstatic'
18860       fi
18861       ;;
18862
18863     uts4*)
18864       lt_prog_compiler_pic_F77='-pic'
18865       lt_prog_compiler_static_F77='-Bstatic'
18866       ;;
18867
18868     *)
18869       lt_prog_compiler_can_build_shared_F77=no
18870       ;;
18871     esac
18872   fi
18873
18874 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18875 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18876
18877 #
18878 # Check to make sure the PIC flag actually works.
18879 #
18880 if test -n "$lt_prog_compiler_pic_F77"; then
18881
18882 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18883 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18884 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18885   echo $ECHO_N "(cached) $ECHO_C" >&6
18886 else
18887   lt_prog_compiler_pic_works_F77=no
18888   ac_outfile=conftest.$ac_objext
18889    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18890    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18891    # Insert the option either (1) after the last *FLAGS variable, or
18892    # (2) before a word containing "conftest.", or (3) at the end.
18893    # Note that $ac_compile itself does not contain backslashes and begins
18894    # with a dollar sign (not a hyphen), so the echo should work correctly.
18895    # The option is referenced via a variable to avoid confusing sed.
18896    lt_compile=`echo "$ac_compile" | $SED \
18897    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18898    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18899    -e 's:$: $lt_compiler_flag:'`
18900    (eval echo "\"\$as_me:18900: $lt_compile\"" >&5)
18901    (eval "$lt_compile" 2>conftest.err)
18902    ac_status=$?
18903    cat conftest.err >&5
18904    echo "$as_me:18904: \$? = $ac_status" >&5
18905    if (exit $ac_status) && test -s "$ac_outfile"; then
18906      # The compiler can only warn and ignore the option if not recognized
18907      # So say no if there are warnings
18908      if test ! -s conftest.err; then
18909        lt_prog_compiler_pic_works_F77=yes
18910      fi
18911    fi
18912    $rm conftest*
18913
18914 fi
18915 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18916 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18917
18918 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18919     case $lt_prog_compiler_pic_F77 in
18920      "" | " "*) ;;
18921      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18922      esac
18923 else
18924     lt_prog_compiler_pic_F77=
18925      lt_prog_compiler_can_build_shared_F77=no
18926 fi
18927
18928 fi
18929 case "$host_os" in
18930   # For platforms which do not support PIC, -DPIC is meaningless:
18931   *djgpp*)
18932     lt_prog_compiler_pic_F77=
18933     ;;
18934   *)
18935     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18936     ;;
18937 esac
18938
18939 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18940 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18941 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18942   echo $ECHO_N "(cached) $ECHO_C" >&6
18943 else
18944   lt_cv_prog_compiler_c_o_F77=no
18945    $rm -r conftest 2>/dev/null
18946    mkdir conftest
18947    cd conftest
18948    mkdir out
18949    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18950
18951    lt_compiler_flag="-o out/conftest2.$ac_objext"
18952    # Insert the option either (1) after the last *FLAGS variable, or
18953    # (2) before a word containing "conftest.", or (3) at the end.
18954    # Note that $ac_compile itself does not contain backslashes and begins
18955    # with a dollar sign (not a hyphen), so the echo should work correctly.
18956    lt_compile=`echo "$ac_compile" | $SED \
18957    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18958    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18959    -e 's:$: $lt_compiler_flag:'`
18960    (eval echo "\"\$as_me:18960: $lt_compile\"" >&5)
18961    (eval "$lt_compile" 2>out/conftest.err)
18962    ac_status=$?
18963    cat out/conftest.err >&5
18964    echo "$as_me:18964: \$? = $ac_status" >&5
18965    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18966    then
18967      # The compiler can only warn and ignore the option if not recognized
18968      # So say no if there are warnings
18969      if test ! -s out/conftest.err; then
18970        lt_cv_prog_compiler_c_o_F77=yes
18971      fi
18972    fi
18973    chmod u+w .
18974    $rm conftest*
18975    # SGI C++ compiler will create directory out/ii_files/ for
18976    # template instantiation
18977    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18978    $rm out/* && rmdir out
18979    cd ..
18980    rmdir conftest
18981    $rm conftest*
18982
18983 fi
18984 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18985 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18986
18987
18988 hard_links="nottested"
18989 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18990   # do not overwrite the value of need_locks provided by the user
18991   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18992 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18993   hard_links=yes
18994   $rm conftest*
18995   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18996   touch conftest.a
18997   ln conftest.a conftest.b 2>&5 || hard_links=no
18998   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18999   echo "$as_me:$LINENO: result: $hard_links" >&5
19000 echo "${ECHO_T}$hard_links" >&6
19001   if test "$hard_links" = no; then
19002     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19003 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19004     need_locks=warn
19005   fi
19006 else
19007   need_locks=no
19008 fi
19009
19010 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19011 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19012
19013   runpath_var=
19014   allow_undefined_flag_F77=
19015   enable_shared_with_static_runtimes_F77=no
19016   archive_cmds_F77=
19017   archive_expsym_cmds_F77=
19018   old_archive_From_new_cmds_F77=
19019   old_archive_from_expsyms_cmds_F77=
19020   export_dynamic_flag_spec_F77=
19021   whole_archive_flag_spec_F77=
19022   thread_safe_flag_spec_F77=
19023   hardcode_libdir_flag_spec_F77=
19024   hardcode_libdir_flag_spec_ld_F77=
19025   hardcode_libdir_separator_F77=
19026   hardcode_direct_F77=no
19027   hardcode_minus_L_F77=no
19028   hardcode_shlibpath_var_F77=unsupported
19029   link_all_deplibs_F77=unknown
19030   hardcode_automatic_F77=no
19031   module_cmds_F77=
19032   module_expsym_cmds_F77=
19033   always_export_symbols_F77=no
19034   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19035   # include_expsyms should be a list of space-separated symbols to be *always*
19036   # included in the symbol list
19037   include_expsyms_F77=
19038   # exclude_expsyms can be an extended regexp of symbols to exclude
19039   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19040   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19041   # as well as any symbol that contains `d'.
19042   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19043   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19044   # platforms (ab)use it in PIC code, but their linkers get confused if
19045   # the symbol is explicitly referenced.  Since portable code cannot
19046   # rely on this symbol name, it's probably fine to never include it in
19047   # preloaded symbol tables.
19048   extract_expsyms_cmds=
19049
19050   case $host_os in
19051   cygwin* | mingw* | pw32*)
19052     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19053     # When not using gcc, we currently assume that we are using
19054     # Microsoft Visual C++.
19055     if test "$GCC" != yes; then
19056       with_gnu_ld=no
19057     fi
19058     ;;
19059   openbsd*)
19060     with_gnu_ld=no
19061     ;;
19062   esac
19063
19064   ld_shlibs_F77=yes
19065   if test "$with_gnu_ld" = yes; then
19066     # If archive_cmds runs LD, not CC, wlarc should be empty
19067     wlarc='${wl}'
19068
19069     # See if GNU ld supports shared libraries.
19070     case $host_os in
19071     aix3* | aix4* | aix5*)
19072       # On AIX/PPC, the GNU linker is very broken
19073       if test "$host_cpu" != ia64; then
19074         ld_shlibs_F77=no
19075         cat <<EOF 1>&2
19076
19077 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19078 *** to be unable to reliably create shared libraries on AIX.
19079 *** Therefore, libtool is disabling shared libraries support.  If you
19080 *** really care for shared libraries, you may want to modify your PATH
19081 *** so that a non-GNU linker is found, and then restart.
19082
19083 EOF
19084       fi
19085       ;;
19086
19087     amigaos*)
19088       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)'
19089       hardcode_libdir_flag_spec_F77='-L$libdir'
19090       hardcode_minus_L_F77=yes
19091
19092       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19093       # that the semantics of dynamic libraries on AmigaOS, at least up
19094       # to version 4, is to share data among multiple programs linked
19095       # with the same dynamic library.  Since this doesn't match the
19096       # behavior of shared libraries on other platforms, we can't use
19097       # them.
19098       ld_shlibs_F77=no
19099       ;;
19100
19101     beos*)
19102       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19103         allow_undefined_flag_F77=unsupported
19104         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19105         # support --undefined.  This deserves some investigation.  FIXME
19106         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19107       else
19108         ld_shlibs_F77=no
19109       fi
19110       ;;
19111
19112     cygwin* | mingw* | pw32*)
19113       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19114       # as there is no search path for DLLs.
19115       hardcode_libdir_flag_spec_F77='-L$libdir'
19116       allow_undefined_flag_F77=unsupported
19117       always_export_symbols_F77=no
19118       enable_shared_with_static_runtimes_F77=yes
19119       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19120
19121       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19122         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19123         # If the export-symbols file already is a .def file (1st line
19124         # is EXPORTS), use it as is; otherwise, prepend...
19125         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19126           cp $export_symbols $output_objdir/$soname.def;
19127         else
19128           echo EXPORTS > $output_objdir/$soname.def;
19129           cat $export_symbols >> $output_objdir/$soname.def;
19130         fi~
19131         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19132       else
19133         ld_shlibs=no
19134       fi
19135       ;;
19136
19137     netbsd*)
19138       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19139         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19140         wlarc=
19141       else
19142         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19143         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19144       fi
19145       ;;
19146
19147     solaris* | sysv5*)
19148       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19149         ld_shlibs_F77=no
19150         cat <<EOF 1>&2
19151
19152 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19153 *** create shared libraries on Solaris systems.  Therefore, libtool
19154 *** is disabling shared libraries support.  We urge you to upgrade GNU
19155 *** binutils to release 2.9.1 or newer.  Another option is to modify
19156 *** your PATH or compiler configuration so that the native linker is
19157 *** used, and then restart.
19158
19159 EOF
19160       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19161         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19162         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19163       else
19164         ld_shlibs_F77=no
19165       fi
19166       ;;
19167
19168     sunos4*)
19169       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19170       wlarc=
19171       hardcode_direct_F77=yes
19172       hardcode_shlibpath_var_F77=no
19173       ;;
19174
19175   linux*)
19176     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19177         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19178         archive_cmds_F77="$tmp_archive_cmds"
19179       supports_anon_versioning=no
19180       case `$LD -v 2>/dev/null` in
19181         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19182         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19183         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19184         *\ 2.11.*) ;; # other 2.11 versions
19185         *) supports_anon_versioning=yes ;;
19186       esac
19187       if test $supports_anon_versioning = yes; then
19188         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19189 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19190 $echo "local: *; };" >> $output_objdir/$libname.ver~
19191         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19192       else
19193         archive_expsym_cmds_F77="$tmp_archive_cmds"
19194       fi
19195     else
19196       ld_shlibs_F77=no
19197     fi
19198     ;;
19199
19200     *)
19201       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19202         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19203         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19204       else
19205         ld_shlibs_F77=no
19206       fi
19207       ;;
19208     esac
19209
19210     if test "$ld_shlibs_F77" = yes; then
19211       runpath_var=LD_RUN_PATH
19212       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19213       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19214       # ancient GNU ld didn't support --whole-archive et. al.
19215       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19216         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19217       else
19218         whole_archive_flag_spec_F77=
19219       fi
19220     fi
19221   else
19222     # PORTME fill in a description of your system's linker (not GNU ld)
19223     case $host_os in
19224     aix3*)
19225       allow_undefined_flag_F77=unsupported
19226       always_export_symbols_F77=yes
19227       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'
19228       # Note: this linker hardcodes the directories in LIBPATH if there
19229       # are no directories specified by -L.
19230       hardcode_minus_L_F77=yes
19231       if test "$GCC" = yes && test -z "$link_static_flag"; then
19232         # Neither direct hardcoding nor static linking is supported with a
19233         # broken collect2.
19234         hardcode_direct_F77=unsupported
19235       fi
19236       ;;
19237
19238     aix4* | aix5*)
19239       if test "$host_cpu" = ia64; then
19240         # On IA64, the linker does run time linking by default, so we don't
19241         # have to do anything special.
19242         aix_use_runtimelinking=no
19243         exp_sym_flag='-Bexport'
19244         no_entry_flag=""
19245       else
19246         # If we're using GNU nm, then we don't want the "-C" option.
19247         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19248         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19249           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'
19250         else
19251           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'
19252         fi
19253         aix_use_runtimelinking=no
19254
19255         # Test if we are trying to use run time linking or normal
19256         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19257         # need to do runtime linking.
19258         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19259           for ld_flag in $LDFLAGS; do
19260           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19261             aix_use_runtimelinking=yes
19262             break
19263           fi
19264           done
19265         esac
19266
19267         exp_sym_flag='-bexport'
19268         no_entry_flag='-bnoentry'
19269       fi
19270
19271       # When large executables or shared objects are built, AIX ld can
19272       # have problems creating the table of contents.  If linking a library
19273       # or program results in "error TOC overflow" add -mminimal-toc to
19274       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19275       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19276
19277       archive_cmds_F77=''
19278       hardcode_direct_F77=yes
19279       hardcode_libdir_separator_F77=':'
19280       link_all_deplibs_F77=yes
19281
19282       if test "$GCC" = yes; then
19283         case $host_os in aix4.012|aix4.012.*)
19284         # We only want to do this on AIX 4.2 and lower, the check
19285         # below for broken collect2 doesn't work under 4.3+
19286           collect2name=`${CC} -print-prog-name=collect2`
19287           if test -f "$collect2name" && \
19288            strings "$collect2name" | grep resolve_lib_name >/dev/null
19289           then
19290           # We have reworked collect2
19291           hardcode_direct_F77=yes
19292           else
19293           # We have old collect2
19294           hardcode_direct_F77=unsupported
19295           # It fails to find uninstalled libraries when the uninstalled
19296           # path is not listed in the libpath.  Setting hardcode_minus_L
19297           # to unsupported forces relinking
19298           hardcode_minus_L_F77=yes
19299           hardcode_libdir_flag_spec_F77='-L$libdir'
19300           hardcode_libdir_separator_F77=
19301           fi
19302         esac
19303         shared_flag='-shared'
19304       else
19305         # not using gcc
19306         if test "$host_cpu" = ia64; then
19307         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19308         # chokes on -Wl,-G. The following line is correct:
19309           shared_flag='-G'
19310         else
19311         if test "$aix_use_runtimelinking" = yes; then
19312             shared_flag='${wl}-G'
19313           else
19314             shared_flag='${wl}-bM:SRE'
19315         fi
19316         fi
19317       fi
19318
19319       # It seems that -bexpall does not export symbols beginning with
19320       # underscore (_), so it is better to generate a list of symbols to export.
19321       always_export_symbols_F77=yes
19322       if test "$aix_use_runtimelinking" = yes; then
19323         # Warning - without using the other runtime loading flags (-brtl),
19324         # -berok will link without error, but may produce a broken library.
19325         allow_undefined_flag_F77='-berok'
19326        # Determine the default libpath from the value encoded in an empty executable.
19327        cat >conftest.$ac_ext <<_ACEOF
19328       program main
19329
19330       end
19331 _ACEOF
19332 rm -f conftest.$ac_objext conftest$ac_exeext
19333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19334   (eval $ac_link) 2>conftest.er1
19335   ac_status=$?
19336   grep -v '^ *+' conftest.er1 >conftest.err
19337   rm -f conftest.er1
19338   cat conftest.err >&5
19339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340   (exit $ac_status); } &&
19341          { ac_try='test -z "$ac_f77_werror_flag"
19342                          || test ! -s conftest.err'
19343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344   (eval $ac_try) 2>&5
19345   ac_status=$?
19346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347   (exit $ac_status); }; } &&
19348          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19354
19355 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19356 }'`
19357 # Check for a 64-bit object if we didn't find anything.
19358 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; }
19359 }'`; fi
19360 else
19361   echo "$as_me: failed program was:" >&5
19362 sed 's/^/| /' conftest.$ac_ext >&5
19363
19364 fi
19365 rm -f conftest.err conftest.$ac_objext \
19366       conftest$ac_exeext conftest.$ac_ext
19367 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19368
19369        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19370         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"
19371        else
19372         if test "$host_cpu" = ia64; then
19373           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19374           allow_undefined_flag_F77="-z nodefs"
19375           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"
19376         else
19377          # Determine the default libpath from the value encoded in an empty executable.
19378          cat >conftest.$ac_ext <<_ACEOF
19379       program main
19380
19381       end
19382 _ACEOF
19383 rm -f conftest.$ac_objext conftest$ac_exeext
19384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19385   (eval $ac_link) 2>conftest.er1
19386   ac_status=$?
19387   grep -v '^ *+' conftest.er1 >conftest.err
19388   rm -f conftest.er1
19389   cat conftest.err >&5
19390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391   (exit $ac_status); } &&
19392          { ac_try='test -z "$ac_f77_werror_flag"
19393                          || test ! -s conftest.err'
19394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19395   (eval $ac_try) 2>&5
19396   ac_status=$?
19397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); }; } &&
19399          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19405
19406 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19407 }'`
19408 # Check for a 64-bit object if we didn't find anything.
19409 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; }
19410 }'`; fi
19411 else
19412   echo "$as_me: failed program was:" >&5
19413 sed 's/^/| /' conftest.$ac_ext >&5
19414
19415 fi
19416 rm -f conftest.err conftest.$ac_objext \
19417       conftest$ac_exeext conftest.$ac_ext
19418 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19419
19420          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19421           # Warning - without using the other run time loading flags,
19422           # -berok will link without error, but may produce a broken library.
19423           no_undefined_flag_F77=' ${wl}-bernotok'
19424           allow_undefined_flag_F77=' ${wl}-berok'
19425           # -bexpall does not export symbols beginning with underscore (_)
19426           always_export_symbols_F77=yes
19427           # Exported symbols can be pulled into shared objects from archives
19428           whole_archive_flag_spec_F77=' '
19429           archive_cmds_need_lc_F77=yes
19430           # This is similar to how AIX traditionally builds it's shared libraries.
19431           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'
19432         fi
19433       fi
19434       ;;
19435
19436     amigaos*)
19437       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)'
19438       hardcode_libdir_flag_spec_F77='-L$libdir'
19439       hardcode_minus_L_F77=yes
19440       # see comment about different semantics on the GNU ld section
19441       ld_shlibs_F77=no
19442       ;;
19443
19444     bsdi[45]*)
19445       export_dynamic_flag_spec_F77=-rdynamic
19446       ;;
19447
19448     cygwin* | mingw* | pw32*)
19449       # When not using gcc, we currently assume that we are using
19450       # Microsoft Visual C++.
19451       # hardcode_libdir_flag_spec is actually meaningless, as there is
19452       # no search path for DLLs.
19453       hardcode_libdir_flag_spec_F77=' '
19454       allow_undefined_flag_F77=unsupported
19455       # Tell ltmain to make .lib files, not .a files.
19456       libext=lib
19457       # Tell ltmain to make .dll files, not .so files.
19458       shrext_cmds=".dll"
19459       # FIXME: Setting linknames here is a bad hack.
19460       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19461       # The linker will automatically build a .lib file if we build a DLL.
19462       old_archive_From_new_cmds_F77='true'
19463       # FIXME: Should let the user specify the lib program.
19464       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19465       fix_srcfile_path='`cygpath -w "$srcfile"`'
19466       enable_shared_with_static_runtimes_F77=yes
19467       ;;
19468
19469     darwin* | rhapsody*)
19470       case "$host_os" in
19471         rhapsody* | darwin1.[012])
19472          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19473          ;;
19474        *) # Darwin 1.3 on
19475          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19476            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19477          else
19478            case ${MACOSX_DEPLOYMENT_TARGET} in
19479              10.[012])
19480                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19481                ;;
19482              10.*)
19483                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19484                ;;
19485            esac
19486          fi
19487          ;;
19488       esac
19489       archive_cmds_need_lc_F77=no
19490       hardcode_direct_F77=no
19491       hardcode_automatic_F77=yes
19492       hardcode_shlibpath_var_F77=unsupported
19493       whole_archive_flag_spec_F77=''
19494       link_all_deplibs_F77=yes
19495     if test "$GCC" = yes ; then
19496         output_verbose_link_cmd='echo'
19497         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19498       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19499       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19500       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}'
19501       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}'
19502     else
19503       case "$cc_basename" in
19504         xlc*)
19505          output_verbose_link_cmd='echo'
19506          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19507          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19508           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19509          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}'
19510           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}'
19511           ;;
19512        *)
19513          ld_shlibs_F77=no
19514           ;;
19515       esac
19516     fi
19517       ;;
19518
19519     dgux*)
19520       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19521       hardcode_libdir_flag_spec_F77='-L$libdir'
19522       hardcode_shlibpath_var_F77=no
19523       ;;
19524
19525     freebsd1*)
19526       ld_shlibs_F77=no
19527       ;;
19528
19529     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19530     # support.  Future versions do this automatically, but an explicit c++rt0.o
19531     # does not break anything, and helps significantly (at the cost of a little
19532     # extra space).
19533     freebsd2.2*)
19534       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19535       hardcode_libdir_flag_spec_F77='-R$libdir'
19536       hardcode_direct_F77=yes
19537       hardcode_shlibpath_var_F77=no
19538       ;;
19539
19540     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19541     freebsd2*)
19542       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19543       hardcode_direct_F77=yes
19544       hardcode_minus_L_F77=yes
19545       hardcode_shlibpath_var_F77=no
19546       ;;
19547
19548     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19549     freebsd* | kfreebsd*-gnu)
19550       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19551       hardcode_libdir_flag_spec_F77='-R$libdir'
19552       hardcode_direct_F77=yes
19553       hardcode_shlibpath_var_F77=no
19554       ;;
19555
19556     hpux9*)
19557       if test "$GCC" = yes; then
19558         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'
19559       else
19560         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'
19561       fi
19562       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19563       hardcode_libdir_separator_F77=:
19564       hardcode_direct_F77=yes
19565
19566       # hardcode_minus_L: Not really in the search PATH,
19567       # but as the default location of the library.
19568       hardcode_minus_L_F77=yes
19569       export_dynamic_flag_spec_F77='${wl}-E'
19570       ;;
19571
19572     hpux10* | hpux11*)
19573       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19574         case "$host_cpu" in
19575         hppa*64*|ia64*)
19576           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19577           ;;
19578         *)
19579           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19580           ;;
19581         esac
19582       else
19583         case "$host_cpu" in
19584         hppa*64*|ia64*)
19585           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19586           ;;
19587         *)
19588           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19589           ;;
19590         esac
19591       fi
19592       if test "$with_gnu_ld" = no; then
19593         case "$host_cpu" in
19594         hppa*64*)
19595           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19596           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19597           hardcode_libdir_separator_F77=:
19598           hardcode_direct_F77=no
19599           hardcode_shlibpath_var_F77=no
19600           ;;
19601         ia64*)
19602           hardcode_libdir_flag_spec_F77='-L$libdir'
19603           hardcode_direct_F77=no
19604           hardcode_shlibpath_var_F77=no
19605
19606           # hardcode_minus_L: Not really in the search PATH,
19607           # but as the default location of the library.
19608           hardcode_minus_L_F77=yes
19609           ;;
19610         *)
19611           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19612           hardcode_libdir_separator_F77=:
19613           hardcode_direct_F77=yes
19614           export_dynamic_flag_spec_F77='${wl}-E'
19615
19616           # hardcode_minus_L: Not really in the search PATH,
19617           # but as the default location of the library.
19618           hardcode_minus_L_F77=yes
19619           ;;
19620         esac
19621       fi
19622       ;;
19623
19624     irix5* | irix6* | nonstopux*)
19625       if test "$GCC" = yes; then
19626         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'
19627       else
19628         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'
19629         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19630       fi
19631       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19632       hardcode_libdir_separator_F77=:
19633       link_all_deplibs_F77=yes
19634       ;;
19635
19636     netbsd*)
19637       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19638         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19639       else
19640         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19641       fi
19642       hardcode_libdir_flag_spec_F77='-R$libdir'
19643       hardcode_direct_F77=yes
19644       hardcode_shlibpath_var_F77=no
19645       ;;
19646
19647     newsos6)
19648       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19649       hardcode_direct_F77=yes
19650       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19651       hardcode_libdir_separator_F77=:
19652       hardcode_shlibpath_var_F77=no
19653       ;;
19654
19655     openbsd*)
19656       hardcode_direct_F77=yes
19657       hardcode_shlibpath_var_F77=no
19658       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19659         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19660         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19661         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19662         export_dynamic_flag_spec_F77='${wl}-E'
19663       else
19664        case $host_os in
19665          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19666            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19667            hardcode_libdir_flag_spec_F77='-R$libdir'
19668            ;;
19669          *)
19670            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19671            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19672            ;;
19673        esac
19674       fi
19675       ;;
19676
19677     os2*)
19678       hardcode_libdir_flag_spec_F77='-L$libdir'
19679       hardcode_minus_L_F77=yes
19680       allow_undefined_flag_F77=unsupported
19681       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'
19682       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19683       ;;
19684
19685     osf3*)
19686       if test "$GCC" = yes; then
19687         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19688         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'
19689       else
19690         allow_undefined_flag_F77=' -expect_unresolved \*'
19691         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'
19692       fi
19693       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19694       hardcode_libdir_separator_F77=:
19695       ;;
19696
19697     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19698       if test "$GCC" = yes; then
19699         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19700         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'
19701         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19702       else
19703         allow_undefined_flag_F77=' -expect_unresolved \*'
19704         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'
19705         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~
19706         $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'
19707
19708         # Both c and cxx compiler support -rpath directly
19709         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19710       fi
19711       hardcode_libdir_separator_F77=:
19712       ;;
19713
19714     sco3.2v5*)
19715       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19716       hardcode_shlibpath_var_F77=no
19717       export_dynamic_flag_spec_F77='${wl}-Bexport'
19718       runpath_var=LD_RUN_PATH
19719       hardcode_runpath_var=yes
19720       ;;
19721
19722     solaris*)
19723       no_undefined_flag_F77=' -z text'
19724       if test "$GCC" = yes; then
19725         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19726         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19727           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19728       else
19729         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19730         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19731         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19732       fi
19733       hardcode_libdir_flag_spec_F77='-R$libdir'
19734       hardcode_shlibpath_var_F77=no
19735       case $host_os in
19736       solaris2.[0-5] | solaris2.[0-5].*) ;;
19737       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19738         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19739       esac
19740       link_all_deplibs_F77=yes
19741       ;;
19742
19743     sunos4*)
19744       if test "x$host_vendor" = xsequent; then
19745         # Use $CC to link under sequent, because it throws in some extra .o
19746         # files that make .init and .fini sections work.
19747         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19748       else
19749         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19750       fi
19751       hardcode_libdir_flag_spec_F77='-L$libdir'
19752       hardcode_direct_F77=yes
19753       hardcode_minus_L_F77=yes
19754       hardcode_shlibpath_var_F77=no
19755       ;;
19756
19757     sysv4)
19758       case $host_vendor in
19759         sni)
19760           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19761           hardcode_direct_F77=yes # is this really true???
19762         ;;
19763         siemens)
19764           ## LD is ld it makes a PLAMLIB
19765           ## CC just makes a GrossModule.
19766           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19767           reload_cmds_F77='$CC -r -o $output$reload_objs'
19768           hardcode_direct_F77=no
19769         ;;
19770         motorola)
19771           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19772           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19773         ;;
19774       esac
19775       runpath_var='LD_RUN_PATH'
19776       hardcode_shlibpath_var_F77=no
19777       ;;
19778
19779     sysv4.3*)
19780       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19781       hardcode_shlibpath_var_F77=no
19782       export_dynamic_flag_spec_F77='-Bexport'
19783       ;;
19784
19785     sysv4*MP*)
19786       if test -d /usr/nec; then
19787         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19788         hardcode_shlibpath_var_F77=no
19789         runpath_var=LD_RUN_PATH
19790         hardcode_runpath_var=yes
19791         ld_shlibs_F77=yes
19792       fi
19793       ;;
19794
19795     sysv4.2uw2*)
19796       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19797       hardcode_direct_F77=yes
19798       hardcode_minus_L_F77=no
19799       hardcode_shlibpath_var_F77=no
19800       hardcode_runpath_var=yes
19801       runpath_var=LD_RUN_PATH
19802       ;;
19803
19804    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19805       no_undefined_flag_F77='${wl}-z ${wl}text'
19806       if test "$GCC" = yes; then
19807         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19808       else
19809         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19810       fi
19811       runpath_var='LD_RUN_PATH'
19812       hardcode_shlibpath_var_F77=no
19813       ;;
19814
19815     sysv5*)
19816       no_undefined_flag_F77=' -z text'
19817       # $CC -shared without GNU ld will not create a library from C++
19818       # object files and a static libstdc++, better avoid it by now
19819       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19820       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19821                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19822       hardcode_libdir_flag_spec_F77=
19823       hardcode_shlibpath_var_F77=no
19824       runpath_var='LD_RUN_PATH'
19825       ;;
19826
19827     uts4*)
19828       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19829       hardcode_libdir_flag_spec_F77='-L$libdir'
19830       hardcode_shlibpath_var_F77=no
19831       ;;
19832
19833     *)
19834       ld_shlibs_F77=no
19835       ;;
19836     esac
19837   fi
19838
19839 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19840 echo "${ECHO_T}$ld_shlibs_F77" >&6
19841 test "$ld_shlibs_F77" = no && can_build_shared=no
19842
19843 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19844 if test "$GCC" = yes; then
19845   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19846 fi
19847
19848 #
19849 # Do we need to explicitly link libc?
19850 #
19851 case "x$archive_cmds_need_lc_F77" in
19852 x|xyes)
19853   # Assume -lc should be added
19854   archive_cmds_need_lc_F77=yes
19855
19856   if test "$enable_shared" = yes && test "$GCC" = yes; then
19857     case $archive_cmds_F77 in
19858     *'~'*)
19859       # FIXME: we may have to deal with multi-command sequences.
19860       ;;
19861     '$CC '*)
19862       # Test whether the compiler implicitly links with -lc since on some
19863       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19864       # to ld, don't add -lc before -lgcc.
19865       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19866 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19867       $rm conftest*
19868       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19869
19870       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19871   (eval $ac_compile) 2>&5
19872   ac_status=$?
19873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874   (exit $ac_status); } 2>conftest.err; then
19875         soname=conftest
19876         lib=conftest
19877         libobjs=conftest.$ac_objext
19878         deplibs=
19879         wl=$lt_prog_compiler_wl_F77
19880         compiler_flags=-v
19881         linker_flags=-v
19882         verstring=
19883         output_objdir=.
19884         libname=conftest
19885         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19886         allow_undefined_flag_F77=
19887         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19888   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19889   ac_status=$?
19890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891   (exit $ac_status); }
19892         then
19893           archive_cmds_need_lc_F77=no
19894         else
19895           archive_cmds_need_lc_F77=yes
19896         fi
19897         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19898       else
19899         cat conftest.err 1>&5
19900       fi
19901       $rm conftest*
19902       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19903 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19904       ;;
19905     esac
19906   fi
19907   ;;
19908 esac
19909
19910 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19911 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19912 library_names_spec=
19913 libname_spec='lib$name'
19914 soname_spec=
19915 shrext_cmds=".so"
19916 postinstall_cmds=
19917 postuninstall_cmds=
19918 finish_cmds=
19919 finish_eval=
19920 shlibpath_var=
19921 shlibpath_overrides_runpath=unknown
19922 version_type=none
19923 dynamic_linker="$host_os ld.so"
19924 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19925 if test "$GCC" = yes; then
19926   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19927   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19928     # if the path contains ";" then we assume it to be the separator
19929     # otherwise default to the standard path separator (i.e. ":") - it is
19930     # assumed that no part of a normal pathname contains ";" but that should
19931     # okay in the real world where ";" in dirpaths is itself problematic.
19932     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19933   else
19934     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19935   fi
19936 else
19937   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19938 fi
19939 need_lib_prefix=unknown
19940 hardcode_into_libs=no
19941
19942 # when you set need_version to no, make sure it does not cause -set_version
19943 # flags to be left without arguments
19944 need_version=unknown
19945
19946 case $host_os in
19947 aix3*)
19948   version_type=linux
19949   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19950   shlibpath_var=LIBPATH
19951
19952   # AIX 3 has no versioning support, so we append a major version to the name.
19953   soname_spec='${libname}${release}${shared_ext}$major'
19954   ;;
19955
19956 aix4* | aix5*)
19957   version_type=linux
19958   need_lib_prefix=no
19959   need_version=no
19960   hardcode_into_libs=yes
19961   if test "$host_cpu" = ia64; then
19962     # AIX 5 supports IA64
19963     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19964     shlibpath_var=LD_LIBRARY_PATH
19965   else
19966     # With GCC up to 2.95.x, collect2 would create an import file
19967     # for dependence libraries.  The import file would start with
19968     # the line `#! .'.  This would cause the generated library to
19969     # depend on `.', always an invalid library.  This was fixed in
19970     # development snapshots of GCC prior to 3.0.
19971     case $host_os in
19972       aix4 | aix4.[01] | aix4.[01].*)
19973       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19974            echo ' yes '
19975            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19976         :
19977       else
19978         can_build_shared=no
19979       fi
19980       ;;
19981     esac
19982     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19983     # soname into executable. Probably we can add versioning support to
19984     # collect2, so additional links can be useful in future.
19985     if test "$aix_use_runtimelinking" = yes; then
19986       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19987       # instead of lib<name>.a to let people know that these are not
19988       # typical AIX shared libraries.
19989       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19990     else
19991       # We preserve .a as extension for shared libraries through AIX4.2
19992       # and later when we are not doing run time linking.
19993       library_names_spec='${libname}${release}.a $libname.a'
19994       soname_spec='${libname}${release}${shared_ext}$major'
19995     fi
19996     shlibpath_var=LIBPATH
19997   fi
19998   ;;
19999
20000 amigaos*)
20001   library_names_spec='$libname.ixlibrary $libname.a'
20002   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20003   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'
20004   ;;
20005
20006 beos*)
20007   library_names_spec='${libname}${shared_ext}'
20008   dynamic_linker="$host_os ld.so"
20009   shlibpath_var=LIBRARY_PATH
20010   ;;
20011
20012 bsdi[45]*)
20013   version_type=linux
20014   need_version=no
20015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20016   soname_spec='${libname}${release}${shared_ext}$major'
20017   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20018   shlibpath_var=LD_LIBRARY_PATH
20019   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20020   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20021   # the default ld.so.conf also contains /usr/contrib/lib and
20022   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20023   # libtool to hard-code these into programs
20024   ;;
20025
20026 cygwin* | mingw* | pw32*)
20027   version_type=windows
20028   shrext_cmds=".dll"
20029   need_version=no
20030   need_lib_prefix=no
20031
20032   case $GCC,$host_os in
20033   yes,cygwin* | yes,mingw* | yes,pw32*)
20034     library_names_spec='$libname.dll.a'
20035     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20036     postinstall_cmds='base_file=`basename \${file}`~
20037       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20038       dldir=$destdir/`dirname \$dlpath`~
20039       test -d \$dldir || mkdir -p \$dldir~
20040       $install_prog $dir/$dlname \$dldir/$dlname'
20041     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20042       dlpath=$dir/\$dldll~
20043        $rm \$dlpath'
20044     shlibpath_overrides_runpath=yes
20045
20046     case $host_os in
20047     cygwin*)
20048       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20049       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20050       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20051       ;;
20052     mingw*)
20053       # MinGW DLLs use traditional 'lib' prefix
20054       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20055       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20056       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20057         # It is most probably a Windows format PATH printed by
20058         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20059         # path with ; separators, and with drive letters. We can handle the
20060         # drive letters (cygwin fileutils understands them), so leave them,
20061         # especially as we might pass files found there to a mingw objdump,
20062         # which wouldn't understand a cygwinified path. Ahh.
20063         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20064       else
20065         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20066       fi
20067       ;;
20068     pw32*)
20069       # pw32 DLLs use 'pw' prefix rather than 'lib'
20070       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20071       ;;
20072     esac
20073     ;;
20074
20075   *)
20076     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20077     ;;
20078   esac
20079   dynamic_linker='Win32 ld.exe'
20080   # FIXME: first we should search . and the directory the executable is in
20081   shlibpath_var=PATH
20082   ;;
20083
20084 darwin* | rhapsody*)
20085   dynamic_linker="$host_os dyld"
20086   version_type=darwin
20087   need_lib_prefix=no
20088   need_version=no
20089   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20090   soname_spec='${libname}${release}${major}$shared_ext'
20091   shlibpath_overrides_runpath=yes
20092   shlibpath_var=DYLD_LIBRARY_PATH
20093   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20094   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20095   if test "$GCC" = yes; then
20096     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"`
20097   else
20098     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20099   fi
20100   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20101   ;;
20102
20103 dgux*)
20104   version_type=linux
20105   need_lib_prefix=no
20106   need_version=no
20107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20108   soname_spec='${libname}${release}${shared_ext}$major'
20109   shlibpath_var=LD_LIBRARY_PATH
20110   ;;
20111
20112 freebsd1*)
20113   dynamic_linker=no
20114   ;;
20115
20116 kfreebsd*-gnu)
20117   version_type=linux
20118   need_lib_prefix=no
20119   need_version=no
20120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20121   soname_spec='${libname}${release}${shared_ext}$major'
20122   shlibpath_var=LD_LIBRARY_PATH
20123   shlibpath_overrides_runpath=no
20124   hardcode_into_libs=yes
20125   dynamic_linker='GNU ld.so'
20126   ;;
20127
20128 freebsd*)
20129   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20130   version_type=freebsd-$objformat
20131   case $version_type in
20132     freebsd-elf*)
20133       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20134       need_version=no
20135       need_lib_prefix=no
20136       ;;
20137     freebsd-*)
20138       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20139       need_version=yes
20140       ;;
20141   esac
20142   shlibpath_var=LD_LIBRARY_PATH
20143   case $host_os in
20144   freebsd2*)
20145     shlibpath_overrides_runpath=yes
20146     ;;
20147   freebsd3.01* | freebsdelf3.01*)
20148     shlibpath_overrides_runpath=yes
20149     hardcode_into_libs=yes
20150     ;;
20151   *) # from 3.2 on
20152     shlibpath_overrides_runpath=no
20153     hardcode_into_libs=yes
20154     ;;
20155   esac
20156   ;;
20157
20158 gnu*)
20159   version_type=linux
20160   need_lib_prefix=no
20161   need_version=no
20162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20163   soname_spec='${libname}${release}${shared_ext}$major'
20164   shlibpath_var=LD_LIBRARY_PATH
20165   hardcode_into_libs=yes
20166   ;;
20167
20168 hpux9* | hpux10* | hpux11*)
20169   # Give a soname corresponding to the major version so that dld.sl refuses to
20170   # link against other versions.
20171   version_type=sunos
20172   need_lib_prefix=no
20173   need_version=no
20174   case "$host_cpu" in
20175   ia64*)
20176     shrext_cmds='.so'
20177     hardcode_into_libs=yes
20178     dynamic_linker="$host_os dld.so"
20179     shlibpath_var=LD_LIBRARY_PATH
20180     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20181     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20182     soname_spec='${libname}${release}${shared_ext}$major'
20183     if test "X$HPUX_IA64_MODE" = X32; then
20184       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20185     else
20186       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20187     fi
20188     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20189     ;;
20190    hppa*64*)
20191      shrext_cmds='.sl'
20192      hardcode_into_libs=yes
20193      dynamic_linker="$host_os dld.sl"
20194      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20195      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20196      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20197      soname_spec='${libname}${release}${shared_ext}$major'
20198      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20199      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20200      ;;
20201    *)
20202     shrext_cmds='.sl'
20203     dynamic_linker="$host_os dld.sl"
20204     shlibpath_var=SHLIB_PATH
20205     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20206     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20207     soname_spec='${libname}${release}${shared_ext}$major'
20208     ;;
20209   esac
20210   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20211   postinstall_cmds='chmod 555 $lib'
20212   ;;
20213
20214 irix5* | irix6* | nonstopux*)
20215   case $host_os in
20216     nonstopux*) version_type=nonstopux ;;
20217     *)
20218         if test "$lt_cv_prog_gnu_ld" = yes; then
20219                 version_type=linux
20220         else
20221                 version_type=irix
20222         fi ;;
20223   esac
20224   need_lib_prefix=no
20225   need_version=no
20226   soname_spec='${libname}${release}${shared_ext}$major'
20227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20228   case $host_os in
20229   irix5* | nonstopux*)
20230     libsuff= shlibsuff=
20231     ;;
20232   *)
20233     case $LD in # libtool.m4 will add one of these switches to LD
20234     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20235       libsuff= shlibsuff= libmagic=32-bit;;
20236     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20237       libsuff=32 shlibsuff=N32 libmagic=N32;;
20238     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20239       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20240     *) libsuff= shlibsuff= libmagic=never-match;;
20241     esac
20242     ;;
20243   esac
20244   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20245   shlibpath_overrides_runpath=no
20246   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20247   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20248   hardcode_into_libs=yes
20249   ;;
20250
20251 # No shared lib support for Linux oldld, aout, or coff.
20252 linux*oldld* | linux*aout* | linux*coff*)
20253   dynamic_linker=no
20254   ;;
20255
20256 # This must be Linux ELF.
20257 linux*)
20258   version_type=linux
20259   need_lib_prefix=no
20260   need_version=no
20261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20262   soname_spec='${libname}${release}${shared_ext}$major'
20263   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20264   shlibpath_var=LD_LIBRARY_PATH
20265   shlibpath_overrides_runpath=no
20266   # This implies no fast_install, which is unacceptable.
20267   # Some rework will be needed to allow for fast_install
20268   # before this can be enabled.
20269   hardcode_into_libs=yes
20270
20271   # Append ld.so.conf contents to the search path
20272   if test -f /etc/ld.so.conf; then
20273     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20274     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20275   fi
20276
20277   # We used to test for /lib/ld.so.1 and disable shared libraries on
20278   # powerpc, because MkLinux only supported shared libraries with the
20279   # GNU dynamic linker.  Since this was broken with cross compilers,
20280   # most powerpc-linux boxes support dynamic linking these days and
20281   # people can always --disable-shared, the test was removed, and we
20282   # assume the GNU/Linux dynamic linker is in use.
20283   dynamic_linker='GNU/Linux ld.so'
20284   ;;
20285
20286 knetbsd*-gnu)
20287   version_type=linux
20288   need_lib_prefix=no
20289   need_version=no
20290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20291   soname_spec='${libname}${release}${shared_ext}$major'
20292   shlibpath_var=LD_LIBRARY_PATH
20293   shlibpath_overrides_runpath=no
20294   hardcode_into_libs=yes
20295   dynamic_linker='GNU ld.so'
20296   ;;
20297
20298 netbsd*)
20299   version_type=sunos
20300   need_lib_prefix=no
20301   need_version=no
20302   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20303     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20304     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20305     dynamic_linker='NetBSD (a.out) ld.so'
20306   else
20307     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20308     soname_spec='${libname}${release}${shared_ext}$major'
20309     dynamic_linker='NetBSD ld.elf_so'
20310   fi
20311   shlibpath_var=LD_LIBRARY_PATH
20312   shlibpath_overrides_runpath=yes
20313   hardcode_into_libs=yes
20314   ;;
20315
20316 newsos6)
20317   version_type=linux
20318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20319   shlibpath_var=LD_LIBRARY_PATH
20320   shlibpath_overrides_runpath=yes
20321   ;;
20322
20323 nto-qnx*)
20324   version_type=linux
20325   need_lib_prefix=no
20326   need_version=no
20327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20328   soname_spec='${libname}${release}${shared_ext}$major'
20329   shlibpath_var=LD_LIBRARY_PATH
20330   shlibpath_overrides_runpath=yes
20331   ;;
20332
20333 openbsd*)
20334   version_type=sunos
20335   need_lib_prefix=no
20336   need_version=no
20337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20338   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20339   shlibpath_var=LD_LIBRARY_PATH
20340   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20341     case $host_os in
20342       openbsd2.[89] | openbsd2.[89].*)
20343         shlibpath_overrides_runpath=no
20344         ;;
20345       *)
20346         shlibpath_overrides_runpath=yes
20347         ;;
20348       esac
20349   else
20350     shlibpath_overrides_runpath=yes
20351   fi
20352   ;;
20353
20354 os2*)
20355   libname_spec='$name'
20356   shrext_cmds=".dll"
20357   need_lib_prefix=no
20358   library_names_spec='$libname${shared_ext} $libname.a'
20359   dynamic_linker='OS/2 ld.exe'
20360   shlibpath_var=LIBPATH
20361   ;;
20362
20363 osf3* | osf4* | osf5*)
20364   version_type=osf
20365   need_lib_prefix=no
20366   need_version=no
20367   soname_spec='${libname}${release}${shared_ext}$major'
20368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20369   shlibpath_var=LD_LIBRARY_PATH
20370   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20371   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20372   ;;
20373
20374 sco3.2v5*)
20375   version_type=osf
20376   soname_spec='${libname}${release}${shared_ext}$major'
20377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20378   shlibpath_var=LD_LIBRARY_PATH
20379   ;;
20380
20381 solaris*)
20382   version_type=linux
20383   need_lib_prefix=no
20384   need_version=no
20385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20386   soname_spec='${libname}${release}${shared_ext}$major'
20387   shlibpath_var=LD_LIBRARY_PATH
20388   shlibpath_overrides_runpath=yes
20389   hardcode_into_libs=yes
20390   # ldd complains unless libraries are executable
20391   postinstall_cmds='chmod +x $lib'
20392   ;;
20393
20394 sunos4*)
20395   version_type=sunos
20396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20397   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20398   shlibpath_var=LD_LIBRARY_PATH
20399   shlibpath_overrides_runpath=yes
20400   if test "$with_gnu_ld" = yes; then
20401     need_lib_prefix=no
20402   fi
20403   need_version=yes
20404   ;;
20405
20406 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20407   version_type=linux
20408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20409   soname_spec='${libname}${release}${shared_ext}$major'
20410   shlibpath_var=LD_LIBRARY_PATH
20411   case $host_vendor in
20412     sni)
20413       shlibpath_overrides_runpath=no
20414       need_lib_prefix=no
20415       export_dynamic_flag_spec='${wl}-Blargedynsym'
20416       runpath_var=LD_RUN_PATH
20417       ;;
20418     siemens)
20419       need_lib_prefix=no
20420       ;;
20421     motorola)
20422       need_lib_prefix=no
20423       need_version=no
20424       shlibpath_overrides_runpath=no
20425       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20426       ;;
20427   esac
20428   ;;
20429
20430 sysv4*MP*)
20431   if test -d /usr/nec ;then
20432     version_type=linux
20433     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20434     soname_spec='$libname${shared_ext}.$major'
20435     shlibpath_var=LD_LIBRARY_PATH
20436   fi
20437   ;;
20438
20439 uts4*)
20440   version_type=linux
20441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20442   soname_spec='${libname}${release}${shared_ext}$major'
20443   shlibpath_var=LD_LIBRARY_PATH
20444   ;;
20445
20446 *)
20447   dynamic_linker=no
20448   ;;
20449 esac
20450 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20451 echo "${ECHO_T}$dynamic_linker" >&6
20452 test "$dynamic_linker" = no && can_build_shared=no
20453
20454 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20455 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20456 hardcode_action_F77=
20457 if test -n "$hardcode_libdir_flag_spec_F77" || \
20458    test -n "$runpath_var_F77" || \
20459    test "X$hardcode_automatic_F77" = "Xyes" ; then
20460
20461   # We can hardcode non-existant directories.
20462   if test "$hardcode_direct_F77" != no &&
20463      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20464      # have to relink, otherwise we might link with an installed library
20465      # when we should be linking with a yet-to-be-installed one
20466      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20467      test "$hardcode_minus_L_F77" != no; then
20468     # Linking always hardcodes the temporary library directory.
20469     hardcode_action_F77=relink
20470   else
20471     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20472     hardcode_action_F77=immediate
20473   fi
20474 else
20475   # We cannot hardcode anything, or else we can only hardcode existing
20476   # directories.
20477   hardcode_action_F77=unsupported
20478 fi
20479 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20480 echo "${ECHO_T}$hardcode_action_F77" >&6
20481
20482 if test "$hardcode_action_F77" = relink; then
20483   # Fast installation is not supported
20484   enable_fast_install=no
20485 elif test "$shlibpath_overrides_runpath" = yes ||
20486      test "$enable_shared" = no; then
20487   # Fast installation is not necessary
20488   enable_fast_install=needless
20489 fi
20490
20491 striplib=
20492 old_striplib=
20493 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20494 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20495 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20496   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20497   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20498   echo "$as_me:$LINENO: result: yes" >&5
20499 echo "${ECHO_T}yes" >&6
20500 else
20501 # FIXME - insert some real tests, host_os isn't really good enough
20502   case $host_os in
20503    darwin*)
20504        if test -n "$STRIP" ; then
20505          striplib="$STRIP -x"
20506          echo "$as_me:$LINENO: result: yes" >&5
20507 echo "${ECHO_T}yes" >&6
20508        else
20509   echo "$as_me:$LINENO: result: no" >&5
20510 echo "${ECHO_T}no" >&6
20511 fi
20512        ;;
20513    *)
20514   echo "$as_me:$LINENO: result: no" >&5
20515 echo "${ECHO_T}no" >&6
20516     ;;
20517   esac
20518 fi
20519
20520
20521
20522 # The else clause should only fire when bootstrapping the
20523 # libtool distribution, otherwise you forgot to ship ltmain.sh
20524 # with your package, and you will get complaints that there are
20525 # no rules to generate ltmain.sh.
20526 if test -f "$ltmain"; then
20527   # See if we are running on zsh, and set the options which allow our commands through
20528   # without removal of \ escapes.
20529   if test -n "${ZSH_VERSION+set}" ; then
20530     setopt NO_GLOB_SUBST
20531   fi
20532   # Now quote all the things that may contain metacharacters while being
20533   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20534   # variables and quote the copies for generation of the libtool script.
20535   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20536     SED SHELL STRIP \
20537     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20538     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20539     deplibs_check_method reload_flag reload_cmds need_locks \
20540     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20541     lt_cv_sys_global_symbol_to_c_name_address \
20542     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20543     old_postinstall_cmds old_postuninstall_cmds \
20544     compiler_F77 \
20545     CC_F77 \
20546     LD_F77 \
20547     lt_prog_compiler_wl_F77 \
20548     lt_prog_compiler_pic_F77 \
20549     lt_prog_compiler_static_F77 \
20550     lt_prog_compiler_no_builtin_flag_F77 \
20551     export_dynamic_flag_spec_F77 \
20552     thread_safe_flag_spec_F77 \
20553     whole_archive_flag_spec_F77 \
20554     enable_shared_with_static_runtimes_F77 \
20555     old_archive_cmds_F77 \
20556     old_archive_from_new_cmds_F77 \
20557     predep_objects_F77 \
20558     postdep_objects_F77 \
20559     predeps_F77 \
20560     postdeps_F77 \
20561     compiler_lib_search_path_F77 \
20562     archive_cmds_F77 \
20563     archive_expsym_cmds_F77 \
20564     postinstall_cmds_F77 \
20565     postuninstall_cmds_F77 \
20566     old_archive_from_expsyms_cmds_F77 \
20567     allow_undefined_flag_F77 \
20568     no_undefined_flag_F77 \
20569     export_symbols_cmds_F77 \
20570     hardcode_libdir_flag_spec_F77 \
20571     hardcode_libdir_flag_spec_ld_F77 \
20572     hardcode_libdir_separator_F77 \
20573     hardcode_automatic_F77 \
20574     module_cmds_F77 \
20575     module_expsym_cmds_F77 \
20576     lt_cv_prog_compiler_c_o_F77 \
20577     exclude_expsyms_F77 \
20578     include_expsyms_F77; do
20579
20580     case $var in
20581     old_archive_cmds_F77 | \
20582     old_archive_from_new_cmds_F77 | \
20583     archive_cmds_F77 | \
20584     archive_expsym_cmds_F77 | \
20585     module_cmds_F77 | \
20586     module_expsym_cmds_F77 | \
20587     old_archive_from_expsyms_cmds_F77 | \
20588     export_symbols_cmds_F77 | \
20589     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20590     postinstall_cmds | postuninstall_cmds | \
20591     old_postinstall_cmds | old_postuninstall_cmds | \
20592     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20593       # Double-quote double-evaled strings.
20594       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20595       ;;
20596     *)
20597       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20598       ;;
20599     esac
20600   done
20601
20602   case $lt_echo in
20603   *'\$0 --fallback-echo"')
20604     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20605     ;;
20606   esac
20607
20608 cfgfile="$ofile"
20609
20610   cat <<__EOF__ >> "$cfgfile"
20611 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20612
20613 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20614
20615 # Shell to use when invoking shell scripts.
20616 SHELL=$lt_SHELL
20617
20618 # Whether or not to build shared libraries.
20619 build_libtool_libs=$enable_shared
20620
20621 # Whether or not to build static libraries.
20622 build_old_libs=$enable_static
20623
20624 # Whether or not to add -lc for building shared libraries.
20625 build_libtool_need_lc=$archive_cmds_need_lc_F77
20626
20627 # Whether or not to disallow shared libs when runtime libs are static
20628 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20629
20630 # Whether or not to optimize for fast installation.
20631 fast_install=$enable_fast_install
20632
20633 # The host system.
20634 host_alias=$host_alias
20635 host=$host
20636
20637 # An echo program that does not interpret backslashes.
20638 echo=$lt_echo
20639
20640 # The archiver.
20641 AR=$lt_AR
20642 AR_FLAGS=$lt_AR_FLAGS
20643
20644 # A C compiler.
20645 LTCC=$lt_LTCC
20646
20647 # A language-specific compiler.
20648 CC=$lt_compiler_F77
20649
20650 # Is the compiler the GNU C compiler?
20651 with_gcc=$GCC_F77
20652
20653 # An ERE matcher.
20654 EGREP=$lt_EGREP
20655
20656 # The linker used to build libraries.
20657 LD=$lt_LD_F77
20658
20659 # Whether we need hard or soft links.
20660 LN_S=$lt_LN_S
20661
20662 # A BSD-compatible nm program.
20663 NM=$lt_NM
20664
20665 # A symbol stripping program
20666 STRIP=$lt_STRIP
20667
20668 # Used to examine libraries when file_magic_cmd begins "file"
20669 MAGIC_CMD=$MAGIC_CMD
20670
20671 # Used on cygwin: DLL creation program.
20672 DLLTOOL="$DLLTOOL"
20673
20674 # Used on cygwin: object dumper.
20675 OBJDUMP="$OBJDUMP"
20676
20677 # Used on cygwin: assembler.
20678 AS="$AS"
20679
20680 # The name of the directory that contains temporary libtool files.
20681 objdir=$objdir
20682
20683 # How to create reloadable object files.
20684 reload_flag=$lt_reload_flag
20685 reload_cmds=$lt_reload_cmds
20686
20687 # How to pass a linker flag through the compiler.
20688 wl=$lt_lt_prog_compiler_wl_F77
20689
20690 # Object file suffix (normally "o").
20691 objext="$ac_objext"
20692
20693 # Old archive suffix (normally "a").
20694 libext="$libext"
20695
20696 # Shared library suffix (normally ".so").
20697 shrext_cmds='$shrext_cmds'
20698
20699 # Executable file suffix (normally "").
20700 exeext="$exeext"
20701
20702 # Additional compiler flags for building library objects.
20703 pic_flag=$lt_lt_prog_compiler_pic_F77
20704 pic_mode=$pic_mode
20705
20706 # What is the maximum length of a command?
20707 max_cmd_len=$lt_cv_sys_max_cmd_len
20708
20709 # Does compiler simultaneously support -c and -o options?
20710 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20711
20712 # Must we lock files when doing compilation ?
20713 need_locks=$lt_need_locks
20714
20715 # Do we need the lib prefix for modules?
20716 need_lib_prefix=$need_lib_prefix
20717
20718 # Do we need a version for libraries?
20719 need_version=$need_version
20720
20721 # Whether dlopen is supported.
20722 dlopen_support=$enable_dlopen
20723
20724 # Whether dlopen of programs is supported.
20725 dlopen_self=$enable_dlopen_self
20726
20727 # Whether dlopen of statically linked programs is supported.
20728 dlopen_self_static=$enable_dlopen_self_static
20729
20730 # Compiler flag to prevent dynamic linking.
20731 link_static_flag=$lt_lt_prog_compiler_static_F77
20732
20733 # Compiler flag to turn off builtin functions.
20734 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20735
20736 # Compiler flag to allow reflexive dlopens.
20737 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20738
20739 # Compiler flag to generate shared objects directly from archives.
20740 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20741
20742 # Compiler flag to generate thread-safe objects.
20743 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20744
20745 # Library versioning type.
20746 version_type=$version_type
20747
20748 # Format of library name prefix.
20749 libname_spec=$lt_libname_spec
20750
20751 # List of archive names.  First name is the real one, the rest are links.
20752 # The last name is the one that the linker finds with -lNAME.
20753 library_names_spec=$lt_library_names_spec
20754
20755 # The coded name of the library, if different from the real name.
20756 soname_spec=$lt_soname_spec
20757
20758 # Commands used to build and install an old-style archive.
20759 RANLIB=$lt_RANLIB
20760 old_archive_cmds=$lt_old_archive_cmds_F77
20761 old_postinstall_cmds=$lt_old_postinstall_cmds
20762 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20763
20764 # Create an old-style archive from a shared archive.
20765 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20766
20767 # Create a temporary old-style archive to link instead of a shared archive.
20768 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20769
20770 # Commands used to build and install a shared archive.
20771 archive_cmds=$lt_archive_cmds_F77
20772 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20773 postinstall_cmds=$lt_postinstall_cmds
20774 postuninstall_cmds=$lt_postuninstall_cmds
20775
20776 # Commands used to build a loadable module (assumed same as above if empty)
20777 module_cmds=$lt_module_cmds_F77
20778 module_expsym_cmds=$lt_module_expsym_cmds_F77
20779
20780 # Commands to strip libraries.
20781 old_striplib=$lt_old_striplib
20782 striplib=$lt_striplib
20783
20784 # Dependencies to place before the objects being linked to create a
20785 # shared library.
20786 predep_objects=$lt_predep_objects_F77
20787
20788 # Dependencies to place after the objects being linked to create a
20789 # shared library.
20790 postdep_objects=$lt_postdep_objects_F77
20791
20792 # Dependencies to place before the objects being linked to create a
20793 # shared library.
20794 predeps=$lt_predeps_F77
20795
20796 # Dependencies to place after the objects being linked to create a
20797 # shared library.
20798 postdeps=$lt_postdeps_F77
20799
20800 # The library search path used internally by the compiler when linking
20801 # a shared library.
20802 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20803
20804 # Method to check whether dependent libraries are shared objects.
20805 deplibs_check_method=$lt_deplibs_check_method
20806
20807 # Command to use when deplibs_check_method == file_magic.
20808 file_magic_cmd=$lt_file_magic_cmd
20809
20810 # Flag that allows shared libraries with undefined symbols to be built.
20811 allow_undefined_flag=$lt_allow_undefined_flag_F77
20812
20813 # Flag that forces no undefined symbols.
20814 no_undefined_flag=$lt_no_undefined_flag_F77
20815
20816 # Commands used to finish a libtool library installation in a directory.
20817 finish_cmds=$lt_finish_cmds
20818
20819 # Same as above, but a single script fragment to be evaled but not shown.
20820 finish_eval=$lt_finish_eval
20821
20822 # Take the output of nm and produce a listing of raw symbols and C names.
20823 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20824
20825 # Transform the output of nm in a proper C declaration
20826 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20827
20828 # Transform the output of nm in a C name address pair
20829 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20830
20831 # This is the shared library runtime path variable.
20832 runpath_var=$runpath_var
20833
20834 # This is the shared library path variable.
20835 shlibpath_var=$shlibpath_var
20836
20837 # Is shlibpath searched before the hard-coded library search path?
20838 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20839
20840 # How to hardcode a shared library path into an executable.
20841 hardcode_action=$hardcode_action_F77
20842
20843 # Whether we should hardcode library paths into libraries.
20844 hardcode_into_libs=$hardcode_into_libs
20845
20846 # Flag to hardcode \$libdir into a binary during linking.
20847 # This must work even if \$libdir does not exist.
20848 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20849
20850 # If ld is used when linking, flag to hardcode \$libdir into
20851 # a binary during linking. This must work even if \$libdir does
20852 # not exist.
20853 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20854
20855 # Whether we need a single -rpath flag with a separated argument.
20856 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20857
20858 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20859 # resulting binary.
20860 hardcode_direct=$hardcode_direct_F77
20861
20862 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20863 # resulting binary.
20864 hardcode_minus_L=$hardcode_minus_L_F77
20865
20866 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20867 # the resulting binary.
20868 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20869
20870 # Set to yes if building a shared library automatically hardcodes DIR into the library
20871 # and all subsequent libraries and executables linked against it.
20872 hardcode_automatic=$hardcode_automatic_F77
20873
20874 # Variables whose values should be saved in libtool wrapper scripts and
20875 # restored at relink time.
20876 variables_saved_for_relink="$variables_saved_for_relink"
20877
20878 # Whether libtool must link a program against all its dependency libraries.
20879 link_all_deplibs=$link_all_deplibs_F77
20880
20881 # Compile-time system search path for libraries
20882 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20883
20884 # Run-time system search path for libraries
20885 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20886
20887 # Fix the shell variable \$srcfile for the compiler.
20888 fix_srcfile_path="$fix_srcfile_path_F77"
20889
20890 # Set to yes if exported symbols are required.
20891 always_export_symbols=$always_export_symbols_F77
20892
20893 # The commands to list exported symbols.
20894 export_symbols_cmds=$lt_export_symbols_cmds_F77
20895
20896 # The commands to extract the exported symbol list from a shared archive.
20897 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20898
20899 # Symbols that should not be listed in the preloaded symbols.
20900 exclude_expsyms=$lt_exclude_expsyms_F77
20901
20902 # Symbols that must always be exported.
20903 include_expsyms=$lt_include_expsyms_F77
20904
20905 # ### END LIBTOOL TAG CONFIG: $tagname
20906
20907 __EOF__
20908
20909
20910 else
20911   # If there is no Makefile yet, we rely on a make rule to execute
20912   # `config.status --recheck' to rerun these tests and create the
20913   # libtool script then.
20914   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20915   if test -f "$ltmain_in"; then
20916     test -f Makefile && make "$ltmain"
20917   fi
20918 fi
20919
20920
20921 ac_ext=c
20922 ac_cpp='$CPP $CPPFLAGS'
20923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20926
20927 CC="$lt_save_CC"
20928
20929         else
20930           tagname=""
20931         fi
20932         ;;
20933
20934       GCJ)
20935         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20936           ac_ext=c
20937 ac_cpp='$CPP $CPPFLAGS'
20938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20941
20942
20943 # Source file extension for Java test sources.
20944 ac_ext=java
20945
20946 # Object file extension for compiled Java test sources.
20947 objext=o
20948 objext_GCJ=$objext
20949
20950 # Code to be used in simple compile tests
20951 lt_simple_compile_test_code="class foo {}\n"
20952
20953 # Code to be used in simple link tests
20954 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20955
20956 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20957
20958 # If no C compiler was specified, use CC.
20959 LTCC=${LTCC-"$CC"}
20960
20961 # Allow CC to be a program name with arguments.
20962 compiler=$CC
20963
20964
20965 # Allow CC to be a program name with arguments.
20966 lt_save_CC="$CC"
20967 CC=${GCJ-"gcj"}
20968 compiler=$CC
20969 compiler_GCJ=$CC
20970
20971 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20972 archive_cmds_need_lc_GCJ=no
20973
20974
20975 lt_prog_compiler_no_builtin_flag_GCJ=
20976
20977 if test "$GCC" = yes; then
20978   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20979
20980
20981 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20982 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20983 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20984   echo $ECHO_N "(cached) $ECHO_C" >&6
20985 else
20986   lt_cv_prog_compiler_rtti_exceptions=no
20987   ac_outfile=conftest.$ac_objext
20988    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20989    lt_compiler_flag="-fno-rtti -fno-exceptions"
20990    # Insert the option either (1) after the last *FLAGS variable, or
20991    # (2) before a word containing "conftest.", or (3) at the end.
20992    # Note that $ac_compile itself does not contain backslashes and begins
20993    # with a dollar sign (not a hyphen), so the echo should work correctly.
20994    # The option is referenced via a variable to avoid confusing sed.
20995    lt_compile=`echo "$ac_compile" | $SED \
20996    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20997    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20998    -e 's:$: $lt_compiler_flag:'`
20999    (eval echo "\"\$as_me:20999: $lt_compile\"" >&5)
21000    (eval "$lt_compile" 2>conftest.err)
21001    ac_status=$?
21002    cat conftest.err >&5
21003    echo "$as_me:21003: \$? = $ac_status" >&5
21004    if (exit $ac_status) && test -s "$ac_outfile"; then
21005      # The compiler can only warn and ignore the option if not recognized
21006      # So say no if there are warnings
21007      if test ! -s conftest.err; then
21008        lt_cv_prog_compiler_rtti_exceptions=yes
21009      fi
21010    fi
21011    $rm conftest*
21012
21013 fi
21014 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21015 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21016
21017 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21018     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21019 else
21020     :
21021 fi
21022
21023 fi
21024
21025 lt_prog_compiler_wl_GCJ=
21026 lt_prog_compiler_pic_GCJ=
21027 lt_prog_compiler_static_GCJ=
21028
21029 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21030 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21031
21032   if test "$GCC" = yes; then
21033     lt_prog_compiler_wl_GCJ='-Wl,'
21034     lt_prog_compiler_static_GCJ='-static'
21035
21036     case $host_os in
21037       aix*)
21038       # All AIX code is PIC.
21039       if test "$host_cpu" = ia64; then
21040         # AIX 5 now supports IA64 processor
21041         lt_prog_compiler_static_GCJ='-Bstatic'
21042       fi
21043       ;;
21044
21045     amigaos*)
21046       # FIXME: we need at least 68020 code to build shared libraries, but
21047       # adding the `-m68020' flag to GCC prevents building anything better,
21048       # like `-m68040'.
21049       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21050       ;;
21051
21052     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21053       # PIC is the default for these OSes.
21054       ;;
21055
21056     mingw* | pw32* | os2*)
21057       # This hack is so that the source file can tell whether it is being
21058       # built for inclusion in a dll (and should export symbols for example).
21059       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21060       ;;
21061
21062     darwin* | rhapsody*)
21063       # PIC is the default on this platform
21064       # Common symbols not allowed in MH_DYLIB files
21065       lt_prog_compiler_pic_GCJ='-fno-common'
21066       ;;
21067
21068     msdosdjgpp*)
21069       # Just because we use GCC doesn't mean we suddenly get shared libraries
21070       # on systems that don't support them.
21071       lt_prog_compiler_can_build_shared_GCJ=no
21072       enable_shared=no
21073       ;;
21074
21075     sysv4*MP*)
21076       if test -d /usr/nec; then
21077         lt_prog_compiler_pic_GCJ=-Kconform_pic
21078       fi
21079       ;;
21080
21081     hpux*)
21082       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21083       # not for PA HP-UX.
21084       case "$host_cpu" in
21085       hppa*64*|ia64*)
21086         # +Z the default
21087         ;;
21088       *)
21089         lt_prog_compiler_pic_GCJ='-fPIC'
21090         ;;
21091       esac
21092       ;;
21093
21094     *)
21095       lt_prog_compiler_pic_GCJ='-fPIC'
21096       ;;
21097     esac
21098   else
21099     # PORTME Check for flag to pass linker flags through the system compiler.
21100     case $host_os in
21101     aix*)
21102       lt_prog_compiler_wl_GCJ='-Wl,'
21103       if test "$host_cpu" = ia64; then
21104         # AIX 5 now supports IA64 processor
21105         lt_prog_compiler_static_GCJ='-Bstatic'
21106       else
21107         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21108       fi
21109       ;;
21110       darwin*)
21111         # PIC is the default on this platform
21112         # Common symbols not allowed in MH_DYLIB files
21113        case "$cc_basename" in
21114          xlc*)
21115          lt_prog_compiler_pic_GCJ='-qnocommon'
21116          lt_prog_compiler_wl_GCJ='-Wl,'
21117          ;;
21118        esac
21119        ;;
21120
21121     mingw* | pw32* | os2*)
21122       # This hack is so that the source file can tell whether it is being
21123       # built for inclusion in a dll (and should export symbols for example).
21124       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21125       ;;
21126
21127     hpux9* | hpux10* | hpux11*)
21128       lt_prog_compiler_wl_GCJ='-Wl,'
21129       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21130       # not for PA HP-UX.
21131       case "$host_cpu" in
21132       hppa*64*|ia64*)
21133         # +Z the default
21134         ;;
21135       *)
21136         lt_prog_compiler_pic_GCJ='+Z'
21137         ;;
21138       esac
21139       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21140       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21141       ;;
21142
21143     irix5* | irix6* | nonstopux*)
21144       lt_prog_compiler_wl_GCJ='-Wl,'
21145       # PIC (with -KPIC) is the default.
21146       lt_prog_compiler_static_GCJ='-non_shared'
21147       ;;
21148
21149     newsos6)
21150       lt_prog_compiler_pic_GCJ='-KPIC'
21151       lt_prog_compiler_static_GCJ='-Bstatic'
21152       ;;
21153
21154     linux*)
21155       case $CC in
21156       icc* | ecc*)
21157         lt_prog_compiler_wl_GCJ='-Wl,'
21158         lt_prog_compiler_pic_GCJ='-KPIC'
21159         lt_prog_compiler_static_GCJ='-static'
21160         ;;
21161       ccc*)
21162         lt_prog_compiler_wl_GCJ='-Wl,'
21163         # All Alpha code is PIC.
21164         lt_prog_compiler_static_GCJ='-non_shared'
21165         ;;
21166       esac
21167       ;;
21168
21169     osf3* | osf4* | osf5*)
21170       lt_prog_compiler_wl_GCJ='-Wl,'
21171       # All OSF/1 code is PIC.
21172       lt_prog_compiler_static_GCJ='-non_shared'
21173       ;;
21174
21175     sco3.2v5*)
21176       lt_prog_compiler_pic_GCJ='-Kpic'
21177       lt_prog_compiler_static_GCJ='-dn'
21178       ;;
21179
21180     solaris*)
21181       lt_prog_compiler_wl_GCJ='-Wl,'
21182       lt_prog_compiler_pic_GCJ='-KPIC'
21183       lt_prog_compiler_static_GCJ='-Bstatic'
21184       ;;
21185
21186     sunos4*)
21187       lt_prog_compiler_wl_GCJ='-Qoption ld '
21188       lt_prog_compiler_pic_GCJ='-PIC'
21189       lt_prog_compiler_static_GCJ='-Bstatic'
21190       ;;
21191
21192     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21193       lt_prog_compiler_wl_GCJ='-Wl,'
21194       lt_prog_compiler_pic_GCJ='-KPIC'
21195       lt_prog_compiler_static_GCJ='-Bstatic'
21196       ;;
21197
21198     sysv4*MP*)
21199       if test -d /usr/nec ;then
21200         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21201         lt_prog_compiler_static_GCJ='-Bstatic'
21202       fi
21203       ;;
21204
21205     uts4*)
21206       lt_prog_compiler_pic_GCJ='-pic'
21207       lt_prog_compiler_static_GCJ='-Bstatic'
21208       ;;
21209
21210     *)
21211       lt_prog_compiler_can_build_shared_GCJ=no
21212       ;;
21213     esac
21214   fi
21215
21216 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21217 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21218
21219 #
21220 # Check to make sure the PIC flag actually works.
21221 #
21222 if test -n "$lt_prog_compiler_pic_GCJ"; then
21223
21224 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21225 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21226 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21227   echo $ECHO_N "(cached) $ECHO_C" >&6
21228 else
21229   lt_prog_compiler_pic_works_GCJ=no
21230   ac_outfile=conftest.$ac_objext
21231    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21232    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21233    # Insert the option either (1) after the last *FLAGS variable, or
21234    # (2) before a word containing "conftest.", or (3) at the end.
21235    # Note that $ac_compile itself does not contain backslashes and begins
21236    # with a dollar sign (not a hyphen), so the echo should work correctly.
21237    # The option is referenced via a variable to avoid confusing sed.
21238    lt_compile=`echo "$ac_compile" | $SED \
21239    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21240    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21241    -e 's:$: $lt_compiler_flag:'`
21242    (eval echo "\"\$as_me:21242: $lt_compile\"" >&5)
21243    (eval "$lt_compile" 2>conftest.err)
21244    ac_status=$?
21245    cat conftest.err >&5
21246    echo "$as_me:21246: \$? = $ac_status" >&5
21247    if (exit $ac_status) && test -s "$ac_outfile"; then
21248      # The compiler can only warn and ignore the option if not recognized
21249      # So say no if there are warnings
21250      if test ! -s conftest.err; then
21251        lt_prog_compiler_pic_works_GCJ=yes
21252      fi
21253    fi
21254    $rm conftest*
21255
21256 fi
21257 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21258 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21259
21260 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21261     case $lt_prog_compiler_pic_GCJ in
21262      "" | " "*) ;;
21263      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21264      esac
21265 else
21266     lt_prog_compiler_pic_GCJ=
21267      lt_prog_compiler_can_build_shared_GCJ=no
21268 fi
21269
21270 fi
21271 case "$host_os" in
21272   # For platforms which do not support PIC, -DPIC is meaningless:
21273   *djgpp*)
21274     lt_prog_compiler_pic_GCJ=
21275     ;;
21276   *)
21277     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21278     ;;
21279 esac
21280
21281 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21282 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21283 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21284   echo $ECHO_N "(cached) $ECHO_C" >&6
21285 else
21286   lt_cv_prog_compiler_c_o_GCJ=no
21287    $rm -r conftest 2>/dev/null
21288    mkdir conftest
21289    cd conftest
21290    mkdir out
21291    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21292
21293    lt_compiler_flag="-o out/conftest2.$ac_objext"
21294    # Insert the option either (1) after the last *FLAGS variable, or
21295    # (2) before a word containing "conftest.", or (3) at the end.
21296    # Note that $ac_compile itself does not contain backslashes and begins
21297    # with a dollar sign (not a hyphen), so the echo should work correctly.
21298    lt_compile=`echo "$ac_compile" | $SED \
21299    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21300    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21301    -e 's:$: $lt_compiler_flag:'`
21302    (eval echo "\"\$as_me:21302: $lt_compile\"" >&5)
21303    (eval "$lt_compile" 2>out/conftest.err)
21304    ac_status=$?
21305    cat out/conftest.err >&5
21306    echo "$as_me:21306: \$? = $ac_status" >&5
21307    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21308    then
21309      # The compiler can only warn and ignore the option if not recognized
21310      # So say no if there are warnings
21311      if test ! -s out/conftest.err; then
21312        lt_cv_prog_compiler_c_o_GCJ=yes
21313      fi
21314    fi
21315    chmod u+w .
21316    $rm conftest*
21317    # SGI C++ compiler will create directory out/ii_files/ for
21318    # template instantiation
21319    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21320    $rm out/* && rmdir out
21321    cd ..
21322    rmdir conftest
21323    $rm conftest*
21324
21325 fi
21326 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21327 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21328
21329
21330 hard_links="nottested"
21331 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21332   # do not overwrite the value of need_locks provided by the user
21333   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21334 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21335   hard_links=yes
21336   $rm conftest*
21337   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21338   touch conftest.a
21339   ln conftest.a conftest.b 2>&5 || hard_links=no
21340   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21341   echo "$as_me:$LINENO: result: $hard_links" >&5
21342 echo "${ECHO_T}$hard_links" >&6
21343   if test "$hard_links" = no; then
21344     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21345 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21346     need_locks=warn
21347   fi
21348 else
21349   need_locks=no
21350 fi
21351
21352 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21353 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21354
21355   runpath_var=
21356   allow_undefined_flag_GCJ=
21357   enable_shared_with_static_runtimes_GCJ=no
21358   archive_cmds_GCJ=
21359   archive_expsym_cmds_GCJ=
21360   old_archive_From_new_cmds_GCJ=
21361   old_archive_from_expsyms_cmds_GCJ=
21362   export_dynamic_flag_spec_GCJ=
21363   whole_archive_flag_spec_GCJ=
21364   thread_safe_flag_spec_GCJ=
21365   hardcode_libdir_flag_spec_GCJ=
21366   hardcode_libdir_flag_spec_ld_GCJ=
21367   hardcode_libdir_separator_GCJ=
21368   hardcode_direct_GCJ=no
21369   hardcode_minus_L_GCJ=no
21370   hardcode_shlibpath_var_GCJ=unsupported
21371   link_all_deplibs_GCJ=unknown
21372   hardcode_automatic_GCJ=no
21373   module_cmds_GCJ=
21374   module_expsym_cmds_GCJ=
21375   always_export_symbols_GCJ=no
21376   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21377   # include_expsyms should be a list of space-separated symbols to be *always*
21378   # included in the symbol list
21379   include_expsyms_GCJ=
21380   # exclude_expsyms can be an extended regexp of symbols to exclude
21381   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21382   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21383   # as well as any symbol that contains `d'.
21384   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21385   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21386   # platforms (ab)use it in PIC code, but their linkers get confused if
21387   # the symbol is explicitly referenced.  Since portable code cannot
21388   # rely on this symbol name, it's probably fine to never include it in
21389   # preloaded symbol tables.
21390   extract_expsyms_cmds=
21391
21392   case $host_os in
21393   cygwin* | mingw* | pw32*)
21394     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21395     # When not using gcc, we currently assume that we are using
21396     # Microsoft Visual C++.
21397     if test "$GCC" != yes; then
21398       with_gnu_ld=no
21399     fi
21400     ;;
21401   openbsd*)
21402     with_gnu_ld=no
21403     ;;
21404   esac
21405
21406   ld_shlibs_GCJ=yes
21407   if test "$with_gnu_ld" = yes; then
21408     # If archive_cmds runs LD, not CC, wlarc should be empty
21409     wlarc='${wl}'
21410
21411     # See if GNU ld supports shared libraries.
21412     case $host_os in
21413     aix3* | aix4* | aix5*)
21414       # On AIX/PPC, the GNU linker is very broken
21415       if test "$host_cpu" != ia64; then
21416         ld_shlibs_GCJ=no
21417         cat <<EOF 1>&2
21418
21419 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21420 *** to be unable to reliably create shared libraries on AIX.
21421 *** Therefore, libtool is disabling shared libraries support.  If you
21422 *** really care for shared libraries, you may want to modify your PATH
21423 *** so that a non-GNU linker is found, and then restart.
21424
21425 EOF
21426       fi
21427       ;;
21428
21429     amigaos*)
21430       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)'
21431       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21432       hardcode_minus_L_GCJ=yes
21433
21434       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21435       # that the semantics of dynamic libraries on AmigaOS, at least up
21436       # to version 4, is to share data among multiple programs linked
21437       # with the same dynamic library.  Since this doesn't match the
21438       # behavior of shared libraries on other platforms, we can't use
21439       # them.
21440       ld_shlibs_GCJ=no
21441       ;;
21442
21443     beos*)
21444       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21445         allow_undefined_flag_GCJ=unsupported
21446         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21447         # support --undefined.  This deserves some investigation.  FIXME
21448         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21449       else
21450         ld_shlibs_GCJ=no
21451       fi
21452       ;;
21453
21454     cygwin* | mingw* | pw32*)
21455       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21456       # as there is no search path for DLLs.
21457       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21458       allow_undefined_flag_GCJ=unsupported
21459       always_export_symbols_GCJ=no
21460       enable_shared_with_static_runtimes_GCJ=yes
21461       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21462
21463       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21464         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21465         # If the export-symbols file already is a .def file (1st line
21466         # is EXPORTS), use it as is; otherwise, prepend...
21467         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21468           cp $export_symbols $output_objdir/$soname.def;
21469         else
21470           echo EXPORTS > $output_objdir/$soname.def;
21471           cat $export_symbols >> $output_objdir/$soname.def;
21472         fi~
21473         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21474       else
21475         ld_shlibs=no
21476       fi
21477       ;;
21478
21479     netbsd*)
21480       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21481         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21482         wlarc=
21483       else
21484         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21485         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21486       fi
21487       ;;
21488
21489     solaris* | sysv5*)
21490       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21491         ld_shlibs_GCJ=no
21492         cat <<EOF 1>&2
21493
21494 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21495 *** create shared libraries on Solaris systems.  Therefore, libtool
21496 *** is disabling shared libraries support.  We urge you to upgrade GNU
21497 *** binutils to release 2.9.1 or newer.  Another option is to modify
21498 *** your PATH or compiler configuration so that the native linker is
21499 *** used, and then restart.
21500
21501 EOF
21502       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21503         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21504         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21505       else
21506         ld_shlibs_GCJ=no
21507       fi
21508       ;;
21509
21510     sunos4*)
21511       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21512       wlarc=
21513       hardcode_direct_GCJ=yes
21514       hardcode_shlibpath_var_GCJ=no
21515       ;;
21516
21517   linux*)
21518     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21519         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21520         archive_cmds_GCJ="$tmp_archive_cmds"
21521       supports_anon_versioning=no
21522       case `$LD -v 2>/dev/null` in
21523         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21524         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21525         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21526         *\ 2.11.*) ;; # other 2.11 versions
21527         *) supports_anon_versioning=yes ;;
21528       esac
21529       if test $supports_anon_versioning = yes; then
21530         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21531 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21532 $echo "local: *; };" >> $output_objdir/$libname.ver~
21533         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21534       else
21535         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21536       fi
21537     else
21538       ld_shlibs_GCJ=no
21539     fi
21540     ;;
21541
21542     *)
21543       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21544         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21545         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21546       else
21547         ld_shlibs_GCJ=no
21548       fi
21549       ;;
21550     esac
21551
21552     if test "$ld_shlibs_GCJ" = yes; then
21553       runpath_var=LD_RUN_PATH
21554       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21555       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21556       # ancient GNU ld didn't support --whole-archive et. al.
21557       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21558         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21559       else
21560         whole_archive_flag_spec_GCJ=
21561       fi
21562     fi
21563   else
21564     # PORTME fill in a description of your system's linker (not GNU ld)
21565     case $host_os in
21566     aix3*)
21567       allow_undefined_flag_GCJ=unsupported
21568       always_export_symbols_GCJ=yes
21569       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'
21570       # Note: this linker hardcodes the directories in LIBPATH if there
21571       # are no directories specified by -L.
21572       hardcode_minus_L_GCJ=yes
21573       if test "$GCC" = yes && test -z "$link_static_flag"; then
21574         # Neither direct hardcoding nor static linking is supported with a
21575         # broken collect2.
21576         hardcode_direct_GCJ=unsupported
21577       fi
21578       ;;
21579
21580     aix4* | aix5*)
21581       if test "$host_cpu" = ia64; then
21582         # On IA64, the linker does run time linking by default, so we don't
21583         # have to do anything special.
21584         aix_use_runtimelinking=no
21585         exp_sym_flag='-Bexport'
21586         no_entry_flag=""
21587       else
21588         # If we're using GNU nm, then we don't want the "-C" option.
21589         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21590         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21591           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'
21592         else
21593           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'
21594         fi
21595         aix_use_runtimelinking=no
21596
21597         # Test if we are trying to use run time linking or normal
21598         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21599         # need to do runtime linking.
21600         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21601           for ld_flag in $LDFLAGS; do
21602           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21603             aix_use_runtimelinking=yes
21604             break
21605           fi
21606           done
21607         esac
21608
21609         exp_sym_flag='-bexport'
21610         no_entry_flag='-bnoentry'
21611       fi
21612
21613       # When large executables or shared objects are built, AIX ld can
21614       # have problems creating the table of contents.  If linking a library
21615       # or program results in "error TOC overflow" add -mminimal-toc to
21616       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21617       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21618
21619       archive_cmds_GCJ=''
21620       hardcode_direct_GCJ=yes
21621       hardcode_libdir_separator_GCJ=':'
21622       link_all_deplibs_GCJ=yes
21623
21624       if test "$GCC" = yes; then
21625         case $host_os in aix4.012|aix4.012.*)
21626         # We only want to do this on AIX 4.2 and lower, the check
21627         # below for broken collect2 doesn't work under 4.3+
21628           collect2name=`${CC} -print-prog-name=collect2`
21629           if test -f "$collect2name" && \
21630            strings "$collect2name" | grep resolve_lib_name >/dev/null
21631           then
21632           # We have reworked collect2
21633           hardcode_direct_GCJ=yes
21634           else
21635           # We have old collect2
21636           hardcode_direct_GCJ=unsupported
21637           # It fails to find uninstalled libraries when the uninstalled
21638           # path is not listed in the libpath.  Setting hardcode_minus_L
21639           # to unsupported forces relinking
21640           hardcode_minus_L_GCJ=yes
21641           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21642           hardcode_libdir_separator_GCJ=
21643           fi
21644         esac
21645         shared_flag='-shared'
21646       else
21647         # not using gcc
21648         if test "$host_cpu" = ia64; then
21649         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21650         # chokes on -Wl,-G. The following line is correct:
21651           shared_flag='-G'
21652         else
21653         if test "$aix_use_runtimelinking" = yes; then
21654             shared_flag='${wl}-G'
21655           else
21656             shared_flag='${wl}-bM:SRE'
21657         fi
21658         fi
21659       fi
21660
21661       # It seems that -bexpall does not export symbols beginning with
21662       # underscore (_), so it is better to generate a list of symbols to export.
21663       always_export_symbols_GCJ=yes
21664       if test "$aix_use_runtimelinking" = yes; then
21665         # Warning - without using the other runtime loading flags (-brtl),
21666         # -berok will link without error, but may produce a broken library.
21667         allow_undefined_flag_GCJ='-berok'
21668        # Determine the default libpath from the value encoded in an empty executable.
21669        cat >conftest.$ac_ext <<_ACEOF
21670 /* confdefs.h.  */
21671 _ACEOF
21672 cat confdefs.h >>conftest.$ac_ext
21673 cat >>conftest.$ac_ext <<_ACEOF
21674 /* end confdefs.h.  */
21675
21676 int
21677 main ()
21678 {
21679
21680   ;
21681   return 0;
21682 }
21683 _ACEOF
21684 rm -f conftest.$ac_objext conftest$ac_exeext
21685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21686   (eval $ac_link) 2>conftest.er1
21687   ac_status=$?
21688   grep -v '^ *+' conftest.er1 >conftest.err
21689   rm -f conftest.er1
21690   cat conftest.err >&5
21691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692   (exit $ac_status); } &&
21693          { ac_try='test -z "$ac_c_werror_flag"
21694                          || test ! -s conftest.err'
21695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696   (eval $ac_try) 2>&5
21697   ac_status=$?
21698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699   (exit $ac_status); }; } &&
21700          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21706
21707 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21708 }'`
21709 # Check for a 64-bit object if we didn't find anything.
21710 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; }
21711 }'`; fi
21712 else
21713   echo "$as_me: failed program was:" >&5
21714 sed 's/^/| /' conftest.$ac_ext >&5
21715
21716 fi
21717 rm -f conftest.err conftest.$ac_objext \
21718       conftest$ac_exeext conftest.$ac_ext
21719 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21720
21721        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21722         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"
21723        else
21724         if test "$host_cpu" = ia64; then
21725           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21726           allow_undefined_flag_GCJ="-z nodefs"
21727           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"
21728         else
21729          # Determine the default libpath from the value encoded in an empty executable.
21730          cat >conftest.$ac_ext <<_ACEOF
21731 /* confdefs.h.  */
21732 _ACEOF
21733 cat confdefs.h >>conftest.$ac_ext
21734 cat >>conftest.$ac_ext <<_ACEOF
21735 /* end confdefs.h.  */
21736
21737 int
21738 main ()
21739 {
21740
21741   ;
21742   return 0;
21743 }
21744 _ACEOF
21745 rm -f conftest.$ac_objext conftest$ac_exeext
21746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21747   (eval $ac_link) 2>conftest.er1
21748   ac_status=$?
21749   grep -v '^ *+' conftest.er1 >conftest.err
21750   rm -f conftest.er1
21751   cat conftest.err >&5
21752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753   (exit $ac_status); } &&
21754          { ac_try='test -z "$ac_c_werror_flag"
21755                          || test ! -s conftest.err'
21756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757   (eval $ac_try) 2>&5
21758   ac_status=$?
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); }; } &&
21761          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21767
21768 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21769 }'`
21770 # Check for a 64-bit object if we didn't find anything.
21771 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; }
21772 }'`; fi
21773 else
21774   echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21776
21777 fi
21778 rm -f conftest.err conftest.$ac_objext \
21779       conftest$ac_exeext conftest.$ac_ext
21780 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21781
21782          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21783           # Warning - without using the other run time loading flags,
21784           # -berok will link without error, but may produce a broken library.
21785           no_undefined_flag_GCJ=' ${wl}-bernotok'
21786           allow_undefined_flag_GCJ=' ${wl}-berok'
21787           # -bexpall does not export symbols beginning with underscore (_)
21788           always_export_symbols_GCJ=yes
21789           # Exported symbols can be pulled into shared objects from archives
21790           whole_archive_flag_spec_GCJ=' '
21791           archive_cmds_need_lc_GCJ=yes
21792           # This is similar to how AIX traditionally builds it's shared libraries.
21793           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'
21794         fi
21795       fi
21796       ;;
21797
21798     amigaos*)
21799       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)'
21800       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21801       hardcode_minus_L_GCJ=yes
21802       # see comment about different semantics on the GNU ld section
21803       ld_shlibs_GCJ=no
21804       ;;
21805
21806     bsdi[45]*)
21807       export_dynamic_flag_spec_GCJ=-rdynamic
21808       ;;
21809
21810     cygwin* | mingw* | pw32*)
21811       # When not using gcc, we currently assume that we are using
21812       # Microsoft Visual C++.
21813       # hardcode_libdir_flag_spec is actually meaningless, as there is
21814       # no search path for DLLs.
21815       hardcode_libdir_flag_spec_GCJ=' '
21816       allow_undefined_flag_GCJ=unsupported
21817       # Tell ltmain to make .lib files, not .a files.
21818       libext=lib
21819       # Tell ltmain to make .dll files, not .so files.
21820       shrext_cmds=".dll"
21821       # FIXME: Setting linknames here is a bad hack.
21822       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21823       # The linker will automatically build a .lib file if we build a DLL.
21824       old_archive_From_new_cmds_GCJ='true'
21825       # FIXME: Should let the user specify the lib program.
21826       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21827       fix_srcfile_path='`cygpath -w "$srcfile"`'
21828       enable_shared_with_static_runtimes_GCJ=yes
21829       ;;
21830
21831     darwin* | rhapsody*)
21832       case "$host_os" in
21833         rhapsody* | darwin1.[012])
21834          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21835          ;;
21836        *) # Darwin 1.3 on
21837          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21838            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21839          else
21840            case ${MACOSX_DEPLOYMENT_TARGET} in
21841              10.[012])
21842                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21843                ;;
21844              10.*)
21845                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21846                ;;
21847            esac
21848          fi
21849          ;;
21850       esac
21851       archive_cmds_need_lc_GCJ=no
21852       hardcode_direct_GCJ=no
21853       hardcode_automatic_GCJ=yes
21854       hardcode_shlibpath_var_GCJ=unsupported
21855       whole_archive_flag_spec_GCJ=''
21856       link_all_deplibs_GCJ=yes
21857     if test "$GCC" = yes ; then
21858         output_verbose_link_cmd='echo'
21859         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21860       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21861       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21862       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}'
21863       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}'
21864     else
21865       case "$cc_basename" in
21866         xlc*)
21867          output_verbose_link_cmd='echo'
21868          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21869          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21870           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21871          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}'
21872           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}'
21873           ;;
21874        *)
21875          ld_shlibs_GCJ=no
21876           ;;
21877       esac
21878     fi
21879       ;;
21880
21881     dgux*)
21882       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21883       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21884       hardcode_shlibpath_var_GCJ=no
21885       ;;
21886
21887     freebsd1*)
21888       ld_shlibs_GCJ=no
21889       ;;
21890
21891     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21892     # support.  Future versions do this automatically, but an explicit c++rt0.o
21893     # does not break anything, and helps significantly (at the cost of a little
21894     # extra space).
21895     freebsd2.2*)
21896       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21897       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21898       hardcode_direct_GCJ=yes
21899       hardcode_shlibpath_var_GCJ=no
21900       ;;
21901
21902     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21903     freebsd2*)
21904       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21905       hardcode_direct_GCJ=yes
21906       hardcode_minus_L_GCJ=yes
21907       hardcode_shlibpath_var_GCJ=no
21908       ;;
21909
21910     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21911     freebsd* | kfreebsd*-gnu)
21912       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21913       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21914       hardcode_direct_GCJ=yes
21915       hardcode_shlibpath_var_GCJ=no
21916       ;;
21917
21918     hpux9*)
21919       if test "$GCC" = yes; then
21920         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'
21921       else
21922         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'
21923       fi
21924       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21925       hardcode_libdir_separator_GCJ=:
21926       hardcode_direct_GCJ=yes
21927
21928       # hardcode_minus_L: Not really in the search PATH,
21929       # but as the default location of the library.
21930       hardcode_minus_L_GCJ=yes
21931       export_dynamic_flag_spec_GCJ='${wl}-E'
21932       ;;
21933
21934     hpux10* | hpux11*)
21935       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21936         case "$host_cpu" in
21937         hppa*64*|ia64*)
21938           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21939           ;;
21940         *)
21941           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21942           ;;
21943         esac
21944       else
21945         case "$host_cpu" in
21946         hppa*64*|ia64*)
21947           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21948           ;;
21949         *)
21950           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21951           ;;
21952         esac
21953       fi
21954       if test "$with_gnu_ld" = no; then
21955         case "$host_cpu" in
21956         hppa*64*)
21957           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21958           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21959           hardcode_libdir_separator_GCJ=:
21960           hardcode_direct_GCJ=no
21961           hardcode_shlibpath_var_GCJ=no
21962           ;;
21963         ia64*)
21964           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21965           hardcode_direct_GCJ=no
21966           hardcode_shlibpath_var_GCJ=no
21967
21968           # hardcode_minus_L: Not really in the search PATH,
21969           # but as the default location of the library.
21970           hardcode_minus_L_GCJ=yes
21971           ;;
21972         *)
21973           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21974           hardcode_libdir_separator_GCJ=:
21975           hardcode_direct_GCJ=yes
21976           export_dynamic_flag_spec_GCJ='${wl}-E'
21977
21978           # hardcode_minus_L: Not really in the search PATH,
21979           # but as the default location of the library.
21980           hardcode_minus_L_GCJ=yes
21981           ;;
21982         esac
21983       fi
21984       ;;
21985
21986     irix5* | irix6* | nonstopux*)
21987       if test "$GCC" = yes; then
21988         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'
21989       else
21990         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'
21991         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21992       fi
21993       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21994       hardcode_libdir_separator_GCJ=:
21995       link_all_deplibs_GCJ=yes
21996       ;;
21997
21998     netbsd*)
21999       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22000         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22001       else
22002         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22003       fi
22004       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22005       hardcode_direct_GCJ=yes
22006       hardcode_shlibpath_var_GCJ=no
22007       ;;
22008
22009     newsos6)
22010       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22011       hardcode_direct_GCJ=yes
22012       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22013       hardcode_libdir_separator_GCJ=:
22014       hardcode_shlibpath_var_GCJ=no
22015       ;;
22016
22017     openbsd*)
22018       hardcode_direct_GCJ=yes
22019       hardcode_shlibpath_var_GCJ=no
22020       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22021         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22022         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22023         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22024         export_dynamic_flag_spec_GCJ='${wl}-E'
22025       else
22026        case $host_os in
22027          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22028            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22029            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22030            ;;
22031          *)
22032            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22033            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22034            ;;
22035        esac
22036       fi
22037       ;;
22038
22039     os2*)
22040       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22041       hardcode_minus_L_GCJ=yes
22042       allow_undefined_flag_GCJ=unsupported
22043       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'
22044       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22045       ;;
22046
22047     osf3*)
22048       if test "$GCC" = yes; then
22049         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22050         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'
22051       else
22052         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22053         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'
22054       fi
22055       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22056       hardcode_libdir_separator_GCJ=:
22057       ;;
22058
22059     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22060       if test "$GCC" = yes; then
22061         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22062         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'
22063         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22064       else
22065         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22066         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'
22067         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~
22068         $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'
22069
22070         # Both c and cxx compiler support -rpath directly
22071         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22072       fi
22073       hardcode_libdir_separator_GCJ=:
22074       ;;
22075
22076     sco3.2v5*)
22077       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22078       hardcode_shlibpath_var_GCJ=no
22079       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22080       runpath_var=LD_RUN_PATH
22081       hardcode_runpath_var=yes
22082       ;;
22083
22084     solaris*)
22085       no_undefined_flag_GCJ=' -z text'
22086       if test "$GCC" = yes; then
22087         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22088         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22089           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22090       else
22091         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22092         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22093         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22094       fi
22095       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22096       hardcode_shlibpath_var_GCJ=no
22097       case $host_os in
22098       solaris2.[0-5] | solaris2.[0-5].*) ;;
22099       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22100         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22101       esac
22102       link_all_deplibs_GCJ=yes
22103       ;;
22104
22105     sunos4*)
22106       if test "x$host_vendor" = xsequent; then
22107         # Use $CC to link under sequent, because it throws in some extra .o
22108         # files that make .init and .fini sections work.
22109         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22110       else
22111         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22112       fi
22113       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22114       hardcode_direct_GCJ=yes
22115       hardcode_minus_L_GCJ=yes
22116       hardcode_shlibpath_var_GCJ=no
22117       ;;
22118
22119     sysv4)
22120       case $host_vendor in
22121         sni)
22122           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22123           hardcode_direct_GCJ=yes # is this really true???
22124         ;;
22125         siemens)
22126           ## LD is ld it makes a PLAMLIB
22127           ## CC just makes a GrossModule.
22128           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22129           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22130           hardcode_direct_GCJ=no
22131         ;;
22132         motorola)
22133           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22134           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22135         ;;
22136       esac
22137       runpath_var='LD_RUN_PATH'
22138       hardcode_shlibpath_var_GCJ=no
22139       ;;
22140
22141     sysv4.3*)
22142       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22143       hardcode_shlibpath_var_GCJ=no
22144       export_dynamic_flag_spec_GCJ='-Bexport'
22145       ;;
22146
22147     sysv4*MP*)
22148       if test -d /usr/nec; then
22149         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22150         hardcode_shlibpath_var_GCJ=no
22151         runpath_var=LD_RUN_PATH
22152         hardcode_runpath_var=yes
22153         ld_shlibs_GCJ=yes
22154       fi
22155       ;;
22156
22157     sysv4.2uw2*)
22158       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22159       hardcode_direct_GCJ=yes
22160       hardcode_minus_L_GCJ=no
22161       hardcode_shlibpath_var_GCJ=no
22162       hardcode_runpath_var=yes
22163       runpath_var=LD_RUN_PATH
22164       ;;
22165
22166    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22167       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22168       if test "$GCC" = yes; then
22169         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22170       else
22171         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22172       fi
22173       runpath_var='LD_RUN_PATH'
22174       hardcode_shlibpath_var_GCJ=no
22175       ;;
22176
22177     sysv5*)
22178       no_undefined_flag_GCJ=' -z text'
22179       # $CC -shared without GNU ld will not create a library from C++
22180       # object files and a static libstdc++, better avoid it by now
22181       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22182       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22183                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22184       hardcode_libdir_flag_spec_GCJ=
22185       hardcode_shlibpath_var_GCJ=no
22186       runpath_var='LD_RUN_PATH'
22187       ;;
22188
22189     uts4*)
22190       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22191       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22192       hardcode_shlibpath_var_GCJ=no
22193       ;;
22194
22195     *)
22196       ld_shlibs_GCJ=no
22197       ;;
22198     esac
22199   fi
22200
22201 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22202 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22203 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22204
22205 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22206 if test "$GCC" = yes; then
22207   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22208 fi
22209
22210 #
22211 # Do we need to explicitly link libc?
22212 #
22213 case "x$archive_cmds_need_lc_GCJ" in
22214 x|xyes)
22215   # Assume -lc should be added
22216   archive_cmds_need_lc_GCJ=yes
22217
22218   if test "$enable_shared" = yes && test "$GCC" = yes; then
22219     case $archive_cmds_GCJ in
22220     *'~'*)
22221       # FIXME: we may have to deal with multi-command sequences.
22222       ;;
22223     '$CC '*)
22224       # Test whether the compiler implicitly links with -lc since on some
22225       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22226       # to ld, don't add -lc before -lgcc.
22227       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22228 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22229       $rm conftest*
22230       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22231
22232       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22233   (eval $ac_compile) 2>&5
22234   ac_status=$?
22235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236   (exit $ac_status); } 2>conftest.err; then
22237         soname=conftest
22238         lib=conftest
22239         libobjs=conftest.$ac_objext
22240         deplibs=
22241         wl=$lt_prog_compiler_wl_GCJ
22242         compiler_flags=-v
22243         linker_flags=-v
22244         verstring=
22245         output_objdir=.
22246         libname=conftest
22247         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22248         allow_undefined_flag_GCJ=
22249         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22250   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22251   ac_status=$?
22252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253   (exit $ac_status); }
22254         then
22255           archive_cmds_need_lc_GCJ=no
22256         else
22257           archive_cmds_need_lc_GCJ=yes
22258         fi
22259         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22260       else
22261         cat conftest.err 1>&5
22262       fi
22263       $rm conftest*
22264       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22265 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22266       ;;
22267     esac
22268   fi
22269   ;;
22270 esac
22271
22272 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22273 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22274 library_names_spec=
22275 libname_spec='lib$name'
22276 soname_spec=
22277 shrext_cmds=".so"
22278 postinstall_cmds=
22279 postuninstall_cmds=
22280 finish_cmds=
22281 finish_eval=
22282 shlibpath_var=
22283 shlibpath_overrides_runpath=unknown
22284 version_type=none
22285 dynamic_linker="$host_os ld.so"
22286 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22287 if test "$GCC" = yes; then
22288   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22289   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22290     # if the path contains ";" then we assume it to be the separator
22291     # otherwise default to the standard path separator (i.e. ":") - it is
22292     # assumed that no part of a normal pathname contains ";" but that should
22293     # okay in the real world where ";" in dirpaths is itself problematic.
22294     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22295   else
22296     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22297   fi
22298 else
22299   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22300 fi
22301 need_lib_prefix=unknown
22302 hardcode_into_libs=no
22303
22304 # when you set need_version to no, make sure it does not cause -set_version
22305 # flags to be left without arguments
22306 need_version=unknown
22307
22308 case $host_os in
22309 aix3*)
22310   version_type=linux
22311   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22312   shlibpath_var=LIBPATH
22313
22314   # AIX 3 has no versioning support, so we append a major version to the name.
22315   soname_spec='${libname}${release}${shared_ext}$major'
22316   ;;
22317
22318 aix4* | aix5*)
22319   version_type=linux
22320   need_lib_prefix=no
22321   need_version=no
22322   hardcode_into_libs=yes
22323   if test "$host_cpu" = ia64; then
22324     # AIX 5 supports IA64
22325     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22326     shlibpath_var=LD_LIBRARY_PATH
22327   else
22328     # With GCC up to 2.95.x, collect2 would create an import file
22329     # for dependence libraries.  The import file would start with
22330     # the line `#! .'.  This would cause the generated library to
22331     # depend on `.', always an invalid library.  This was fixed in
22332     # development snapshots of GCC prior to 3.0.
22333     case $host_os in
22334       aix4 | aix4.[01] | aix4.[01].*)
22335       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22336            echo ' yes '
22337            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22338         :
22339       else
22340         can_build_shared=no
22341       fi
22342       ;;
22343     esac
22344     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22345     # soname into executable. Probably we can add versioning support to
22346     # collect2, so additional links can be useful in future.
22347     if test "$aix_use_runtimelinking" = yes; then
22348       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22349       # instead of lib<name>.a to let people know that these are not
22350       # typical AIX shared libraries.
22351       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22352     else
22353       # We preserve .a as extension for shared libraries through AIX4.2
22354       # and later when we are not doing run time linking.
22355       library_names_spec='${libname}${release}.a $libname.a'
22356       soname_spec='${libname}${release}${shared_ext}$major'
22357     fi
22358     shlibpath_var=LIBPATH
22359   fi
22360   ;;
22361
22362 amigaos*)
22363   library_names_spec='$libname.ixlibrary $libname.a'
22364   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22365   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'
22366   ;;
22367
22368 beos*)
22369   library_names_spec='${libname}${shared_ext}'
22370   dynamic_linker="$host_os ld.so"
22371   shlibpath_var=LIBRARY_PATH
22372   ;;
22373
22374 bsdi[45]*)
22375   version_type=linux
22376   need_version=no
22377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22378   soname_spec='${libname}${release}${shared_ext}$major'
22379   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22380   shlibpath_var=LD_LIBRARY_PATH
22381   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22382   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22383   # the default ld.so.conf also contains /usr/contrib/lib and
22384   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22385   # libtool to hard-code these into programs
22386   ;;
22387
22388 cygwin* | mingw* | pw32*)
22389   version_type=windows
22390   shrext_cmds=".dll"
22391   need_version=no
22392   need_lib_prefix=no
22393
22394   case $GCC,$host_os in
22395   yes,cygwin* | yes,mingw* | yes,pw32*)
22396     library_names_spec='$libname.dll.a'
22397     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22398     postinstall_cmds='base_file=`basename \${file}`~
22399       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22400       dldir=$destdir/`dirname \$dlpath`~
22401       test -d \$dldir || mkdir -p \$dldir~
22402       $install_prog $dir/$dlname \$dldir/$dlname'
22403     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22404       dlpath=$dir/\$dldll~
22405        $rm \$dlpath'
22406     shlibpath_overrides_runpath=yes
22407
22408     case $host_os in
22409     cygwin*)
22410       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22411       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22412       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22413       ;;
22414     mingw*)
22415       # MinGW DLLs use traditional 'lib' prefix
22416       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22417       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22418       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22419         # It is most probably a Windows format PATH printed by
22420         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22421         # path with ; separators, and with drive letters. We can handle the
22422         # drive letters (cygwin fileutils understands them), so leave them,
22423         # especially as we might pass files found there to a mingw objdump,
22424         # which wouldn't understand a cygwinified path. Ahh.
22425         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22426       else
22427         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22428       fi
22429       ;;
22430     pw32*)
22431       # pw32 DLLs use 'pw' prefix rather than 'lib'
22432       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22433       ;;
22434     esac
22435     ;;
22436
22437   *)
22438     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22439     ;;
22440   esac
22441   dynamic_linker='Win32 ld.exe'
22442   # FIXME: first we should search . and the directory the executable is in
22443   shlibpath_var=PATH
22444   ;;
22445
22446 darwin* | rhapsody*)
22447   dynamic_linker="$host_os dyld"
22448   version_type=darwin
22449   need_lib_prefix=no
22450   need_version=no
22451   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22452   soname_spec='${libname}${release}${major}$shared_ext'
22453   shlibpath_overrides_runpath=yes
22454   shlibpath_var=DYLD_LIBRARY_PATH
22455   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22456   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22457   if test "$GCC" = yes; then
22458     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"`
22459   else
22460     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22461   fi
22462   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22463   ;;
22464
22465 dgux*)
22466   version_type=linux
22467   need_lib_prefix=no
22468   need_version=no
22469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22470   soname_spec='${libname}${release}${shared_ext}$major'
22471   shlibpath_var=LD_LIBRARY_PATH
22472   ;;
22473
22474 freebsd1*)
22475   dynamic_linker=no
22476   ;;
22477
22478 kfreebsd*-gnu)
22479   version_type=linux
22480   need_lib_prefix=no
22481   need_version=no
22482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22483   soname_spec='${libname}${release}${shared_ext}$major'
22484   shlibpath_var=LD_LIBRARY_PATH
22485   shlibpath_overrides_runpath=no
22486   hardcode_into_libs=yes
22487   dynamic_linker='GNU ld.so'
22488   ;;
22489
22490 freebsd*)
22491   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22492   version_type=freebsd-$objformat
22493   case $version_type in
22494     freebsd-elf*)
22495       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22496       need_version=no
22497       need_lib_prefix=no
22498       ;;
22499     freebsd-*)
22500       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22501       need_version=yes
22502       ;;
22503   esac
22504   shlibpath_var=LD_LIBRARY_PATH
22505   case $host_os in
22506   freebsd2*)
22507     shlibpath_overrides_runpath=yes
22508     ;;
22509   freebsd3.01* | freebsdelf3.01*)
22510     shlibpath_overrides_runpath=yes
22511     hardcode_into_libs=yes
22512     ;;
22513   *) # from 3.2 on
22514     shlibpath_overrides_runpath=no
22515     hardcode_into_libs=yes
22516     ;;
22517   esac
22518   ;;
22519
22520 gnu*)
22521   version_type=linux
22522   need_lib_prefix=no
22523   need_version=no
22524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22525   soname_spec='${libname}${release}${shared_ext}$major'
22526   shlibpath_var=LD_LIBRARY_PATH
22527   hardcode_into_libs=yes
22528   ;;
22529
22530 hpux9* | hpux10* | hpux11*)
22531   # Give a soname corresponding to the major version so that dld.sl refuses to
22532   # link against other versions.
22533   version_type=sunos
22534   need_lib_prefix=no
22535   need_version=no
22536   case "$host_cpu" in
22537   ia64*)
22538     shrext_cmds='.so'
22539     hardcode_into_libs=yes
22540     dynamic_linker="$host_os dld.so"
22541     shlibpath_var=LD_LIBRARY_PATH
22542     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22543     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22544     soname_spec='${libname}${release}${shared_ext}$major'
22545     if test "X$HPUX_IA64_MODE" = X32; then
22546       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22547     else
22548       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22549     fi
22550     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22551     ;;
22552    hppa*64*)
22553      shrext_cmds='.sl'
22554      hardcode_into_libs=yes
22555      dynamic_linker="$host_os dld.sl"
22556      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22557      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22558      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22559      soname_spec='${libname}${release}${shared_ext}$major'
22560      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22561      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22562      ;;
22563    *)
22564     shrext_cmds='.sl'
22565     dynamic_linker="$host_os dld.sl"
22566     shlibpath_var=SHLIB_PATH
22567     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22568     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22569     soname_spec='${libname}${release}${shared_ext}$major'
22570     ;;
22571   esac
22572   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22573   postinstall_cmds='chmod 555 $lib'
22574   ;;
22575
22576 irix5* | irix6* | nonstopux*)
22577   case $host_os in
22578     nonstopux*) version_type=nonstopux ;;
22579     *)
22580         if test "$lt_cv_prog_gnu_ld" = yes; then
22581                 version_type=linux
22582         else
22583                 version_type=irix
22584         fi ;;
22585   esac
22586   need_lib_prefix=no
22587   need_version=no
22588   soname_spec='${libname}${release}${shared_ext}$major'
22589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22590   case $host_os in
22591   irix5* | nonstopux*)
22592     libsuff= shlibsuff=
22593     ;;
22594   *)
22595     case $LD in # libtool.m4 will add one of these switches to LD
22596     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22597       libsuff= shlibsuff= libmagic=32-bit;;
22598     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22599       libsuff=32 shlibsuff=N32 libmagic=N32;;
22600     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22601       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22602     *) libsuff= shlibsuff= libmagic=never-match;;
22603     esac
22604     ;;
22605   esac
22606   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22607   shlibpath_overrides_runpath=no
22608   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22609   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22610   hardcode_into_libs=yes
22611   ;;
22612
22613 # No shared lib support for Linux oldld, aout, or coff.
22614 linux*oldld* | linux*aout* | linux*coff*)
22615   dynamic_linker=no
22616   ;;
22617
22618 # This must be Linux ELF.
22619 linux*)
22620   version_type=linux
22621   need_lib_prefix=no
22622   need_version=no
22623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22624   soname_spec='${libname}${release}${shared_ext}$major'
22625   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22626   shlibpath_var=LD_LIBRARY_PATH
22627   shlibpath_overrides_runpath=no
22628   # This implies no fast_install, which is unacceptable.
22629   # Some rework will be needed to allow for fast_install
22630   # before this can be enabled.
22631   hardcode_into_libs=yes
22632
22633   # Append ld.so.conf contents to the search path
22634   if test -f /etc/ld.so.conf; then
22635     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22636     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22637   fi
22638
22639   # We used to test for /lib/ld.so.1 and disable shared libraries on
22640   # powerpc, because MkLinux only supported shared libraries with the
22641   # GNU dynamic linker.  Since this was broken with cross compilers,
22642   # most powerpc-linux boxes support dynamic linking these days and
22643   # people can always --disable-shared, the test was removed, and we
22644   # assume the GNU/Linux dynamic linker is in use.
22645   dynamic_linker='GNU/Linux ld.so'
22646   ;;
22647
22648 knetbsd*-gnu)
22649   version_type=linux
22650   need_lib_prefix=no
22651   need_version=no
22652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22653   soname_spec='${libname}${release}${shared_ext}$major'
22654   shlibpath_var=LD_LIBRARY_PATH
22655   shlibpath_overrides_runpath=no
22656   hardcode_into_libs=yes
22657   dynamic_linker='GNU ld.so'
22658   ;;
22659
22660 netbsd*)
22661   version_type=sunos
22662   need_lib_prefix=no
22663   need_version=no
22664   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22665     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22666     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22667     dynamic_linker='NetBSD (a.out) ld.so'
22668   else
22669     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22670     soname_spec='${libname}${release}${shared_ext}$major'
22671     dynamic_linker='NetBSD ld.elf_so'
22672   fi
22673   shlibpath_var=LD_LIBRARY_PATH
22674   shlibpath_overrides_runpath=yes
22675   hardcode_into_libs=yes
22676   ;;
22677
22678 newsos6)
22679   version_type=linux
22680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22681   shlibpath_var=LD_LIBRARY_PATH
22682   shlibpath_overrides_runpath=yes
22683   ;;
22684
22685 nto-qnx*)
22686   version_type=linux
22687   need_lib_prefix=no
22688   need_version=no
22689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22690   soname_spec='${libname}${release}${shared_ext}$major'
22691   shlibpath_var=LD_LIBRARY_PATH
22692   shlibpath_overrides_runpath=yes
22693   ;;
22694
22695 openbsd*)
22696   version_type=sunos
22697   need_lib_prefix=no
22698   need_version=no
22699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22700   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22701   shlibpath_var=LD_LIBRARY_PATH
22702   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22703     case $host_os in
22704       openbsd2.[89] | openbsd2.[89].*)
22705         shlibpath_overrides_runpath=no
22706         ;;
22707       *)
22708         shlibpath_overrides_runpath=yes
22709         ;;
22710       esac
22711   else
22712     shlibpath_overrides_runpath=yes
22713   fi
22714   ;;
22715
22716 os2*)
22717   libname_spec='$name'
22718   shrext_cmds=".dll"
22719   need_lib_prefix=no
22720   library_names_spec='$libname${shared_ext} $libname.a'
22721   dynamic_linker='OS/2 ld.exe'
22722   shlibpath_var=LIBPATH
22723   ;;
22724
22725 osf3* | osf4* | osf5*)
22726   version_type=osf
22727   need_lib_prefix=no
22728   need_version=no
22729   soname_spec='${libname}${release}${shared_ext}$major'
22730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22731   shlibpath_var=LD_LIBRARY_PATH
22732   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22733   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22734   ;;
22735
22736 sco3.2v5*)
22737   version_type=osf
22738   soname_spec='${libname}${release}${shared_ext}$major'
22739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22740   shlibpath_var=LD_LIBRARY_PATH
22741   ;;
22742
22743 solaris*)
22744   version_type=linux
22745   need_lib_prefix=no
22746   need_version=no
22747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22748   soname_spec='${libname}${release}${shared_ext}$major'
22749   shlibpath_var=LD_LIBRARY_PATH
22750   shlibpath_overrides_runpath=yes
22751   hardcode_into_libs=yes
22752   # ldd complains unless libraries are executable
22753   postinstall_cmds='chmod +x $lib'
22754   ;;
22755
22756 sunos4*)
22757   version_type=sunos
22758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22759   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22760   shlibpath_var=LD_LIBRARY_PATH
22761   shlibpath_overrides_runpath=yes
22762   if test "$with_gnu_ld" = yes; then
22763     need_lib_prefix=no
22764   fi
22765   need_version=yes
22766   ;;
22767
22768 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22769   version_type=linux
22770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22771   soname_spec='${libname}${release}${shared_ext}$major'
22772   shlibpath_var=LD_LIBRARY_PATH
22773   case $host_vendor in
22774     sni)
22775       shlibpath_overrides_runpath=no
22776       need_lib_prefix=no
22777       export_dynamic_flag_spec='${wl}-Blargedynsym'
22778       runpath_var=LD_RUN_PATH
22779       ;;
22780     siemens)
22781       need_lib_prefix=no
22782       ;;
22783     motorola)
22784       need_lib_prefix=no
22785       need_version=no
22786       shlibpath_overrides_runpath=no
22787       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22788       ;;
22789   esac
22790   ;;
22791
22792 sysv4*MP*)
22793   if test -d /usr/nec ;then
22794     version_type=linux
22795     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22796     soname_spec='$libname${shared_ext}.$major'
22797     shlibpath_var=LD_LIBRARY_PATH
22798   fi
22799   ;;
22800
22801 uts4*)
22802   version_type=linux
22803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22804   soname_spec='${libname}${release}${shared_ext}$major'
22805   shlibpath_var=LD_LIBRARY_PATH
22806   ;;
22807
22808 *)
22809   dynamic_linker=no
22810   ;;
22811 esac
22812 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22813 echo "${ECHO_T}$dynamic_linker" >&6
22814 test "$dynamic_linker" = no && can_build_shared=no
22815
22816 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22817 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22818 hardcode_action_GCJ=
22819 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22820    test -n "$runpath_var_GCJ" || \
22821    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22822
22823   # We can hardcode non-existant directories.
22824   if test "$hardcode_direct_GCJ" != no &&
22825      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22826      # have to relink, otherwise we might link with an installed library
22827      # when we should be linking with a yet-to-be-installed one
22828      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22829      test "$hardcode_minus_L_GCJ" != no; then
22830     # Linking always hardcodes the temporary library directory.
22831     hardcode_action_GCJ=relink
22832   else
22833     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22834     hardcode_action_GCJ=immediate
22835   fi
22836 else
22837   # We cannot hardcode anything, or else we can only hardcode existing
22838   # directories.
22839   hardcode_action_GCJ=unsupported
22840 fi
22841 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22842 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22843
22844 if test "$hardcode_action_GCJ" = relink; then
22845   # Fast installation is not supported
22846   enable_fast_install=no
22847 elif test "$shlibpath_overrides_runpath" = yes ||
22848      test "$enable_shared" = no; then
22849   # Fast installation is not necessary
22850   enable_fast_install=needless
22851 fi
22852
22853 striplib=
22854 old_striplib=
22855 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22856 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22857 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22858   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22859   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22860   echo "$as_me:$LINENO: result: yes" >&5
22861 echo "${ECHO_T}yes" >&6
22862 else
22863 # FIXME - insert some real tests, host_os isn't really good enough
22864   case $host_os in
22865    darwin*)
22866        if test -n "$STRIP" ; then
22867          striplib="$STRIP -x"
22868          echo "$as_me:$LINENO: result: yes" >&5
22869 echo "${ECHO_T}yes" >&6
22870        else
22871   echo "$as_me:$LINENO: result: no" >&5
22872 echo "${ECHO_T}no" >&6
22873 fi
22874        ;;
22875    *)
22876   echo "$as_me:$LINENO: result: no" >&5
22877 echo "${ECHO_T}no" >&6
22878     ;;
22879   esac
22880 fi
22881
22882 if test "x$enable_dlopen" != xyes; then
22883   enable_dlopen=unknown
22884   enable_dlopen_self=unknown
22885   enable_dlopen_self_static=unknown
22886 else
22887   lt_cv_dlopen=no
22888   lt_cv_dlopen_libs=
22889
22890   case $host_os in
22891   beos*)
22892     lt_cv_dlopen="load_add_on"
22893     lt_cv_dlopen_libs=
22894     lt_cv_dlopen_self=yes
22895     ;;
22896
22897   mingw* | pw32*)
22898     lt_cv_dlopen="LoadLibrary"
22899     lt_cv_dlopen_libs=
22900    ;;
22901
22902   cygwin*)
22903     lt_cv_dlopen="dlopen"
22904     lt_cv_dlopen_libs=
22905    ;;
22906
22907   darwin*)
22908   # if libdl is installed we need to link against it
22909     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22910 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22911 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22912   echo $ECHO_N "(cached) $ECHO_C" >&6
22913 else
22914   ac_check_lib_save_LIBS=$LIBS
22915 LIBS="-ldl  $LIBS"
22916 cat >conftest.$ac_ext <<_ACEOF
22917 /* confdefs.h.  */
22918 _ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h.  */
22922
22923 /* Override any gcc2 internal prototype to avoid an error.  */
22924 #ifdef __cplusplus
22925 extern "C"
22926 #endif
22927 /* We use char because int might match the return type of a gcc2
22928    builtin and then its argument prototype would still apply.  */
22929 char dlopen ();
22930 int
22931 main ()
22932 {
22933 dlopen ();
22934   ;
22935   return 0;
22936 }
22937 _ACEOF
22938 rm -f conftest.$ac_objext conftest$ac_exeext
22939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22940   (eval $ac_link) 2>conftest.er1
22941   ac_status=$?
22942   grep -v '^ *+' conftest.er1 >conftest.err
22943   rm -f conftest.er1
22944   cat conftest.err >&5
22945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946   (exit $ac_status); } &&
22947          { ac_try='test -z "$ac_c_werror_flag"
22948                          || test ! -s conftest.err'
22949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950   (eval $ac_try) 2>&5
22951   ac_status=$?
22952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953   (exit $ac_status); }; } &&
22954          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
22960   ac_cv_lib_dl_dlopen=yes
22961 else
22962   echo "$as_me: failed program was:" >&5
22963 sed 's/^/| /' conftest.$ac_ext >&5
22964
22965 ac_cv_lib_dl_dlopen=no
22966 fi
22967 rm -f conftest.err conftest.$ac_objext \
22968       conftest$ac_exeext conftest.$ac_ext
22969 LIBS=$ac_check_lib_save_LIBS
22970 fi
22971 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22972 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22973 if test $ac_cv_lib_dl_dlopen = yes; then
22974   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22975 else
22976
22977     lt_cv_dlopen="dyld"
22978     lt_cv_dlopen_libs=
22979     lt_cv_dlopen_self=yes
22980
22981 fi
22982
22983    ;;
22984
22985   *)
22986     echo "$as_me:$LINENO: checking for shl_load" >&5
22987 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22988 if test "${ac_cv_func_shl_load+set}" = set; then
22989   echo $ECHO_N "(cached) $ECHO_C" >&6
22990 else
22991   cat >conftest.$ac_ext <<_ACEOF
22992 /* confdefs.h.  */
22993 _ACEOF
22994 cat confdefs.h >>conftest.$ac_ext
22995 cat >>conftest.$ac_ext <<_ACEOF
22996 /* end confdefs.h.  */
22997 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22999 #define shl_load innocuous_shl_load
23000
23001 /* System header to define __stub macros and hopefully few prototypes,
23002     which can conflict with char shl_load (); below.
23003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23004     <limits.h> exists even on freestanding compilers.  */
23005
23006 #ifdef __STDC__
23007 # include <limits.h>
23008 #else
23009 # include <assert.h>
23010 #endif
23011
23012 #undef shl_load
23013
23014 /* Override any gcc2 internal prototype to avoid an error.  */
23015 #ifdef __cplusplus
23016 extern "C"
23017 {
23018 #endif
23019 /* We use char because int might match the return type of a gcc2
23020    builtin and then its argument prototype would still apply.  */
23021 char shl_load ();
23022 /* The GNU C library defines this for functions which it implements
23023     to always fail with ENOSYS.  Some functions are actually named
23024     something starting with __ and the normal name is an alias.  */
23025 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23026 choke me
23027 #else
23028 char (*f) () = shl_load;
23029 #endif
23030 #ifdef __cplusplus
23031 }
23032 #endif
23033
23034 int
23035 main ()
23036 {
23037 return f != shl_load;
23038   ;
23039   return 0;
23040 }
23041 _ACEOF
23042 rm -f conftest.$ac_objext conftest$ac_exeext
23043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23044   (eval $ac_link) 2>conftest.er1
23045   ac_status=$?
23046   grep -v '^ *+' conftest.er1 >conftest.err
23047   rm -f conftest.er1
23048   cat conftest.err >&5
23049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050   (exit $ac_status); } &&
23051          { ac_try='test -z "$ac_c_werror_flag"
23052                          || test ! -s conftest.err'
23053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054   (eval $ac_try) 2>&5
23055   ac_status=$?
23056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057   (exit $ac_status); }; } &&
23058          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
23064   ac_cv_func_shl_load=yes
23065 else
23066   echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23068
23069 ac_cv_func_shl_load=no
23070 fi
23071 rm -f conftest.err conftest.$ac_objext \
23072       conftest$ac_exeext conftest.$ac_ext
23073 fi
23074 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23075 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23076 if test $ac_cv_func_shl_load = yes; then
23077   lt_cv_dlopen="shl_load"
23078 else
23079   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23080 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23081 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23082   echo $ECHO_N "(cached) $ECHO_C" >&6
23083 else
23084   ac_check_lib_save_LIBS=$LIBS
23085 LIBS="-ldld  $LIBS"
23086 cat >conftest.$ac_ext <<_ACEOF
23087 /* confdefs.h.  */
23088 _ACEOF
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h.  */
23092
23093 /* Override any gcc2 internal prototype to avoid an error.  */
23094 #ifdef __cplusplus
23095 extern "C"
23096 #endif
23097 /* We use char because int might match the return type of a gcc2
23098    builtin and then its argument prototype would still apply.  */
23099 char shl_load ();
23100 int
23101 main ()
23102 {
23103 shl_load ();
23104   ;
23105   return 0;
23106 }
23107 _ACEOF
23108 rm -f conftest.$ac_objext conftest$ac_exeext
23109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23110   (eval $ac_link) 2>conftest.er1
23111   ac_status=$?
23112   grep -v '^ *+' conftest.er1 >conftest.err
23113   rm -f conftest.er1
23114   cat conftest.err >&5
23115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116   (exit $ac_status); } &&
23117          { ac_try='test -z "$ac_c_werror_flag"
23118                          || test ! -s conftest.err'
23119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23120   (eval $ac_try) 2>&5
23121   ac_status=$?
23122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123   (exit $ac_status); }; } &&
23124          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
23130   ac_cv_lib_dld_shl_load=yes
23131 else
23132   echo "$as_me: failed program was:" >&5
23133 sed 's/^/| /' conftest.$ac_ext >&5
23134
23135 ac_cv_lib_dld_shl_load=no
23136 fi
23137 rm -f conftest.err conftest.$ac_objext \
23138       conftest$ac_exeext conftest.$ac_ext
23139 LIBS=$ac_check_lib_save_LIBS
23140 fi
23141 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23142 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23143 if test $ac_cv_lib_dld_shl_load = yes; then
23144   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23145 else
23146   echo "$as_me:$LINENO: checking for dlopen" >&5
23147 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23148 if test "${ac_cv_func_dlopen+set}" = set; then
23149   echo $ECHO_N "(cached) $ECHO_C" >&6
23150 else
23151   cat >conftest.$ac_ext <<_ACEOF
23152 /* confdefs.h.  */
23153 _ACEOF
23154 cat confdefs.h >>conftest.$ac_ext
23155 cat >>conftest.$ac_ext <<_ACEOF
23156 /* end confdefs.h.  */
23157 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23159 #define dlopen innocuous_dlopen
23160
23161 /* System header to define __stub macros and hopefully few prototypes,
23162     which can conflict with char dlopen (); below.
23163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23164     <limits.h> exists even on freestanding compilers.  */
23165
23166 #ifdef __STDC__
23167 # include <limits.h>
23168 #else
23169 # include <assert.h>
23170 #endif
23171
23172 #undef dlopen
23173
23174 /* Override any gcc2 internal prototype to avoid an error.  */
23175 #ifdef __cplusplus
23176 extern "C"
23177 {
23178 #endif
23179 /* We use char because int might match the return type of a gcc2
23180    builtin and then its argument prototype would still apply.  */
23181 char dlopen ();
23182 /* The GNU C library defines this for functions which it implements
23183     to always fail with ENOSYS.  Some functions are actually named
23184     something starting with __ and the normal name is an alias.  */
23185 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23186 choke me
23187 #else
23188 char (*f) () = dlopen;
23189 #endif
23190 #ifdef __cplusplus
23191 }
23192 #endif
23193
23194 int
23195 main ()
23196 {
23197 return f != dlopen;
23198   ;
23199   return 0;
23200 }
23201 _ACEOF
23202 rm -f conftest.$ac_objext conftest$ac_exeext
23203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23204   (eval $ac_link) 2>conftest.er1
23205   ac_status=$?
23206   grep -v '^ *+' conftest.er1 >conftest.err
23207   rm -f conftest.er1
23208   cat conftest.err >&5
23209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210   (exit $ac_status); } &&
23211          { ac_try='test -z "$ac_c_werror_flag"
23212                          || test ! -s conftest.err'
23213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23214   (eval $ac_try) 2>&5
23215   ac_status=$?
23216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217   (exit $ac_status); }; } &&
23218          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
23224   ac_cv_func_dlopen=yes
23225 else
23226   echo "$as_me: failed program was:" >&5
23227 sed 's/^/| /' conftest.$ac_ext >&5
23228
23229 ac_cv_func_dlopen=no
23230 fi
23231 rm -f conftest.err conftest.$ac_objext \
23232       conftest$ac_exeext conftest.$ac_ext
23233 fi
23234 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23235 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23236 if test $ac_cv_func_dlopen = yes; then
23237   lt_cv_dlopen="dlopen"
23238 else
23239   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23240 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23241 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23242   echo $ECHO_N "(cached) $ECHO_C" >&6
23243 else
23244   ac_check_lib_save_LIBS=$LIBS
23245 LIBS="-ldl  $LIBS"
23246 cat >conftest.$ac_ext <<_ACEOF
23247 /* confdefs.h.  */
23248 _ACEOF
23249 cat confdefs.h >>conftest.$ac_ext
23250 cat >>conftest.$ac_ext <<_ACEOF
23251 /* end confdefs.h.  */
23252
23253 /* Override any gcc2 internal prototype to avoid an error.  */
23254 #ifdef __cplusplus
23255 extern "C"
23256 #endif
23257 /* We use char because int might match the return type of a gcc2
23258    builtin and then its argument prototype would still apply.  */
23259 char dlopen ();
23260 int
23261 main ()
23262 {
23263 dlopen ();
23264   ;
23265   return 0;
23266 }
23267 _ACEOF
23268 rm -f conftest.$ac_objext conftest$ac_exeext
23269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23270   (eval $ac_link) 2>conftest.er1
23271   ac_status=$?
23272   grep -v '^ *+' conftest.er1 >conftest.err
23273   rm -f conftest.er1
23274   cat conftest.err >&5
23275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276   (exit $ac_status); } &&
23277          { ac_try='test -z "$ac_c_werror_flag"
23278                          || test ! -s conftest.err'
23279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23280   (eval $ac_try) 2>&5
23281   ac_status=$?
23282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283   (exit $ac_status); }; } &&
23284          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
23290   ac_cv_lib_dl_dlopen=yes
23291 else
23292   echo "$as_me: failed program was:" >&5
23293 sed 's/^/| /' conftest.$ac_ext >&5
23294
23295 ac_cv_lib_dl_dlopen=no
23296 fi
23297 rm -f conftest.err conftest.$ac_objext \
23298       conftest$ac_exeext conftest.$ac_ext
23299 LIBS=$ac_check_lib_save_LIBS
23300 fi
23301 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23302 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23303 if test $ac_cv_lib_dl_dlopen = yes; then
23304   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23305 else
23306   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23307 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23308 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23309   echo $ECHO_N "(cached) $ECHO_C" >&6
23310 else
23311   ac_check_lib_save_LIBS=$LIBS
23312 LIBS="-lsvld  $LIBS"
23313 cat >conftest.$ac_ext <<_ACEOF
23314 /* confdefs.h.  */
23315 _ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h.  */
23319
23320 /* Override any gcc2 internal prototype to avoid an error.  */
23321 #ifdef __cplusplus
23322 extern "C"
23323 #endif
23324 /* We use char because int might match the return type of a gcc2
23325    builtin and then its argument prototype would still apply.  */
23326 char dlopen ();
23327 int
23328 main ()
23329 {
23330 dlopen ();
23331   ;
23332   return 0;
23333 }
23334 _ACEOF
23335 rm -f conftest.$ac_objext conftest$ac_exeext
23336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23337   (eval $ac_link) 2>conftest.er1
23338   ac_status=$?
23339   grep -v '^ *+' conftest.er1 >conftest.err
23340   rm -f conftest.er1
23341   cat conftest.err >&5
23342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343   (exit $ac_status); } &&
23344          { ac_try='test -z "$ac_c_werror_flag"
23345                          || test ! -s conftest.err'
23346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347   (eval $ac_try) 2>&5
23348   ac_status=$?
23349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350   (exit $ac_status); }; } &&
23351          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
23357   ac_cv_lib_svld_dlopen=yes
23358 else
23359   echo "$as_me: failed program was:" >&5
23360 sed 's/^/| /' conftest.$ac_ext >&5
23361
23362 ac_cv_lib_svld_dlopen=no
23363 fi
23364 rm -f conftest.err conftest.$ac_objext \
23365       conftest$ac_exeext conftest.$ac_ext
23366 LIBS=$ac_check_lib_save_LIBS
23367 fi
23368 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23369 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23370 if test $ac_cv_lib_svld_dlopen = yes; then
23371   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23372 else
23373   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23374 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23375 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23376   echo $ECHO_N "(cached) $ECHO_C" >&6
23377 else
23378   ac_check_lib_save_LIBS=$LIBS
23379 LIBS="-ldld  $LIBS"
23380 cat >conftest.$ac_ext <<_ACEOF
23381 /* confdefs.h.  */
23382 _ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h.  */
23386
23387 /* Override any gcc2 internal prototype to avoid an error.  */
23388 #ifdef __cplusplus
23389 extern "C"
23390 #endif
23391 /* We use char because int might match the return type of a gcc2
23392    builtin and then its argument prototype would still apply.  */
23393 char dld_link ();
23394 int
23395 main ()
23396 {
23397 dld_link ();
23398   ;
23399   return 0;
23400 }
23401 _ACEOF
23402 rm -f conftest.$ac_objext conftest$ac_exeext
23403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23404   (eval $ac_link) 2>conftest.er1
23405   ac_status=$?
23406   grep -v '^ *+' conftest.er1 >conftest.err
23407   rm -f conftest.er1
23408   cat conftest.err >&5
23409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410   (exit $ac_status); } &&
23411          { ac_try='test -z "$ac_c_werror_flag"
23412                          || test ! -s conftest.err'
23413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23414   (eval $ac_try) 2>&5
23415   ac_status=$?
23416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417   (exit $ac_status); }; } &&
23418          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
23424   ac_cv_lib_dld_dld_link=yes
23425 else
23426   echo "$as_me: failed program was:" >&5
23427 sed 's/^/| /' conftest.$ac_ext >&5
23428
23429 ac_cv_lib_dld_dld_link=no
23430 fi
23431 rm -f conftest.err conftest.$ac_objext \
23432       conftest$ac_exeext conftest.$ac_ext
23433 LIBS=$ac_check_lib_save_LIBS
23434 fi
23435 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23436 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23437 if test $ac_cv_lib_dld_dld_link = yes; then
23438   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23439 fi
23440
23441
23442 fi
23443
23444
23445 fi
23446
23447
23448 fi
23449
23450
23451 fi
23452
23453
23454 fi
23455
23456     ;;
23457   esac
23458
23459   if test "x$lt_cv_dlopen" != xno; then
23460     enable_dlopen=yes
23461   else
23462     enable_dlopen=no
23463   fi
23464
23465   case $lt_cv_dlopen in
23466   dlopen)
23467     save_CPPFLAGS="$CPPFLAGS"
23468     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23469
23470     save_LDFLAGS="$LDFLAGS"
23471     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23472
23473     save_LIBS="$LIBS"
23474     LIBS="$lt_cv_dlopen_libs $LIBS"
23475
23476     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23477 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23478 if test "${lt_cv_dlopen_self+set}" = set; then
23479   echo $ECHO_N "(cached) $ECHO_C" >&6
23480 else
23481           if test "$cross_compiling" = yes; then :
23482   lt_cv_dlopen_self=cross
23483 else
23484   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23485   lt_status=$lt_dlunknown
23486   cat > conftest.$ac_ext <<EOF
23487 #line 23487 "configure"
23488 #include "confdefs.h"
23489
23490 #if HAVE_DLFCN_H
23491 #include <dlfcn.h>
23492 #endif
23493
23494 #include <stdio.h>
23495
23496 #ifdef RTLD_GLOBAL
23497 #  define LT_DLGLOBAL           RTLD_GLOBAL
23498 #else
23499 #  ifdef DL_GLOBAL
23500 #    define LT_DLGLOBAL         DL_GLOBAL
23501 #  else
23502 #    define LT_DLGLOBAL         0
23503 #  endif
23504 #endif
23505
23506 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23507    find out it does not work in some platform. */
23508 #ifndef LT_DLLAZY_OR_NOW
23509 #  ifdef RTLD_LAZY
23510 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23511 #  else
23512 #    ifdef DL_LAZY
23513 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23514 #    else
23515 #      ifdef RTLD_NOW
23516 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23517 #      else
23518 #        ifdef DL_NOW
23519 #          define LT_DLLAZY_OR_NOW      DL_NOW
23520 #        else
23521 #          define LT_DLLAZY_OR_NOW      0
23522 #        endif
23523 #      endif
23524 #    endif
23525 #  endif
23526 #endif
23527
23528 #ifdef __cplusplus
23529 extern "C" void exit (int);
23530 #endif
23531
23532 void fnord() { int i=42;}
23533 int main ()
23534 {
23535   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23536   int status = $lt_dlunknown;
23537
23538   if (self)
23539     {
23540       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23541       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23542       /* dlclose (self); */
23543     }
23544
23545     exit (status);
23546 }
23547 EOF
23548   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23549   (eval $ac_link) 2>&5
23550   ac_status=$?
23551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23553     (./conftest; exit; ) 2>/dev/null
23554     lt_status=$?
23555     case x$lt_status in
23556       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23557       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23558       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23559     esac
23560   else :
23561     # compilation failed
23562     lt_cv_dlopen_self=no
23563   fi
23564 fi
23565 rm -fr conftest*
23566
23567
23568 fi
23569 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23570 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23571
23572     if test "x$lt_cv_dlopen_self" = xyes; then
23573       LDFLAGS="$LDFLAGS $link_static_flag"
23574       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23575 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23576 if test "${lt_cv_dlopen_self_static+set}" = set; then
23577   echo $ECHO_N "(cached) $ECHO_C" >&6
23578 else
23579           if test "$cross_compiling" = yes; then :
23580   lt_cv_dlopen_self_static=cross
23581 else
23582   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23583   lt_status=$lt_dlunknown
23584   cat > conftest.$ac_ext <<EOF
23585 #line 23585 "configure"
23586 #include "confdefs.h"
23587
23588 #if HAVE_DLFCN_H
23589 #include <dlfcn.h>
23590 #endif
23591
23592 #include <stdio.h>
23593
23594 #ifdef RTLD_GLOBAL
23595 #  define LT_DLGLOBAL           RTLD_GLOBAL
23596 #else
23597 #  ifdef DL_GLOBAL
23598 #    define LT_DLGLOBAL         DL_GLOBAL
23599 #  else
23600 #    define LT_DLGLOBAL         0
23601 #  endif
23602 #endif
23603
23604 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23605    find out it does not work in some platform. */
23606 #ifndef LT_DLLAZY_OR_NOW
23607 #  ifdef RTLD_LAZY
23608 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23609 #  else
23610 #    ifdef DL_LAZY
23611 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23612 #    else
23613 #      ifdef RTLD_NOW
23614 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23615 #      else
23616 #        ifdef DL_NOW
23617 #          define LT_DLLAZY_OR_NOW      DL_NOW
23618 #        else
23619 #          define LT_DLLAZY_OR_NOW      0
23620 #        endif
23621 #      endif
23622 #    endif
23623 #  endif
23624 #endif
23625
23626 #ifdef __cplusplus
23627 extern "C" void exit (int);
23628 #endif
23629
23630 void fnord() { int i=42;}
23631 int main ()
23632 {
23633   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23634   int status = $lt_dlunknown;
23635
23636   if (self)
23637     {
23638       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23639       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23640       /* dlclose (self); */
23641     }
23642
23643     exit (status);
23644 }
23645 EOF
23646   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23647   (eval $ac_link) 2>&5
23648   ac_status=$?
23649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23651     (./conftest; exit; ) 2>/dev/null
23652     lt_status=$?
23653     case x$lt_status in
23654       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23655       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23656       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23657     esac
23658   else :
23659     # compilation failed
23660     lt_cv_dlopen_self_static=no
23661   fi
23662 fi
23663 rm -fr conftest*
23664
23665
23666 fi
23667 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23668 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23669     fi
23670
23671     CPPFLAGS="$save_CPPFLAGS"
23672     LDFLAGS="$save_LDFLAGS"
23673     LIBS="$save_LIBS"
23674     ;;
23675   esac
23676
23677   case $lt_cv_dlopen_self in
23678   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23679   *) enable_dlopen_self=unknown ;;
23680   esac
23681
23682   case $lt_cv_dlopen_self_static in
23683   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23684   *) enable_dlopen_self_static=unknown ;;
23685   esac
23686 fi
23687
23688
23689 # The else clause should only fire when bootstrapping the
23690 # libtool distribution, otherwise you forgot to ship ltmain.sh
23691 # with your package, and you will get complaints that there are
23692 # no rules to generate ltmain.sh.
23693 if test -f "$ltmain"; then
23694   # See if we are running on zsh, and set the options which allow our commands through
23695   # without removal of \ escapes.
23696   if test -n "${ZSH_VERSION+set}" ; then
23697     setopt NO_GLOB_SUBST
23698   fi
23699   # Now quote all the things that may contain metacharacters while being
23700   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23701   # variables and quote the copies for generation of the libtool script.
23702   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23703     SED SHELL STRIP \
23704     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23705     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23706     deplibs_check_method reload_flag reload_cmds need_locks \
23707     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23708     lt_cv_sys_global_symbol_to_c_name_address \
23709     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23710     old_postinstall_cmds old_postuninstall_cmds \
23711     compiler_GCJ \
23712     CC_GCJ \
23713     LD_GCJ \
23714     lt_prog_compiler_wl_GCJ \
23715     lt_prog_compiler_pic_GCJ \
23716     lt_prog_compiler_static_GCJ \
23717     lt_prog_compiler_no_builtin_flag_GCJ \
23718     export_dynamic_flag_spec_GCJ \
23719     thread_safe_flag_spec_GCJ \
23720     whole_archive_flag_spec_GCJ \
23721     enable_shared_with_static_runtimes_GCJ \
23722     old_archive_cmds_GCJ \
23723     old_archive_from_new_cmds_GCJ \
23724     predep_objects_GCJ \
23725     postdep_objects_GCJ \
23726     predeps_GCJ \
23727     postdeps_GCJ \
23728     compiler_lib_search_path_GCJ \
23729     archive_cmds_GCJ \
23730     archive_expsym_cmds_GCJ \
23731     postinstall_cmds_GCJ \
23732     postuninstall_cmds_GCJ \
23733     old_archive_from_expsyms_cmds_GCJ \
23734     allow_undefined_flag_GCJ \
23735     no_undefined_flag_GCJ \
23736     export_symbols_cmds_GCJ \
23737     hardcode_libdir_flag_spec_GCJ \
23738     hardcode_libdir_flag_spec_ld_GCJ \
23739     hardcode_libdir_separator_GCJ \
23740     hardcode_automatic_GCJ \
23741     module_cmds_GCJ \
23742     module_expsym_cmds_GCJ \
23743     lt_cv_prog_compiler_c_o_GCJ \
23744     exclude_expsyms_GCJ \
23745     include_expsyms_GCJ; do
23746
23747     case $var in
23748     old_archive_cmds_GCJ | \
23749     old_archive_from_new_cmds_GCJ | \
23750     archive_cmds_GCJ | \
23751     archive_expsym_cmds_GCJ | \
23752     module_cmds_GCJ | \
23753     module_expsym_cmds_GCJ | \
23754     old_archive_from_expsyms_cmds_GCJ | \
23755     export_symbols_cmds_GCJ | \
23756     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23757     postinstall_cmds | postuninstall_cmds | \
23758     old_postinstall_cmds | old_postuninstall_cmds | \
23759     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23760       # Double-quote double-evaled strings.
23761       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23762       ;;
23763     *)
23764       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23765       ;;
23766     esac
23767   done
23768
23769   case $lt_echo in
23770   *'\$0 --fallback-echo"')
23771     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23772     ;;
23773   esac
23774
23775 cfgfile="$ofile"
23776
23777   cat <<__EOF__ >> "$cfgfile"
23778 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23779
23780 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23781
23782 # Shell to use when invoking shell scripts.
23783 SHELL=$lt_SHELL
23784
23785 # Whether or not to build shared libraries.
23786 build_libtool_libs=$enable_shared
23787
23788 # Whether or not to build static libraries.
23789 build_old_libs=$enable_static
23790
23791 # Whether or not to add -lc for building shared libraries.
23792 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23793
23794 # Whether or not to disallow shared libs when runtime libs are static
23795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23796
23797 # Whether or not to optimize for fast installation.
23798 fast_install=$enable_fast_install
23799
23800 # The host system.
23801 host_alias=$host_alias
23802 host=$host
23803
23804 # An echo program that does not interpret backslashes.
23805 echo=$lt_echo
23806
23807 # The archiver.
23808 AR=$lt_AR
23809 AR_FLAGS=$lt_AR_FLAGS
23810
23811 # A C compiler.
23812 LTCC=$lt_LTCC
23813
23814 # A language-specific compiler.
23815 CC=$lt_compiler_GCJ
23816
23817 # Is the compiler the GNU C compiler?
23818 with_gcc=$GCC_GCJ
23819
23820 # An ERE matcher.
23821 EGREP=$lt_EGREP
23822
23823 # The linker used to build libraries.
23824 LD=$lt_LD_GCJ
23825
23826 # Whether we need hard or soft links.
23827 LN_S=$lt_LN_S
23828
23829 # A BSD-compatible nm program.
23830 NM=$lt_NM
23831
23832 # A symbol stripping program
23833 STRIP=$lt_STRIP
23834
23835 # Used to examine libraries when file_magic_cmd begins "file"
23836 MAGIC_CMD=$MAGIC_CMD
23837
23838 # Used on cygwin: DLL creation program.
23839 DLLTOOL="$DLLTOOL"
23840
23841 # Used on cygwin: object dumper.
23842 OBJDUMP="$OBJDUMP"
23843
23844 # Used on cygwin: assembler.
23845 AS="$AS"
23846
23847 # The name of the directory that contains temporary libtool files.
23848 objdir=$objdir
23849
23850 # How to create reloadable object files.
23851 reload_flag=$lt_reload_flag
23852 reload_cmds=$lt_reload_cmds
23853
23854 # How to pass a linker flag through the compiler.
23855 wl=$lt_lt_prog_compiler_wl_GCJ
23856
23857 # Object file suffix (normally "o").
23858 objext="$ac_objext"
23859
23860 # Old archive suffix (normally "a").
23861 libext="$libext"
23862
23863 # Shared library suffix (normally ".so").
23864 shrext_cmds='$shrext_cmds'
23865
23866 # Executable file suffix (normally "").
23867 exeext="$exeext"
23868
23869 # Additional compiler flags for building library objects.
23870 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23871 pic_mode=$pic_mode
23872
23873 # What is the maximum length of a command?
23874 max_cmd_len=$lt_cv_sys_max_cmd_len
23875
23876 # Does compiler simultaneously support -c and -o options?
23877 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23878
23879 # Must we lock files when doing compilation ?
23880 need_locks=$lt_need_locks
23881
23882 # Do we need the lib prefix for modules?
23883 need_lib_prefix=$need_lib_prefix
23884
23885 # Do we need a version for libraries?
23886 need_version=$need_version
23887
23888 # Whether dlopen is supported.
23889 dlopen_support=$enable_dlopen
23890
23891 # Whether dlopen of programs is supported.
23892 dlopen_self=$enable_dlopen_self
23893
23894 # Whether dlopen of statically linked programs is supported.
23895 dlopen_self_static=$enable_dlopen_self_static
23896
23897 # Compiler flag to prevent dynamic linking.
23898 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23899
23900 # Compiler flag to turn off builtin functions.
23901 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23902
23903 # Compiler flag to allow reflexive dlopens.
23904 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23905
23906 # Compiler flag to generate shared objects directly from archives.
23907 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23908
23909 # Compiler flag to generate thread-safe objects.
23910 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23911
23912 # Library versioning type.
23913 version_type=$version_type
23914
23915 # Format of library name prefix.
23916 libname_spec=$lt_libname_spec
23917
23918 # List of archive names.  First name is the real one, the rest are links.
23919 # The last name is the one that the linker finds with -lNAME.
23920 library_names_spec=$lt_library_names_spec
23921
23922 # The coded name of the library, if different from the real name.
23923 soname_spec=$lt_soname_spec
23924
23925 # Commands used to build and install an old-style archive.
23926 RANLIB=$lt_RANLIB
23927 old_archive_cmds=$lt_old_archive_cmds_GCJ
23928 old_postinstall_cmds=$lt_old_postinstall_cmds
23929 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23930
23931 # Create an old-style archive from a shared archive.
23932 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23933
23934 # Create a temporary old-style archive to link instead of a shared archive.
23935 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23936
23937 # Commands used to build and install a shared archive.
23938 archive_cmds=$lt_archive_cmds_GCJ
23939 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23940 postinstall_cmds=$lt_postinstall_cmds
23941 postuninstall_cmds=$lt_postuninstall_cmds
23942
23943 # Commands used to build a loadable module (assumed same as above if empty)
23944 module_cmds=$lt_module_cmds_GCJ
23945 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23946
23947 # Commands to strip libraries.
23948 old_striplib=$lt_old_striplib
23949 striplib=$lt_striplib
23950
23951 # Dependencies to place before the objects being linked to create a
23952 # shared library.
23953 predep_objects=$lt_predep_objects_GCJ
23954
23955 # Dependencies to place after the objects being linked to create a
23956 # shared library.
23957 postdep_objects=$lt_postdep_objects_GCJ
23958
23959 # Dependencies to place before the objects being linked to create a
23960 # shared library.
23961 predeps=$lt_predeps_GCJ
23962
23963 # Dependencies to place after the objects being linked to create a
23964 # shared library.
23965 postdeps=$lt_postdeps_GCJ
23966
23967 # The library search path used internally by the compiler when linking
23968 # a shared library.
23969 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23970
23971 # Method to check whether dependent libraries are shared objects.
23972 deplibs_check_method=$lt_deplibs_check_method
23973
23974 # Command to use when deplibs_check_method == file_magic.
23975 file_magic_cmd=$lt_file_magic_cmd
23976
23977 # Flag that allows shared libraries with undefined symbols to be built.
23978 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23979
23980 # Flag that forces no undefined symbols.
23981 no_undefined_flag=$lt_no_undefined_flag_GCJ
23982
23983 # Commands used to finish a libtool library installation in a directory.
23984 finish_cmds=$lt_finish_cmds
23985
23986 # Same as above, but a single script fragment to be evaled but not shown.
23987 finish_eval=$lt_finish_eval
23988
23989 # Take the output of nm and produce a listing of raw symbols and C names.
23990 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23991
23992 # Transform the output of nm in a proper C declaration
23993 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23994
23995 # Transform the output of nm in a C name address pair
23996 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23997
23998 # This is the shared library runtime path variable.
23999 runpath_var=$runpath_var
24000
24001 # This is the shared library path variable.
24002 shlibpath_var=$shlibpath_var
24003
24004 # Is shlibpath searched before the hard-coded library search path?
24005 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24006
24007 # How to hardcode a shared library path into an executable.
24008 hardcode_action=$hardcode_action_GCJ
24009
24010 # Whether we should hardcode library paths into libraries.
24011 hardcode_into_libs=$hardcode_into_libs
24012
24013 # Flag to hardcode \$libdir into a binary during linking.
24014 # This must work even if \$libdir does not exist.
24015 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24016
24017 # If ld is used when linking, flag to hardcode \$libdir into
24018 # a binary during linking. This must work even if \$libdir does
24019 # not exist.
24020 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24021
24022 # Whether we need a single -rpath flag with a separated argument.
24023 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24024
24025 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24026 # resulting binary.
24027 hardcode_direct=$hardcode_direct_GCJ
24028
24029 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24030 # resulting binary.
24031 hardcode_minus_L=$hardcode_minus_L_GCJ
24032
24033 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24034 # the resulting binary.
24035 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24036
24037 # Set to yes if building a shared library automatically hardcodes DIR into the library
24038 # and all subsequent libraries and executables linked against it.
24039 hardcode_automatic=$hardcode_automatic_GCJ
24040
24041 # Variables whose values should be saved in libtool wrapper scripts and
24042 # restored at relink time.
24043 variables_saved_for_relink="$variables_saved_for_relink"
24044
24045 # Whether libtool must link a program against all its dependency libraries.
24046 link_all_deplibs=$link_all_deplibs_GCJ
24047
24048 # Compile-time system search path for libraries
24049 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24050
24051 # Run-time system search path for libraries
24052 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24053
24054 # Fix the shell variable \$srcfile for the compiler.
24055 fix_srcfile_path="$fix_srcfile_path_GCJ"
24056
24057 # Set to yes if exported symbols are required.
24058 always_export_symbols=$always_export_symbols_GCJ
24059
24060 # The commands to list exported symbols.
24061 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24062
24063 # The commands to extract the exported symbol list from a shared archive.
24064 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24065
24066 # Symbols that should not be listed in the preloaded symbols.
24067 exclude_expsyms=$lt_exclude_expsyms_GCJ
24068
24069 # Symbols that must always be exported.
24070 include_expsyms=$lt_include_expsyms_GCJ
24071
24072 # ### END LIBTOOL TAG CONFIG: $tagname
24073
24074 __EOF__
24075
24076
24077 else
24078   # If there is no Makefile yet, we rely on a make rule to execute
24079   # `config.status --recheck' to rerun these tests and create the
24080   # libtool script then.
24081   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24082   if test -f "$ltmain_in"; then
24083     test -f Makefile && make "$ltmain"
24084   fi
24085 fi
24086
24087
24088 ac_ext=c
24089 ac_cpp='$CPP $CPPFLAGS'
24090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24093
24094 CC="$lt_save_CC"
24095
24096         else
24097           tagname=""
24098         fi
24099         ;;
24100
24101       RC)
24102         ac_ext=c
24103 ac_cpp='$CPP $CPPFLAGS'
24104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24107
24108
24109 # Source file extension for RC test sources.
24110 ac_ext=rc
24111
24112 # Object file extension for compiled RC test sources.
24113 objext=o
24114 objext_RC=$objext
24115
24116 # Code to be used in simple compile tests
24117 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24118
24119 # Code to be used in simple link tests
24120 lt_simple_link_test_code="$lt_simple_compile_test_code"
24121
24122 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24123
24124 # If no C compiler was specified, use CC.
24125 LTCC=${LTCC-"$CC"}
24126
24127 # Allow CC to be a program name with arguments.
24128 compiler=$CC
24129
24130
24131 # Allow CC to be a program name with arguments.
24132 lt_save_CC="$CC"
24133 CC=${RC-"windres"}
24134 compiler=$CC
24135 compiler_RC=$CC
24136 lt_cv_prog_compiler_c_o_RC=yes
24137
24138 # The else clause should only fire when bootstrapping the
24139 # libtool distribution, otherwise you forgot to ship ltmain.sh
24140 # with your package, and you will get complaints that there are
24141 # no rules to generate ltmain.sh.
24142 if test -f "$ltmain"; then
24143   # See if we are running on zsh, and set the options which allow our commands through
24144   # without removal of \ escapes.
24145   if test -n "${ZSH_VERSION+set}" ; then
24146     setopt NO_GLOB_SUBST
24147   fi
24148   # Now quote all the things that may contain metacharacters while being
24149   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24150   # variables and quote the copies for generation of the libtool script.
24151   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24152     SED SHELL STRIP \
24153     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24154     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24155     deplibs_check_method reload_flag reload_cmds need_locks \
24156     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24157     lt_cv_sys_global_symbol_to_c_name_address \
24158     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24159     old_postinstall_cmds old_postuninstall_cmds \
24160     compiler_RC \
24161     CC_RC \
24162     LD_RC \
24163     lt_prog_compiler_wl_RC \
24164     lt_prog_compiler_pic_RC \
24165     lt_prog_compiler_static_RC \
24166     lt_prog_compiler_no_builtin_flag_RC \
24167     export_dynamic_flag_spec_RC \
24168     thread_safe_flag_spec_RC \
24169     whole_archive_flag_spec_RC \
24170     enable_shared_with_static_runtimes_RC \
24171     old_archive_cmds_RC \
24172     old_archive_from_new_cmds_RC \
24173     predep_objects_RC \
24174     postdep_objects_RC \
24175     predeps_RC \
24176     postdeps_RC \
24177     compiler_lib_search_path_RC \
24178     archive_cmds_RC \
24179     archive_expsym_cmds_RC \
24180     postinstall_cmds_RC \
24181     postuninstall_cmds_RC \
24182     old_archive_from_expsyms_cmds_RC \
24183     allow_undefined_flag_RC \
24184     no_undefined_flag_RC \
24185     export_symbols_cmds_RC \
24186     hardcode_libdir_flag_spec_RC \
24187     hardcode_libdir_flag_spec_ld_RC \
24188     hardcode_libdir_separator_RC \
24189     hardcode_automatic_RC \
24190     module_cmds_RC \
24191     module_expsym_cmds_RC \
24192     lt_cv_prog_compiler_c_o_RC \
24193     exclude_expsyms_RC \
24194     include_expsyms_RC; do
24195
24196     case $var in
24197     old_archive_cmds_RC | \
24198     old_archive_from_new_cmds_RC | \
24199     archive_cmds_RC | \
24200     archive_expsym_cmds_RC | \
24201     module_cmds_RC | \
24202     module_expsym_cmds_RC | \
24203     old_archive_from_expsyms_cmds_RC | \
24204     export_symbols_cmds_RC | \
24205     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24206     postinstall_cmds | postuninstall_cmds | \
24207     old_postinstall_cmds | old_postuninstall_cmds | \
24208     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24209       # Double-quote double-evaled strings.
24210       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24211       ;;
24212     *)
24213       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24214       ;;
24215     esac
24216   done
24217
24218   case $lt_echo in
24219   *'\$0 --fallback-echo"')
24220     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24221     ;;
24222   esac
24223
24224 cfgfile="$ofile"
24225
24226   cat <<__EOF__ >> "$cfgfile"
24227 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24228
24229 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24230
24231 # Shell to use when invoking shell scripts.
24232 SHELL=$lt_SHELL
24233
24234 # Whether or not to build shared libraries.
24235 build_libtool_libs=$enable_shared
24236
24237 # Whether or not to build static libraries.
24238 build_old_libs=$enable_static
24239
24240 # Whether or not to add -lc for building shared libraries.
24241 build_libtool_need_lc=$archive_cmds_need_lc_RC
24242
24243 # Whether or not to disallow shared libs when runtime libs are static
24244 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24245
24246 # Whether or not to optimize for fast installation.
24247 fast_install=$enable_fast_install
24248
24249 # The host system.
24250 host_alias=$host_alias
24251 host=$host
24252
24253 # An echo program that does not interpret backslashes.
24254 echo=$lt_echo
24255
24256 # The archiver.
24257 AR=$lt_AR
24258 AR_FLAGS=$lt_AR_FLAGS
24259
24260 # A C compiler.
24261 LTCC=$lt_LTCC
24262
24263 # A language-specific compiler.
24264 CC=$lt_compiler_RC
24265
24266 # Is the compiler the GNU C compiler?
24267 with_gcc=$GCC_RC
24268
24269 # An ERE matcher.
24270 EGREP=$lt_EGREP
24271
24272 # The linker used to build libraries.
24273 LD=$lt_LD_RC
24274
24275 # Whether we need hard or soft links.
24276 LN_S=$lt_LN_S
24277
24278 # A BSD-compatible nm program.
24279 NM=$lt_NM
24280
24281 # A symbol stripping program
24282 STRIP=$lt_STRIP
24283
24284 # Used to examine libraries when file_magic_cmd begins "file"
24285 MAGIC_CMD=$MAGIC_CMD
24286
24287 # Used on cygwin: DLL creation program.
24288 DLLTOOL="$DLLTOOL"
24289
24290 # Used on cygwin: object dumper.
24291 OBJDUMP="$OBJDUMP"
24292
24293 # Used on cygwin: assembler.
24294 AS="$AS"
24295
24296 # The name of the directory that contains temporary libtool files.
24297 objdir=$objdir
24298
24299 # How to create reloadable object files.
24300 reload_flag=$lt_reload_flag
24301 reload_cmds=$lt_reload_cmds
24302
24303 # How to pass a linker flag through the compiler.
24304 wl=$lt_lt_prog_compiler_wl_RC
24305
24306 # Object file suffix (normally "o").
24307 objext="$ac_objext"
24308
24309 # Old archive suffix (normally "a").
24310 libext="$libext"
24311
24312 # Shared library suffix (normally ".so").
24313 shrext_cmds='$shrext_cmds'
24314
24315 # Executable file suffix (normally "").
24316 exeext="$exeext"
24317
24318 # Additional compiler flags for building library objects.
24319 pic_flag=$lt_lt_prog_compiler_pic_RC
24320 pic_mode=$pic_mode
24321
24322 # What is the maximum length of a command?
24323 max_cmd_len=$lt_cv_sys_max_cmd_len
24324
24325 # Does compiler simultaneously support -c and -o options?
24326 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24327
24328 # Must we lock files when doing compilation ?
24329 need_locks=$lt_need_locks
24330
24331 # Do we need the lib prefix for modules?
24332 need_lib_prefix=$need_lib_prefix
24333
24334 # Do we need a version for libraries?
24335 need_version=$need_version
24336
24337 # Whether dlopen is supported.
24338 dlopen_support=$enable_dlopen
24339
24340 # Whether dlopen of programs is supported.
24341 dlopen_self=$enable_dlopen_self
24342
24343 # Whether dlopen of statically linked programs is supported.
24344 dlopen_self_static=$enable_dlopen_self_static
24345
24346 # Compiler flag to prevent dynamic linking.
24347 link_static_flag=$lt_lt_prog_compiler_static_RC
24348
24349 # Compiler flag to turn off builtin functions.
24350 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24351
24352 # Compiler flag to allow reflexive dlopens.
24353 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24354
24355 # Compiler flag to generate shared objects directly from archives.
24356 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24357
24358 # Compiler flag to generate thread-safe objects.
24359 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24360
24361 # Library versioning type.
24362 version_type=$version_type
24363
24364 # Format of library name prefix.
24365 libname_spec=$lt_libname_spec
24366
24367 # List of archive names.  First name is the real one, the rest are links.
24368 # The last name is the one that the linker finds with -lNAME.
24369 library_names_spec=$lt_library_names_spec
24370
24371 # The coded name of the library, if different from the real name.
24372 soname_spec=$lt_soname_spec
24373
24374 # Commands used to build and install an old-style archive.
24375 RANLIB=$lt_RANLIB
24376 old_archive_cmds=$lt_old_archive_cmds_RC
24377 old_postinstall_cmds=$lt_old_postinstall_cmds
24378 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24379
24380 # Create an old-style archive from a shared archive.
24381 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24382
24383 # Create a temporary old-style archive to link instead of a shared archive.
24384 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24385
24386 # Commands used to build and install a shared archive.
24387 archive_cmds=$lt_archive_cmds_RC
24388 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24389 postinstall_cmds=$lt_postinstall_cmds
24390 postuninstall_cmds=$lt_postuninstall_cmds
24391
24392 # Commands used to build a loadable module (assumed same as above if empty)
24393 module_cmds=$lt_module_cmds_RC
24394 module_expsym_cmds=$lt_module_expsym_cmds_RC
24395
24396 # Commands to strip libraries.
24397 old_striplib=$lt_old_striplib
24398 striplib=$lt_striplib
24399
24400 # Dependencies to place before the objects being linked to create a
24401 # shared library.
24402 predep_objects=$lt_predep_objects_RC
24403
24404 # Dependencies to place after the objects being linked to create a
24405 # shared library.
24406 postdep_objects=$lt_postdep_objects_RC
24407
24408 # Dependencies to place before the objects being linked to create a
24409 # shared library.
24410 predeps=$lt_predeps_RC
24411
24412 # Dependencies to place after the objects being linked to create a
24413 # shared library.
24414 postdeps=$lt_postdeps_RC
24415
24416 # The library search path used internally by the compiler when linking
24417 # a shared library.
24418 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24419
24420 # Method to check whether dependent libraries are shared objects.
24421 deplibs_check_method=$lt_deplibs_check_method
24422
24423 # Command to use when deplibs_check_method == file_magic.
24424 file_magic_cmd=$lt_file_magic_cmd
24425
24426 # Flag that allows shared libraries with undefined symbols to be built.
24427 allow_undefined_flag=$lt_allow_undefined_flag_RC
24428
24429 # Flag that forces no undefined symbols.
24430 no_undefined_flag=$lt_no_undefined_flag_RC
24431
24432 # Commands used to finish a libtool library installation in a directory.
24433 finish_cmds=$lt_finish_cmds
24434
24435 # Same as above, but a single script fragment to be evaled but not shown.
24436 finish_eval=$lt_finish_eval
24437
24438 # Take the output of nm and produce a listing of raw symbols and C names.
24439 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24440
24441 # Transform the output of nm in a proper C declaration
24442 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24443
24444 # Transform the output of nm in a C name address pair
24445 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24446
24447 # This is the shared library runtime path variable.
24448 runpath_var=$runpath_var
24449
24450 # This is the shared library path variable.
24451 shlibpath_var=$shlibpath_var
24452
24453 # Is shlibpath searched before the hard-coded library search path?
24454 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24455
24456 # How to hardcode a shared library path into an executable.
24457 hardcode_action=$hardcode_action_RC
24458
24459 # Whether we should hardcode library paths into libraries.
24460 hardcode_into_libs=$hardcode_into_libs
24461
24462 # Flag to hardcode \$libdir into a binary during linking.
24463 # This must work even if \$libdir does not exist.
24464 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24465
24466 # If ld is used when linking, flag to hardcode \$libdir into
24467 # a binary during linking. This must work even if \$libdir does
24468 # not exist.
24469 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24470
24471 # Whether we need a single -rpath flag with a separated argument.
24472 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24473
24474 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24475 # resulting binary.
24476 hardcode_direct=$hardcode_direct_RC
24477
24478 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24479 # resulting binary.
24480 hardcode_minus_L=$hardcode_minus_L_RC
24481
24482 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24483 # the resulting binary.
24484 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24485
24486 # Set to yes if building a shared library automatically hardcodes DIR into the library
24487 # and all subsequent libraries and executables linked against it.
24488 hardcode_automatic=$hardcode_automatic_RC
24489
24490 # Variables whose values should be saved in libtool wrapper scripts and
24491 # restored at relink time.
24492 variables_saved_for_relink="$variables_saved_for_relink"
24493
24494 # Whether libtool must link a program against all its dependency libraries.
24495 link_all_deplibs=$link_all_deplibs_RC
24496
24497 # Compile-time system search path for libraries
24498 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24499
24500 # Run-time system search path for libraries
24501 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24502
24503 # Fix the shell variable \$srcfile for the compiler.
24504 fix_srcfile_path="$fix_srcfile_path_RC"
24505
24506 # Set to yes if exported symbols are required.
24507 always_export_symbols=$always_export_symbols_RC
24508
24509 # The commands to list exported symbols.
24510 export_symbols_cmds=$lt_export_symbols_cmds_RC
24511
24512 # The commands to extract the exported symbol list from a shared archive.
24513 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24514
24515 # Symbols that should not be listed in the preloaded symbols.
24516 exclude_expsyms=$lt_exclude_expsyms_RC
24517
24518 # Symbols that must always be exported.
24519 include_expsyms=$lt_include_expsyms_RC
24520
24521 # ### END LIBTOOL TAG CONFIG: $tagname
24522
24523 __EOF__
24524
24525
24526 else
24527   # If there is no Makefile yet, we rely on a make rule to execute
24528   # `config.status --recheck' to rerun these tests and create the
24529   # libtool script then.
24530   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24531   if test -f "$ltmain_in"; then
24532     test -f Makefile && make "$ltmain"
24533   fi
24534 fi
24535
24536
24537 ac_ext=c
24538 ac_cpp='$CPP $CPPFLAGS'
24539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24542
24543 CC="$lt_save_CC"
24544
24545         ;;
24546
24547       *)
24548         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24549 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24550    { (exit 1); exit 1; }; }
24551         ;;
24552       esac
24553
24554       # Append the new tag name to the list of available tags.
24555       if test -n "$tagname" ; then
24556       available_tags="$available_tags $tagname"
24557     fi
24558     fi
24559   done
24560   IFS="$lt_save_ifs"
24561
24562   # Now substitute the updated list of available tags.
24563   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24564     mv "${ofile}T" "$ofile"
24565     chmod +x "$ofile"
24566   else
24567     rm -f "${ofile}T"
24568     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24569 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24570    { (exit 1); exit 1; }; }
24571   fi
24572 fi
24573
24574
24575
24576 # This can be used to rebuild libtool when needed
24577 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24578
24579 # Always use our own libtool.
24580 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24581
24582 # Prevent multiple expansion
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604 if test "$lt_cv_dlopen_self" = "yes" ; then
24605
24606 cat >>confdefs.h <<\_ACEOF
24607 #define CAN_DLOPEN_SELF 1
24608 _ACEOF
24609
24610 fi
24611
24612 etags_version=`$ETAGS --version 2>&1`
24613 case "$etags_version" in
24614         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24615         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24616         *) ETAGSFLAGS="" ;;
24617 esac
24618 ETAGSFLAGS=$ETAGSFLAGS
24619
24620
24621 if test "$WITH_LLVMGCCDIR" = "default" ; then
24622   LLVMGCC="llvm-gcc${EXEEXT}"
24623   LLVMGXX="llvm-g++${EXEEXT}"
24624   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24625 set dummy $LLVMGCC; ac_word=$2
24626 echo "$as_me:$LINENO: checking for $ac_word" >&5
24627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24628 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24629   echo $ECHO_N "(cached) $ECHO_C" >&6
24630 else
24631   case $LLVMGCC in
24632   [\\/]* | ?:[\\/]*)
24633   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24634   ;;
24635   *)
24636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24637 for as_dir in $PATH
24638 do
24639   IFS=$as_save_IFS
24640   test -z "$as_dir" && as_dir=.
24641   for ac_exec_ext in '' $ac_executable_extensions; do
24642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24643     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24645     break 2
24646   fi
24647 done
24648 done
24649
24650   ;;
24651 esac
24652 fi
24653 LLVMGCC=$ac_cv_path_LLVMGCC
24654
24655 if test -n "$LLVMGCC"; then
24656   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24657 echo "${ECHO_T}$LLVMGCC" >&6
24658 else
24659   echo "$as_me:$LINENO: result: no" >&5
24660 echo "${ECHO_T}no" >&6
24661 fi
24662
24663   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24664 set dummy $LLVMGXX; ac_word=$2
24665 echo "$as_me:$LINENO: checking for $ac_word" >&5
24666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24667 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24668   echo $ECHO_N "(cached) $ECHO_C" >&6
24669 else
24670   case $LLVMGXX in
24671   [\\/]* | ?:[\\/]*)
24672   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24673   ;;
24674   *)
24675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24676 for as_dir in $PATH
24677 do
24678   IFS=$as_save_IFS
24679   test -z "$as_dir" && as_dir=.
24680   for ac_exec_ext in '' $ac_executable_extensions; do
24681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24682     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24684     break 2
24685   fi
24686 done
24687 done
24688
24689   ;;
24690 esac
24691 fi
24692 LLVMGXX=$ac_cv_path_LLVMGXX
24693
24694 if test -n "$LLVMGXX"; then
24695   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24696 echo "${ECHO_T}$LLVMGXX" >&6
24697 else
24698   echo "$as_me:$LINENO: result: no" >&5
24699 echo "${ECHO_T}no" >&6
24700 fi
24701
24702 else
24703   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24704   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24705   LLVMGCC=$LLVMGCC
24706
24707   LLVMGXX=$LLVMGXX
24708
24709 fi
24710
24711 echo "$as_me:$LINENO: checking tool compatibility" >&5
24712 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24713
24714 ICC=no
24715 IXX=no
24716 case $CC in
24717   icc*|icpc*)
24718     ICC=yes
24719     IXX=yes
24720     ;;
24721    *)
24722     ;;
24723 esac
24724
24725 if test "$GCC" != "yes" && test "$ICC" != "yes"
24726 then
24727   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24728 echo "$as_me: error: gcc|icc required but not found" >&2;}
24729    { (exit 1); exit 1; }; }
24730 fi
24731
24732 if test "$GXX" != "yes" && test "$IXX" != "yes"
24733 then
24734   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24735 echo "$as_me: error: g++|icc required but not found" >&2;}
24736    { (exit 1); exit 1; }; }
24737 fi
24738
24739 if test "$GCC" = "yes"
24740 then
24741   gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24742   if test "$gccmajor" -lt "3"
24743   then
24744     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24745 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24746    { (exit 1); exit 1; }; }
24747   fi
24748 fi
24749
24750 if test -z "$llvm_cv_gnu_make_command"
24751 then
24752   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24753 echo "$as_me: error: GNU Make required but not found" >&2;}
24754    { (exit 1); exit 1; }; }
24755 fi
24756
24757 echo "$as_me:$LINENO: result: ok" >&5
24758 echo "${ECHO_T}ok" >&6
24759
24760
24761
24762 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24763 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24764 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24765   echo $ECHO_N "(cached) $ECHO_C" >&6
24766 else
24767   ac_check_lib_save_LIBS=$LIBS
24768 LIBS="-lelf  $LIBS"
24769 cat >conftest.$ac_ext <<_ACEOF
24770 /* confdefs.h.  */
24771 _ACEOF
24772 cat confdefs.h >>conftest.$ac_ext
24773 cat >>conftest.$ac_ext <<_ACEOF
24774 /* end confdefs.h.  */
24775
24776 /* Override any gcc2 internal prototype to avoid an error.  */
24777 #ifdef __cplusplus
24778 extern "C"
24779 #endif
24780 /* We use char because int might match the return type of a gcc2
24781    builtin and then its argument prototype would still apply.  */
24782 char elf_begin ();
24783 int
24784 main ()
24785 {
24786 elf_begin ();
24787   ;
24788   return 0;
24789 }
24790 _ACEOF
24791 rm -f conftest.$ac_objext conftest$ac_exeext
24792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24793   (eval $ac_link) 2>conftest.er1
24794   ac_status=$?
24795   grep -v '^ *+' conftest.er1 >conftest.err
24796   rm -f conftest.er1
24797   cat conftest.err >&5
24798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799   (exit $ac_status); } &&
24800          { ac_try='test -z "$ac_c_werror_flag"
24801                          || test ! -s conftest.err'
24802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24803   (eval $ac_try) 2>&5
24804   ac_status=$?
24805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806   (exit $ac_status); }; } &&
24807          { ac_try='test -s conftest$ac_exeext'
24808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24809   (eval $ac_try) 2>&5
24810   ac_status=$?
24811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812   (exit $ac_status); }; }; then
24813   ac_cv_lib_elf_elf_begin=yes
24814 else
24815   echo "$as_me: failed program was:" >&5
24816 sed 's/^/| /' conftest.$ac_ext >&5
24817
24818 ac_cv_lib_elf_elf_begin=no
24819 fi
24820 rm -f conftest.err conftest.$ac_objext \
24821       conftest$ac_exeext conftest.$ac_ext
24822 LIBS=$ac_check_lib_save_LIBS
24823 fi
24824 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24825 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24826 if test $ac_cv_lib_elf_elf_begin = yes; then
24827   cat >>confdefs.h <<_ACEOF
24828 #define HAVE_LIBELF 1
24829 _ACEOF
24830
24831   LIBS="-lelf $LIBS"
24832
24833 fi
24834
24835
24836
24837 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24838 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24839 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24840   echo $ECHO_N "(cached) $ECHO_C" >&6
24841 else
24842   ac_func_search_save_LIBS=$LIBS
24843 ac_cv_search_lt_dlopen=no
24844 cat >conftest.$ac_ext <<_ACEOF
24845 /* confdefs.h.  */
24846 _ACEOF
24847 cat confdefs.h >>conftest.$ac_ext
24848 cat >>conftest.$ac_ext <<_ACEOF
24849 /* end confdefs.h.  */
24850
24851 /* Override any gcc2 internal prototype to avoid an error.  */
24852 #ifdef __cplusplus
24853 extern "C"
24854 #endif
24855 /* We use char because int might match the return type of a gcc2
24856    builtin and then its argument prototype would still apply.  */
24857 char lt_dlopen ();
24858 int
24859 main ()
24860 {
24861 lt_dlopen ();
24862   ;
24863   return 0;
24864 }
24865 _ACEOF
24866 rm -f conftest.$ac_objext conftest$ac_exeext
24867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24868   (eval $ac_link) 2>conftest.er1
24869   ac_status=$?
24870   grep -v '^ *+' conftest.er1 >conftest.err
24871   rm -f conftest.er1
24872   cat conftest.err >&5
24873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874   (exit $ac_status); } &&
24875          { ac_try='test -z "$ac_c_werror_flag"
24876                          || test ! -s conftest.err'
24877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24878   (eval $ac_try) 2>&5
24879   ac_status=$?
24880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881   (exit $ac_status); }; } &&
24882          { ac_try='test -s conftest$ac_exeext'
24883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884   (eval $ac_try) 2>&5
24885   ac_status=$?
24886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887   (exit $ac_status); }; }; then
24888   ac_cv_search_lt_dlopen="none required"
24889 else
24890   echo "$as_me: failed program was:" >&5
24891 sed 's/^/| /' conftest.$ac_ext >&5
24892
24893 fi
24894 rm -f conftest.err conftest.$ac_objext \
24895       conftest$ac_exeext conftest.$ac_ext
24896 if test "$ac_cv_search_lt_dlopen" = no; then
24897   for ac_lib in ltdl; do
24898     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24899     cat >conftest.$ac_ext <<_ACEOF
24900 /* confdefs.h.  */
24901 _ACEOF
24902 cat confdefs.h >>conftest.$ac_ext
24903 cat >>conftest.$ac_ext <<_ACEOF
24904 /* end confdefs.h.  */
24905
24906 /* Override any gcc2 internal prototype to avoid an error.  */
24907 #ifdef __cplusplus
24908 extern "C"
24909 #endif
24910 /* We use char because int might match the return type of a gcc2
24911    builtin and then its argument prototype would still apply.  */
24912 char lt_dlopen ();
24913 int
24914 main ()
24915 {
24916 lt_dlopen ();
24917   ;
24918   return 0;
24919 }
24920 _ACEOF
24921 rm -f conftest.$ac_objext conftest$ac_exeext
24922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24923   (eval $ac_link) 2>conftest.er1
24924   ac_status=$?
24925   grep -v '^ *+' conftest.er1 >conftest.err
24926   rm -f conftest.er1
24927   cat conftest.err >&5
24928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929   (exit $ac_status); } &&
24930          { ac_try='test -z "$ac_c_werror_flag"
24931                          || test ! -s conftest.err'
24932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24933   (eval $ac_try) 2>&5
24934   ac_status=$?
24935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936   (exit $ac_status); }; } &&
24937          { ac_try='test -s conftest$ac_exeext'
24938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24939   (eval $ac_try) 2>&5
24940   ac_status=$?
24941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942   (exit $ac_status); }; }; then
24943   ac_cv_search_lt_dlopen="-l$ac_lib"
24944 break
24945 else
24946   echo "$as_me: failed program was:" >&5
24947 sed 's/^/| /' conftest.$ac_ext >&5
24948
24949 fi
24950 rm -f conftest.err conftest.$ac_objext \
24951       conftest$ac_exeext conftest.$ac_ext
24952   done
24953 fi
24954 LIBS=$ac_func_search_save_LIBS
24955 fi
24956 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24957 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24958 if test "$ac_cv_search_lt_dlopen" != no; then
24959   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24960
24961 cat >>confdefs.h <<\_ACEOF
24962 #define HAVE_LT_DLOPEN 1
24963 _ACEOF
24964
24965 else
24966   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24967                            not be available" >&5
24968 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24969                            not be available" >&2;}
24970 fi
24971
24972
24973 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24974 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24975 if test "${ac_cv_search_dlopen+set}" = set; then
24976   echo $ECHO_N "(cached) $ECHO_C" >&6
24977 else
24978   ac_func_search_save_LIBS=$LIBS
24979 ac_cv_search_dlopen=no
24980 cat >conftest.$ac_ext <<_ACEOF
24981 /* confdefs.h.  */
24982 _ACEOF
24983 cat confdefs.h >>conftest.$ac_ext
24984 cat >>conftest.$ac_ext <<_ACEOF
24985 /* end confdefs.h.  */
24986
24987 /* Override any gcc2 internal prototype to avoid an error.  */
24988 #ifdef __cplusplus
24989 extern "C"
24990 #endif
24991 /* We use char because int might match the return type of a gcc2
24992    builtin and then its argument prototype would still apply.  */
24993 char dlopen ();
24994 int
24995 main ()
24996 {
24997 dlopen ();
24998   ;
24999   return 0;
25000 }
25001 _ACEOF
25002 rm -f conftest.$ac_objext conftest$ac_exeext
25003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25004   (eval $ac_link) 2>conftest.er1
25005   ac_status=$?
25006   grep -v '^ *+' conftest.er1 >conftest.err
25007   rm -f conftest.er1
25008   cat conftest.err >&5
25009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010   (exit $ac_status); } &&
25011          { ac_try='test -z "$ac_c_werror_flag"
25012                          || test ! -s conftest.err'
25013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25014   (eval $ac_try) 2>&5
25015   ac_status=$?
25016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017   (exit $ac_status); }; } &&
25018          { ac_try='test -s conftest$ac_exeext'
25019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020   (eval $ac_try) 2>&5
25021   ac_status=$?
25022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023   (exit $ac_status); }; }; then
25024   ac_cv_search_dlopen="none required"
25025 else
25026   echo "$as_me: failed program was:" >&5
25027 sed 's/^/| /' conftest.$ac_ext >&5
25028
25029 fi
25030 rm -f conftest.err conftest.$ac_objext \
25031       conftest$ac_exeext conftest.$ac_ext
25032 if test "$ac_cv_search_dlopen" = no; then
25033   for ac_lib in dl; do
25034     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25035     cat >conftest.$ac_ext <<_ACEOF
25036 /* confdefs.h.  */
25037 _ACEOF
25038 cat confdefs.h >>conftest.$ac_ext
25039 cat >>conftest.$ac_ext <<_ACEOF
25040 /* end confdefs.h.  */
25041
25042 /* Override any gcc2 internal prototype to avoid an error.  */
25043 #ifdef __cplusplus
25044 extern "C"
25045 #endif
25046 /* We use char because int might match the return type of a gcc2
25047    builtin and then its argument prototype would still apply.  */
25048 char dlopen ();
25049 int
25050 main ()
25051 {
25052 dlopen ();
25053   ;
25054   return 0;
25055 }
25056 _ACEOF
25057 rm -f conftest.$ac_objext conftest$ac_exeext
25058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25059   (eval $ac_link) 2>conftest.er1
25060   ac_status=$?
25061   grep -v '^ *+' conftest.er1 >conftest.err
25062   rm -f conftest.er1
25063   cat conftest.err >&5
25064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065   (exit $ac_status); } &&
25066          { ac_try='test -z "$ac_c_werror_flag"
25067                          || test ! -s conftest.err'
25068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25069   (eval $ac_try) 2>&5
25070   ac_status=$?
25071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072   (exit $ac_status); }; } &&
25073          { ac_try='test -s conftest$ac_exeext'
25074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25075   (eval $ac_try) 2>&5
25076   ac_status=$?
25077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078   (exit $ac_status); }; }; then
25079   ac_cv_search_dlopen="-l$ac_lib"
25080 break
25081 else
25082   echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25084
25085 fi
25086 rm -f conftest.err conftest.$ac_objext \
25087       conftest$ac_exeext conftest.$ac_ext
25088   done
25089 fi
25090 LIBS=$ac_func_search_save_LIBS
25091 fi
25092 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25093 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25094 if test "$ac_cv_search_dlopen" != no; then
25095   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25096
25097 cat >>confdefs.h <<\_ACEOF
25098 #define HAVE_DLOPEN 1
25099 _ACEOF
25100
25101 else
25102   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25103 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25104 fi
25105
25106
25107 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25108 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25109 if test "${ac_cv_search_mallinfo+set}" = set; then
25110   echo $ECHO_N "(cached) $ECHO_C" >&6
25111 else
25112   ac_func_search_save_LIBS=$LIBS
25113 ac_cv_search_mallinfo=no
25114 cat >conftest.$ac_ext <<_ACEOF
25115 /* confdefs.h.  */
25116 _ACEOF
25117 cat confdefs.h >>conftest.$ac_ext
25118 cat >>conftest.$ac_ext <<_ACEOF
25119 /* end confdefs.h.  */
25120
25121 /* Override any gcc2 internal prototype to avoid an error.  */
25122 #ifdef __cplusplus
25123 extern "C"
25124 #endif
25125 /* We use char because int might match the return type of a gcc2
25126    builtin and then its argument prototype would still apply.  */
25127 char mallinfo ();
25128 int
25129 main ()
25130 {
25131 mallinfo ();
25132   ;
25133   return 0;
25134 }
25135 _ACEOF
25136 rm -f conftest.$ac_objext conftest$ac_exeext
25137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25138   (eval $ac_link) 2>conftest.er1
25139   ac_status=$?
25140   grep -v '^ *+' conftest.er1 >conftest.err
25141   rm -f conftest.er1
25142   cat conftest.err >&5
25143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144   (exit $ac_status); } &&
25145          { ac_try='test -z "$ac_c_werror_flag"
25146                          || test ! -s conftest.err'
25147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25148   (eval $ac_try) 2>&5
25149   ac_status=$?
25150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151   (exit $ac_status); }; } &&
25152          { ac_try='test -s conftest$ac_exeext'
25153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25154   (eval $ac_try) 2>&5
25155   ac_status=$?
25156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157   (exit $ac_status); }; }; then
25158   ac_cv_search_mallinfo="none required"
25159 else
25160   echo "$as_me: failed program was:" >&5
25161 sed 's/^/| /' conftest.$ac_ext >&5
25162
25163 fi
25164 rm -f conftest.err conftest.$ac_objext \
25165       conftest$ac_exeext conftest.$ac_ext
25166 if test "$ac_cv_search_mallinfo" = no; then
25167   for ac_lib in malloc; do
25168     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25169     cat >conftest.$ac_ext <<_ACEOF
25170 /* confdefs.h.  */
25171 _ACEOF
25172 cat confdefs.h >>conftest.$ac_ext
25173 cat >>conftest.$ac_ext <<_ACEOF
25174 /* end confdefs.h.  */
25175
25176 /* Override any gcc2 internal prototype to avoid an error.  */
25177 #ifdef __cplusplus
25178 extern "C"
25179 #endif
25180 /* We use char because int might match the return type of a gcc2
25181    builtin and then its argument prototype would still apply.  */
25182 char mallinfo ();
25183 int
25184 main ()
25185 {
25186 mallinfo ();
25187   ;
25188   return 0;
25189 }
25190 _ACEOF
25191 rm -f conftest.$ac_objext conftest$ac_exeext
25192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25193   (eval $ac_link) 2>conftest.er1
25194   ac_status=$?
25195   grep -v '^ *+' conftest.er1 >conftest.err
25196   rm -f conftest.er1
25197   cat conftest.err >&5
25198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199   (exit $ac_status); } &&
25200          { ac_try='test -z "$ac_c_werror_flag"
25201                          || test ! -s conftest.err'
25202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203   (eval $ac_try) 2>&5
25204   ac_status=$?
25205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206   (exit $ac_status); }; } &&
25207          { ac_try='test -s conftest$ac_exeext'
25208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209   (eval $ac_try) 2>&5
25210   ac_status=$?
25211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212   (exit $ac_status); }; }; then
25213   ac_cv_search_mallinfo="-l$ac_lib"
25214 break
25215 else
25216   echo "$as_me: failed program was:" >&5
25217 sed 's/^/| /' conftest.$ac_ext >&5
25218
25219 fi
25220 rm -f conftest.err conftest.$ac_objext \
25221       conftest$ac_exeext conftest.$ac_ext
25222   done
25223 fi
25224 LIBS=$ac_func_search_save_LIBS
25225 fi
25226 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25227 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25228 if test "$ac_cv_search_mallinfo" != no; then
25229   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25230
25231 cat >>confdefs.h <<\_ACEOF
25232 #define HAVE_MALLINFO 1
25233 _ACEOF
25234
25235 fi
25236
25237
25238
25239 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25240 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25241 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25242   echo $ECHO_N "(cached) $ECHO_C" >&6
25243 else
25244   ac_check_lib_save_LIBS=$LIBS
25245 LIBS="-lpthread  $LIBS"
25246 cat >conftest.$ac_ext <<_ACEOF
25247 /* confdefs.h.  */
25248 _ACEOF
25249 cat confdefs.h >>conftest.$ac_ext
25250 cat >>conftest.$ac_ext <<_ACEOF
25251 /* end confdefs.h.  */
25252
25253 /* Override any gcc2 internal prototype to avoid an error.  */
25254 #ifdef __cplusplus
25255 extern "C"
25256 #endif
25257 /* We use char because int might match the return type of a gcc2
25258    builtin and then its argument prototype would still apply.  */
25259 char pthread_mutex_init ();
25260 int
25261 main ()
25262 {
25263 pthread_mutex_init ();
25264   ;
25265   return 0;
25266 }
25267 _ACEOF
25268 rm -f conftest.$ac_objext conftest$ac_exeext
25269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25270   (eval $ac_link) 2>conftest.er1
25271   ac_status=$?
25272   grep -v '^ *+' conftest.er1 >conftest.err
25273   rm -f conftest.er1
25274   cat conftest.err >&5
25275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276   (exit $ac_status); } &&
25277          { ac_try='test -z "$ac_c_werror_flag"
25278                          || test ! -s conftest.err'
25279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25280   (eval $ac_try) 2>&5
25281   ac_status=$?
25282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283   (exit $ac_status); }; } &&
25284          { ac_try='test -s conftest$ac_exeext'
25285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25286   (eval $ac_try) 2>&5
25287   ac_status=$?
25288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289   (exit $ac_status); }; }; then
25290   ac_cv_lib_pthread_pthread_mutex_init=yes
25291 else
25292   echo "$as_me: failed program was:" >&5
25293 sed 's/^/| /' conftest.$ac_ext >&5
25294
25295 ac_cv_lib_pthread_pthread_mutex_init=no
25296 fi
25297 rm -f conftest.err conftest.$ac_objext \
25298       conftest$ac_exeext conftest.$ac_ext
25299 LIBS=$ac_check_lib_save_LIBS
25300 fi
25301 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25302 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25303 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25304   cat >>confdefs.h <<_ACEOF
25305 #define HAVE_LIBPTHREAD 1
25306 _ACEOF
25307
25308   LIBS="-lpthread $LIBS"
25309
25310 fi
25311
25312 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25313 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25314 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25315   echo $ECHO_N "(cached) $ECHO_C" >&6
25316 else
25317   ac_func_search_save_LIBS=$LIBS
25318 ac_cv_search_pthread_mutex_lock=no
25319 cat >conftest.$ac_ext <<_ACEOF
25320 /* confdefs.h.  */
25321 _ACEOF
25322 cat confdefs.h >>conftest.$ac_ext
25323 cat >>conftest.$ac_ext <<_ACEOF
25324 /* end confdefs.h.  */
25325
25326 /* Override any gcc2 internal prototype to avoid an error.  */
25327 #ifdef __cplusplus
25328 extern "C"
25329 #endif
25330 /* We use char because int might match the return type of a gcc2
25331    builtin and then its argument prototype would still apply.  */
25332 char pthread_mutex_lock ();
25333 int
25334 main ()
25335 {
25336 pthread_mutex_lock ();
25337   ;
25338   return 0;
25339 }
25340 _ACEOF
25341 rm -f conftest.$ac_objext conftest$ac_exeext
25342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25343   (eval $ac_link) 2>conftest.er1
25344   ac_status=$?
25345   grep -v '^ *+' conftest.er1 >conftest.err
25346   rm -f conftest.er1
25347   cat conftest.err >&5
25348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349   (exit $ac_status); } &&
25350          { ac_try='test -z "$ac_c_werror_flag"
25351                          || test ! -s conftest.err'
25352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353   (eval $ac_try) 2>&5
25354   ac_status=$?
25355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356   (exit $ac_status); }; } &&
25357          { ac_try='test -s conftest$ac_exeext'
25358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25359   (eval $ac_try) 2>&5
25360   ac_status=$?
25361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362   (exit $ac_status); }; }; then
25363   ac_cv_search_pthread_mutex_lock="none required"
25364 else
25365   echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25367
25368 fi
25369 rm -f conftest.err conftest.$ac_objext \
25370       conftest$ac_exeext conftest.$ac_ext
25371 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25372   for ac_lib in pthread; do
25373     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25374     cat >conftest.$ac_ext <<_ACEOF
25375 /* confdefs.h.  */
25376 _ACEOF
25377 cat confdefs.h >>conftest.$ac_ext
25378 cat >>conftest.$ac_ext <<_ACEOF
25379 /* end confdefs.h.  */
25380
25381 /* Override any gcc2 internal prototype to avoid an error.  */
25382 #ifdef __cplusplus
25383 extern "C"
25384 #endif
25385 /* We use char because int might match the return type of a gcc2
25386    builtin and then its argument prototype would still apply.  */
25387 char pthread_mutex_lock ();
25388 int
25389 main ()
25390 {
25391 pthread_mutex_lock ();
25392   ;
25393   return 0;
25394 }
25395 _ACEOF
25396 rm -f conftest.$ac_objext conftest$ac_exeext
25397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25398   (eval $ac_link) 2>conftest.er1
25399   ac_status=$?
25400   grep -v '^ *+' conftest.er1 >conftest.err
25401   rm -f conftest.er1
25402   cat conftest.err >&5
25403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404   (exit $ac_status); } &&
25405          { ac_try='test -z "$ac_c_werror_flag"
25406                          || test ! -s conftest.err'
25407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25408   (eval $ac_try) 2>&5
25409   ac_status=$?
25410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411   (exit $ac_status); }; } &&
25412          { ac_try='test -s conftest$ac_exeext'
25413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25414   (eval $ac_try) 2>&5
25415   ac_status=$?
25416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417   (exit $ac_status); }; }; then
25418   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25419 break
25420 else
25421   echo "$as_me: failed program was:" >&5
25422 sed 's/^/| /' conftest.$ac_ext >&5
25423
25424 fi
25425 rm -f conftest.err conftest.$ac_objext \
25426       conftest$ac_exeext conftest.$ac_ext
25427   done
25428 fi
25429 LIBS=$ac_func_search_save_LIBS
25430 fi
25431 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25432 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25433 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25434   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25435
25436 cat >>confdefs.h <<\_ACEOF
25437 #define HAVE_PTHREAD_MUTEX_LOCK 1
25438 _ACEOF
25439
25440 fi
25441
25442
25443
25444
25445
25446
25447
25448
25449 ac_header_dirent=no
25450 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25451   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25452 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25453 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25455   echo $ECHO_N "(cached) $ECHO_C" >&6
25456 else
25457   cat >conftest.$ac_ext <<_ACEOF
25458 /* confdefs.h.  */
25459 _ACEOF
25460 cat confdefs.h >>conftest.$ac_ext
25461 cat >>conftest.$ac_ext <<_ACEOF
25462 /* end confdefs.h.  */
25463 #include <sys/types.h>
25464 #include <$ac_hdr>
25465
25466 int
25467 main ()
25468 {
25469 if ((DIR *) 0)
25470 return 0;
25471   ;
25472   return 0;
25473 }
25474 _ACEOF
25475 rm -f conftest.$ac_objext
25476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25477   (eval $ac_compile) 2>conftest.er1
25478   ac_status=$?
25479   grep -v '^ *+' conftest.er1 >conftest.err
25480   rm -f conftest.er1
25481   cat conftest.err >&5
25482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483   (exit $ac_status); } &&
25484          { ac_try='test -z "$ac_c_werror_flag"
25485                          || test ! -s conftest.err'
25486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25487   (eval $ac_try) 2>&5
25488   ac_status=$?
25489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490   (exit $ac_status); }; } &&
25491          { ac_try='test -s conftest.$ac_objext'
25492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25493   (eval $ac_try) 2>&5
25494   ac_status=$?
25495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496   (exit $ac_status); }; }; then
25497   eval "$as_ac_Header=yes"
25498 else
25499   echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25501
25502 eval "$as_ac_Header=no"
25503 fi
25504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25505 fi
25506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25509   cat >>confdefs.h <<_ACEOF
25510 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25511 _ACEOF
25512
25513 ac_header_dirent=$ac_hdr; break
25514 fi
25515
25516 done
25517 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25518 if test $ac_header_dirent = dirent.h; then
25519   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25520 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25521 if test "${ac_cv_search_opendir+set}" = set; then
25522   echo $ECHO_N "(cached) $ECHO_C" >&6
25523 else
25524   ac_func_search_save_LIBS=$LIBS
25525 ac_cv_search_opendir=no
25526 cat >conftest.$ac_ext <<_ACEOF
25527 /* confdefs.h.  */
25528 _ACEOF
25529 cat confdefs.h >>conftest.$ac_ext
25530 cat >>conftest.$ac_ext <<_ACEOF
25531 /* end confdefs.h.  */
25532
25533 /* Override any gcc2 internal prototype to avoid an error.  */
25534 #ifdef __cplusplus
25535 extern "C"
25536 #endif
25537 /* We use char because int might match the return type of a gcc2
25538    builtin and then its argument prototype would still apply.  */
25539 char opendir ();
25540 int
25541 main ()
25542 {
25543 opendir ();
25544   ;
25545   return 0;
25546 }
25547 _ACEOF
25548 rm -f conftest.$ac_objext conftest$ac_exeext
25549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25550   (eval $ac_link) 2>conftest.er1
25551   ac_status=$?
25552   grep -v '^ *+' conftest.er1 >conftest.err
25553   rm -f conftest.er1
25554   cat conftest.err >&5
25555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25556   (exit $ac_status); } &&
25557          { ac_try='test -z "$ac_c_werror_flag"
25558                          || test ! -s conftest.err'
25559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25560   (eval $ac_try) 2>&5
25561   ac_status=$?
25562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563   (exit $ac_status); }; } &&
25564          { ac_try='test -s conftest$ac_exeext'
25565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25566   (eval $ac_try) 2>&5
25567   ac_status=$?
25568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569   (exit $ac_status); }; }; then
25570   ac_cv_search_opendir="none required"
25571 else
25572   echo "$as_me: failed program was:" >&5
25573 sed 's/^/| /' conftest.$ac_ext >&5
25574
25575 fi
25576 rm -f conftest.err conftest.$ac_objext \
25577       conftest$ac_exeext conftest.$ac_ext
25578 if test "$ac_cv_search_opendir" = no; then
25579   for ac_lib in dir; do
25580     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25581     cat >conftest.$ac_ext <<_ACEOF
25582 /* confdefs.h.  */
25583 _ACEOF
25584 cat confdefs.h >>conftest.$ac_ext
25585 cat >>conftest.$ac_ext <<_ACEOF
25586 /* end confdefs.h.  */
25587
25588 /* Override any gcc2 internal prototype to avoid an error.  */
25589 #ifdef __cplusplus
25590 extern "C"
25591 #endif
25592 /* We use char because int might match the return type of a gcc2
25593    builtin and then its argument prototype would still apply.  */
25594 char opendir ();
25595 int
25596 main ()
25597 {
25598 opendir ();
25599   ;
25600   return 0;
25601 }
25602 _ACEOF
25603 rm -f conftest.$ac_objext conftest$ac_exeext
25604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25605   (eval $ac_link) 2>conftest.er1
25606   ac_status=$?
25607   grep -v '^ *+' conftest.er1 >conftest.err
25608   rm -f conftest.er1
25609   cat conftest.err >&5
25610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611   (exit $ac_status); } &&
25612          { ac_try='test -z "$ac_c_werror_flag"
25613                          || test ! -s conftest.err'
25614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25615   (eval $ac_try) 2>&5
25616   ac_status=$?
25617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618   (exit $ac_status); }; } &&
25619          { ac_try='test -s conftest$ac_exeext'
25620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25621   (eval $ac_try) 2>&5
25622   ac_status=$?
25623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25624   (exit $ac_status); }; }; then
25625   ac_cv_search_opendir="-l$ac_lib"
25626 break
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   done
25635 fi
25636 LIBS=$ac_func_search_save_LIBS
25637 fi
25638 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25639 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25640 if test "$ac_cv_search_opendir" != no; then
25641   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25642
25643 fi
25644
25645 else
25646   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25647 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25648 if test "${ac_cv_search_opendir+set}" = set; then
25649   echo $ECHO_N "(cached) $ECHO_C" >&6
25650 else
25651   ac_func_search_save_LIBS=$LIBS
25652 ac_cv_search_opendir=no
25653 cat >conftest.$ac_ext <<_ACEOF
25654 /* confdefs.h.  */
25655 _ACEOF
25656 cat confdefs.h >>conftest.$ac_ext
25657 cat >>conftest.$ac_ext <<_ACEOF
25658 /* end confdefs.h.  */
25659
25660 /* Override any gcc2 internal prototype to avoid an error.  */
25661 #ifdef __cplusplus
25662 extern "C"
25663 #endif
25664 /* We use char because int might match the return type of a gcc2
25665    builtin and then its argument prototype would still apply.  */
25666 char opendir ();
25667 int
25668 main ()
25669 {
25670 opendir ();
25671   ;
25672   return 0;
25673 }
25674 _ACEOF
25675 rm -f conftest.$ac_objext conftest$ac_exeext
25676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25677   (eval $ac_link) 2>conftest.er1
25678   ac_status=$?
25679   grep -v '^ *+' conftest.er1 >conftest.err
25680   rm -f conftest.er1
25681   cat conftest.err >&5
25682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683   (exit $ac_status); } &&
25684          { ac_try='test -z "$ac_c_werror_flag"
25685                          || test ! -s conftest.err'
25686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25687   (eval $ac_try) 2>&5
25688   ac_status=$?
25689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690   (exit $ac_status); }; } &&
25691          { ac_try='test -s conftest$ac_exeext'
25692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25693   (eval $ac_try) 2>&5
25694   ac_status=$?
25695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696   (exit $ac_status); }; }; then
25697   ac_cv_search_opendir="none required"
25698 else
25699   echo "$as_me: failed program was:" >&5
25700 sed 's/^/| /' conftest.$ac_ext >&5
25701
25702 fi
25703 rm -f conftest.err conftest.$ac_objext \
25704       conftest$ac_exeext conftest.$ac_ext
25705 if test "$ac_cv_search_opendir" = no; then
25706   for ac_lib in x; do
25707     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25708     cat >conftest.$ac_ext <<_ACEOF
25709 /* confdefs.h.  */
25710 _ACEOF
25711 cat confdefs.h >>conftest.$ac_ext
25712 cat >>conftest.$ac_ext <<_ACEOF
25713 /* end confdefs.h.  */
25714
25715 /* Override any gcc2 internal prototype to avoid an error.  */
25716 #ifdef __cplusplus
25717 extern "C"
25718 #endif
25719 /* We use char because int might match the return type of a gcc2
25720    builtin and then its argument prototype would still apply.  */
25721 char opendir ();
25722 int
25723 main ()
25724 {
25725 opendir ();
25726   ;
25727   return 0;
25728 }
25729 _ACEOF
25730 rm -f conftest.$ac_objext conftest$ac_exeext
25731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25732   (eval $ac_link) 2>conftest.er1
25733   ac_status=$?
25734   grep -v '^ *+' conftest.er1 >conftest.err
25735   rm -f conftest.er1
25736   cat conftest.err >&5
25737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738   (exit $ac_status); } &&
25739          { ac_try='test -z "$ac_c_werror_flag"
25740                          || test ! -s conftest.err'
25741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742   (eval $ac_try) 2>&5
25743   ac_status=$?
25744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745   (exit $ac_status); }; } &&
25746          { ac_try='test -s conftest$ac_exeext'
25747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25748   (eval $ac_try) 2>&5
25749   ac_status=$?
25750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751   (exit $ac_status); }; }; then
25752   ac_cv_search_opendir="-l$ac_lib"
25753 break
25754 else
25755   echo "$as_me: failed program was:" >&5
25756 sed 's/^/| /' conftest.$ac_ext >&5
25757
25758 fi
25759 rm -f conftest.err conftest.$ac_objext \
25760       conftest$ac_exeext conftest.$ac_ext
25761   done
25762 fi
25763 LIBS=$ac_func_search_save_LIBS
25764 fi
25765 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25766 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25767 if test "$ac_cv_search_opendir" != no; then
25768   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25769
25770 fi
25771
25772 fi
25773
25774 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25775 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25776 if test "${ac_cv_header_mmap_anon+set}" = set; then
25777   echo $ECHO_N "(cached) $ECHO_C" >&6
25778 else
25779    ac_ext=c
25780 ac_cpp='$CPP $CPPFLAGS'
25781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25784
25785   cat >conftest.$ac_ext <<_ACEOF
25786 /* confdefs.h.  */
25787 _ACEOF
25788 cat confdefs.h >>conftest.$ac_ext
25789 cat >>conftest.$ac_ext <<_ACEOF
25790 /* end confdefs.h.  */
25791 #include <sys/mman.h>
25792 #include <unistd.h>
25793 #include <fcntl.h>
25794 int
25795 main ()
25796 {
25797 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25798   ;
25799   return 0;
25800 }
25801 _ACEOF
25802 rm -f conftest.$ac_objext
25803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25804   (eval $ac_compile) 2>conftest.er1
25805   ac_status=$?
25806   grep -v '^ *+' conftest.er1 >conftest.err
25807   rm -f conftest.er1
25808   cat conftest.err >&5
25809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810   (exit $ac_status); } &&
25811          { ac_try='test -z "$ac_c_werror_flag"
25812                          || test ! -s conftest.err'
25813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25814   (eval $ac_try) 2>&5
25815   ac_status=$?
25816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817   (exit $ac_status); }; } &&
25818          { ac_try='test -s conftest.$ac_objext'
25819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25820   (eval $ac_try) 2>&5
25821   ac_status=$?
25822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823   (exit $ac_status); }; }; then
25824   ac_cv_header_mmap_anon=yes
25825 else
25826   echo "$as_me: failed program was:" >&5
25827 sed 's/^/| /' conftest.$ac_ext >&5
25828
25829 ac_cv_header_mmap_anon=no
25830 fi
25831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25832   ac_ext=c
25833 ac_cpp='$CPP $CPPFLAGS'
25834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25837
25838
25839 fi
25840 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25841 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25842 if test "$ac_cv_header_mmap_anon" = yes; then
25843
25844 cat >>confdefs.h <<\_ACEOF
25845 #define HAVE_MMAP_ANONYMOUS 1
25846 _ACEOF
25847
25848 fi
25849
25850 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25851 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25852 if test "${ac_cv_header_stat_broken+set}" = set; then
25853   echo $ECHO_N "(cached) $ECHO_C" >&6
25854 else
25855   cat >conftest.$ac_ext <<_ACEOF
25856 /* confdefs.h.  */
25857 _ACEOF
25858 cat confdefs.h >>conftest.$ac_ext
25859 cat >>conftest.$ac_ext <<_ACEOF
25860 /* end confdefs.h.  */
25861 #include <sys/types.h>
25862 #include <sys/stat.h>
25863
25864 #if defined(S_ISBLK) && defined(S_IFDIR)
25865 # if S_ISBLK (S_IFDIR)
25866 You lose.
25867 # endif
25868 #endif
25869
25870 #if defined(S_ISBLK) && defined(S_IFCHR)
25871 # if S_ISBLK (S_IFCHR)
25872 You lose.
25873 # endif
25874 #endif
25875
25876 #if defined(S_ISLNK) && defined(S_IFREG)
25877 # if S_ISLNK (S_IFREG)
25878 You lose.
25879 # endif
25880 #endif
25881
25882 #if defined(S_ISSOCK) && defined(S_IFREG)
25883 # if S_ISSOCK (S_IFREG)
25884 You lose.
25885 # endif
25886 #endif
25887
25888 _ACEOF
25889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25890   $EGREP "You lose" >/dev/null 2>&1; then
25891   ac_cv_header_stat_broken=yes
25892 else
25893   ac_cv_header_stat_broken=no
25894 fi
25895 rm -f conftest*
25896
25897 fi
25898 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25899 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25900 if test $ac_cv_header_stat_broken = yes; then
25901
25902 cat >>confdefs.h <<\_ACEOF
25903 #define STAT_MACROS_BROKEN 1
25904 _ACEOF
25905
25906 fi
25907
25908 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25909 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25910 if test "${ac_cv_header_stdc+set}" = set; then
25911   echo $ECHO_N "(cached) $ECHO_C" >&6
25912 else
25913   cat >conftest.$ac_ext <<_ACEOF
25914 /* confdefs.h.  */
25915 _ACEOF
25916 cat confdefs.h >>conftest.$ac_ext
25917 cat >>conftest.$ac_ext <<_ACEOF
25918 /* end confdefs.h.  */
25919 #include <stdlib.h>
25920 #include <stdarg.h>
25921 #include <string.h>
25922 #include <float.h>
25923
25924 int
25925 main ()
25926 {
25927
25928   ;
25929   return 0;
25930 }
25931 _ACEOF
25932 rm -f conftest.$ac_objext
25933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25934   (eval $ac_compile) 2>conftest.er1
25935   ac_status=$?
25936   grep -v '^ *+' conftest.er1 >conftest.err
25937   rm -f conftest.er1
25938   cat conftest.err >&5
25939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940   (exit $ac_status); } &&
25941          { ac_try='test -z "$ac_c_werror_flag"
25942                          || test ! -s conftest.err'
25943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25944   (eval $ac_try) 2>&5
25945   ac_status=$?
25946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947   (exit $ac_status); }; } &&
25948          { ac_try='test -s conftest.$ac_objext'
25949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25950   (eval $ac_try) 2>&5
25951   ac_status=$?
25952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953   (exit $ac_status); }; }; then
25954   ac_cv_header_stdc=yes
25955 else
25956   echo "$as_me: failed program was:" >&5
25957 sed 's/^/| /' conftest.$ac_ext >&5
25958
25959 ac_cv_header_stdc=no
25960 fi
25961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25962
25963 if test $ac_cv_header_stdc = yes; then
25964   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25965   cat >conftest.$ac_ext <<_ACEOF
25966 /* confdefs.h.  */
25967 _ACEOF
25968 cat confdefs.h >>conftest.$ac_ext
25969 cat >>conftest.$ac_ext <<_ACEOF
25970 /* end confdefs.h.  */
25971 #include <string.h>
25972
25973 _ACEOF
25974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25975   $EGREP "memchr" >/dev/null 2>&1; then
25976   :
25977 else
25978   ac_cv_header_stdc=no
25979 fi
25980 rm -f conftest*
25981
25982 fi
25983
25984 if test $ac_cv_header_stdc = yes; then
25985   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25986   cat >conftest.$ac_ext <<_ACEOF
25987 /* confdefs.h.  */
25988 _ACEOF
25989 cat confdefs.h >>conftest.$ac_ext
25990 cat >>conftest.$ac_ext <<_ACEOF
25991 /* end confdefs.h.  */
25992 #include <stdlib.h>
25993
25994 _ACEOF
25995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25996   $EGREP "free" >/dev/null 2>&1; then
25997   :
25998 else
25999   ac_cv_header_stdc=no
26000 fi
26001 rm -f conftest*
26002
26003 fi
26004
26005 if test $ac_cv_header_stdc = yes; then
26006   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26007   if test "$cross_compiling" = yes; then
26008   :
26009 else
26010   cat >conftest.$ac_ext <<_ACEOF
26011 /* confdefs.h.  */
26012 _ACEOF
26013 cat confdefs.h >>conftest.$ac_ext
26014 cat >>conftest.$ac_ext <<_ACEOF
26015 /* end confdefs.h.  */
26016 #include <ctype.h>
26017 #if ((' ' & 0x0FF) == 0x020)
26018 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26019 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26020 #else
26021 # define ISLOWER(c) \
26022                    (('a' <= (c) && (c) <= 'i') \
26023                      || ('j' <= (c) && (c) <= 'r') \
26024                      || ('s' <= (c) && (c) <= 'z'))
26025 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26026 #endif
26027
26028 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26029 int
26030 main ()
26031 {
26032   int i;
26033   for (i = 0; i < 256; i++)
26034     if (XOR (islower (i), ISLOWER (i))
26035         || toupper (i) != TOUPPER (i))
26036       exit(2);
26037   exit (0);
26038 }
26039 _ACEOF
26040 rm -f conftest$ac_exeext
26041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26042   (eval $ac_link) 2>&5
26043   ac_status=$?
26044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26047   (eval $ac_try) 2>&5
26048   ac_status=$?
26049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050   (exit $ac_status); }; }; then
26051   :
26052 else
26053   echo "$as_me: program exited with status $ac_status" >&5
26054 echo "$as_me: failed program was:" >&5
26055 sed 's/^/| /' conftest.$ac_ext >&5
26056
26057 ( exit $ac_status )
26058 ac_cv_header_stdc=no
26059 fi
26060 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26061 fi
26062 fi
26063 fi
26064 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26065 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26066 if test $ac_cv_header_stdc = yes; then
26067
26068 cat >>confdefs.h <<\_ACEOF
26069 #define STDC_HEADERS 1
26070 _ACEOF
26071
26072 fi
26073
26074 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26075 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26076 if test "${ac_cv_header_sys_wait_h+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/wait.h>
26087 #ifndef WEXITSTATUS
26088 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26089 #endif
26090 #ifndef WIFEXITED
26091 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26092 #endif
26093
26094 int
26095 main ()
26096 {
26097   int s;
26098   wait (&s);
26099   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26100   ;
26101   return 0;
26102 }
26103 _ACEOF
26104 rm -f conftest.$ac_objext
26105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26106   (eval $ac_compile) 2>conftest.er1
26107   ac_status=$?
26108   grep -v '^ *+' conftest.er1 >conftest.err
26109   rm -f conftest.er1
26110   cat conftest.err >&5
26111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112   (exit $ac_status); } &&
26113          { ac_try='test -z "$ac_c_werror_flag"
26114                          || test ! -s conftest.err'
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); }; } &&
26120          { ac_try='test -s conftest.$ac_objext'
26121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26122   (eval $ac_try) 2>&5
26123   ac_status=$?
26124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125   (exit $ac_status); }; }; then
26126   ac_cv_header_sys_wait_h=yes
26127 else
26128   echo "$as_me: failed program was:" >&5
26129 sed 's/^/| /' conftest.$ac_ext >&5
26130
26131 ac_cv_header_sys_wait_h=no
26132 fi
26133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26134 fi
26135 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26136 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26137 if test $ac_cv_header_sys_wait_h = yes; then
26138
26139 cat >>confdefs.h <<\_ACEOF
26140 #define HAVE_SYS_WAIT_H 1
26141 _ACEOF
26142
26143 fi
26144
26145 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26146 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26147 if test "${ac_cv_header_time+set}" = set; then
26148   echo $ECHO_N "(cached) $ECHO_C" >&6
26149 else
26150   cat >conftest.$ac_ext <<_ACEOF
26151 /* confdefs.h.  */
26152 _ACEOF
26153 cat confdefs.h >>conftest.$ac_ext
26154 cat >>conftest.$ac_ext <<_ACEOF
26155 /* end confdefs.h.  */
26156 #include <sys/types.h>
26157 #include <sys/time.h>
26158 #include <time.h>
26159
26160 int
26161 main ()
26162 {
26163 if ((struct tm *) 0)
26164 return 0;
26165   ;
26166   return 0;
26167 }
26168 _ACEOF
26169 rm -f conftest.$ac_objext
26170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26171   (eval $ac_compile) 2>conftest.er1
26172   ac_status=$?
26173   grep -v '^ *+' conftest.er1 >conftest.err
26174   rm -f conftest.er1
26175   cat conftest.err >&5
26176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177   (exit $ac_status); } &&
26178          { ac_try='test -z "$ac_c_werror_flag"
26179                          || test ! -s conftest.err'
26180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181   (eval $ac_try) 2>&5
26182   ac_status=$?
26183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184   (exit $ac_status); }; } &&
26185          { ac_try='test -s conftest.$ac_objext'
26186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26187   (eval $ac_try) 2>&5
26188   ac_status=$?
26189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190   (exit $ac_status); }; }; then
26191   ac_cv_header_time=yes
26192 else
26193   echo "$as_me: failed program was:" >&5
26194 sed 's/^/| /' conftest.$ac_ext >&5
26195
26196 ac_cv_header_time=no
26197 fi
26198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26199 fi
26200 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26201 echo "${ECHO_T}$ac_cv_header_time" >&6
26202 if test $ac_cv_header_time = yes; then
26203
26204 cat >>confdefs.h <<\_ACEOF
26205 #define TIME_WITH_SYS_TIME 1
26206 _ACEOF
26207
26208 fi
26209
26210
26211
26212
26213
26214
26215
26216
26217 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26218 do
26219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26221   echo "$as_me:$LINENO: checking for $ac_header" >&5
26222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26224   echo $ECHO_N "(cached) $ECHO_C" >&6
26225 fi
26226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26228 else
26229   # Is the header compilable?
26230 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26232 cat >conftest.$ac_ext <<_ACEOF
26233 /* confdefs.h.  */
26234 _ACEOF
26235 cat confdefs.h >>conftest.$ac_ext
26236 cat >>conftest.$ac_ext <<_ACEOF
26237 /* end confdefs.h.  */
26238 $ac_includes_default
26239 #include <$ac_header>
26240 _ACEOF
26241 rm -f conftest.$ac_objext
26242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26243   (eval $ac_compile) 2>conftest.er1
26244   ac_status=$?
26245   grep -v '^ *+' conftest.er1 >conftest.err
26246   rm -f conftest.er1
26247   cat conftest.err >&5
26248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249   (exit $ac_status); } &&
26250          { ac_try='test -z "$ac_c_werror_flag"
26251                          || test ! -s conftest.err'
26252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26253   (eval $ac_try) 2>&5
26254   ac_status=$?
26255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256   (exit $ac_status); }; } &&
26257          { ac_try='test -s conftest.$ac_objext'
26258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26259   (eval $ac_try) 2>&5
26260   ac_status=$?
26261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26262   (exit $ac_status); }; }; then
26263   ac_header_compiler=yes
26264 else
26265   echo "$as_me: failed program was:" >&5
26266 sed 's/^/| /' conftest.$ac_ext >&5
26267
26268 ac_header_compiler=no
26269 fi
26270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26272 echo "${ECHO_T}$ac_header_compiler" >&6
26273
26274 # Is the header present?
26275 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26277 cat >conftest.$ac_ext <<_ACEOF
26278 /* confdefs.h.  */
26279 _ACEOF
26280 cat confdefs.h >>conftest.$ac_ext
26281 cat >>conftest.$ac_ext <<_ACEOF
26282 /* end confdefs.h.  */
26283 #include <$ac_header>
26284 _ACEOF
26285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26286   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26287   ac_status=$?
26288   grep -v '^ *+' conftest.er1 >conftest.err
26289   rm -f conftest.er1
26290   cat conftest.err >&5
26291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292   (exit $ac_status); } >/dev/null; then
26293   if test -s conftest.err; then
26294     ac_cpp_err=$ac_c_preproc_warn_flag
26295     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26296   else
26297     ac_cpp_err=
26298   fi
26299 else
26300   ac_cpp_err=yes
26301 fi
26302 if test -z "$ac_cpp_err"; then
26303   ac_header_preproc=yes
26304 else
26305   echo "$as_me: failed program was:" >&5
26306 sed 's/^/| /' conftest.$ac_ext >&5
26307
26308   ac_header_preproc=no
26309 fi
26310 rm -f conftest.err conftest.$ac_ext
26311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26312 echo "${ECHO_T}$ac_header_preproc" >&6
26313
26314 # So?  What about this header?
26315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26316   yes:no: )
26317     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26319     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26321     ac_header_preproc=yes
26322     ;;
26323   no:yes:* )
26324     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26326     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26327 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26328     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26329 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26330     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26331 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26334     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26335 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26336     (
26337       cat <<\_ASBOX
26338 ## ----------------------------------- ##
26339 ## Report this to llvmbugs@cs.uiuc.edu ##
26340 ## ----------------------------------- ##
26341 _ASBOX
26342     ) |
26343       sed "s/^/$as_me: WARNING:     /" >&2
26344     ;;
26345 esac
26346 echo "$as_me:$LINENO: checking for $ac_header" >&5
26347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26349   echo $ECHO_N "(cached) $ECHO_C" >&6
26350 else
26351   eval "$as_ac_Header=\$ac_header_preproc"
26352 fi
26353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26355
26356 fi
26357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26358   cat >>confdefs.h <<_ACEOF
26359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26360 _ACEOF
26361
26362 fi
26363
26364 done
26365
26366
26367
26368
26369
26370
26371
26372 for ac_header in malloc.h pthread.h signal.h stdint.h unistd.h utime.h
26373 do
26374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26376   echo "$as_me:$LINENO: checking for $ac_header" >&5
26377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26379   echo $ECHO_N "(cached) $ECHO_C" >&6
26380 fi
26381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26383 else
26384   # Is the header compilable?
26385 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26387 cat >conftest.$ac_ext <<_ACEOF
26388 /* confdefs.h.  */
26389 _ACEOF
26390 cat confdefs.h >>conftest.$ac_ext
26391 cat >>conftest.$ac_ext <<_ACEOF
26392 /* end confdefs.h.  */
26393 $ac_includes_default
26394 #include <$ac_header>
26395 _ACEOF
26396 rm -f conftest.$ac_objext
26397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26398   (eval $ac_compile) 2>conftest.er1
26399   ac_status=$?
26400   grep -v '^ *+' conftest.er1 >conftest.err
26401   rm -f conftest.er1
26402   cat conftest.err >&5
26403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404   (exit $ac_status); } &&
26405          { ac_try='test -z "$ac_c_werror_flag"
26406                          || test ! -s conftest.err'
26407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26408   (eval $ac_try) 2>&5
26409   ac_status=$?
26410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411   (exit $ac_status); }; } &&
26412          { ac_try='test -s conftest.$ac_objext'
26413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414   (eval $ac_try) 2>&5
26415   ac_status=$?
26416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417   (exit $ac_status); }; }; then
26418   ac_header_compiler=yes
26419 else
26420   echo "$as_me: failed program was:" >&5
26421 sed 's/^/| /' conftest.$ac_ext >&5
26422
26423 ac_header_compiler=no
26424 fi
26425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26427 echo "${ECHO_T}$ac_header_compiler" >&6
26428
26429 # Is the header present?
26430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26432 cat >conftest.$ac_ext <<_ACEOF
26433 /* confdefs.h.  */
26434 _ACEOF
26435 cat confdefs.h >>conftest.$ac_ext
26436 cat >>conftest.$ac_ext <<_ACEOF
26437 /* end confdefs.h.  */
26438 #include <$ac_header>
26439 _ACEOF
26440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26441   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26442   ac_status=$?
26443   grep -v '^ *+' conftest.er1 >conftest.err
26444   rm -f conftest.er1
26445   cat conftest.err >&5
26446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447   (exit $ac_status); } >/dev/null; then
26448   if test -s conftest.err; then
26449     ac_cpp_err=$ac_c_preproc_warn_flag
26450     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26451   else
26452     ac_cpp_err=
26453   fi
26454 else
26455   ac_cpp_err=yes
26456 fi
26457 if test -z "$ac_cpp_err"; then
26458   ac_header_preproc=yes
26459 else
26460   echo "$as_me: failed program was:" >&5
26461 sed 's/^/| /' conftest.$ac_ext >&5
26462
26463   ac_header_preproc=no
26464 fi
26465 rm -f conftest.err conftest.$ac_ext
26466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26467 echo "${ECHO_T}$ac_header_preproc" >&6
26468
26469 # So?  What about this header?
26470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26471   yes:no: )
26472     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26476     ac_header_preproc=yes
26477     ;;
26478   no:yes:* )
26479     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26481     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26482 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26483     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26485     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26486 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26489     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26491     (
26492       cat <<\_ASBOX
26493 ## ----------------------------------- ##
26494 ## Report this to llvmbugs@cs.uiuc.edu ##
26495 ## ----------------------------------- ##
26496 _ASBOX
26497     ) |
26498       sed "s/^/$as_me: WARNING:     /" >&2
26499     ;;
26500 esac
26501 echo "$as_me:$LINENO: checking for $ac_header" >&5
26502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26504   echo $ECHO_N "(cached) $ECHO_C" >&6
26505 else
26506   eval "$as_ac_Header=\$ac_header_preproc"
26507 fi
26508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26510
26511 fi
26512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26513   cat >>confdefs.h <<_ACEOF
26514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26515 _ACEOF
26516
26517 fi
26518
26519 done
26520
26521
26522 for ac_header in windows.h
26523 do
26524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26526   echo "$as_me:$LINENO: checking for $ac_header" >&5
26527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26529   echo $ECHO_N "(cached) $ECHO_C" >&6
26530 fi
26531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26533 else
26534   # Is the header compilable?
26535 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26537 cat >conftest.$ac_ext <<_ACEOF
26538 /* confdefs.h.  */
26539 _ACEOF
26540 cat confdefs.h >>conftest.$ac_ext
26541 cat >>conftest.$ac_ext <<_ACEOF
26542 /* end confdefs.h.  */
26543 $ac_includes_default
26544 #include <$ac_header>
26545 _ACEOF
26546 rm -f conftest.$ac_objext
26547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26548   (eval $ac_compile) 2>conftest.er1
26549   ac_status=$?
26550   grep -v '^ *+' conftest.er1 >conftest.err
26551   rm -f conftest.er1
26552   cat conftest.err >&5
26553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26554   (exit $ac_status); } &&
26555          { ac_try='test -z "$ac_c_werror_flag"
26556                          || test ! -s conftest.err'
26557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26558   (eval $ac_try) 2>&5
26559   ac_status=$?
26560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561   (exit $ac_status); }; } &&
26562          { ac_try='test -s conftest.$ac_objext'
26563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26564   (eval $ac_try) 2>&5
26565   ac_status=$?
26566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567   (exit $ac_status); }; }; then
26568   ac_header_compiler=yes
26569 else
26570   echo "$as_me: failed program was:" >&5
26571 sed 's/^/| /' conftest.$ac_ext >&5
26572
26573 ac_header_compiler=no
26574 fi
26575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26577 echo "${ECHO_T}$ac_header_compiler" >&6
26578
26579 # Is the header present?
26580 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26582 cat >conftest.$ac_ext <<_ACEOF
26583 /* confdefs.h.  */
26584 _ACEOF
26585 cat confdefs.h >>conftest.$ac_ext
26586 cat >>conftest.$ac_ext <<_ACEOF
26587 /* end confdefs.h.  */
26588 #include <$ac_header>
26589 _ACEOF
26590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26591   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26592   ac_status=$?
26593   grep -v '^ *+' conftest.er1 >conftest.err
26594   rm -f conftest.er1
26595   cat conftest.err >&5
26596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597   (exit $ac_status); } >/dev/null; then
26598   if test -s conftest.err; then
26599     ac_cpp_err=$ac_c_preproc_warn_flag
26600     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26601   else
26602     ac_cpp_err=
26603   fi
26604 else
26605   ac_cpp_err=yes
26606 fi
26607 if test -z "$ac_cpp_err"; then
26608   ac_header_preproc=yes
26609 else
26610   echo "$as_me: failed program was:" >&5
26611 sed 's/^/| /' conftest.$ac_ext >&5
26612
26613   ac_header_preproc=no
26614 fi
26615 rm -f conftest.err conftest.$ac_ext
26616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26617 echo "${ECHO_T}$ac_header_preproc" >&6
26618
26619 # So?  What about this header?
26620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26621   yes:no: )
26622     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26626     ac_header_preproc=yes
26627     ;;
26628   no:yes:* )
26629     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26631     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26632 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26633     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26635     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26636 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26637     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26639     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26641     (
26642       cat <<\_ASBOX
26643 ## ----------------------------------- ##
26644 ## Report this to llvmbugs@cs.uiuc.edu ##
26645 ## ----------------------------------- ##
26646 _ASBOX
26647     ) |
26648       sed "s/^/$as_me: WARNING:     /" >&2
26649     ;;
26650 esac
26651 echo "$as_me:$LINENO: checking for $ac_header" >&5
26652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26654   echo $ECHO_N "(cached) $ECHO_C" >&6
26655 else
26656   eval "$as_ac_Header=\$ac_header_preproc"
26657 fi
26658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26660
26661 fi
26662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26663   cat >>confdefs.h <<_ACEOF
26664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26665 _ACEOF
26666
26667 fi
26668
26669 done
26670
26671
26672
26673
26674
26675
26676 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26677 do
26678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26680   echo "$as_me:$LINENO: checking for $ac_header" >&5
26681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26683   echo $ECHO_N "(cached) $ECHO_C" >&6
26684 fi
26685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26687 else
26688   # Is the header compilable?
26689 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26691 cat >conftest.$ac_ext <<_ACEOF
26692 /* confdefs.h.  */
26693 _ACEOF
26694 cat confdefs.h >>conftest.$ac_ext
26695 cat >>conftest.$ac_ext <<_ACEOF
26696 /* end confdefs.h.  */
26697 $ac_includes_default
26698 #include <$ac_header>
26699 _ACEOF
26700 rm -f conftest.$ac_objext
26701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26702   (eval $ac_compile) 2>conftest.er1
26703   ac_status=$?
26704   grep -v '^ *+' conftest.er1 >conftest.err
26705   rm -f conftest.er1
26706   cat conftest.err >&5
26707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708   (exit $ac_status); } &&
26709          { ac_try='test -z "$ac_c_werror_flag"
26710                          || test ! -s conftest.err'
26711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26712   (eval $ac_try) 2>&5
26713   ac_status=$?
26714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715   (exit $ac_status); }; } &&
26716          { ac_try='test -s conftest.$ac_objext'
26717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26718   (eval $ac_try) 2>&5
26719   ac_status=$?
26720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721   (exit $ac_status); }; }; then
26722   ac_header_compiler=yes
26723 else
26724   echo "$as_me: failed program was:" >&5
26725 sed 's/^/| /' conftest.$ac_ext >&5
26726
26727 ac_header_compiler=no
26728 fi
26729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26731 echo "${ECHO_T}$ac_header_compiler" >&6
26732
26733 # Is the header present?
26734 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26736 cat >conftest.$ac_ext <<_ACEOF
26737 /* confdefs.h.  */
26738 _ACEOF
26739 cat confdefs.h >>conftest.$ac_ext
26740 cat >>conftest.$ac_ext <<_ACEOF
26741 /* end confdefs.h.  */
26742 #include <$ac_header>
26743 _ACEOF
26744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26745   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26746   ac_status=$?
26747   grep -v '^ *+' conftest.er1 >conftest.err
26748   rm -f conftest.er1
26749   cat conftest.err >&5
26750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26751   (exit $ac_status); } >/dev/null; then
26752   if test -s conftest.err; then
26753     ac_cpp_err=$ac_c_preproc_warn_flag
26754     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26755   else
26756     ac_cpp_err=
26757   fi
26758 else
26759   ac_cpp_err=yes
26760 fi
26761 if test -z "$ac_cpp_err"; then
26762   ac_header_preproc=yes
26763 else
26764   echo "$as_me: failed program was:" >&5
26765 sed 's/^/| /' conftest.$ac_ext >&5
26766
26767   ac_header_preproc=no
26768 fi
26769 rm -f conftest.err conftest.$ac_ext
26770 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26771 echo "${ECHO_T}$ac_header_preproc" >&6
26772
26773 # So?  What about this header?
26774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26775   yes:no: )
26776     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26777 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26778     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26779 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26780     ac_header_preproc=yes
26781     ;;
26782   no:yes:* )
26783     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26785     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26786 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26787     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26788 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26789     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26790 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26793     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26794 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26795     (
26796       cat <<\_ASBOX
26797 ## ----------------------------------- ##
26798 ## Report this to llvmbugs@cs.uiuc.edu ##
26799 ## ----------------------------------- ##
26800 _ASBOX
26801     ) |
26802       sed "s/^/$as_me: WARNING:     /" >&2
26803     ;;
26804 esac
26805 echo "$as_me:$LINENO: checking for $ac_header" >&5
26806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26808   echo $ECHO_N "(cached) $ECHO_C" >&6
26809 else
26810   eval "$as_ac_Header=\$ac_header_preproc"
26811 fi
26812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26814
26815 fi
26816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26817   cat >>confdefs.h <<_ACEOF
26818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26819 _ACEOF
26820
26821 fi
26822
26823 done
26824
26825
26826
26827 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26828 do
26829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26831   echo "$as_me:$LINENO: checking for $ac_header" >&5
26832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26834   echo $ECHO_N "(cached) $ECHO_C" >&6
26835 fi
26836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26838 else
26839   # Is the header compilable?
26840 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26842 cat >conftest.$ac_ext <<_ACEOF
26843 /* confdefs.h.  */
26844 _ACEOF
26845 cat confdefs.h >>conftest.$ac_ext
26846 cat >>conftest.$ac_ext <<_ACEOF
26847 /* end confdefs.h.  */
26848 $ac_includes_default
26849 #include <$ac_header>
26850 _ACEOF
26851 rm -f conftest.$ac_objext
26852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26853   (eval $ac_compile) 2>conftest.er1
26854   ac_status=$?
26855   grep -v '^ *+' conftest.er1 >conftest.err
26856   rm -f conftest.er1
26857   cat conftest.err >&5
26858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26859   (exit $ac_status); } &&
26860          { ac_try='test -z "$ac_c_werror_flag"
26861                          || test ! -s conftest.err'
26862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26863   (eval $ac_try) 2>&5
26864   ac_status=$?
26865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866   (exit $ac_status); }; } &&
26867          { ac_try='test -s conftest.$ac_objext'
26868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26869   (eval $ac_try) 2>&5
26870   ac_status=$?
26871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872   (exit $ac_status); }; }; then
26873   ac_header_compiler=yes
26874 else
26875   echo "$as_me: failed program was:" >&5
26876 sed 's/^/| /' conftest.$ac_ext >&5
26877
26878 ac_header_compiler=no
26879 fi
26880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26881 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26882 echo "${ECHO_T}$ac_header_compiler" >&6
26883
26884 # Is the header present?
26885 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26887 cat >conftest.$ac_ext <<_ACEOF
26888 /* confdefs.h.  */
26889 _ACEOF
26890 cat confdefs.h >>conftest.$ac_ext
26891 cat >>conftest.$ac_ext <<_ACEOF
26892 /* end confdefs.h.  */
26893 #include <$ac_header>
26894 _ACEOF
26895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26896   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26897   ac_status=$?
26898   grep -v '^ *+' conftest.er1 >conftest.err
26899   rm -f conftest.er1
26900   cat conftest.err >&5
26901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902   (exit $ac_status); } >/dev/null; then
26903   if test -s conftest.err; then
26904     ac_cpp_err=$ac_c_preproc_warn_flag
26905     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26906   else
26907     ac_cpp_err=
26908   fi
26909 else
26910   ac_cpp_err=yes
26911 fi
26912 if test -z "$ac_cpp_err"; then
26913   ac_header_preproc=yes
26914 else
26915   echo "$as_me: failed program was:" >&5
26916 sed 's/^/| /' conftest.$ac_ext >&5
26917
26918   ac_header_preproc=no
26919 fi
26920 rm -f conftest.err conftest.$ac_ext
26921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26922 echo "${ECHO_T}$ac_header_preproc" >&6
26923
26924 # So?  What about this header?
26925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26926   yes:no: )
26927     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26931     ac_header_preproc=yes
26932     ;;
26933   no:yes:* )
26934     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26936     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26937 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26938     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26940     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26941 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26944     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26946     (
26947       cat <<\_ASBOX
26948 ## ----------------------------------- ##
26949 ## Report this to llvmbugs@cs.uiuc.edu ##
26950 ## ----------------------------------- ##
26951 _ASBOX
26952     ) |
26953       sed "s/^/$as_me: WARNING:     /" >&2
26954     ;;
26955 esac
26956 echo "$as_me:$LINENO: checking for $ac_header" >&5
26957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26959   echo $ECHO_N "(cached) $ECHO_C" >&6
26960 else
26961   eval "$as_ac_Header=\$ac_header_preproc"
26962 fi
26963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26965
26966 fi
26967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26968   cat >>confdefs.h <<_ACEOF
26969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26970 _ACEOF
26971
26972 fi
26973
26974 done
26975
26976
26977
26978 echo "$as_me:$LINENO: checking for pid_t" >&5
26979 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26980 if test "${ac_cv_type_pid_t+set}" = set; then
26981   echo $ECHO_N "(cached) $ECHO_C" >&6
26982 else
26983   cat >conftest.$ac_ext <<_ACEOF
26984 /* confdefs.h.  */
26985 _ACEOF
26986 cat confdefs.h >>conftest.$ac_ext
26987 cat >>conftest.$ac_ext <<_ACEOF
26988 /* end confdefs.h.  */
26989 $ac_includes_default
26990 int
26991 main ()
26992 {
26993 if ((pid_t *) 0)
26994   return 0;
26995 if (sizeof (pid_t))
26996   return 0;
26997   ;
26998   return 0;
26999 }
27000 _ACEOF
27001 rm -f conftest.$ac_objext
27002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27003   (eval $ac_compile) 2>conftest.er1
27004   ac_status=$?
27005   grep -v '^ *+' conftest.er1 >conftest.err
27006   rm -f conftest.er1
27007   cat conftest.err >&5
27008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009   (exit $ac_status); } &&
27010          { ac_try='test -z "$ac_c_werror_flag"
27011                          || test ! -s conftest.err'
27012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27013   (eval $ac_try) 2>&5
27014   ac_status=$?
27015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016   (exit $ac_status); }; } &&
27017          { ac_try='test -s conftest.$ac_objext'
27018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27019   (eval $ac_try) 2>&5
27020   ac_status=$?
27021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022   (exit $ac_status); }; }; then
27023   ac_cv_type_pid_t=yes
27024 else
27025   echo "$as_me: failed program was:" >&5
27026 sed 's/^/| /' conftest.$ac_ext >&5
27027
27028 ac_cv_type_pid_t=no
27029 fi
27030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27031 fi
27032 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27033 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27034 if test $ac_cv_type_pid_t = yes; then
27035   :
27036 else
27037
27038 cat >>confdefs.h <<_ACEOF
27039 #define pid_t int
27040 _ACEOF
27041
27042 fi
27043
27044 echo "$as_me:$LINENO: checking for size_t" >&5
27045 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27046 if test "${ac_cv_type_size_t+set}" = set; then
27047   echo $ECHO_N "(cached) $ECHO_C" >&6
27048 else
27049   cat >conftest.$ac_ext <<_ACEOF
27050 /* confdefs.h.  */
27051 _ACEOF
27052 cat confdefs.h >>conftest.$ac_ext
27053 cat >>conftest.$ac_ext <<_ACEOF
27054 /* end confdefs.h.  */
27055 $ac_includes_default
27056 int
27057 main ()
27058 {
27059 if ((size_t *) 0)
27060   return 0;
27061 if (sizeof (size_t))
27062   return 0;
27063   ;
27064   return 0;
27065 }
27066 _ACEOF
27067 rm -f conftest.$ac_objext
27068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27069   (eval $ac_compile) 2>conftest.er1
27070   ac_status=$?
27071   grep -v '^ *+' conftest.er1 >conftest.err
27072   rm -f conftest.er1
27073   cat conftest.err >&5
27074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075   (exit $ac_status); } &&
27076          { ac_try='test -z "$ac_c_werror_flag"
27077                          || test ! -s conftest.err'
27078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27079   (eval $ac_try) 2>&5
27080   ac_status=$?
27081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082   (exit $ac_status); }; } &&
27083          { ac_try='test -s conftest.$ac_objext'
27084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27085   (eval $ac_try) 2>&5
27086   ac_status=$?
27087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088   (exit $ac_status); }; }; then
27089   ac_cv_type_size_t=yes
27090 else
27091   echo "$as_me: failed program was:" >&5
27092 sed 's/^/| /' conftest.$ac_ext >&5
27093
27094 ac_cv_type_size_t=no
27095 fi
27096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27097 fi
27098 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27099 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27100 if test $ac_cv_type_size_t = yes; then
27101   :
27102 else
27103
27104 cat >>confdefs.h <<_ACEOF
27105 #define size_t unsigned
27106 _ACEOF
27107
27108 fi
27109
27110 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27111 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27112 if test "${ac_cv_type_signal+set}" = set; then
27113   echo $ECHO_N "(cached) $ECHO_C" >&6
27114 else
27115   cat >conftest.$ac_ext <<_ACEOF
27116 /* confdefs.h.  */
27117 _ACEOF
27118 cat confdefs.h >>conftest.$ac_ext
27119 cat >>conftest.$ac_ext <<_ACEOF
27120 /* end confdefs.h.  */
27121 #include <sys/types.h>
27122 #include <signal.h>
27123 #ifdef signal
27124 # undef signal
27125 #endif
27126 #ifdef __cplusplus
27127 extern "C" void (*signal (int, void (*)(int)))(int);
27128 #else
27129 void (*signal ()) ();
27130 #endif
27131
27132 int
27133 main ()
27134 {
27135 int i;
27136   ;
27137   return 0;
27138 }
27139 _ACEOF
27140 rm -f conftest.$ac_objext
27141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27142   (eval $ac_compile) 2>conftest.er1
27143   ac_status=$?
27144   grep -v '^ *+' conftest.er1 >conftest.err
27145   rm -f conftest.er1
27146   cat conftest.err >&5
27147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148   (exit $ac_status); } &&
27149          { ac_try='test -z "$ac_c_werror_flag"
27150                          || test ! -s conftest.err'
27151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27152   (eval $ac_try) 2>&5
27153   ac_status=$?
27154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155   (exit $ac_status); }; } &&
27156          { ac_try='test -s conftest.$ac_objext'
27157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27158   (eval $ac_try) 2>&5
27159   ac_status=$?
27160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27161   (exit $ac_status); }; }; then
27162   ac_cv_type_signal=void
27163 else
27164   echo "$as_me: failed program was:" >&5
27165 sed 's/^/| /' conftest.$ac_ext >&5
27166
27167 ac_cv_type_signal=int
27168 fi
27169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27170 fi
27171 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27172 echo "${ECHO_T}$ac_cv_type_signal" >&6
27173
27174 cat >>confdefs.h <<_ACEOF
27175 #define RETSIGTYPE $ac_cv_type_signal
27176 _ACEOF
27177
27178
27179 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27180 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27181 if test "${ac_cv_struct_tm+set}" = set; then
27182   echo $ECHO_N "(cached) $ECHO_C" >&6
27183 else
27184   cat >conftest.$ac_ext <<_ACEOF
27185 /* confdefs.h.  */
27186 _ACEOF
27187 cat confdefs.h >>conftest.$ac_ext
27188 cat >>conftest.$ac_ext <<_ACEOF
27189 /* end confdefs.h.  */
27190 #include <sys/types.h>
27191 #include <time.h>
27192
27193 int
27194 main ()
27195 {
27196 struct tm *tp; tp->tm_sec;
27197   ;
27198   return 0;
27199 }
27200 _ACEOF
27201 rm -f conftest.$ac_objext
27202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27203   (eval $ac_compile) 2>conftest.er1
27204   ac_status=$?
27205   grep -v '^ *+' conftest.er1 >conftest.err
27206   rm -f conftest.er1
27207   cat conftest.err >&5
27208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209   (exit $ac_status); } &&
27210          { ac_try='test -z "$ac_c_werror_flag"
27211                          || test ! -s conftest.err'
27212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27213   (eval $ac_try) 2>&5
27214   ac_status=$?
27215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216   (exit $ac_status); }; } &&
27217          { ac_try='test -s conftest.$ac_objext'
27218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27219   (eval $ac_try) 2>&5
27220   ac_status=$?
27221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222   (exit $ac_status); }; }; then
27223   ac_cv_struct_tm=time.h
27224 else
27225   echo "$as_me: failed program was:" >&5
27226 sed 's/^/| /' conftest.$ac_ext >&5
27227
27228 ac_cv_struct_tm=sys/time.h
27229 fi
27230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27231 fi
27232 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27233 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27234 if test $ac_cv_struct_tm = sys/time.h; then
27235
27236 cat >>confdefs.h <<\_ACEOF
27237 #define TM_IN_SYS_TIME 1
27238 _ACEOF
27239
27240 fi
27241
27242 echo "$as_me:$LINENO: checking for int64_t" >&5
27243 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27244 if test "${ac_cv_type_int64_t+set}" = set; then
27245   echo $ECHO_N "(cached) $ECHO_C" >&6
27246 else
27247   cat >conftest.$ac_ext <<_ACEOF
27248 /* confdefs.h.  */
27249 _ACEOF
27250 cat confdefs.h >>conftest.$ac_ext
27251 cat >>conftest.$ac_ext <<_ACEOF
27252 /* end confdefs.h.  */
27253 $ac_includes_default
27254 int
27255 main ()
27256 {
27257 if ((int64_t *) 0)
27258   return 0;
27259 if (sizeof (int64_t))
27260   return 0;
27261   ;
27262   return 0;
27263 }
27264 _ACEOF
27265 rm -f conftest.$ac_objext
27266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27267   (eval $ac_compile) 2>conftest.er1
27268   ac_status=$?
27269   grep -v '^ *+' conftest.er1 >conftest.err
27270   rm -f conftest.er1
27271   cat conftest.err >&5
27272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273   (exit $ac_status); } &&
27274          { ac_try='test -z "$ac_c_werror_flag"
27275                          || test ! -s conftest.err'
27276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27277   (eval $ac_try) 2>&5
27278   ac_status=$?
27279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27280   (exit $ac_status); }; } &&
27281          { ac_try='test -s conftest.$ac_objext'
27282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27283   (eval $ac_try) 2>&5
27284   ac_status=$?
27285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286   (exit $ac_status); }; }; then
27287   ac_cv_type_int64_t=yes
27288 else
27289   echo "$as_me: failed program was:" >&5
27290 sed 's/^/| /' conftest.$ac_ext >&5
27291
27292 ac_cv_type_int64_t=no
27293 fi
27294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27295 fi
27296 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27297 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27298 if test $ac_cv_type_int64_t = yes; then
27299
27300 cat >>confdefs.h <<_ACEOF
27301 #define HAVE_INT64_T 1
27302 _ACEOF
27303
27304
27305 else
27306   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27307 echo "$as_me: error: Type int64_t required but not found" >&2;}
27308    { (exit 1); exit 1; }; }
27309 fi
27310
27311 echo "$as_me:$LINENO: checking for uint64_t" >&5
27312 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27313 if test "${ac_cv_type_uint64_t+set}" = set; then
27314   echo $ECHO_N "(cached) $ECHO_C" >&6
27315 else
27316   cat >conftest.$ac_ext <<_ACEOF
27317 /* confdefs.h.  */
27318 _ACEOF
27319 cat confdefs.h >>conftest.$ac_ext
27320 cat >>conftest.$ac_ext <<_ACEOF
27321 /* end confdefs.h.  */
27322 $ac_includes_default
27323 int
27324 main ()
27325 {
27326 if ((uint64_t *) 0)
27327   return 0;
27328 if (sizeof (uint64_t))
27329   return 0;
27330   ;
27331   return 0;
27332 }
27333 _ACEOF
27334 rm -f conftest.$ac_objext
27335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27336   (eval $ac_compile) 2>conftest.er1
27337   ac_status=$?
27338   grep -v '^ *+' conftest.er1 >conftest.err
27339   rm -f conftest.er1
27340   cat conftest.err >&5
27341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27342   (exit $ac_status); } &&
27343          { ac_try='test -z "$ac_c_werror_flag"
27344                          || test ! -s conftest.err'
27345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27346   (eval $ac_try) 2>&5
27347   ac_status=$?
27348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349   (exit $ac_status); }; } &&
27350          { ac_try='test -s conftest.$ac_objext'
27351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27352   (eval $ac_try) 2>&5
27353   ac_status=$?
27354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355   (exit $ac_status); }; }; then
27356   ac_cv_type_uint64_t=yes
27357 else
27358   echo "$as_me: failed program was:" >&5
27359 sed 's/^/| /' conftest.$ac_ext >&5
27360
27361 ac_cv_type_uint64_t=no
27362 fi
27363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27364 fi
27365 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27366 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27367 if test $ac_cv_type_uint64_t = yes; then
27368
27369 cat >>confdefs.h <<_ACEOF
27370 #define HAVE_UINT64_T 1
27371 _ACEOF
27372
27373
27374 else
27375   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27376 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27377 if test "${ac_cv_type_u_int64_t+set}" = set; then
27378   echo $ECHO_N "(cached) $ECHO_C" >&6
27379 else
27380   cat >conftest.$ac_ext <<_ACEOF
27381 /* confdefs.h.  */
27382 _ACEOF
27383 cat confdefs.h >>conftest.$ac_ext
27384 cat >>conftest.$ac_ext <<_ACEOF
27385 /* end confdefs.h.  */
27386 $ac_includes_default
27387 int
27388 main ()
27389 {
27390 if ((u_int64_t *) 0)
27391   return 0;
27392 if (sizeof (u_int64_t))
27393   return 0;
27394   ;
27395   return 0;
27396 }
27397 _ACEOF
27398 rm -f conftest.$ac_objext
27399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27400   (eval $ac_compile) 2>conftest.er1
27401   ac_status=$?
27402   grep -v '^ *+' conftest.er1 >conftest.err
27403   rm -f conftest.er1
27404   cat conftest.err >&5
27405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406   (exit $ac_status); } &&
27407          { ac_try='test -z "$ac_c_werror_flag"
27408                          || test ! -s conftest.err'
27409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27410   (eval $ac_try) 2>&5
27411   ac_status=$?
27412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413   (exit $ac_status); }; } &&
27414          { ac_try='test -s conftest.$ac_objext'
27415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27416   (eval $ac_try) 2>&5
27417   ac_status=$?
27418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419   (exit $ac_status); }; }; then
27420   ac_cv_type_u_int64_t=yes
27421 else
27422   echo "$as_me: failed program was:" >&5
27423 sed 's/^/| /' conftest.$ac_ext >&5
27424
27425 ac_cv_type_u_int64_t=no
27426 fi
27427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27428 fi
27429 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27430 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27431 if test $ac_cv_type_u_int64_t = yes; then
27432
27433 cat >>confdefs.h <<_ACEOF
27434 #define HAVE_U_INT64_T 1
27435 _ACEOF
27436
27437
27438 else
27439   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27440 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27441    { (exit 1); exit 1; }; }
27442 fi
27443
27444 fi
27445
27446
27447
27448
27449
27450
27451
27452
27453 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday
27454 do
27455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27456 echo "$as_me:$LINENO: checking for $ac_func" >&5
27457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27458 if eval "test \"\${$as_ac_var+set}\" = set"; then
27459   echo $ECHO_N "(cached) $ECHO_C" >&6
27460 else
27461   cat >conftest.$ac_ext <<_ACEOF
27462 /* confdefs.h.  */
27463 _ACEOF
27464 cat confdefs.h >>conftest.$ac_ext
27465 cat >>conftest.$ac_ext <<_ACEOF
27466 /* end confdefs.h.  */
27467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27468    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27469 #define $ac_func innocuous_$ac_func
27470
27471 /* System header to define __stub macros and hopefully few prototypes,
27472     which can conflict with char $ac_func (); below.
27473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27474     <limits.h> exists even on freestanding compilers.  */
27475
27476 #ifdef __STDC__
27477 # include <limits.h>
27478 #else
27479 # include <assert.h>
27480 #endif
27481
27482 #undef $ac_func
27483
27484 /* Override any gcc2 internal prototype to avoid an error.  */
27485 #ifdef __cplusplus
27486 extern "C"
27487 {
27488 #endif
27489 /* We use char because int might match the return type of a gcc2
27490    builtin and then its argument prototype would still apply.  */
27491 char $ac_func ();
27492 /* The GNU C library defines this for functions which it implements
27493     to always fail with ENOSYS.  Some functions are actually named
27494     something starting with __ and the normal name is an alias.  */
27495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27496 choke me
27497 #else
27498 char (*f) () = $ac_func;
27499 #endif
27500 #ifdef __cplusplus
27501 }
27502 #endif
27503
27504 int
27505 main ()
27506 {
27507 return f != $ac_func;
27508   ;
27509   return 0;
27510 }
27511 _ACEOF
27512 rm -f conftest.$ac_objext conftest$ac_exeext
27513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27514   (eval $ac_link) 2>conftest.er1
27515   ac_status=$?
27516   grep -v '^ *+' conftest.er1 >conftest.err
27517   rm -f conftest.er1
27518   cat conftest.err >&5
27519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520   (exit $ac_status); } &&
27521          { ac_try='test -z "$ac_c_werror_flag"
27522                          || test ! -s conftest.err'
27523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27524   (eval $ac_try) 2>&5
27525   ac_status=$?
27526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527   (exit $ac_status); }; } &&
27528          { ac_try='test -s conftest$ac_exeext'
27529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27530   (eval $ac_try) 2>&5
27531   ac_status=$?
27532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533   (exit $ac_status); }; }; then
27534   eval "$as_ac_var=yes"
27535 else
27536   echo "$as_me: failed program was:" >&5
27537 sed 's/^/| /' conftest.$ac_ext >&5
27538
27539 eval "$as_ac_var=no"
27540 fi
27541 rm -f conftest.err conftest.$ac_objext \
27542       conftest$ac_exeext conftest.$ac_ext
27543 fi
27544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27546 if test `eval echo '${'$as_ac_var'}'` = yes; then
27547   cat >>confdefs.h <<_ACEOF
27548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27549 _ACEOF
27550
27551 fi
27552 done
27553
27554
27555
27556
27557
27558 for ac_func in isatty mkdtemp mkstemp mktemp
27559 do
27560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27561 echo "$as_me:$LINENO: checking for $ac_func" >&5
27562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27563 if eval "test \"\${$as_ac_var+set}\" = set"; then
27564   echo $ECHO_N "(cached) $ECHO_C" >&6
27565 else
27566   cat >conftest.$ac_ext <<_ACEOF
27567 /* confdefs.h.  */
27568 _ACEOF
27569 cat confdefs.h >>conftest.$ac_ext
27570 cat >>conftest.$ac_ext <<_ACEOF
27571 /* end confdefs.h.  */
27572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27574 #define $ac_func innocuous_$ac_func
27575
27576 /* System header to define __stub macros and hopefully few prototypes,
27577     which can conflict with char $ac_func (); below.
27578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27579     <limits.h> exists even on freestanding compilers.  */
27580
27581 #ifdef __STDC__
27582 # include <limits.h>
27583 #else
27584 # include <assert.h>
27585 #endif
27586
27587 #undef $ac_func
27588
27589 /* Override any gcc2 internal prototype to avoid an error.  */
27590 #ifdef __cplusplus
27591 extern "C"
27592 {
27593 #endif
27594 /* We use char because int might match the return type of a gcc2
27595    builtin and then its argument prototype would still apply.  */
27596 char $ac_func ();
27597 /* The GNU C library defines this for functions which it implements
27598     to always fail with ENOSYS.  Some functions are actually named
27599     something starting with __ and the normal name is an alias.  */
27600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27601 choke me
27602 #else
27603 char (*f) () = $ac_func;
27604 #endif
27605 #ifdef __cplusplus
27606 }
27607 #endif
27608
27609 int
27610 main ()
27611 {
27612 return f != $ac_func;
27613   ;
27614   return 0;
27615 }
27616 _ACEOF
27617 rm -f conftest.$ac_objext conftest$ac_exeext
27618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27619   (eval $ac_link) 2>conftest.er1
27620   ac_status=$?
27621   grep -v '^ *+' conftest.er1 >conftest.err
27622   rm -f conftest.er1
27623   cat conftest.err >&5
27624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625   (exit $ac_status); } &&
27626          { ac_try='test -z "$ac_c_werror_flag"
27627                          || test ! -s conftest.err'
27628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27629   (eval $ac_try) 2>&5
27630   ac_status=$?
27631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632   (exit $ac_status); }; } &&
27633          { ac_try='test -s conftest$ac_exeext'
27634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27635   (eval $ac_try) 2>&5
27636   ac_status=$?
27637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638   (exit $ac_status); }; }; then
27639   eval "$as_ac_var=yes"
27640 else
27641   echo "$as_me: failed program was:" >&5
27642 sed 's/^/| /' conftest.$ac_ext >&5
27643
27644 eval "$as_ac_var=no"
27645 fi
27646 rm -f conftest.err conftest.$ac_objext \
27647       conftest$ac_exeext conftest.$ac_ext
27648 fi
27649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27650 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27651 if test `eval echo '${'$as_ac_var'}'` = yes; then
27652   cat >>confdefs.h <<_ACEOF
27653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27654 _ACEOF
27655
27656 fi
27657 done
27658
27659
27660
27661
27662
27663
27664
27665 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27666 do
27667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27668 echo "$as_me:$LINENO: checking for $ac_func" >&5
27669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27670 if eval "test \"\${$as_ac_var+set}\" = set"; then
27671   echo $ECHO_N "(cached) $ECHO_C" >&6
27672 else
27673   cat >conftest.$ac_ext <<_ACEOF
27674 /* confdefs.h.  */
27675 _ACEOF
27676 cat confdefs.h >>conftest.$ac_ext
27677 cat >>conftest.$ac_ext <<_ACEOF
27678 /* end confdefs.h.  */
27679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27681 #define $ac_func innocuous_$ac_func
27682
27683 /* System header to define __stub macros and hopefully few prototypes,
27684     which can conflict with char $ac_func (); below.
27685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27686     <limits.h> exists even on freestanding compilers.  */
27687
27688 #ifdef __STDC__
27689 # include <limits.h>
27690 #else
27691 # include <assert.h>
27692 #endif
27693
27694 #undef $ac_func
27695
27696 /* Override any gcc2 internal prototype to avoid an error.  */
27697 #ifdef __cplusplus
27698 extern "C"
27699 {
27700 #endif
27701 /* We use char because int might match the return type of a gcc2
27702    builtin and then its argument prototype would still apply.  */
27703 char $ac_func ();
27704 /* The GNU C library defines this for functions which it implements
27705     to always fail with ENOSYS.  Some functions are actually named
27706     something starting with __ and the normal name is an alias.  */
27707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27708 choke me
27709 #else
27710 char (*f) () = $ac_func;
27711 #endif
27712 #ifdef __cplusplus
27713 }
27714 #endif
27715
27716 int
27717 main ()
27718 {
27719 return f != $ac_func;
27720   ;
27721   return 0;
27722 }
27723 _ACEOF
27724 rm -f conftest.$ac_objext conftest$ac_exeext
27725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27726   (eval $ac_link) 2>conftest.er1
27727   ac_status=$?
27728   grep -v '^ *+' conftest.er1 >conftest.err
27729   rm -f conftest.er1
27730   cat conftest.err >&5
27731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732   (exit $ac_status); } &&
27733          { ac_try='test -z "$ac_c_werror_flag"
27734                          || test ! -s conftest.err'
27735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27736   (eval $ac_try) 2>&5
27737   ac_status=$?
27738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739   (exit $ac_status); }; } &&
27740          { ac_try='test -s conftest$ac_exeext'
27741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27742   (eval $ac_try) 2>&5
27743   ac_status=$?
27744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745   (exit $ac_status); }; }; then
27746   eval "$as_ac_var=yes"
27747 else
27748   echo "$as_me: failed program was:" >&5
27749 sed 's/^/| /' conftest.$ac_ext >&5
27750
27751 eval "$as_ac_var=no"
27752 fi
27753 rm -f conftest.err conftest.$ac_objext \
27754       conftest$ac_exeext conftest.$ac_ext
27755 fi
27756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27758 if test `eval echo '${'$as_ac_var'}'` = yes; then
27759   cat >>confdefs.h <<_ACEOF
27760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27761 _ACEOF
27762
27763 fi
27764 done
27765
27766
27767
27768
27769 for ac_func in strtoll strtoq sysconf
27770 do
27771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27772 echo "$as_me:$LINENO: checking for $ac_func" >&5
27773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27774 if eval "test \"\${$as_ac_var+set}\" = set"; then
27775   echo $ECHO_N "(cached) $ECHO_C" >&6
27776 else
27777   cat >conftest.$ac_ext <<_ACEOF
27778 /* confdefs.h.  */
27779 _ACEOF
27780 cat confdefs.h >>conftest.$ac_ext
27781 cat >>conftest.$ac_ext <<_ACEOF
27782 /* end confdefs.h.  */
27783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27785 #define $ac_func innocuous_$ac_func
27786
27787 /* System header to define __stub macros and hopefully few prototypes,
27788     which can conflict with char $ac_func (); below.
27789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27790     <limits.h> exists even on freestanding compilers.  */
27791
27792 #ifdef __STDC__
27793 # include <limits.h>
27794 #else
27795 # include <assert.h>
27796 #endif
27797
27798 #undef $ac_func
27799
27800 /* Override any gcc2 internal prototype to avoid an error.  */
27801 #ifdef __cplusplus
27802 extern "C"
27803 {
27804 #endif
27805 /* We use char because int might match the return type of a gcc2
27806    builtin and then its argument prototype would still apply.  */
27807 char $ac_func ();
27808 /* The GNU C library defines this for functions which it implements
27809     to always fail with ENOSYS.  Some functions are actually named
27810     something starting with __ and the normal name is an alias.  */
27811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27812 choke me
27813 #else
27814 char (*f) () = $ac_func;
27815 #endif
27816 #ifdef __cplusplus
27817 }
27818 #endif
27819
27820 int
27821 main ()
27822 {
27823 return f != $ac_func;
27824   ;
27825   return 0;
27826 }
27827 _ACEOF
27828 rm -f conftest.$ac_objext conftest$ac_exeext
27829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27830   (eval $ac_link) 2>conftest.er1
27831   ac_status=$?
27832   grep -v '^ *+' conftest.er1 >conftest.err
27833   rm -f conftest.er1
27834   cat conftest.err >&5
27835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836   (exit $ac_status); } &&
27837          { ac_try='test -z "$ac_c_werror_flag"
27838                          || test ! -s conftest.err'
27839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27840   (eval $ac_try) 2>&5
27841   ac_status=$?
27842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843   (exit $ac_status); }; } &&
27844          { ac_try='test -s conftest$ac_exeext'
27845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27846   (eval $ac_try) 2>&5
27847   ac_status=$?
27848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849   (exit $ac_status); }; }; then
27850   eval "$as_ac_var=yes"
27851 else
27852   echo "$as_me: failed program was:" >&5
27853 sed 's/^/| /' conftest.$ac_ext >&5
27854
27855 eval "$as_ac_var=no"
27856 fi
27857 rm -f conftest.err conftest.$ac_objext \
27858       conftest$ac_exeext conftest.$ac_ext
27859 fi
27860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27862 if test `eval echo '${'$as_ac_var'}'` = yes; then
27863   cat >>confdefs.h <<_ACEOF
27864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27865 _ACEOF
27866
27867 fi
27868 done
27869
27870 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27871 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27872 if test "${llvm_cv_c_printf_a+set}" = set; then
27873   echo $ECHO_N "(cached) $ECHO_C" >&6
27874 else
27875   ac_ext=c
27876 ac_cpp='$CPP $CPPFLAGS'
27877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27880
27881  if test "$cross_compiling" = yes; then
27882   llvmac_cv_c_printf_a=no
27883 else
27884   cat >conftest.$ac_ext <<_ACEOF
27885
27886   /* confdefs.h.  */
27887 _ACEOF
27888 cat confdefs.h >>conftest.$ac_ext
27889 cat >>conftest.$ac_ext <<_ACEOF
27890 /* end confdefs.h.  */
27891
27892 #include <stdio.h>
27893 #include <stdlib.h>
27894
27895 int
27896 main ()
27897 {
27898
27899 volatile double A, B;
27900 char Buffer[100];
27901 A = 1;
27902 A /= 10.0;
27903 sprintf(Buffer, "%a", A);
27904 B = atof(Buffer);
27905 if (A != B)
27906   return (1);
27907 if (A != 0x1.999999999999ap-4)
27908   return (1);
27909 return (0);
27910   ;
27911   return 0;
27912 }
27913 _ACEOF
27914 rm -f conftest$ac_exeext
27915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27916   (eval $ac_link) 2>&5
27917   ac_status=$?
27918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27919   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27921   (eval $ac_try) 2>&5
27922   ac_status=$?
27923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27924   (exit $ac_status); }; }; then
27925   llvm_cv_c_printf_a=yes
27926 else
27927   echo "$as_me: program exited with status $ac_status" >&5
27928 echo "$as_me: failed program was:" >&5
27929 sed 's/^/| /' conftest.$ac_ext >&5
27930
27931 ( exit $ac_status )
27932 llvmac_cv_c_printf_a=no
27933 fi
27934 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27935 fi
27936  ac_ext=c
27937 ac_cpp='$CPP $CPPFLAGS'
27938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27941
27942 fi
27943 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27944 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27945  if test "$llvm_cv_c_printf_a" = "yes"; then
27946
27947 cat >>confdefs.h <<\_ACEOF
27948 #define HAVE_PRINTF_A 1
27949 _ACEOF
27950
27951  fi
27952
27953 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27954 # for constant arguments.  Useless!
27955 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27956 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27957 if test "${ac_cv_working_alloca_h+set}" = set; then
27958   echo $ECHO_N "(cached) $ECHO_C" >&6
27959 else
27960   cat >conftest.$ac_ext <<_ACEOF
27961 /* confdefs.h.  */
27962 _ACEOF
27963 cat confdefs.h >>conftest.$ac_ext
27964 cat >>conftest.$ac_ext <<_ACEOF
27965 /* end confdefs.h.  */
27966 #include <alloca.h>
27967 int
27968 main ()
27969 {
27970 char *p = (char *) alloca (2 * sizeof (int));
27971   ;
27972   return 0;
27973 }
27974 _ACEOF
27975 rm -f conftest.$ac_objext conftest$ac_exeext
27976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27977   (eval $ac_link) 2>conftest.er1
27978   ac_status=$?
27979   grep -v '^ *+' conftest.er1 >conftest.err
27980   rm -f conftest.er1
27981   cat conftest.err >&5
27982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983   (exit $ac_status); } &&
27984          { ac_try='test -z "$ac_c_werror_flag"
27985                          || test ! -s conftest.err'
27986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27987   (eval $ac_try) 2>&5
27988   ac_status=$?
27989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990   (exit $ac_status); }; } &&
27991          { ac_try='test -s conftest$ac_exeext'
27992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27993   (eval $ac_try) 2>&5
27994   ac_status=$?
27995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996   (exit $ac_status); }; }; then
27997   ac_cv_working_alloca_h=yes
27998 else
27999   echo "$as_me: failed program was:" >&5
28000 sed 's/^/| /' conftest.$ac_ext >&5
28001
28002 ac_cv_working_alloca_h=no
28003 fi
28004 rm -f conftest.err conftest.$ac_objext \
28005       conftest$ac_exeext conftest.$ac_ext
28006 fi
28007 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28008 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28009 if test $ac_cv_working_alloca_h = yes; then
28010
28011 cat >>confdefs.h <<\_ACEOF
28012 #define HAVE_ALLOCA_H 1
28013 _ACEOF
28014
28015 fi
28016
28017 echo "$as_me:$LINENO: checking for alloca" >&5
28018 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28019 if test "${ac_cv_func_alloca_works+set}" = set; then
28020   echo $ECHO_N "(cached) $ECHO_C" >&6
28021 else
28022   cat >conftest.$ac_ext <<_ACEOF
28023 /* confdefs.h.  */
28024 _ACEOF
28025 cat confdefs.h >>conftest.$ac_ext
28026 cat >>conftest.$ac_ext <<_ACEOF
28027 /* end confdefs.h.  */
28028 #ifdef __GNUC__
28029 # define alloca __builtin_alloca
28030 #else
28031 # ifdef _MSC_VER
28032 #  include <malloc.h>
28033 #  define alloca _alloca
28034 # else
28035 #  if HAVE_ALLOCA_H
28036 #   include <alloca.h>
28037 #  else
28038 #   ifdef _AIX
28039  #pragma alloca
28040 #   else
28041 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28042 char *alloca ();
28043 #    endif
28044 #   endif
28045 #  endif
28046 # endif
28047 #endif
28048
28049 int
28050 main ()
28051 {
28052 char *p = (char *) alloca (1);
28053   ;
28054   return 0;
28055 }
28056 _ACEOF
28057 rm -f conftest.$ac_objext conftest$ac_exeext
28058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28059   (eval $ac_link) 2>conftest.er1
28060   ac_status=$?
28061   grep -v '^ *+' conftest.er1 >conftest.err
28062   rm -f conftest.er1
28063   cat conftest.err >&5
28064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065   (exit $ac_status); } &&
28066          { ac_try='test -z "$ac_c_werror_flag"
28067                          || test ! -s conftest.err'
28068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28069   (eval $ac_try) 2>&5
28070   ac_status=$?
28071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072   (exit $ac_status); }; } &&
28073          { ac_try='test -s conftest$ac_exeext'
28074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28075   (eval $ac_try) 2>&5
28076   ac_status=$?
28077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078   (exit $ac_status); }; }; then
28079   ac_cv_func_alloca_works=yes
28080 else
28081   echo "$as_me: failed program was:" >&5
28082 sed 's/^/| /' conftest.$ac_ext >&5
28083
28084 ac_cv_func_alloca_works=no
28085 fi
28086 rm -f conftest.err conftest.$ac_objext \
28087       conftest$ac_exeext conftest.$ac_ext
28088 fi
28089 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28090 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28091
28092 if test $ac_cv_func_alloca_works = yes; then
28093
28094 cat >>confdefs.h <<\_ACEOF
28095 #define HAVE_ALLOCA 1
28096 _ACEOF
28097
28098 else
28099   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28100 # that cause trouble.  Some versions do not even contain alloca or
28101 # contain a buggy version.  If you still want to use their alloca,
28102 # use ar to extract alloca.o from them instead of compiling alloca.c.
28103
28104 ALLOCA=alloca.$ac_objext
28105
28106 cat >>confdefs.h <<\_ACEOF
28107 #define C_ALLOCA 1
28108 _ACEOF
28109
28110
28111 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28112 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28113 if test "${ac_cv_os_cray+set}" = set; then
28114   echo $ECHO_N "(cached) $ECHO_C" >&6
28115 else
28116   cat >conftest.$ac_ext <<_ACEOF
28117 /* confdefs.h.  */
28118 _ACEOF
28119 cat confdefs.h >>conftest.$ac_ext
28120 cat >>conftest.$ac_ext <<_ACEOF
28121 /* end confdefs.h.  */
28122 #if defined(CRAY) && ! defined(CRAY2)
28123 webecray
28124 #else
28125 wenotbecray
28126 #endif
28127
28128 _ACEOF
28129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28130   $EGREP "webecray" >/dev/null 2>&1; then
28131   ac_cv_os_cray=yes
28132 else
28133   ac_cv_os_cray=no
28134 fi
28135 rm -f conftest*
28136
28137 fi
28138 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28139 echo "${ECHO_T}$ac_cv_os_cray" >&6
28140 if test $ac_cv_os_cray = yes; then
28141   for ac_func in _getb67 GETB67 getb67; do
28142     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28143 echo "$as_me:$LINENO: checking for $ac_func" >&5
28144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28145 if eval "test \"\${$as_ac_var+set}\" = set"; then
28146   echo $ECHO_N "(cached) $ECHO_C" >&6
28147 else
28148   cat >conftest.$ac_ext <<_ACEOF
28149 /* confdefs.h.  */
28150 _ACEOF
28151 cat confdefs.h >>conftest.$ac_ext
28152 cat >>conftest.$ac_ext <<_ACEOF
28153 /* end confdefs.h.  */
28154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28156 #define $ac_func innocuous_$ac_func
28157
28158 /* System header to define __stub macros and hopefully few prototypes,
28159     which can conflict with char $ac_func (); below.
28160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28161     <limits.h> exists even on freestanding compilers.  */
28162
28163 #ifdef __STDC__
28164 # include <limits.h>
28165 #else
28166 # include <assert.h>
28167 #endif
28168
28169 #undef $ac_func
28170
28171 /* Override any gcc2 internal prototype to avoid an error.  */
28172 #ifdef __cplusplus
28173 extern "C"
28174 {
28175 #endif
28176 /* We use char because int might match the return type of a gcc2
28177    builtin and then its argument prototype would still apply.  */
28178 char $ac_func ();
28179 /* The GNU C library defines this for functions which it implements
28180     to always fail with ENOSYS.  Some functions are actually named
28181     something starting with __ and the normal name is an alias.  */
28182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28183 choke me
28184 #else
28185 char (*f) () = $ac_func;
28186 #endif
28187 #ifdef __cplusplus
28188 }
28189 #endif
28190
28191 int
28192 main ()
28193 {
28194 return f != $ac_func;
28195   ;
28196   return 0;
28197 }
28198 _ACEOF
28199 rm -f conftest.$ac_objext conftest$ac_exeext
28200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28201   (eval $ac_link) 2>conftest.er1
28202   ac_status=$?
28203   grep -v '^ *+' conftest.er1 >conftest.err
28204   rm -f conftest.er1
28205   cat conftest.err >&5
28206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207   (exit $ac_status); } &&
28208          { ac_try='test -z "$ac_c_werror_flag"
28209                          || test ! -s conftest.err'
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); }; } &&
28215          { ac_try='test -s conftest$ac_exeext'
28216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28217   (eval $ac_try) 2>&5
28218   ac_status=$?
28219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220   (exit $ac_status); }; }; then
28221   eval "$as_ac_var=yes"
28222 else
28223   echo "$as_me: failed program was:" >&5
28224 sed 's/^/| /' conftest.$ac_ext >&5
28225
28226 eval "$as_ac_var=no"
28227 fi
28228 rm -f conftest.err conftest.$ac_objext \
28229       conftest$ac_exeext conftest.$ac_ext
28230 fi
28231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28233 if test `eval echo '${'$as_ac_var'}'` = yes; then
28234
28235 cat >>confdefs.h <<_ACEOF
28236 #define CRAY_STACKSEG_END $ac_func
28237 _ACEOF
28238
28239     break
28240 fi
28241
28242   done
28243 fi
28244
28245 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28246 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28247 if test "${ac_cv_c_stack_direction+set}" = set; then
28248   echo $ECHO_N "(cached) $ECHO_C" >&6
28249 else
28250   if test "$cross_compiling" = yes; then
28251   ac_cv_c_stack_direction=0
28252 else
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 int
28260 find_stack_direction ()
28261 {
28262   static char *addr = 0;
28263   auto char dummy;
28264   if (addr == 0)
28265     {
28266       addr = &dummy;
28267       return find_stack_direction ();
28268     }
28269   else
28270     return (&dummy > addr) ? 1 : -1;
28271 }
28272
28273 int
28274 main ()
28275 {
28276   exit (find_stack_direction () < 0);
28277 }
28278 _ACEOF
28279 rm -f conftest$ac_exeext
28280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28281   (eval $ac_link) 2>&5
28282   ac_status=$?
28283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28286   (eval $ac_try) 2>&5
28287   ac_status=$?
28288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289   (exit $ac_status); }; }; then
28290   ac_cv_c_stack_direction=1
28291 else
28292   echo "$as_me: program exited with status $ac_status" >&5
28293 echo "$as_me: failed program was:" >&5
28294 sed 's/^/| /' conftest.$ac_ext >&5
28295
28296 ( exit $ac_status )
28297 ac_cv_c_stack_direction=-1
28298 fi
28299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28300 fi
28301 fi
28302 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28303 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28304
28305 cat >>confdefs.h <<_ACEOF
28306 #define STACK_DIRECTION $ac_cv_c_stack_direction
28307 _ACEOF
28308
28309
28310 fi
28311
28312
28313 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28314 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28315 if test "${ac_cv_func_rand48+set}" = set; then
28316   echo $ECHO_N "(cached) $ECHO_C" >&6
28317 else
28318   ac_ext=cc
28319 ac_cpp='$CXXCPP $CPPFLAGS'
28320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28323
28324    cat >conftest.$ac_ext <<_ACEOF
28325 /* confdefs.h.  */
28326 _ACEOF
28327 cat confdefs.h >>conftest.$ac_ext
28328 cat >>conftest.$ac_ext <<_ACEOF
28329 /* end confdefs.h.  */
28330 #include <stdlib.h>
28331 int
28332 main ()
28333 {
28334 srand48(0);lrand48();drand48();
28335   ;
28336   return 0;
28337 }
28338 _ACEOF
28339 rm -f conftest.$ac_objext
28340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28341   (eval $ac_compile) 2>conftest.er1
28342   ac_status=$?
28343   grep -v '^ *+' conftest.er1 >conftest.err
28344   rm -f conftest.er1
28345   cat conftest.err >&5
28346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347   (exit $ac_status); } &&
28348          { ac_try='test -z "$ac_cxx_werror_flag"
28349                          || test ! -s conftest.err'
28350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28351   (eval $ac_try) 2>&5
28352   ac_status=$?
28353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28354   (exit $ac_status); }; } &&
28355          { ac_try='test -s conftest.$ac_objext'
28356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28357   (eval $ac_try) 2>&5
28358   ac_status=$?
28359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360   (exit $ac_status); }; }; then
28361   ac_cv_func_rand48=yes
28362 else
28363   echo "$as_me: failed program was:" >&5
28364 sed 's/^/| /' conftest.$ac_ext >&5
28365
28366 ac_cv_func_rand48=no
28367 fi
28368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28369   ac_ext=c
28370 ac_cpp='$CPP $CPPFLAGS'
28371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28374
28375 fi
28376 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28377 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28378
28379 if test "$ac_cv_func_rand48" = "yes" ; then
28380
28381 cat >>confdefs.h <<\_ACEOF
28382 #define HAVE_RAND48 1
28383 _ACEOF
28384
28385 fi
28386
28387
28388 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28389 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28390 if test "${ac_cv_cxx_namespaces+set}" = set; then
28391   echo $ECHO_N "(cached) $ECHO_C" >&6
28392 else
28393   ac_ext=cc
28394 ac_cpp='$CXXCPP $CPPFLAGS'
28395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28398
28399  cat >conftest.$ac_ext <<_ACEOF
28400 /* confdefs.h.  */
28401 _ACEOF
28402 cat confdefs.h >>conftest.$ac_ext
28403 cat >>conftest.$ac_ext <<_ACEOF
28404 /* end confdefs.h.  */
28405 namespace Outer { namespace Inner { int i = 0; }}
28406 int
28407 main ()
28408 {
28409 using namespace Outer::Inner; return i;
28410   ;
28411   return 0;
28412 }
28413 _ACEOF
28414 rm -f conftest.$ac_objext
28415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28416   (eval $ac_compile) 2>conftest.er1
28417   ac_status=$?
28418   grep -v '^ *+' conftest.er1 >conftest.err
28419   rm -f conftest.er1
28420   cat conftest.err >&5
28421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422   (exit $ac_status); } &&
28423          { ac_try='test -z "$ac_cxx_werror_flag"
28424                          || test ! -s conftest.err'
28425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28426   (eval $ac_try) 2>&5
28427   ac_status=$?
28428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429   (exit $ac_status); }; } &&
28430          { ac_try='test -s conftest.$ac_objext'
28431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28432   (eval $ac_try) 2>&5
28433   ac_status=$?
28434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435   (exit $ac_status); }; }; then
28436   ac_cv_cxx_namespaces=yes
28437 else
28438   echo "$as_me: failed program was:" >&5
28439 sed 's/^/| /' conftest.$ac_ext >&5
28440
28441 ac_cv_cxx_namespaces=no
28442 fi
28443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28444  ac_ext=c
28445 ac_cpp='$CPP $CPPFLAGS'
28446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28449
28450
28451 fi
28452 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28453 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28454 if test "$ac_cv_cxx_namespaces" = yes; then
28455
28456 cat >>confdefs.h <<\_ACEOF
28457 #define HAVE_NAMESPACES
28458 _ACEOF
28459
28460 fi
28461
28462 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28463 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28464 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28465   echo $ECHO_N "(cached) $ECHO_C" >&6
28466 else
28467
28468   ac_ext=cc
28469 ac_cpp='$CXXCPP $CPPFLAGS'
28470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28473
28474   cat >conftest.$ac_ext <<_ACEOF
28475 /* confdefs.h.  */
28476 _ACEOF
28477 cat confdefs.h >>conftest.$ac_ext
28478 cat >>conftest.$ac_ext <<_ACEOF
28479 /* end confdefs.h.  */
28480 #include <ext/hash_map>
28481 #ifdef HAVE_NAMESPACES
28482 using namespace std;
28483 #endif
28484 int
28485 main ()
28486 {
28487 hash_map<int, int> t;
28488   ;
28489   return 0;
28490 }
28491 _ACEOF
28492 rm -f conftest.$ac_objext
28493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28494   (eval $ac_compile) 2>conftest.er1
28495   ac_status=$?
28496   grep -v '^ *+' conftest.er1 >conftest.err
28497   rm -f conftest.er1
28498   cat conftest.err >&5
28499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500   (exit $ac_status); } &&
28501          { ac_try='test -z "$ac_cxx_werror_flag"
28502                          || test ! -s conftest.err'
28503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28504   (eval $ac_try) 2>&5
28505   ac_status=$?
28506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507   (exit $ac_status); }; } &&
28508          { ac_try='test -s conftest.$ac_objext'
28509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28510   (eval $ac_try) 2>&5
28511   ac_status=$?
28512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513   (exit $ac_status); }; }; then
28514   ac_cv_cxx_have_std_ext_hash_map=yes
28515 else
28516   echo "$as_me: failed program was:" >&5
28517 sed 's/^/| /' conftest.$ac_ext >&5
28518
28519 ac_cv_cxx_have_std_ext_hash_map=no
28520 fi
28521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28522   ac_ext=c
28523 ac_cpp='$CPP $CPPFLAGS'
28524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28527
28528 fi
28529 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28530 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28531  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28532  then
28533
28534 cat >>confdefs.h <<\_ACEOF
28535 #define HAVE_STD_EXT_HASH_MAP 1
28536 _ACEOF
28537
28538  else
28539
28540 cat >>confdefs.h <<\_ACEOF
28541 #define HAVE_STD_EXT_HASH_MAP 0
28542 _ACEOF
28543
28544  fi
28545
28546  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28547 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28548 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28549   echo $ECHO_N "(cached) $ECHO_C" >&6
28550 else
28551
28552   ac_ext=cc
28553 ac_cpp='$CXXCPP $CPPFLAGS'
28554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28557
28558   cat >conftest.$ac_ext <<_ACEOF
28559 /* confdefs.h.  */
28560 _ACEOF
28561 cat confdefs.h >>conftest.$ac_ext
28562 cat >>conftest.$ac_ext <<_ACEOF
28563 /* end confdefs.h.  */
28564 #include <ext/hash_map>
28565 #ifdef HAVE_NAMESPACES
28566 using namespace __gnu_cxx;
28567 #endif
28568 int
28569 main ()
28570 {
28571 hash_map<int,int> t;
28572   ;
28573   return 0;
28574 }
28575 _ACEOF
28576 rm -f conftest.$ac_objext
28577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28578   (eval $ac_compile) 2>conftest.er1
28579   ac_status=$?
28580   grep -v '^ *+' conftest.er1 >conftest.err
28581   rm -f conftest.er1
28582   cat conftest.err >&5
28583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584   (exit $ac_status); } &&
28585          { ac_try='test -z "$ac_cxx_werror_flag"
28586                          || test ! -s conftest.err'
28587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28588   (eval $ac_try) 2>&5
28589   ac_status=$?
28590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591   (exit $ac_status); }; } &&
28592          { ac_try='test -s conftest.$ac_objext'
28593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28594   (eval $ac_try) 2>&5
28595   ac_status=$?
28596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597   (exit $ac_status); }; }; then
28598   ac_cv_cxx_have_gnu_ext_hash_map=yes
28599 else
28600   echo "$as_me: failed program was:" >&5
28601 sed 's/^/| /' conftest.$ac_ext >&5
28602
28603 ac_cv_cxx_have_gnu_ext_hash_map=no
28604 fi
28605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28606   ac_ext=c
28607 ac_cpp='$CPP $CPPFLAGS'
28608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28611
28612 fi
28613 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28614 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28615  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28616  then
28617
28618 cat >>confdefs.h <<\_ACEOF
28619 #define HAVE_GNU_EXT_HASH_MAP 1
28620 _ACEOF
28621
28622  else
28623
28624 cat >>confdefs.h <<\_ACEOF
28625 #define HAVE_GNU_EXT_HASH_MAP 0
28626 _ACEOF
28627
28628  fi
28629
28630  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28631 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28632 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28633   echo $ECHO_N "(cached) $ECHO_C" >&6
28634 else
28635
28636   ac_ext=cc
28637 ac_cpp='$CXXCPP $CPPFLAGS'
28638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28641
28642   cat >conftest.$ac_ext <<_ACEOF
28643 /* confdefs.h.  */
28644 _ACEOF
28645 cat confdefs.h >>conftest.$ac_ext
28646 cat >>conftest.$ac_ext <<_ACEOF
28647 /* end confdefs.h.  */
28648 #include <hash_map>
28649 int
28650 main ()
28651 {
28652 hash_map<int,int> t;
28653   ;
28654   return 0;
28655 }
28656 _ACEOF
28657 rm -f conftest.$ac_objext
28658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28659   (eval $ac_compile) 2>conftest.er1
28660   ac_status=$?
28661   grep -v '^ *+' conftest.er1 >conftest.err
28662   rm -f conftest.er1
28663   cat conftest.err >&5
28664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665   (exit $ac_status); } &&
28666          { ac_try='test -z "$ac_cxx_werror_flag"
28667                          || test ! -s conftest.err'
28668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28669   (eval $ac_try) 2>&5
28670   ac_status=$?
28671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672   (exit $ac_status); }; } &&
28673          { ac_try='test -s conftest.$ac_objext'
28674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28675   (eval $ac_try) 2>&5
28676   ac_status=$?
28677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678   (exit $ac_status); }; }; then
28679   ac_cv_cxx_have_global_hash_map=yes
28680 else
28681   echo "$as_me: failed program was:" >&5
28682 sed 's/^/| /' conftest.$ac_ext >&5
28683
28684 ac_cv_cxx_have_global_hash_map=no
28685 fi
28686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28687   ac_ext=c
28688 ac_cpp='$CPP $CPPFLAGS'
28689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28692
28693 fi
28694 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28695 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28696  if test "$ac_cv_cxx_have_global_hash_map" = yes
28697  then
28698
28699 cat >>confdefs.h <<\_ACEOF
28700 #define HAVE_GLOBAL_HASH_MAP 1
28701 _ACEOF
28702
28703  else
28704
28705 cat >>confdefs.h <<\_ACEOF
28706 #define HAVE_GLOBAL_HASH_MAP 0
28707 _ACEOF
28708
28709  fi
28710
28711 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28712 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28713 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28714   echo $ECHO_N "(cached) $ECHO_C" >&6
28715 else
28716
28717   ac_ext=cc
28718 ac_cpp='$CXXCPP $CPPFLAGS'
28719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28722
28723   cat >conftest.$ac_ext <<_ACEOF
28724 /* confdefs.h.  */
28725 _ACEOF
28726 cat confdefs.h >>conftest.$ac_ext
28727 cat >>conftest.$ac_ext <<_ACEOF
28728 /* end confdefs.h.  */
28729 #include <ext/hash_set>
28730 #ifdef HAVE_NAMESPACES
28731 using namespace std;
28732 #endif
28733 int
28734 main ()
28735 {
28736 hash_set<int> t;
28737   ;
28738   return 0;
28739 }
28740 _ACEOF
28741 rm -f conftest.$ac_objext
28742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28743   (eval $ac_compile) 2>conftest.er1
28744   ac_status=$?
28745   grep -v '^ *+' conftest.er1 >conftest.err
28746   rm -f conftest.er1
28747   cat conftest.err >&5
28748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749   (exit $ac_status); } &&
28750          { ac_try='test -z "$ac_cxx_werror_flag"
28751                          || test ! -s conftest.err'
28752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28753   (eval $ac_try) 2>&5
28754   ac_status=$?
28755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756   (exit $ac_status); }; } &&
28757          { ac_try='test -s conftest.$ac_objext'
28758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28759   (eval $ac_try) 2>&5
28760   ac_status=$?
28761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762   (exit $ac_status); }; }; then
28763   ac_cv_cxx_have_std_ext_hash_set=yes
28764 else
28765   echo "$as_me: failed program was:" >&5
28766 sed 's/^/| /' conftest.$ac_ext >&5
28767
28768 ac_cv_cxx_have_std_ext_hash_set=no
28769 fi
28770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28771   ac_ext=c
28772 ac_cpp='$CPP $CPPFLAGS'
28773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28776
28777 fi
28778 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28779 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28780  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28781  then
28782
28783 cat >>confdefs.h <<\_ACEOF
28784 #define HAVE_STD_EXT_HASH_SET 1
28785 _ACEOF
28786
28787  else
28788
28789 cat >>confdefs.h <<\_ACEOF
28790 #define HAVE_STD_EXT_HASH_SET 0
28791 _ACEOF
28792
28793  fi
28794
28795  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28796 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28797 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28798   echo $ECHO_N "(cached) $ECHO_C" >&6
28799 else
28800
28801   ac_ext=cc
28802 ac_cpp='$CXXCPP $CPPFLAGS'
28803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28806
28807   cat >conftest.$ac_ext <<_ACEOF
28808 /* confdefs.h.  */
28809 _ACEOF
28810 cat confdefs.h >>conftest.$ac_ext
28811 cat >>conftest.$ac_ext <<_ACEOF
28812 /* end confdefs.h.  */
28813 #include <ext/hash_set>
28814 #ifdef HAVE_NAMESPACES
28815 using namespace __gnu_cxx;
28816 #endif
28817 int
28818 main ()
28819 {
28820 hash_set<int> t;
28821   ;
28822   return 0;
28823 }
28824 _ACEOF
28825 rm -f conftest.$ac_objext
28826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28827   (eval $ac_compile) 2>conftest.er1
28828   ac_status=$?
28829   grep -v '^ *+' conftest.er1 >conftest.err
28830   rm -f conftest.er1
28831   cat conftest.err >&5
28832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833   (exit $ac_status); } &&
28834          { ac_try='test -z "$ac_cxx_werror_flag"
28835                          || test ! -s conftest.err'
28836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28837   (eval $ac_try) 2>&5
28838   ac_status=$?
28839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840   (exit $ac_status); }; } &&
28841          { ac_try='test -s conftest.$ac_objext'
28842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28843   (eval $ac_try) 2>&5
28844   ac_status=$?
28845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846   (exit $ac_status); }; }; then
28847   ac_cv_cxx_have_gnu_ext_hash_set=yes
28848 else
28849   echo "$as_me: failed program was:" >&5
28850 sed 's/^/| /' conftest.$ac_ext >&5
28851
28852 ac_cv_cxx_have_gnu_ext_hash_set=no
28853 fi
28854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28855   ac_ext=c
28856 ac_cpp='$CPP $CPPFLAGS'
28857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28860
28861 fi
28862 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28863 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28864  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28865  then
28866
28867 cat >>confdefs.h <<\_ACEOF
28868 #define HAVE_GNU_EXT_HASH_SET 1
28869 _ACEOF
28870
28871  else
28872
28873 cat >>confdefs.h <<\_ACEOF
28874 #define HAVE_GNU_EXT_HASH_SET 0
28875 _ACEOF
28876
28877  fi
28878
28879  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28880 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28881 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28882   echo $ECHO_N "(cached) $ECHO_C" >&6
28883 else
28884
28885   ac_ext=cc
28886 ac_cpp='$CXXCPP $CPPFLAGS'
28887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28890
28891   cat >conftest.$ac_ext <<_ACEOF
28892 /* confdefs.h.  */
28893 _ACEOF
28894 cat confdefs.h >>conftest.$ac_ext
28895 cat >>conftest.$ac_ext <<_ACEOF
28896 /* end confdefs.h.  */
28897 #include <hash_set>
28898 int
28899 main ()
28900 {
28901 hash_set<int> t; return 0;
28902   ;
28903   return 0;
28904 }
28905 _ACEOF
28906 rm -f conftest.$ac_objext
28907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28908   (eval $ac_compile) 2>conftest.er1
28909   ac_status=$?
28910   grep -v '^ *+' conftest.er1 >conftest.err
28911   rm -f conftest.er1
28912   cat conftest.err >&5
28913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914   (exit $ac_status); } &&
28915          { ac_try='test -z "$ac_cxx_werror_flag"
28916                          || test ! -s conftest.err'
28917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28918   (eval $ac_try) 2>&5
28919   ac_status=$?
28920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28921   (exit $ac_status); }; } &&
28922          { ac_try='test -s conftest.$ac_objext'
28923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28924   (eval $ac_try) 2>&5
28925   ac_status=$?
28926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927   (exit $ac_status); }; }; then
28928   ac_cv_cxx_have_global_hash_set=yes
28929 else
28930   echo "$as_me: failed program was:" >&5
28931 sed 's/^/| /' conftest.$ac_ext >&5
28932
28933 ac_cv_cxx_have_global_hash_set=no
28934 fi
28935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28936   ac_ext=c
28937 ac_cpp='$CPP $CPPFLAGS'
28938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28941
28942 fi
28943 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28944 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28945  if test "$ac_cv_cxx_have_global_hash_set" = yes
28946  then
28947
28948 cat >>confdefs.h <<\_ACEOF
28949 #define HAVE_GLOBAL_HASH_SET 1
28950 _ACEOF
28951
28952  else
28953
28954 cat >>confdefs.h <<\_ACEOF
28955 #define HAVE_GLOBAL_HASH_SET 0
28956 _ACEOF
28957
28958  fi
28959
28960 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28961 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28962 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28963   echo $ECHO_N "(cached) $ECHO_C" >&6
28964 else
28965
28966   ac_ext=cc
28967 ac_cpp='$CXXCPP $CPPFLAGS'
28968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28971
28972   cat >conftest.$ac_ext <<_ACEOF
28973 /* confdefs.h.  */
28974 _ACEOF
28975 cat confdefs.h >>conftest.$ac_ext
28976 cat >>conftest.$ac_ext <<_ACEOF
28977 /* end confdefs.h.  */
28978 #include <iterator>
28979 #ifdef HAVE_NAMESPACES
28980 using namespace std;
28981 #endif
28982 int
28983 main ()
28984 {
28985 iterator<int,int,int> t; return 0;
28986   ;
28987   return 0;
28988 }
28989 _ACEOF
28990 rm -f conftest.$ac_objext
28991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28992   (eval $ac_compile) 2>conftest.er1
28993   ac_status=$?
28994   grep -v '^ *+' conftest.er1 >conftest.err
28995   rm -f conftest.er1
28996   cat conftest.err >&5
28997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998   (exit $ac_status); } &&
28999          { ac_try='test -z "$ac_cxx_werror_flag"
29000                          || test ! -s conftest.err'
29001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29002   (eval $ac_try) 2>&5
29003   ac_status=$?
29004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005   (exit $ac_status); }; } &&
29006          { ac_try='test -s conftest.$ac_objext'
29007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29008   (eval $ac_try) 2>&5
29009   ac_status=$?
29010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011   (exit $ac_status); }; }; then
29012   ac_cv_cxx_have_std_iterator=yes
29013 else
29014   echo "$as_me: failed program was:" >&5
29015 sed 's/^/| /' conftest.$ac_ext >&5
29016
29017 ac_cv_cxx_have_std_iterator=no
29018 fi
29019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29020   ac_ext=c
29021 ac_cpp='$CPP $CPPFLAGS'
29022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29025
29026
29027 fi
29028 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29029 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29030 if test "$ac_cv_cxx_have_std_iterator" = yes
29031 then
29032
29033 cat >>confdefs.h <<\_ACEOF
29034 #define HAVE_STD_ITERATOR 1
29035 _ACEOF
29036
29037 else
29038
29039 cat >>confdefs.h <<\_ACEOF
29040 #define HAVE_STD_ITERATOR 0
29041 _ACEOF
29042
29043 fi
29044
29045 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29046 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29047 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29048   echo $ECHO_N "(cached) $ECHO_C" >&6
29049 else
29050
29051   ac_ext=cc
29052 ac_cpp='$CXXCPP $CPPFLAGS'
29053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29056
29057   cat >conftest.$ac_ext <<_ACEOF
29058 /* confdefs.h.  */
29059 _ACEOF
29060 cat confdefs.h >>conftest.$ac_ext
29061 cat >>conftest.$ac_ext <<_ACEOF
29062 /* end confdefs.h.  */
29063 #include <iterator>
29064 #ifdef HAVE_NAMESPACES
29065 using namespace std;
29066 #endif
29067 int
29068 main ()
29069 {
29070 bidirectional_iterator<int,int> t; return 0;
29071   ;
29072   return 0;
29073 }
29074 _ACEOF
29075 rm -f conftest.$ac_objext
29076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29077   (eval $ac_compile) 2>conftest.er1
29078   ac_status=$?
29079   grep -v '^ *+' conftest.er1 >conftest.err
29080   rm -f conftest.er1
29081   cat conftest.err >&5
29082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083   (exit $ac_status); } &&
29084          { ac_try='test -z "$ac_cxx_werror_flag"
29085                          || test ! -s conftest.err'
29086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29087   (eval $ac_try) 2>&5
29088   ac_status=$?
29089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090   (exit $ac_status); }; } &&
29091          { ac_try='test -s conftest.$ac_objext'
29092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29093   (eval $ac_try) 2>&5
29094   ac_status=$?
29095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096   (exit $ac_status); }; }; then
29097   ac_cv_cxx_have_bi_iterator=yes
29098 else
29099   echo "$as_me: failed program was:" >&5
29100 sed 's/^/| /' conftest.$ac_ext >&5
29101
29102 ac_cv_cxx_have_bi_iterator=no
29103 fi
29104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29105   ac_ext=c
29106 ac_cpp='$CPP $CPPFLAGS'
29107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29110
29111
29112 fi
29113 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29114 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29115 if test "$ac_cv_cxx_have_bi_iterator" = yes
29116 then
29117
29118 cat >>confdefs.h <<\_ACEOF
29119 #define HAVE_BI_ITERATOR 1
29120 _ACEOF
29121
29122 else
29123
29124 cat >>confdefs.h <<\_ACEOF
29125 #define HAVE_BI_ITERATOR 0
29126 _ACEOF
29127
29128 fi
29129
29130 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29131 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29132 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29133   echo $ECHO_N "(cached) $ECHO_C" >&6
29134 else
29135
29136   ac_ext=cc
29137 ac_cpp='$CXXCPP $CPPFLAGS'
29138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29141
29142   cat >conftest.$ac_ext <<_ACEOF
29143 /* confdefs.h.  */
29144 _ACEOF
29145 cat confdefs.h >>conftest.$ac_ext
29146 cat >>conftest.$ac_ext <<_ACEOF
29147 /* end confdefs.h.  */
29148 #include <iterator>
29149 #ifdef HAVE_NAMESPACES
29150 using namespace std;
29151 #endif
29152 int
29153 main ()
29154 {
29155 forward_iterator<int,int> t; return 0;
29156   ;
29157   return 0;
29158 }
29159 _ACEOF
29160 rm -f conftest.$ac_objext
29161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29162   (eval $ac_compile) 2>conftest.er1
29163   ac_status=$?
29164   grep -v '^ *+' conftest.er1 >conftest.err
29165   rm -f conftest.er1
29166   cat conftest.err >&5
29167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168   (exit $ac_status); } &&
29169          { ac_try='test -z "$ac_cxx_werror_flag"
29170                          || test ! -s conftest.err'
29171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29172   (eval $ac_try) 2>&5
29173   ac_status=$?
29174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175   (exit $ac_status); }; } &&
29176          { ac_try='test -s conftest.$ac_objext'
29177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29178   (eval $ac_try) 2>&5
29179   ac_status=$?
29180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181   (exit $ac_status); }; }; then
29182   ac_cv_cxx_have_fwd_iterator=yes
29183 else
29184   echo "$as_me: failed program was:" >&5
29185 sed 's/^/| /' conftest.$ac_ext >&5
29186
29187 ac_cv_cxx_have_fwd_iterator=no
29188 fi
29189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29190   ac_ext=c
29191 ac_cpp='$CPP $CPPFLAGS'
29192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29195
29196
29197 fi
29198 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29199 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29200 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29201 then
29202
29203 cat >>confdefs.h <<\_ACEOF
29204 #define HAVE_FWD_ITERATOR 1
29205 _ACEOF
29206
29207 else
29208
29209 cat >>confdefs.h <<\_ACEOF
29210 #define HAVE_FWD_ITERATOR 0
29211 _ACEOF
29212
29213 fi
29214
29215
29216 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29217 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29218 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29219   echo $ECHO_N "(cached) $ECHO_C" >&6
29220 else
29221   ac_ext=cc
29222 ac_cpp='$CXXCPP $CPPFLAGS'
29223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29226
29227    cat >conftest.$ac_ext <<_ACEOF
29228 /* confdefs.h.  */
29229 _ACEOF
29230 cat confdefs.h >>conftest.$ac_ext
29231 cat >>conftest.$ac_ext <<_ACEOF
29232 /* end confdefs.h.  */
29233 #include <math.h>
29234 int
29235 main ()
29236 {
29237 float f; isnan(f);
29238   ;
29239   return 0;
29240 }
29241 _ACEOF
29242 rm -f conftest.$ac_objext
29243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29244   (eval $ac_compile) 2>conftest.er1
29245   ac_status=$?
29246   grep -v '^ *+' conftest.er1 >conftest.err
29247   rm -f conftest.er1
29248   cat conftest.err >&5
29249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250   (exit $ac_status); } &&
29251          { ac_try='test -z "$ac_cxx_werror_flag"
29252                          || test ! -s conftest.err'
29253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29254   (eval $ac_try) 2>&5
29255   ac_status=$?
29256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257   (exit $ac_status); }; } &&
29258          { ac_try='test -s conftest.$ac_objext'
29259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29260   (eval $ac_try) 2>&5
29261   ac_status=$?
29262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263   (exit $ac_status); }; }; then
29264   ac_cv_func_isnan_in_math_h=yes
29265 else
29266   echo "$as_me: failed program was:" >&5
29267 sed 's/^/| /' conftest.$ac_ext >&5
29268
29269 ac_cv_func_isnan_in_math_h=no
29270 fi
29271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29272   ac_ext=c
29273 ac_cpp='$CPP $CPPFLAGS'
29274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29277
29278 fi
29279 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29280 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29281
29282
29283 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29284
29285 cat >>confdefs.h <<\_ACEOF
29286 #define HAVE_ISNAN_IN_MATH_H 1
29287 _ACEOF
29288
29289 fi
29290
29291 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29292 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29293 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29294   echo $ECHO_N "(cached) $ECHO_C" >&6
29295 else
29296   ac_ext=cc
29297 ac_cpp='$CXXCPP $CPPFLAGS'
29298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29301
29302    cat >conftest.$ac_ext <<_ACEOF
29303 /* confdefs.h.  */
29304 _ACEOF
29305 cat confdefs.h >>conftest.$ac_ext
29306 cat >>conftest.$ac_ext <<_ACEOF
29307 /* end confdefs.h.  */
29308 #include <cmath>
29309 int
29310 main ()
29311 {
29312 float f; isnan(f);
29313   ;
29314   return 0;
29315 }
29316 _ACEOF
29317 rm -f conftest.$ac_objext
29318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29319   (eval $ac_compile) 2>conftest.er1
29320   ac_status=$?
29321   grep -v '^ *+' conftest.er1 >conftest.err
29322   rm -f conftest.er1
29323   cat conftest.err >&5
29324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325   (exit $ac_status); } &&
29326          { ac_try='test -z "$ac_cxx_werror_flag"
29327                          || test ! -s conftest.err'
29328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329   (eval $ac_try) 2>&5
29330   ac_status=$?
29331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332   (exit $ac_status); }; } &&
29333          { ac_try='test -s conftest.$ac_objext'
29334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29335   (eval $ac_try) 2>&5
29336   ac_status=$?
29337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338   (exit $ac_status); }; }; then
29339   ac_cv_func_isnan_in_cmath=yes
29340 else
29341   echo "$as_me: failed program was:" >&5
29342 sed 's/^/| /' conftest.$ac_ext >&5
29343
29344 ac_cv_func_isnan_in_cmath=no
29345 fi
29346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29347   ac_ext=c
29348 ac_cpp='$CPP $CPPFLAGS'
29349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29352
29353 fi
29354 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29355 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29356
29357 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29358
29359 cat >>confdefs.h <<\_ACEOF
29360 #define HAVE_ISNAN_IN_CMATH 1
29361 _ACEOF
29362
29363 fi
29364
29365 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29366 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29367 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29368   echo $ECHO_N "(cached) $ECHO_C" >&6
29369 else
29370   ac_ext=cc
29371 ac_cpp='$CXXCPP $CPPFLAGS'
29372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29375
29376    cat >conftest.$ac_ext <<_ACEOF
29377 /* confdefs.h.  */
29378 _ACEOF
29379 cat confdefs.h >>conftest.$ac_ext
29380 cat >>conftest.$ac_ext <<_ACEOF
29381 /* end confdefs.h.  */
29382 #include <cmath>
29383 int
29384 main ()
29385 {
29386 float f; std::isnan(f);
29387   ;
29388   return 0;
29389 }
29390 _ACEOF
29391 rm -f conftest.$ac_objext
29392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29393   (eval $ac_compile) 2>conftest.er1
29394   ac_status=$?
29395   grep -v '^ *+' conftest.er1 >conftest.err
29396   rm -f conftest.er1
29397   cat conftest.err >&5
29398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399   (exit $ac_status); } &&
29400          { ac_try='test -z "$ac_cxx_werror_flag"
29401                          || test ! -s conftest.err'
29402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29403   (eval $ac_try) 2>&5
29404   ac_status=$?
29405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406   (exit $ac_status); }; } &&
29407          { ac_try='test -s conftest.$ac_objext'
29408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29409   (eval $ac_try) 2>&5
29410   ac_status=$?
29411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412   (exit $ac_status); }; }; then
29413   ac_cv_func_std_isnan_in_cmath=yes
29414 else
29415   echo "$as_me: failed program was:" >&5
29416 sed 's/^/| /' conftest.$ac_ext >&5
29417
29418 ac_cv_func_std_isnan_in_cmath=no
29419 fi
29420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29421   ac_ext=c
29422 ac_cpp='$CPP $CPPFLAGS'
29423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29426
29427 fi
29428 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29429 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29430
29431 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29432
29433 cat >>confdefs.h <<\_ACEOF
29434 #define HAVE_STD_ISNAN_IN_CMATH 1
29435 _ACEOF
29436
29437 fi
29438
29439
29440 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29441 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29442 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29443   echo $ECHO_N "(cached) $ECHO_C" >&6
29444 else
29445   ac_ext=cc
29446 ac_cpp='$CXXCPP $CPPFLAGS'
29447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29450
29451    cat >conftest.$ac_ext <<_ACEOF
29452 /* confdefs.h.  */
29453 _ACEOF
29454 cat confdefs.h >>conftest.$ac_ext
29455 cat >>conftest.$ac_ext <<_ACEOF
29456 /* end confdefs.h.  */
29457 #include <math.h>
29458 int
29459 main ()
29460 {
29461 float f; isinf(f);
29462   ;
29463   return 0;
29464 }
29465 _ACEOF
29466 rm -f conftest.$ac_objext
29467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29468   (eval $ac_compile) 2>conftest.er1
29469   ac_status=$?
29470   grep -v '^ *+' conftest.er1 >conftest.err
29471   rm -f conftest.er1
29472   cat conftest.err >&5
29473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474   (exit $ac_status); } &&
29475          { ac_try='test -z "$ac_cxx_werror_flag"
29476                          || test ! -s conftest.err'
29477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29478   (eval $ac_try) 2>&5
29479   ac_status=$?
29480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481   (exit $ac_status); }; } &&
29482          { ac_try='test -s conftest.$ac_objext'
29483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29484   (eval $ac_try) 2>&5
29485   ac_status=$?
29486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487   (exit $ac_status); }; }; then
29488   ac_cv_func_isinf_in_math_h=yes
29489 else
29490   echo "$as_me: failed program was:" >&5
29491 sed 's/^/| /' conftest.$ac_ext >&5
29492
29493 ac_cv_func_isinf_in_math_h=no
29494 fi
29495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29496   ac_ext=c
29497 ac_cpp='$CPP $CPPFLAGS'
29498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29501
29502 fi
29503 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29504 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29505
29506 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29507
29508 cat >>confdefs.h <<\_ACEOF
29509 #define HAVE_ISINF_IN_MATH_H 1
29510 _ACEOF
29511
29512 fi
29513
29514 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29515 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29516 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29517   echo $ECHO_N "(cached) $ECHO_C" >&6
29518 else
29519   ac_ext=cc
29520 ac_cpp='$CXXCPP $CPPFLAGS'
29521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29524
29525    cat >conftest.$ac_ext <<_ACEOF
29526 /* confdefs.h.  */
29527 _ACEOF
29528 cat confdefs.h >>conftest.$ac_ext
29529 cat >>conftest.$ac_ext <<_ACEOF
29530 /* end confdefs.h.  */
29531 #include <cmath>
29532 int
29533 main ()
29534 {
29535 float f; isinf(f);
29536   ;
29537   return 0;
29538 }
29539 _ACEOF
29540 rm -f conftest.$ac_objext
29541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29542   (eval $ac_compile) 2>conftest.er1
29543   ac_status=$?
29544   grep -v '^ *+' conftest.er1 >conftest.err
29545   rm -f conftest.er1
29546   cat conftest.err >&5
29547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548   (exit $ac_status); } &&
29549          { ac_try='test -z "$ac_cxx_werror_flag"
29550                          || test ! -s conftest.err'
29551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29552   (eval $ac_try) 2>&5
29553   ac_status=$?
29554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555   (exit $ac_status); }; } &&
29556          { ac_try='test -s conftest.$ac_objext'
29557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29558   (eval $ac_try) 2>&5
29559   ac_status=$?
29560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561   (exit $ac_status); }; }; then
29562   ac_cv_func_isinf_in_cmath=yes
29563 else
29564   echo "$as_me: failed program was:" >&5
29565 sed 's/^/| /' conftest.$ac_ext >&5
29566
29567 ac_cv_func_isinf_in_cmath=no
29568 fi
29569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29570   ac_ext=c
29571 ac_cpp='$CPP $CPPFLAGS'
29572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29575
29576 fi
29577 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29578 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29579
29580 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29581
29582 cat >>confdefs.h <<\_ACEOF
29583 #define HAVE_ISINF_IN_CMATH 1
29584 _ACEOF
29585
29586 fi
29587
29588 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29589 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29590 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29591   echo $ECHO_N "(cached) $ECHO_C" >&6
29592 else
29593   ac_ext=cc
29594 ac_cpp='$CXXCPP $CPPFLAGS'
29595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29598
29599    cat >conftest.$ac_ext <<_ACEOF
29600 /* confdefs.h.  */
29601 _ACEOF
29602 cat confdefs.h >>conftest.$ac_ext
29603 cat >>conftest.$ac_ext <<_ACEOF
29604 /* end confdefs.h.  */
29605 #include <cmath>
29606 int
29607 main ()
29608 {
29609 float f; std::isinf(f)}
29610   ;
29611   return 0;
29612 }
29613 _ACEOF
29614 rm -f conftest.$ac_objext
29615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29616   (eval $ac_compile) 2>conftest.er1
29617   ac_status=$?
29618   grep -v '^ *+' conftest.er1 >conftest.err
29619   rm -f conftest.er1
29620   cat conftest.err >&5
29621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29622   (exit $ac_status); } &&
29623          { ac_try='test -z "$ac_cxx_werror_flag"
29624                          || test ! -s conftest.err'
29625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29626   (eval $ac_try) 2>&5
29627   ac_status=$?
29628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629   (exit $ac_status); }; } &&
29630          { ac_try='test -s conftest.$ac_objext'
29631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29632   (eval $ac_try) 2>&5
29633   ac_status=$?
29634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635   (exit $ac_status); }; }; then
29636   ac_cv_func_std_isinf_in_cmath=yes
29637 else
29638   echo "$as_me: failed program was:" >&5
29639 sed 's/^/| /' conftest.$ac_ext >&5
29640
29641 ac_cv_func_std_isinf_in_cmath=no
29642 fi
29643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29644   ac_ext=c
29645 ac_cpp='$CPP $CPPFLAGS'
29646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29649
29650 fi
29651 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29652 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29653
29654 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29655
29656 cat >>confdefs.h <<\_ACEOF
29657 #define HAVE_STD_ISINF_IN_CMATH 1
29658 _ACEOF
29659
29660 fi
29661
29662 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29663 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29664 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29665   echo $ECHO_N "(cached) $ECHO_C" >&6
29666 else
29667   ac_ext=cc
29668 ac_cpp='$CXXCPP $CPPFLAGS'
29669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29672
29673    cat >conftest.$ac_ext <<_ACEOF
29674 /* confdefs.h.  */
29675 _ACEOF
29676 cat confdefs.h >>conftest.$ac_ext
29677 cat >>conftest.$ac_ext <<_ACEOF
29678 /* end confdefs.h.  */
29679 #include <ieeefp.h>
29680 int
29681 main ()
29682 {
29683 float f; finite(f);
29684   ;
29685   return 0;
29686 }
29687 _ACEOF
29688 rm -f conftest.$ac_objext
29689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29690   (eval $ac_compile) 2>conftest.er1
29691   ac_status=$?
29692   grep -v '^ *+' conftest.er1 >conftest.err
29693   rm -f conftest.er1
29694   cat conftest.err >&5
29695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696   (exit $ac_status); } &&
29697          { ac_try='test -z "$ac_cxx_werror_flag"
29698                          || test ! -s conftest.err'
29699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29700   (eval $ac_try) 2>&5
29701   ac_status=$?
29702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703   (exit $ac_status); }; } &&
29704          { ac_try='test -s conftest.$ac_objext'
29705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29706   (eval $ac_try) 2>&5
29707   ac_status=$?
29708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709   (exit $ac_status); }; }; then
29710   ac_cv_func_finite_in_ieeefp_h=yes
29711 else
29712   echo "$as_me: failed program was:" >&5
29713 sed 's/^/| /' conftest.$ac_ext >&5
29714
29715 ac_cv_func_finite_in_ieeefp_h=no
29716 fi
29717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29718   ac_ext=c
29719 ac_cpp='$CPP $CPPFLAGS'
29720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29723
29724 fi
29725 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29726 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29727
29728 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29729
29730 cat >>confdefs.h <<\_ACEOF
29731 #define HAVE_FINITE_IN_IEEEFP_H 1
29732 _ACEOF
29733
29734 fi
29735
29736
29737
29738
29739
29740 for ac_header in stdlib.h unistd.h
29741 do
29742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29744   echo "$as_me:$LINENO: checking for $ac_header" >&5
29745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29747   echo $ECHO_N "(cached) $ECHO_C" >&6
29748 fi
29749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29751 else
29752   # Is the header compilable?
29753 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29755 cat >conftest.$ac_ext <<_ACEOF
29756 /* confdefs.h.  */
29757 _ACEOF
29758 cat confdefs.h >>conftest.$ac_ext
29759 cat >>conftest.$ac_ext <<_ACEOF
29760 /* end confdefs.h.  */
29761 $ac_includes_default
29762 #include <$ac_header>
29763 _ACEOF
29764 rm -f conftest.$ac_objext
29765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29766   (eval $ac_compile) 2>conftest.er1
29767   ac_status=$?
29768   grep -v '^ *+' conftest.er1 >conftest.err
29769   rm -f conftest.er1
29770   cat conftest.err >&5
29771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772   (exit $ac_status); } &&
29773          { ac_try='test -z "$ac_c_werror_flag"
29774                          || test ! -s conftest.err'
29775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29776   (eval $ac_try) 2>&5
29777   ac_status=$?
29778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779   (exit $ac_status); }; } &&
29780          { ac_try='test -s conftest.$ac_objext'
29781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29782   (eval $ac_try) 2>&5
29783   ac_status=$?
29784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785   (exit $ac_status); }; }; then
29786   ac_header_compiler=yes
29787 else
29788   echo "$as_me: failed program was:" >&5
29789 sed 's/^/| /' conftest.$ac_ext >&5
29790
29791 ac_header_compiler=no
29792 fi
29793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29795 echo "${ECHO_T}$ac_header_compiler" >&6
29796
29797 # Is the header present?
29798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29800 cat >conftest.$ac_ext <<_ACEOF
29801 /* confdefs.h.  */
29802 _ACEOF
29803 cat confdefs.h >>conftest.$ac_ext
29804 cat >>conftest.$ac_ext <<_ACEOF
29805 /* end confdefs.h.  */
29806 #include <$ac_header>
29807 _ACEOF
29808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29809   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29810   ac_status=$?
29811   grep -v '^ *+' conftest.er1 >conftest.err
29812   rm -f conftest.er1
29813   cat conftest.err >&5
29814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815   (exit $ac_status); } >/dev/null; then
29816   if test -s conftest.err; then
29817     ac_cpp_err=$ac_c_preproc_warn_flag
29818     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29819   else
29820     ac_cpp_err=
29821   fi
29822 else
29823   ac_cpp_err=yes
29824 fi
29825 if test -z "$ac_cpp_err"; then
29826   ac_header_preproc=yes
29827 else
29828   echo "$as_me: failed program was:" >&5
29829 sed 's/^/| /' conftest.$ac_ext >&5
29830
29831   ac_header_preproc=no
29832 fi
29833 rm -f conftest.err conftest.$ac_ext
29834 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29835 echo "${ECHO_T}$ac_header_preproc" >&6
29836
29837 # So?  What about this header?
29838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29839   yes:no: )
29840     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29844     ac_header_preproc=yes
29845     ;;
29846   no:yes:* )
29847     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29849     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29850 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29851     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29853     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29854 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29857     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29859     (
29860       cat <<\_ASBOX
29861 ## ----------------------------------- ##
29862 ## Report this to llvmbugs@cs.uiuc.edu ##
29863 ## ----------------------------------- ##
29864 _ASBOX
29865     ) |
29866       sed "s/^/$as_me: WARNING:     /" >&2
29867     ;;
29868 esac
29869 echo "$as_me:$LINENO: checking for $ac_header" >&5
29870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29872   echo $ECHO_N "(cached) $ECHO_C" >&6
29873 else
29874   eval "$as_ac_Header=\$ac_header_preproc"
29875 fi
29876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29878
29879 fi
29880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29881   cat >>confdefs.h <<_ACEOF
29882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29883 _ACEOF
29884
29885 fi
29886
29887 done
29888
29889
29890 for ac_func in getpagesize
29891 do
29892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29893 echo "$as_me:$LINENO: checking for $ac_func" >&5
29894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29895 if eval "test \"\${$as_ac_var+set}\" = set"; then
29896   echo $ECHO_N "(cached) $ECHO_C" >&6
29897 else
29898   cat >conftest.$ac_ext <<_ACEOF
29899 /* confdefs.h.  */
29900 _ACEOF
29901 cat confdefs.h >>conftest.$ac_ext
29902 cat >>conftest.$ac_ext <<_ACEOF
29903 /* end confdefs.h.  */
29904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29906 #define $ac_func innocuous_$ac_func
29907
29908 /* System header to define __stub macros and hopefully few prototypes,
29909     which can conflict with char $ac_func (); below.
29910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29911     <limits.h> exists even on freestanding compilers.  */
29912
29913 #ifdef __STDC__
29914 # include <limits.h>
29915 #else
29916 # include <assert.h>
29917 #endif
29918
29919 #undef $ac_func
29920
29921 /* Override any gcc2 internal prototype to avoid an error.  */
29922 #ifdef __cplusplus
29923 extern "C"
29924 {
29925 #endif
29926 /* We use char because int might match the return type of a gcc2
29927    builtin and then its argument prototype would still apply.  */
29928 char $ac_func ();
29929 /* The GNU C library defines this for functions which it implements
29930     to always fail with ENOSYS.  Some functions are actually named
29931     something starting with __ and the normal name is an alias.  */
29932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29933 choke me
29934 #else
29935 char (*f) () = $ac_func;
29936 #endif
29937 #ifdef __cplusplus
29938 }
29939 #endif
29940
29941 int
29942 main ()
29943 {
29944 return f != $ac_func;
29945   ;
29946   return 0;
29947 }
29948 _ACEOF
29949 rm -f conftest.$ac_objext conftest$ac_exeext
29950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29951   (eval $ac_link) 2>conftest.er1
29952   ac_status=$?
29953   grep -v '^ *+' conftest.er1 >conftest.err
29954   rm -f conftest.er1
29955   cat conftest.err >&5
29956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957   (exit $ac_status); } &&
29958          { ac_try='test -z "$ac_c_werror_flag"
29959                          || test ! -s conftest.err'
29960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29961   (eval $ac_try) 2>&5
29962   ac_status=$?
29963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964   (exit $ac_status); }; } &&
29965          { ac_try='test -s conftest$ac_exeext'
29966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29967   (eval $ac_try) 2>&5
29968   ac_status=$?
29969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970   (exit $ac_status); }; }; then
29971   eval "$as_ac_var=yes"
29972 else
29973   echo "$as_me: failed program was:" >&5
29974 sed 's/^/| /' conftest.$ac_ext >&5
29975
29976 eval "$as_ac_var=no"
29977 fi
29978 rm -f conftest.err conftest.$ac_objext \
29979       conftest$ac_exeext conftest.$ac_ext
29980 fi
29981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29983 if test `eval echo '${'$as_ac_var'}'` = yes; then
29984   cat >>confdefs.h <<_ACEOF
29985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29986 _ACEOF
29987
29988 fi
29989 done
29990
29991 echo "$as_me:$LINENO: checking for working mmap" >&5
29992 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29993 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29994   echo $ECHO_N "(cached) $ECHO_C" >&6
29995 else
29996   if test "$cross_compiling" = yes; then
29997   ac_cv_func_mmap_fixed_mapped=no
29998 else
29999   cat >conftest.$ac_ext <<_ACEOF
30000 /* confdefs.h.  */
30001 _ACEOF
30002 cat confdefs.h >>conftest.$ac_ext
30003 cat >>conftest.$ac_ext <<_ACEOF
30004 /* end confdefs.h.  */
30005 $ac_includes_default
30006 /* malloc might have been renamed as rpl_malloc. */
30007 #undef malloc
30008
30009 /* Thanks to Mike Haertel and Jim Avera for this test.
30010    Here is a matrix of mmap possibilities:
30011         mmap private not fixed
30012         mmap private fixed at somewhere currently unmapped
30013         mmap private fixed at somewhere already mapped
30014         mmap shared not fixed
30015         mmap shared fixed at somewhere currently unmapped
30016         mmap shared fixed at somewhere already mapped
30017    For private mappings, we should verify that changes cannot be read()
30018    back from the file, nor mmap's back from the file at a different
30019    address.  (There have been systems where private was not correctly
30020    implemented like the infamous i386 svr4.0, and systems where the
30021    VM page cache was not coherent with the file system buffer cache
30022    like early versions of FreeBSD and possibly contemporary NetBSD.)
30023    For shared mappings, we should conversely verify that changes get
30024    propagated back to all the places they're supposed to be.
30025
30026    Grep wants private fixed already mapped.
30027    The main things grep needs to know about mmap are:
30028    * does it exist and is it safe to write into the mmap'd area
30029    * how to use it (BSD variants)  */
30030
30031 #include <fcntl.h>
30032 #include <sys/mman.h>
30033
30034 #if !STDC_HEADERS && !HAVE_STDLIB_H
30035 char *malloc ();
30036 #endif
30037
30038 /* This mess was copied from the GNU getpagesize.h.  */
30039 #if !HAVE_GETPAGESIZE
30040 /* Assume that all systems that can run configure have sys/param.h.  */
30041 # if !HAVE_SYS_PARAM_H
30042 #  define HAVE_SYS_PARAM_H 1
30043 # endif
30044
30045 # ifdef _SC_PAGESIZE
30046 #  define getpagesize() sysconf(_SC_PAGESIZE)
30047 # else /* no _SC_PAGESIZE */
30048 #  if HAVE_SYS_PARAM_H
30049 #   include <sys/param.h>
30050 #   ifdef EXEC_PAGESIZE
30051 #    define getpagesize() EXEC_PAGESIZE
30052 #   else /* no EXEC_PAGESIZE */
30053 #    ifdef NBPG
30054 #     define getpagesize() NBPG * CLSIZE
30055 #     ifndef CLSIZE
30056 #      define CLSIZE 1
30057 #     endif /* no CLSIZE */
30058 #    else /* no NBPG */
30059 #     ifdef NBPC
30060 #      define getpagesize() NBPC
30061 #     else /* no NBPC */
30062 #      ifdef PAGESIZE
30063 #       define getpagesize() PAGESIZE
30064 #      endif /* PAGESIZE */
30065 #     endif /* no NBPC */
30066 #    endif /* no NBPG */
30067 #   endif /* no EXEC_PAGESIZE */
30068 #  else /* no HAVE_SYS_PARAM_H */
30069 #   define getpagesize() 8192   /* punt totally */
30070 #  endif /* no HAVE_SYS_PARAM_H */
30071 # endif /* no _SC_PAGESIZE */
30072
30073 #endif /* no HAVE_GETPAGESIZE */
30074
30075 int
30076 main ()
30077 {
30078   char *data, *data2, *data3;
30079   int i, pagesize;
30080   int fd;
30081
30082   pagesize = getpagesize ();
30083
30084   /* First, make a file with some known garbage in it. */
30085   data = (char *) malloc (pagesize);
30086   if (!data)
30087     exit (1);
30088   for (i = 0; i < pagesize; ++i)
30089     *(data + i) = rand ();
30090   umask (0);
30091   fd = creat ("conftest.mmap", 0600);
30092   if (fd < 0)
30093     exit (1);
30094   if (write (fd, data, pagesize) != pagesize)
30095     exit (1);
30096   close (fd);
30097
30098   /* Next, try to mmap the file at a fixed address which already has
30099      something else allocated at it.  If we can, also make sure that
30100      we see the same garbage.  */
30101   fd = open ("conftest.mmap", O_RDWR);
30102   if (fd < 0)
30103     exit (1);
30104   data2 = (char *) malloc (2 * pagesize);
30105   if (!data2)
30106     exit (1);
30107   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30108   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30109                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
30110     exit (1);
30111   for (i = 0; i < pagesize; ++i)
30112     if (*(data + i) != *(data2 + i))
30113       exit (1);
30114
30115   /* Finally, make sure that changes to the mapped area do not
30116      percolate back to the file as seen by read().  (This is a bug on
30117      some variants of i386 svr4.0.)  */
30118   for (i = 0; i < pagesize; ++i)
30119     *(data2 + i) = *(data2 + i) + 1;
30120   data3 = (char *) malloc (pagesize);
30121   if (!data3)
30122     exit (1);
30123   if (read (fd, data3, pagesize) != pagesize)
30124     exit (1);
30125   for (i = 0; i < pagesize; ++i)
30126     if (*(data + i) != *(data3 + i))
30127       exit (1);
30128   close (fd);
30129   exit (0);
30130 }
30131 _ACEOF
30132 rm -f conftest$ac_exeext
30133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30134   (eval $ac_link) 2>&5
30135   ac_status=$?
30136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30139   (eval $ac_try) 2>&5
30140   ac_status=$?
30141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142   (exit $ac_status); }; }; then
30143   ac_cv_func_mmap_fixed_mapped=yes
30144 else
30145   echo "$as_me: program exited with status $ac_status" >&5
30146 echo "$as_me: failed program was:" >&5
30147 sed 's/^/| /' conftest.$ac_ext >&5
30148
30149 ( exit $ac_status )
30150 ac_cv_func_mmap_fixed_mapped=no
30151 fi
30152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30153 fi
30154 fi
30155 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30156 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30157 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30158
30159 cat >>confdefs.h <<\_ACEOF
30160 #define HAVE_MMAP 1
30161 _ACEOF
30162
30163 fi
30164 rm -f conftest.mmap
30165
30166 echo "$as_me:$LINENO: checking for mmap of files" >&5
30167 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30168 if test "${ac_cv_func_mmap_file+set}" = set; then
30169   echo $ECHO_N "(cached) $ECHO_C" >&6
30170 else
30171    ac_ext=c
30172 ac_cpp='$CPP $CPPFLAGS'
30173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30176
30177   if test "$cross_compiling" = yes; then
30178   ac_cv_func_mmap_file=no
30179 else
30180   cat >conftest.$ac_ext <<_ACEOF
30181
30182     /* confdefs.h.  */
30183 _ACEOF
30184 cat confdefs.h >>conftest.$ac_ext
30185 cat >>conftest.$ac_ext <<_ACEOF
30186 /* end confdefs.h.  */
30187
30188 #include <sys/types.h>
30189 #include <sys/mman.h>
30190 #include <fcntl.h>
30191
30192 int
30193 main ()
30194 {
30195
30196   int fd;
30197   fd = creat ("foo",0777);
30198   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30199   unlink ("foo");
30200   return (fd != (int) MAP_FAILED);
30201   ;
30202   return 0;
30203 }
30204 _ACEOF
30205 rm -f conftest$ac_exeext
30206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30207   (eval $ac_link) 2>&5
30208   ac_status=$?
30209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30212   (eval $ac_try) 2>&5
30213   ac_status=$?
30214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215   (exit $ac_status); }; }; then
30216   ac_cv_func_mmap_file=yes
30217 else
30218   echo "$as_me: program exited with status $ac_status" >&5
30219 echo "$as_me: failed program was:" >&5
30220 sed 's/^/| /' conftest.$ac_ext >&5
30221
30222 ( exit $ac_status )
30223 ac_cv_func_mmap_file=no
30224 fi
30225 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30226 fi
30227   ac_ext=c
30228 ac_cpp='$CPP $CPPFLAGS'
30229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30232
30233
30234 fi
30235 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30236 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30237 if test "$ac_cv_func_mmap_file" = yes; then
30238
30239 cat >>confdefs.h <<\_ACEOF
30240 #define HAVE_MMAP_FILE
30241 _ACEOF
30242
30243    MMAP_FILE=yes
30244
30245 fi
30246
30247 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30248 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30249 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30250   echo $ECHO_N "(cached) $ECHO_C" >&6
30251 else
30252   if test "$llvm_cv_os_type" = "Interix" ; then
30253    ac_cv_need_dev_zero_for_mmap=yes
30254  else
30255    ac_cv_need_dev_zero_for_mmap=no
30256  fi
30257
30258 fi
30259 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30260 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30261 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30262
30263 cat >>confdefs.h <<\_ACEOF
30264 #define NEED_DEV_ZERO_FOR_MMAP 1
30265 _ACEOF
30266
30267 fi
30268 echo "$as_me:$LINENO: checking for mprotect" >&5
30269 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30270 if test "${ac_cv_func_mprotect+set}" = set; then
30271   echo $ECHO_N "(cached) $ECHO_C" >&6
30272 else
30273   cat >conftest.$ac_ext <<_ACEOF
30274 /* confdefs.h.  */
30275 _ACEOF
30276 cat confdefs.h >>conftest.$ac_ext
30277 cat >>conftest.$ac_ext <<_ACEOF
30278 /* end confdefs.h.  */
30279 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30280    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30281 #define mprotect innocuous_mprotect
30282
30283 /* System header to define __stub macros and hopefully few prototypes,
30284     which can conflict with char mprotect (); below.
30285     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30286     <limits.h> exists even on freestanding compilers.  */
30287
30288 #ifdef __STDC__
30289 # include <limits.h>
30290 #else
30291 # include <assert.h>
30292 #endif
30293
30294 #undef mprotect
30295
30296 /* Override any gcc2 internal prototype to avoid an error.  */
30297 #ifdef __cplusplus
30298 extern "C"
30299 {
30300 #endif
30301 /* We use char because int might match the return type of a gcc2
30302    builtin and then its argument prototype would still apply.  */
30303 char mprotect ();
30304 /* The GNU C library defines this for functions which it implements
30305     to always fail with ENOSYS.  Some functions are actually named
30306     something starting with __ and the normal name is an alias.  */
30307 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30308 choke me
30309 #else
30310 char (*f) () = mprotect;
30311 #endif
30312 #ifdef __cplusplus
30313 }
30314 #endif
30315
30316 int
30317 main ()
30318 {
30319 return f != mprotect;
30320   ;
30321   return 0;
30322 }
30323 _ACEOF
30324 rm -f conftest.$ac_objext conftest$ac_exeext
30325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30326   (eval $ac_link) 2>conftest.er1
30327   ac_status=$?
30328   grep -v '^ *+' conftest.er1 >conftest.err
30329   rm -f conftest.er1
30330   cat conftest.err >&5
30331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332   (exit $ac_status); } &&
30333          { ac_try='test -z "$ac_c_werror_flag"
30334                          || test ! -s conftest.err'
30335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30336   (eval $ac_try) 2>&5
30337   ac_status=$?
30338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30339   (exit $ac_status); }; } &&
30340          { ac_try='test -s conftest$ac_exeext'
30341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30342   (eval $ac_try) 2>&5
30343   ac_status=$?
30344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345   (exit $ac_status); }; }; then
30346   ac_cv_func_mprotect=yes
30347 else
30348   echo "$as_me: failed program was:" >&5
30349 sed 's/^/| /' conftest.$ac_ext >&5
30350
30351 ac_cv_func_mprotect=no
30352 fi
30353 rm -f conftest.err conftest.$ac_objext \
30354       conftest$ac_exeext conftest.$ac_ext
30355 fi
30356 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30357 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30358 if test $ac_cv_func_mprotect = yes; then
30359   :
30360 else
30361   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30362 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30363    { (exit 1); exit 1; }; }
30364 fi
30365
30366
30367 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30368 then
30369   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30370 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30371 fi
30372 if test "$ac_cv_func_mmap_file" = "no"
30373 then
30374   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30375 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30376 fi
30377
30378
30379 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30380 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30381 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30382   echo $ECHO_N "(cached) $ECHO_C" >&6
30383 else
30384   llvm_cv_llvmgcc_sanity="no"
30385 if test -x "$LLVMGCC" ; then
30386   cp /dev/null conftest.c
30387   "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30388   if test $? -eq 0 ; then
30389     llvm_cv_llvmgcc_sanity="yes"
30390   fi
30391   rm conftest.c
30392 fi
30393 fi
30394 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30395 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30396
30397 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30398   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30399   LLVMCC1=$llvmcc1path
30400
30401   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30402   LLVMCC1PLUS=$llvmcc1pluspath
30403
30404   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30405   LLVMGCCDIR=$llvmgccdir
30406
30407 fi
30408
30409 SHLIBEXT=$libltdl_cv_shlibext
30410
30411
30412 # Translate the various configuration directories and other basic
30413 # information into substitutions that will end up in Makefile.config.in
30414 # that these configured values can be used by the makefiles
30415 eval LLVM_PREFIX="${prefix}";
30416 eval LLVM_BINDIR="${prefix}/bin";
30417 eval LLVM_LIBDIR="${prefix}/lib";
30418 eval LLVM_DATADIR="${prefix}/share/llvm";
30419 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30420 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30421 eval LLVM_INCLUDEDIR="${prefix}/include";
30422 eval LLVM_INFODIR="${prefix}/info";
30423 eval LLVM_MANDIR="${prefix}/man";
30424 LLVM_CONFIGTIME=`date`
30425
30426
30427
30428
30429
30430
30431
30432
30433
30434
30435
30436 # Place the various directores into the config.h file as #defines so that we
30437 # can know about the installation paths within LLVM.
30438
30439 cat >>confdefs.h <<_ACEOF
30440 #define LLVM_PREFIX "$LLVM_PREFIX"
30441 _ACEOF
30442
30443
30444 cat >>confdefs.h <<_ACEOF
30445 #define LLVM_BINDIR "$LLVM_BINDIR"
30446 _ACEOF
30447
30448
30449 cat >>confdefs.h <<_ACEOF
30450 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30451 _ACEOF
30452
30453
30454 cat >>confdefs.h <<_ACEOF
30455 #define LLVM_DATADIR "$LLVM_DATADIR"
30456 _ACEOF
30457
30458
30459 cat >>confdefs.h <<_ACEOF
30460 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30461 _ACEOF
30462
30463
30464 cat >>confdefs.h <<_ACEOF
30465 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30466 _ACEOF
30467
30468
30469 cat >>confdefs.h <<_ACEOF
30470 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30471 _ACEOF
30472
30473
30474 cat >>confdefs.h <<_ACEOF
30475 #define LLVM_INFODIR "$LLVM_INFODIR"
30476 _ACEOF
30477
30478
30479 cat >>confdefs.h <<_ACEOF
30480 #define LLVM_MANDIR "$LLVM_MANDIR"
30481 _ACEOF
30482
30483
30484 cat >>confdefs.h <<_ACEOF
30485 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30486 _ACEOF
30487
30488
30489
30490           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30491
30492
30493           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30494
30495           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30496
30497           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30498
30499           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30500
30501           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30502
30503
30504           ac_config_files="$ac_config_files Makefile.config"
30505
30506
30507           ac_config_files="$ac_config_files docs/doxygen.cfg"
30508
30509
30510           ac_config_commands="$ac_config_commands setup"
30511
30512           ac_config_commands="$ac_config_commands Makefile"
30513
30514
30515           ac_config_commands="$ac_config_commands Makefile.common"
30516
30517
30518           ac_config_commands="$ac_config_commands examples/Makefile"
30519
30520
30521           ac_config_commands="$ac_config_commands lib/Makefile"
30522
30523
30524           ac_config_commands="$ac_config_commands runtime/Makefile"
30525
30526
30527           ac_config_commands="$ac_config_commands test/Makefile"
30528
30529
30530           ac_config_commands="$ac_config_commands test/Makefile.tests"
30531
30532
30533           ac_config_commands="$ac_config_commands tools/Makefile"
30534
30535
30536           ac_config_commands="$ac_config_commands utils/Makefile"
30537
30538
30539           ac_config_commands="$ac_config_commands projects/Makefile"
30540
30541
30542
30543 cat >confcache <<\_ACEOF
30544 # This file is a shell script that caches the results of configure
30545 # tests run on this system so they can be shared between configure
30546 # scripts and configure runs, see configure's option --config-cache.
30547 # It is not useful on other systems.  If it contains results you don't
30548 # want to keep, you may remove or edit it.
30549 #
30550 # config.status only pays attention to the cache file if you give it
30551 # the --recheck option to rerun configure.
30552 #
30553 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30554 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30555 # following values.
30556
30557 _ACEOF
30558
30559 # The following way of writing the cache mishandles newlines in values,
30560 # but we know of no workaround that is simple, portable, and efficient.
30561 # So, don't put newlines in cache variables' values.
30562 # Ultrix sh set writes to stderr and can't be redirected directly,
30563 # and sets the high bit in the cache file unless we assign to the vars.
30564 {
30565   (set) 2>&1 |
30566     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30567     *ac_space=\ *)
30568       # `set' does not quote correctly, so add quotes (double-quote
30569       # substitution turns \\\\ into \\, and sed turns \\ into \).
30570       sed -n \
30571         "s/'/'\\\\''/g;
30572           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30573       ;;
30574     *)
30575       # `set' quotes correctly as required by POSIX, so do not add quotes.
30576       sed -n \
30577         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30578       ;;
30579     esac;
30580 } |
30581   sed '
30582      t clear
30583      : clear
30584      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30585      t end
30586      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30587      : end' >>confcache
30588 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30589   if test -w $cache_file; then
30590     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30591     cat confcache >$cache_file
30592   else
30593     echo "not updating unwritable cache $cache_file"
30594   fi
30595 fi
30596 rm -f confcache
30597
30598 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30599 # Let make expand exec_prefix.
30600 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30601
30602 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30603 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30604 # trailing colons and then remove the whole line if VPATH becomes empty
30605 # (actually we leave an empty line to preserve line numbers).
30606 if test "x$srcdir" = x.; then
30607   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30608 s/:*\$(srcdir):*/:/;
30609 s/:*\${srcdir}:*/:/;
30610 s/:*@srcdir@:*/:/;
30611 s/^\([^=]*=[     ]*\):*/\1/;
30612 s/:*$//;
30613 s/^[^=]*=[       ]*$//;
30614 }'
30615 fi
30616
30617 DEFS=-DHAVE_CONFIG_H
30618
30619 ac_libobjs=
30620 ac_ltlibobjs=
30621 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30622   # 1. Remove the extension, and $U if already installed.
30623   ac_i=`echo "$ac_i" |
30624          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30625   # 2. Add them.
30626   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30627   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30628 done
30629 LIBOBJS=$ac_libobjs
30630
30631 LTLIBOBJS=$ac_ltlibobjs
30632
30633
30634 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30635   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30636 Usually this means the macro was only invoked conditionally." >&5
30637 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30638 Usually this means the macro was only invoked conditionally." >&2;}
30639    { (exit 1); exit 1; }; }
30640 fi
30641 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30642   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30643 Usually this means the macro was only invoked conditionally." >&5
30644 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30645 Usually this means the macro was only invoked conditionally." >&2;}
30646    { (exit 1); exit 1; }; }
30647 fi
30648
30649 : ${CONFIG_STATUS=./config.status}
30650 ac_clean_files_save=$ac_clean_files
30651 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30652 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30653 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30654 cat >$CONFIG_STATUS <<_ACEOF
30655 #! $SHELL
30656 # Generated by $as_me.
30657 # Run this file to recreate the current configuration.
30658 # Compiler output produced by configure, useful for debugging
30659 # configure, is in config.log if it exists.
30660
30661 debug=false
30662 ac_cs_recheck=false
30663 ac_cs_silent=false
30664 SHELL=\${CONFIG_SHELL-$SHELL}
30665 _ACEOF
30666
30667 cat >>$CONFIG_STATUS <<\_ACEOF
30668 ## --------------------- ##
30669 ## M4sh Initialization.  ##
30670 ## --------------------- ##
30671
30672 # Be Bourne compatible
30673 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30674   emulate sh
30675   NULLCMD=:
30676   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30677   # is contrary to our usage.  Disable this feature.
30678   alias -g '${1+"$@"}'='"$@"'
30679 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30680   set -o posix
30681 fi
30682 DUALCASE=1; export DUALCASE # for MKS sh
30683
30684 # Support unset when possible.
30685 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30686   as_unset=unset
30687 else
30688   as_unset=false
30689 fi
30690
30691
30692 # Work around bugs in pre-3.0 UWIN ksh.
30693 $as_unset ENV MAIL MAILPATH
30694 PS1='$ '
30695 PS2='> '
30696 PS4='+ '
30697
30698 # NLS nuisances.
30699 for as_var in \
30700   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30701   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30702   LC_TELEPHONE LC_TIME
30703 do
30704   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30705     eval $as_var=C; export $as_var
30706   else
30707     $as_unset $as_var
30708   fi
30709 done
30710
30711 # Required to use basename.
30712 if expr a : '\(a\)' >/dev/null 2>&1; then
30713   as_expr=expr
30714 else
30715   as_expr=false
30716 fi
30717
30718 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30719   as_basename=basename
30720 else
30721   as_basename=false
30722 fi
30723
30724
30725 # Name of the executable.
30726 as_me=`$as_basename "$0" ||
30727 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30728          X"$0" : 'X\(//\)$' \| \
30729          X"$0" : 'X\(/\)$' \| \
30730          .     : '\(.\)' 2>/dev/null ||
30731 echo X/"$0" |
30732     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30733           /^X\/\(\/\/\)$/{ s//\1/; q; }
30734           /^X\/\(\/\).*/{ s//\1/; q; }
30735           s/.*/./; q'`
30736
30737
30738 # PATH needs CR, and LINENO needs CR and PATH.
30739 # Avoid depending upon Character Ranges.
30740 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30741 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30742 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30743 as_cr_digits='0123456789'
30744 as_cr_alnum=$as_cr_Letters$as_cr_digits
30745
30746 # The user is always right.
30747 if test "${PATH_SEPARATOR+set}" != set; then
30748   echo "#! /bin/sh" >conf$$.sh
30749   echo  "exit 0"   >>conf$$.sh
30750   chmod +x conf$$.sh
30751   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30752     PATH_SEPARATOR=';'
30753   else
30754     PATH_SEPARATOR=:
30755   fi
30756   rm -f conf$$.sh
30757 fi
30758
30759
30760   as_lineno_1=$LINENO
30761   as_lineno_2=$LINENO
30762   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30763   test "x$as_lineno_1" != "x$as_lineno_2" &&
30764   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30765   # Find who we are.  Look in the path if we contain no path at all
30766   # relative or not.
30767   case $0 in
30768     *[\\/]* ) as_myself=$0 ;;
30769     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30770 for as_dir in $PATH
30771 do
30772   IFS=$as_save_IFS
30773   test -z "$as_dir" && as_dir=.
30774   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30775 done
30776
30777        ;;
30778   esac
30779   # We did not find ourselves, most probably we were run as `sh COMMAND'
30780   # in which case we are not to be found in the path.
30781   if test "x$as_myself" = x; then
30782     as_myself=$0
30783   fi
30784   if test ! -f "$as_myself"; then
30785     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30786 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30787    { (exit 1); exit 1; }; }
30788   fi
30789   case $CONFIG_SHELL in
30790   '')
30791     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30792 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30793 do
30794   IFS=$as_save_IFS
30795   test -z "$as_dir" && as_dir=.
30796   for as_base in sh bash ksh sh5; do
30797          case $as_dir in
30798          /*)
30799            if ("$as_dir/$as_base" -c '
30800   as_lineno_1=$LINENO
30801   as_lineno_2=$LINENO
30802   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30803   test "x$as_lineno_1" != "x$as_lineno_2" &&
30804   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30805              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30806              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30807              CONFIG_SHELL=$as_dir/$as_base
30808              export CONFIG_SHELL
30809              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30810            fi;;
30811          esac
30812        done
30813 done
30814 ;;
30815   esac
30816
30817   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30818   # uniformly replaced by the line number.  The first 'sed' inserts a
30819   # line-number line before each line; the second 'sed' does the real
30820   # work.  The second script uses 'N' to pair each line-number line
30821   # with the numbered line, and appends trailing '-' during
30822   # substitution so that $LINENO is not a special case at line end.
30823   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30824   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30825   sed '=' <$as_myself |
30826     sed '
30827       N
30828       s,$,-,
30829       : loop
30830       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30831       t loop
30832       s,-$,,
30833       s,^['$as_cr_digits']*\n,,
30834     ' >$as_me.lineno &&
30835   chmod +x $as_me.lineno ||
30836     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30837 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30838    { (exit 1); exit 1; }; }
30839
30840   # Don't try to exec as it changes $[0], causing all sort of problems
30841   # (the dirname of $[0] is not the place where we might find the
30842   # original and so on.  Autoconf is especially sensible to this).
30843   . ./$as_me.lineno
30844   # Exit status is that of the last command.
30845   exit
30846 }
30847
30848
30849 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30850   *c*,-n*) ECHO_N= ECHO_C='
30851 ' ECHO_T='      ' ;;
30852   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30853   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30854 esac
30855
30856 if expr a : '\(a\)' >/dev/null 2>&1; then
30857   as_expr=expr
30858 else
30859   as_expr=false
30860 fi
30861
30862 rm -f conf$$ conf$$.exe conf$$.file
30863 echo >conf$$.file
30864 if ln -s conf$$.file conf$$ 2>/dev/null; then
30865   # We could just check for DJGPP; but this test a) works b) is more generic
30866   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30867   if test -f conf$$.exe; then
30868     # Don't use ln at all; we don't have any links
30869     as_ln_s='cp -p'
30870   else
30871     as_ln_s='ln -s'
30872   fi
30873 elif ln conf$$.file conf$$ 2>/dev/null; then
30874   as_ln_s=ln
30875 else
30876   as_ln_s='cp -p'
30877 fi
30878 rm -f conf$$ conf$$.exe conf$$.file
30879
30880 if mkdir -p . 2>/dev/null; then
30881   as_mkdir_p=:
30882 else
30883   test -d ./-p && rmdir ./-p
30884   as_mkdir_p=false
30885 fi
30886
30887 as_executable_p="test -f"
30888
30889 # Sed expression to map a string onto a valid CPP name.
30890 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30891
30892 # Sed expression to map a string onto a valid variable name.
30893 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30894
30895
30896 # IFS
30897 # We need space, tab and new line, in precisely that order.
30898 as_nl='
30899 '
30900 IFS="   $as_nl"
30901
30902 # CDPATH.
30903 $as_unset CDPATH
30904
30905 exec 6>&1
30906
30907 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30908 # report actual input values of CONFIG_FILES etc. instead of their
30909 # values after options handling.  Logging --version etc. is OK.
30910 exec 5>>config.log
30911 {
30912   echo
30913   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30914 ## Running $as_me. ##
30915 _ASBOX
30916 } >&5
30917 cat >&5 <<_CSEOF
30918
30919 This file was extended by llvm $as_me 1.6cvs, which was
30920 generated by GNU Autoconf 2.59.  Invocation command line was
30921
30922   CONFIG_FILES    = $CONFIG_FILES
30923   CONFIG_HEADERS  = $CONFIG_HEADERS
30924   CONFIG_LINKS    = $CONFIG_LINKS
30925   CONFIG_COMMANDS = $CONFIG_COMMANDS
30926   $ $0 $@
30927
30928 _CSEOF
30929 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30930 echo >&5
30931 _ACEOF
30932
30933 # Files that config.status was made for.
30934 if test -n "$ac_config_files"; then
30935   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30936 fi
30937
30938 if test -n "$ac_config_headers"; then
30939   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30940 fi
30941
30942 if test -n "$ac_config_links"; then
30943   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30944 fi
30945
30946 if test -n "$ac_config_commands"; then
30947   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30948 fi
30949
30950 cat >>$CONFIG_STATUS <<\_ACEOF
30951
30952 ac_cs_usage="\
30953 \`$as_me' instantiates files from templates according to the
30954 current configuration.
30955
30956 Usage: $0 [OPTIONS] [FILE]...
30957
30958   -h, --help       print this help, then exit
30959   -V, --version    print version number, then exit
30960   -q, --quiet      do not print progress messages
30961   -d, --debug      don't remove temporary files
30962       --recheck    update $as_me by reconfiguring in the same conditions
30963   --file=FILE[:TEMPLATE]
30964                    instantiate the configuration file FILE
30965   --header=FILE[:TEMPLATE]
30966                    instantiate the configuration header FILE
30967
30968 Configuration files:
30969 $config_files
30970
30971 Configuration headers:
30972 $config_headers
30973
30974 Configuration commands:
30975 $config_commands
30976
30977 Report bugs to <bug-autoconf@gnu.org>."
30978 _ACEOF
30979
30980 cat >>$CONFIG_STATUS <<_ACEOF
30981 ac_cs_version="\\
30982 llvm config.status 1.6cvs
30983 configured by $0, generated by GNU Autoconf 2.59,
30984   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30985
30986 Copyright (C) 2003 Free Software Foundation, Inc.
30987 This config.status script is free software; the Free Software Foundation
30988 gives unlimited permission to copy, distribute and modify it."
30989 srcdir=$srcdir
30990 INSTALL="$INSTALL"
30991 _ACEOF
30992
30993 cat >>$CONFIG_STATUS <<\_ACEOF
30994 # If no file are specified by the user, then we need to provide default
30995 # value.  By we need to know if files were specified by the user.
30996 ac_need_defaults=:
30997 while test $# != 0
30998 do
30999   case $1 in
31000   --*=*)
31001     ac_option=`expr "x$1" : 'x\([^=]*\)='`
31002     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31003     ac_shift=:
31004     ;;
31005   -*)
31006     ac_option=$1
31007     ac_optarg=$2
31008     ac_shift=shift
31009     ;;
31010   *) # This is not an option, so the user has probably given explicit
31011      # arguments.
31012      ac_option=$1
31013      ac_need_defaults=false;;
31014   esac
31015
31016   case $ac_option in
31017   # Handling of the options.
31018 _ACEOF
31019 cat >>$CONFIG_STATUS <<\_ACEOF
31020   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31021     ac_cs_recheck=: ;;
31022   --version | --vers* | -V )
31023     echo "$ac_cs_version"; exit 0 ;;
31024   --he | --h)
31025     # Conflict between --help and --header
31026     { { echo "$as_me:$LINENO: error: ambiguous option: $1
31027 Try \`$0 --help' for more information." >&5
31028 echo "$as_me: error: ambiguous option: $1
31029 Try \`$0 --help' for more information." >&2;}
31030    { (exit 1); exit 1; }; };;
31031   --help | --hel | -h )
31032     echo "$ac_cs_usage"; exit 0 ;;
31033   --debug | --d* | -d )
31034     debug=: ;;
31035   --file | --fil | --fi | --f )
31036     $ac_shift
31037     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31038     ac_need_defaults=false;;
31039   --header | --heade | --head | --hea )
31040     $ac_shift
31041     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31042     ac_need_defaults=false;;
31043   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31044   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31045     ac_cs_silent=: ;;
31046
31047   # This is an error.
31048   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31049 Try \`$0 --help' for more information." >&5
31050 echo "$as_me: error: unrecognized option: $1
31051 Try \`$0 --help' for more information." >&2;}
31052    { (exit 1); exit 1; }; } ;;
31053
31054   *) ac_config_targets="$ac_config_targets $1" ;;
31055
31056   esac
31057   shift
31058 done
31059
31060 ac_configure_extra_args=
31061
31062 if $ac_cs_silent; then
31063   exec 6>/dev/null
31064   ac_configure_extra_args="$ac_configure_extra_args --silent"
31065 fi
31066
31067 _ACEOF
31068 cat >>$CONFIG_STATUS <<_ACEOF
31069 if \$ac_cs_recheck; then
31070   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31071   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31072 fi
31073
31074 _ACEOF
31075
31076 cat >>$CONFIG_STATUS <<_ACEOF
31077 #
31078 # INIT-COMMANDS section.
31079 #
31080
31081 llvm_src="${srcdir}"
31082
31083 _ACEOF
31084
31085
31086
31087 cat >>$CONFIG_STATUS <<\_ACEOF
31088 for ac_config_target in $ac_config_targets
31089 do
31090   case "$ac_config_target" in
31091   # Handling of arguments.
31092   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31093   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31094   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31095   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31096   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31097   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31098   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31099   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31100   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31101   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31102   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31103   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31104   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31105   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31106   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31107   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31108   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31109   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
31110   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31111   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31112 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31113    { (exit 1); exit 1; }; };;
31114   esac
31115 done
31116
31117 # If the user did not use the arguments to specify the items to instantiate,
31118 # then the envvar interface is used.  Set only those that are not.
31119 # We use the long form for the default assignment because of an extremely
31120 # bizarre bug on SunOS 4.1.3.
31121 if $ac_need_defaults; then
31122   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31123   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31124   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31125 fi
31126
31127 # Have a temporary directory for convenience.  Make it in the build tree
31128 # simply because there is no reason to put it here, and in addition,
31129 # creating and moving files from /tmp can sometimes cause problems.
31130 # Create a temporary directory, and hook for its removal unless debugging.
31131 $debug ||
31132 {
31133   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31134   trap '{ (exit 1); exit 1; }' 1 2 13 15
31135 }
31136
31137 # Create a (secure) tmp directory for tmp files.
31138
31139 {
31140   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31141   test -n "$tmp" && test -d "$tmp"
31142 }  ||
31143 {
31144   tmp=./confstat$$-$RANDOM
31145   (umask 077 && mkdir $tmp)
31146 } ||
31147 {
31148    echo "$me: cannot create a temporary directory in ." >&2
31149    { (exit 1); exit 1; }
31150 }
31151
31152 _ACEOF
31153
31154 cat >>$CONFIG_STATUS <<_ACEOF
31155
31156 #
31157 # CONFIG_FILES section.
31158 #
31159
31160 # No need to generate the scripts if there are no CONFIG_FILES.
31161 # This happens for instance when ./config.status config.h
31162 if test -n "\$CONFIG_FILES"; then
31163   # Protect against being on the right side of a sed subst in config.status.
31164   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31165    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31166 s,@SHELL@,$SHELL,;t t
31167 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31168 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31169 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31170 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31171 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31172 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31173 s,@exec_prefix@,$exec_prefix,;t t
31174 s,@prefix@,$prefix,;t t
31175 s,@program_transform_name@,$program_transform_name,;t t
31176 s,@bindir@,$bindir,;t t
31177 s,@sbindir@,$sbindir,;t t
31178 s,@libexecdir@,$libexecdir,;t t
31179 s,@datadir@,$datadir,;t t
31180 s,@sysconfdir@,$sysconfdir,;t t
31181 s,@sharedstatedir@,$sharedstatedir,;t t
31182 s,@localstatedir@,$localstatedir,;t t
31183 s,@libdir@,$libdir,;t t
31184 s,@includedir@,$includedir,;t t
31185 s,@oldincludedir@,$oldincludedir,;t t
31186 s,@infodir@,$infodir,;t t
31187 s,@mandir@,$mandir,;t t
31188 s,@build_alias@,$build_alias,;t t
31189 s,@host_alias@,$host_alias,;t t
31190 s,@target_alias@,$target_alias,;t t
31191 s,@DEFS@,$DEFS,;t t
31192 s,@ECHO_C@,$ECHO_C,;t t
31193 s,@ECHO_N@,$ECHO_N,;t t
31194 s,@ECHO_T@,$ECHO_T,;t t
31195 s,@LIBS@,$LIBS,;t t
31196 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31197 s,@subdirs@,$subdirs,;t t
31198 s,@build@,$build,;t t
31199 s,@build_cpu@,$build_cpu,;t t
31200 s,@build_vendor@,$build_vendor,;t t
31201 s,@build_os@,$build_os,;t t
31202 s,@host@,$host,;t t
31203 s,@host_cpu@,$host_cpu,;t t
31204 s,@host_vendor@,$host_vendor,;t t
31205 s,@host_os@,$host_os,;t t
31206 s,@target@,$target,;t t
31207 s,@target_cpu@,$target_cpu,;t t
31208 s,@target_vendor@,$target_vendor,;t t
31209 s,@target_os@,$target_os,;t t
31210 s,@OS@,$OS,;t t
31211 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31212 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31213 s,@ARCH@,$ARCH,;t t
31214 s,@ENDIAN@,$ENDIAN,;t t
31215 s,@CC@,$CC,;t t
31216 s,@CFLAGS@,$CFLAGS,;t t
31217 s,@LDFLAGS@,$LDFLAGS,;t t
31218 s,@CPPFLAGS@,$CPPFLAGS,;t t
31219 s,@ac_ct_CC@,$ac_ct_CC,;t t
31220 s,@EXEEXT@,$EXEEXT,;t t
31221 s,@OBJEXT@,$OBJEXT,;t t
31222 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31223 s,@JIT@,$JIT,;t t
31224 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31225 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31226 s,@CPP@,$CPP,;t t
31227 s,@CXX@,$CXX,;t t
31228 s,@CXXFLAGS@,$CXXFLAGS,;t t
31229 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31230 s,@LEX@,$LEX,;t t
31231 s,@LEXLIB@,$LEXLIB,;t t
31232 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31233 s,@FLEX@,$FLEX,;t t
31234 s,@YACC@,$YACC,;t t
31235 s,@BISON@,$BISON,;t t
31236 s,@ifGNUmake@,$ifGNUmake,;t t
31237 s,@LN_S@,$LN_S,;t t
31238 s,@CMP@,$CMP,;t t
31239 s,@CP@,$CP,;t t
31240 s,@DATE@,$DATE,;t t
31241 s,@FIND@,$FIND,;t t
31242 s,@GREP@,$GREP,;t t
31243 s,@MKDIR@,$MKDIR,;t t
31244 s,@MV@,$MV,;t t
31245 s,@RANLIB@,$RANLIB,;t t
31246 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31247 s,@RM@,$RM,;t t
31248 s,@SED@,$SED,;t t
31249 s,@TAR@,$TAR,;t t
31250 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31251 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31252 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31253 s,@BZIP2@,$BZIP2,;t t
31254 s,@DOT@,$DOT,;t t
31255 s,@DOXYGEN@,$DOXYGEN,;t t
31256 s,@ETAGS@,$ETAGS,;t t
31257 s,@GROFF@,$GROFF,;t t
31258 s,@GZIP@,$GZIP,;t t
31259 s,@POD2HTML@,$POD2HTML,;t t
31260 s,@POD2MAN@,$POD2MAN,;t t
31261 s,@RUNTEST@,$RUNTEST,;t t
31262 s,@TCLSH@,$TCLSH,;t t
31263 s,@ZIP@,$ZIP,;t t
31264 s,@EGREP@,$EGREP,;t t
31265 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31266 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31267 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31268 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31269 s,@LIBADD_DL@,$LIBADD_DL,;t t
31270 s,@ECHO@,$ECHO,;t t
31271 s,@AR@,$AR,;t t
31272 s,@ac_ct_AR@,$ac_ct_AR,;t t
31273 s,@STRIP@,$STRIP,;t t
31274 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31275 s,@CXXCPP@,$CXXCPP,;t t
31276 s,@F77@,$F77,;t t
31277 s,@FFLAGS@,$FFLAGS,;t t
31278 s,@ac_ct_F77@,$ac_ct_F77,;t t
31279 s,@LIBTOOL@,$LIBTOOL,;t t
31280 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31281 s,@LLVMGCC@,$LLVMGCC,;t t
31282 s,@LLVMGXX@,$LLVMGXX,;t t
31283 s,@ALLOCA@,$ALLOCA,;t t
31284 s,@MMAP_FILE@,$MMAP_FILE,;t t
31285 s,@LLVMCC1@,$LLVMCC1,;t t
31286 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31287 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31288 s,@SHLIBEXT@,$SHLIBEXT,;t t
31289 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31290 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31291 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31292 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31293 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31294 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31295 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31296 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31297 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31298 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31299 s,@LIBOBJS@,$LIBOBJS,;t t
31300 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31301 CEOF
31302
31303 _ACEOF
31304
31305   cat >>$CONFIG_STATUS <<\_ACEOF
31306   # Split the substitutions into bite-sized pieces for seds with
31307   # small command number limits, like on Digital OSF/1 and HP-UX.
31308   ac_max_sed_lines=48
31309   ac_sed_frag=1 # Number of current file.
31310   ac_beg=1 # First line for current file.
31311   ac_end=$ac_max_sed_lines # Line after last line for current file.
31312   ac_more_lines=:
31313   ac_sed_cmds=
31314   while $ac_more_lines; do
31315     if test $ac_beg -gt 1; then
31316       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31317     else
31318       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31319     fi
31320     if test ! -s $tmp/subs.frag; then
31321       ac_more_lines=false
31322     else
31323       # The purpose of the label and of the branching condition is to
31324       # speed up the sed processing (if there are no `@' at all, there
31325       # is no need to browse any of the substitutions).
31326       # These are the two extra sed commands mentioned above.
31327       (echo ':t
31328   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31329       if test -z "$ac_sed_cmds"; then
31330         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31331       else
31332         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31333       fi
31334       ac_sed_frag=`expr $ac_sed_frag + 1`
31335       ac_beg=$ac_end
31336       ac_end=`expr $ac_end + $ac_max_sed_lines`
31337     fi
31338   done
31339   if test -z "$ac_sed_cmds"; then
31340     ac_sed_cmds=cat
31341   fi
31342 fi # test -n "$CONFIG_FILES"
31343
31344 _ACEOF
31345 cat >>$CONFIG_STATUS <<\_ACEOF
31346 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31347   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31348   case $ac_file in
31349   - | *:- | *:-:* ) # input from stdin
31350         cat >$tmp/stdin
31351         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31352         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31353   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31354         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31355   * )   ac_file_in=$ac_file.in ;;
31356   esac
31357
31358   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31359   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31360 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31361          X"$ac_file" : 'X\(//\)[^/]' \| \
31362          X"$ac_file" : 'X\(//\)$' \| \
31363          X"$ac_file" : 'X\(/\)' \| \
31364          .     : '\(.\)' 2>/dev/null ||
31365 echo X"$ac_file" |
31366     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31367           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31368           /^X\(\/\/\)$/{ s//\1/; q; }
31369           /^X\(\/\).*/{ s//\1/; q; }
31370           s/.*/./; q'`
31371   { if $as_mkdir_p; then
31372     mkdir -p "$ac_dir"
31373   else
31374     as_dir="$ac_dir"
31375     as_dirs=
31376     while test ! -d "$as_dir"; do
31377       as_dirs="$as_dir $as_dirs"
31378       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31380          X"$as_dir" : 'X\(//\)[^/]' \| \
31381          X"$as_dir" : 'X\(//\)$' \| \
31382          X"$as_dir" : 'X\(/\)' \| \
31383          .     : '\(.\)' 2>/dev/null ||
31384 echo X"$as_dir" |
31385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31386           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31387           /^X\(\/\/\)$/{ s//\1/; q; }
31388           /^X\(\/\).*/{ s//\1/; q; }
31389           s/.*/./; q'`
31390     done
31391     test ! -n "$as_dirs" || mkdir $as_dirs
31392   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31393 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31394    { (exit 1); exit 1; }; }; }
31395
31396   ac_builddir=.
31397
31398 if test "$ac_dir" != .; then
31399   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31400   # A "../" for each directory in $ac_dir_suffix.
31401   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31402 else
31403   ac_dir_suffix= ac_top_builddir=
31404 fi
31405
31406 case $srcdir in
31407   .)  # No --srcdir option.  We are building in place.
31408     ac_srcdir=.
31409     if test -z "$ac_top_builddir"; then
31410        ac_top_srcdir=.
31411     else
31412        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31413     fi ;;
31414   [\\/]* | ?:[\\/]* )  # Absolute path.
31415     ac_srcdir=$srcdir$ac_dir_suffix;
31416     ac_top_srcdir=$srcdir ;;
31417   *) # Relative path.
31418     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31419     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31420 esac
31421
31422 # Do not use `cd foo && pwd` to compute absolute paths, because
31423 # the directories may not exist.
31424 case `pwd` in
31425 .) ac_abs_builddir="$ac_dir";;
31426 *)
31427   case "$ac_dir" in
31428   .) ac_abs_builddir=`pwd`;;
31429   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31430   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31431   esac;;
31432 esac
31433 case $ac_abs_builddir in
31434 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31435 *)
31436   case ${ac_top_builddir}. in
31437   .) ac_abs_top_builddir=$ac_abs_builddir;;
31438   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31439   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31440   esac;;
31441 esac
31442 case $ac_abs_builddir in
31443 .) ac_abs_srcdir=$ac_srcdir;;
31444 *)
31445   case $ac_srcdir in
31446   .) ac_abs_srcdir=$ac_abs_builddir;;
31447   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31448   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31449   esac;;
31450 esac
31451 case $ac_abs_builddir in
31452 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31453 *)
31454   case $ac_top_srcdir in
31455   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31456   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31457   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31458   esac;;
31459 esac
31460
31461
31462   case $INSTALL in
31463   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31464   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31465   esac
31466
31467   if test x"$ac_file" != x-; then
31468     { echo "$as_me:$LINENO: creating $ac_file" >&5
31469 echo "$as_me: creating $ac_file" >&6;}
31470     rm -f "$ac_file"
31471   fi
31472   # Let's still pretend it is `configure' which instantiates (i.e., don't
31473   # use $as_me), people would be surprised to read:
31474   #    /* config.h.  Generated by config.status.  */
31475   if test x"$ac_file" = x-; then
31476     configure_input=
31477   else
31478     configure_input="$ac_file.  "
31479   fi
31480   configure_input=$configure_input"Generated from `echo $ac_file_in |
31481                                      sed 's,.*/,,'` by configure."
31482
31483   # First look for the input files in the build tree, otherwise in the
31484   # src tree.
31485   ac_file_inputs=`IFS=:
31486     for f in $ac_file_in; do
31487       case $f in
31488       -) echo $tmp/stdin ;;
31489       [\\/$]*)
31490          # Absolute (can't be DOS-style, as IFS=:)
31491          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31492 echo "$as_me: error: cannot find input file: $f" >&2;}
31493    { (exit 1); exit 1; }; }
31494          echo "$f";;
31495       *) # Relative
31496          if test -f "$f"; then
31497            # Build tree
31498            echo "$f"
31499          elif test -f "$srcdir/$f"; then
31500            # Source tree
31501            echo "$srcdir/$f"
31502          else
31503            # /dev/null tree
31504            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31505 echo "$as_me: error: cannot find input file: $f" >&2;}
31506    { (exit 1); exit 1; }; }
31507          fi;;
31508       esac
31509     done` || { (exit 1); exit 1; }
31510 _ACEOF
31511 cat >>$CONFIG_STATUS <<_ACEOF
31512   sed "$ac_vpsub
31513 $extrasub
31514 _ACEOF
31515 cat >>$CONFIG_STATUS <<\_ACEOF
31516 :t
31517 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31518 s,@configure_input@,$configure_input,;t t
31519 s,@srcdir@,$ac_srcdir,;t t
31520 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31521 s,@top_srcdir@,$ac_top_srcdir,;t t
31522 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31523 s,@builddir@,$ac_builddir,;t t
31524 s,@abs_builddir@,$ac_abs_builddir,;t t
31525 s,@top_builddir@,$ac_top_builddir,;t t
31526 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31527 s,@INSTALL@,$ac_INSTALL,;t t
31528 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31529   rm -f $tmp/stdin
31530   if test x"$ac_file" != x-; then
31531     mv $tmp/out $ac_file
31532   else
31533     cat $tmp/out
31534     rm -f $tmp/out
31535   fi
31536
31537 done
31538 _ACEOF
31539 cat >>$CONFIG_STATUS <<\_ACEOF
31540
31541 #
31542 # CONFIG_HEADER section.
31543 #
31544
31545 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31546 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31547 #
31548 # ac_d sets the value in "#define NAME VALUE" lines.
31549 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31550 ac_dB='[         ].*$,\1#\2'
31551 ac_dC=' '
31552 ac_dD=',;t'
31553 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31554 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31555 ac_uB='$,\1#\2define\3'
31556 ac_uC=' '
31557 ac_uD=',;t'
31558
31559 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31560   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31561   case $ac_file in
31562   - | *:- | *:-:* ) # input from stdin
31563         cat >$tmp/stdin
31564         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31565         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31566   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31567         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31568   * )   ac_file_in=$ac_file.in ;;
31569   esac
31570
31571   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31572 echo "$as_me: creating $ac_file" >&6;}
31573
31574   # First look for the input files in the build tree, otherwise in the
31575   # src tree.
31576   ac_file_inputs=`IFS=:
31577     for f in $ac_file_in; do
31578       case $f in
31579       -) echo $tmp/stdin ;;
31580       [\\/$]*)
31581          # Absolute (can't be DOS-style, as IFS=:)
31582          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31583 echo "$as_me: error: cannot find input file: $f" >&2;}
31584    { (exit 1); exit 1; }; }
31585          # Do quote $f, to prevent DOS paths from being IFS'd.
31586          echo "$f";;
31587       *) # Relative
31588          if test -f "$f"; then
31589            # Build tree
31590            echo "$f"
31591          elif test -f "$srcdir/$f"; then
31592            # Source tree
31593            echo "$srcdir/$f"
31594          else
31595            # /dev/null tree
31596            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31597 echo "$as_me: error: cannot find input file: $f" >&2;}
31598    { (exit 1); exit 1; }; }
31599          fi;;
31600       esac
31601     done` || { (exit 1); exit 1; }
31602   # Remove the trailing spaces.
31603   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31604
31605 _ACEOF
31606
31607 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31608 # `conftest.undefs', that substitutes the proper values into
31609 # config.h.in to produce config.h.  The first handles `#define'
31610 # templates, and the second `#undef' templates.
31611 # And first: Protect against being on the right side of a sed subst in
31612 # config.status.  Protect against being in an unquoted here document
31613 # in config.status.
31614 rm -f conftest.defines conftest.undefs
31615 # Using a here document instead of a string reduces the quoting nightmare.
31616 # Putting comments in sed scripts is not portable.
31617 #
31618 # `end' is used to avoid that the second main sed command (meant for
31619 # 0-ary CPP macros) applies to n-ary macro definitions.
31620 # See the Autoconf documentation for `clear'.
31621 cat >confdef2sed.sed <<\_ACEOF
31622 s/[\\&,]/\\&/g
31623 s,[\\$`],\\&,g
31624 t clear
31625 : clear
31626 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31627 t end
31628 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31629 : end
31630 _ACEOF
31631 # If some macros were called several times there might be several times
31632 # the same #defines, which is useless.  Nevertheless, we may not want to
31633 # sort them, since we want the *last* AC-DEFINE to be honored.
31634 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31635 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31636 rm -f confdef2sed.sed
31637
31638 # This sed command replaces #undef with comments.  This is necessary, for
31639 # example, in the case of _POSIX_SOURCE, which is predefined and required
31640 # on some systems where configure will not decide to define it.
31641 cat >>conftest.undefs <<\_ACEOF
31642 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31643 _ACEOF
31644
31645 # Break up conftest.defines because some shells have a limit on the size
31646 # of here documents, and old seds have small limits too (100 cmds).
31647 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31648 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31649 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31650 echo '  :' >>$CONFIG_STATUS
31651 rm -f conftest.tail
31652 while grep . conftest.defines >/dev/null
31653 do
31654   # Write a limited-size here document to $tmp/defines.sed.
31655   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31656   # Speed up: don't consider the non `#define' lines.
31657   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31658   # Work around the forget-to-reset-the-flag bug.
31659   echo 't clr' >>$CONFIG_STATUS
31660   echo ': clr' >>$CONFIG_STATUS
31661   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31662   echo 'CEOF
31663   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31664   rm -f $tmp/in
31665   mv $tmp/out $tmp/in
31666 ' >>$CONFIG_STATUS
31667   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31668   rm -f conftest.defines
31669   mv conftest.tail conftest.defines
31670 done
31671 rm -f conftest.defines
31672 echo '  fi # grep' >>$CONFIG_STATUS
31673 echo >>$CONFIG_STATUS
31674
31675 # Break up conftest.undefs because some shells have a limit on the size
31676 # of here documents, and old seds have small limits too (100 cmds).
31677 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31678 rm -f conftest.tail
31679 while grep . conftest.undefs >/dev/null
31680 do
31681   # Write a limited-size here document to $tmp/undefs.sed.
31682   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31683   # Speed up: don't consider the non `#undef'
31684   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31685   # Work around the forget-to-reset-the-flag bug.
31686   echo 't clr' >>$CONFIG_STATUS
31687   echo ': clr' >>$CONFIG_STATUS
31688   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31689   echo 'CEOF
31690   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31691   rm -f $tmp/in
31692   mv $tmp/out $tmp/in
31693 ' >>$CONFIG_STATUS
31694   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31695   rm -f conftest.undefs
31696   mv conftest.tail conftest.undefs
31697 done
31698 rm -f conftest.undefs
31699
31700 cat >>$CONFIG_STATUS <<\_ACEOF
31701   # Let's still pretend it is `configure' which instantiates (i.e., don't
31702   # use $as_me), people would be surprised to read:
31703   #    /* config.h.  Generated by config.status.  */
31704   if test x"$ac_file" = x-; then
31705     echo "/* Generated by configure.  */" >$tmp/config.h
31706   else
31707     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31708   fi
31709   cat $tmp/in >>$tmp/config.h
31710   rm -f $tmp/in
31711   if test x"$ac_file" != x-; then
31712     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31713       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31714 echo "$as_me: $ac_file is unchanged" >&6;}
31715     else
31716       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31717 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31718          X"$ac_file" : 'X\(//\)[^/]' \| \
31719          X"$ac_file" : 'X\(//\)$' \| \
31720          X"$ac_file" : 'X\(/\)' \| \
31721          .     : '\(.\)' 2>/dev/null ||
31722 echo X"$ac_file" |
31723     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31724           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31725           /^X\(\/\/\)$/{ s//\1/; q; }
31726           /^X\(\/\).*/{ s//\1/; q; }
31727           s/.*/./; q'`
31728       { if $as_mkdir_p; then
31729     mkdir -p "$ac_dir"
31730   else
31731     as_dir="$ac_dir"
31732     as_dirs=
31733     while test ! -d "$as_dir"; do
31734       as_dirs="$as_dir $as_dirs"
31735       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31736 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31737          X"$as_dir" : 'X\(//\)[^/]' \| \
31738          X"$as_dir" : 'X\(//\)$' \| \
31739          X"$as_dir" : 'X\(/\)' \| \
31740          .     : '\(.\)' 2>/dev/null ||
31741 echo X"$as_dir" |
31742     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31743           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31744           /^X\(\/\/\)$/{ s//\1/; q; }
31745           /^X\(\/\).*/{ s//\1/; q; }
31746           s/.*/./; q'`
31747     done
31748     test ! -n "$as_dirs" || mkdir $as_dirs
31749   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31750 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31751    { (exit 1); exit 1; }; }; }
31752
31753       rm -f $ac_file
31754       mv $tmp/config.h $ac_file
31755     fi
31756   else
31757     cat $tmp/config.h
31758     rm -f $tmp/config.h
31759   fi
31760 done
31761 _ACEOF
31762 cat >>$CONFIG_STATUS <<\_ACEOF
31763
31764 #
31765 # CONFIG_COMMANDS section.
31766 #
31767 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31768   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31769   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31770   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31771 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31772          X"$ac_dest" : 'X\(//\)[^/]' \| \
31773          X"$ac_dest" : 'X\(//\)$' \| \
31774          X"$ac_dest" : 'X\(/\)' \| \
31775          .     : '\(.\)' 2>/dev/null ||
31776 echo X"$ac_dest" |
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   { if $as_mkdir_p; then
31783     mkdir -p "$ac_dir"
31784   else
31785     as_dir="$ac_dir"
31786     as_dirs=
31787     while test ! -d "$as_dir"; do
31788       as_dirs="$as_dir $as_dirs"
31789       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31790 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31791          X"$as_dir" : 'X\(//\)[^/]' \| \
31792          X"$as_dir" : 'X\(//\)$' \| \
31793          X"$as_dir" : 'X\(/\)' \| \
31794          .     : '\(.\)' 2>/dev/null ||
31795 echo X"$as_dir" |
31796     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31797           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31798           /^X\(\/\/\)$/{ s//\1/; q; }
31799           /^X\(\/\).*/{ s//\1/; q; }
31800           s/.*/./; q'`
31801     done
31802     test ! -n "$as_dirs" || mkdir $as_dirs
31803   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31804 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31805    { (exit 1); exit 1; }; }; }
31806
31807   ac_builddir=.
31808
31809 if test "$ac_dir" != .; then
31810   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31811   # A "../" for each directory in $ac_dir_suffix.
31812   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31813 else
31814   ac_dir_suffix= ac_top_builddir=
31815 fi
31816
31817 case $srcdir in
31818   .)  # No --srcdir option.  We are building in place.
31819     ac_srcdir=.
31820     if test -z "$ac_top_builddir"; then
31821        ac_top_srcdir=.
31822     else
31823        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31824     fi ;;
31825   [\\/]* | ?:[\\/]* )  # Absolute path.
31826     ac_srcdir=$srcdir$ac_dir_suffix;
31827     ac_top_srcdir=$srcdir ;;
31828   *) # Relative path.
31829     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31830     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31831 esac
31832
31833 # Do not use `cd foo && pwd` to compute absolute paths, because
31834 # the directories may not exist.
31835 case `pwd` in
31836 .) ac_abs_builddir="$ac_dir";;
31837 *)
31838   case "$ac_dir" in
31839   .) ac_abs_builddir=`pwd`;;
31840   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31841   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31842   esac;;
31843 esac
31844 case $ac_abs_builddir in
31845 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31846 *)
31847   case ${ac_top_builddir}. in
31848   .) ac_abs_top_builddir=$ac_abs_builddir;;
31849   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31850   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31851   esac;;
31852 esac
31853 case $ac_abs_builddir in
31854 .) ac_abs_srcdir=$ac_srcdir;;
31855 *)
31856   case $ac_srcdir in
31857   .) ac_abs_srcdir=$ac_abs_builddir;;
31858   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31859   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31860   esac;;
31861 esac
31862 case $ac_abs_builddir in
31863 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31864 *)
31865   case $ac_top_srcdir in
31866   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31867   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31868   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31869   esac;;
31870 esac
31871
31872
31873   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31874 echo "$as_me: executing $ac_dest commands" >&6;}
31875   case $ac_dest in
31876     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31877    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31878     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31879    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31880     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31881    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31882     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31883    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31884     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31885    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31886     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31887    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31888     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31889    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31890     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31891    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31892     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31893    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31894     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31895    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31896   esac
31897 done
31898 _ACEOF
31899
31900 cat >>$CONFIG_STATUS <<\_ACEOF
31901
31902 { (exit 0); exit 0; }
31903 _ACEOF
31904 chmod +x $CONFIG_STATUS
31905 ac_clean_files=$ac_clean_files_save
31906
31907
31908 # configure is writing to config.log, and then calls config.status.
31909 # config.status does its own redirection, appending to config.log.
31910 # Unfortunately, on DOS this fails, as config.log is still kept open
31911 # by configure, so config.status won't be able to write to it; its
31912 # output is simply discarded.  So we exec the FD to /dev/null,
31913 # effectively closing config.log, so it can be properly (re)opened and
31914 # appended to by config.status.  When coming back to configure, we
31915 # need to make the FD available again.
31916 if test "$no_create" != yes; then
31917   ac_cs_success=:
31918   ac_config_status_args=
31919   test "$silent" = yes &&
31920     ac_config_status_args="$ac_config_status_args --quiet"
31921   exec 5>/dev/null
31922   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31923   exec 5>>config.log
31924   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31925   # would make configure fail if this is the last instruction.
31926   $ac_cs_success || { (exit 1); exit 1; }
31927 fi
31928
31929 #
31930 # CONFIG_SUBDIRS section.
31931 #
31932 if test "$no_recursion" != yes; then
31933
31934   # Remove --cache-file and --srcdir arguments so they do not pile up.
31935   ac_sub_configure_args=
31936   ac_prev=
31937   for ac_arg in $ac_configure_args; do
31938     if test -n "$ac_prev"; then
31939       ac_prev=
31940       continue
31941     fi
31942     case $ac_arg in
31943     -cache-file | --cache-file | --cache-fil | --cache-fi \
31944     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31945       ac_prev=cache_file ;;
31946     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31947     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31948     | --c=*)
31949       ;;
31950     --config-cache | -C)
31951       ;;
31952     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31953       ac_prev=srcdir ;;
31954     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31955       ;;
31956     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31957       ac_prev=prefix ;;
31958     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31959       ;;
31960     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31961     esac
31962   done
31963
31964   # Always prepend --prefix to ensure using the same prefix
31965   # in subdir configurations.
31966   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31967
31968   ac_popdir=`pwd`
31969   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31970
31971     # Do not complain, so a configure script can configure whichever
31972     # parts of a large source tree are present.
31973     test -d $srcdir/$ac_dir || continue
31974
31975     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31976 echo "$as_me: configuring in $ac_dir" >&6;}
31977     { if $as_mkdir_p; then
31978     mkdir -p "$ac_dir"
31979   else
31980     as_dir="$ac_dir"
31981     as_dirs=
31982     while test ! -d "$as_dir"; do
31983       as_dirs="$as_dir $as_dirs"
31984       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31986          X"$as_dir" : 'X\(//\)[^/]' \| \
31987          X"$as_dir" : 'X\(//\)$' \| \
31988          X"$as_dir" : 'X\(/\)' \| \
31989          .     : '\(.\)' 2>/dev/null ||
31990 echo X"$as_dir" |
31991     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31992           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31993           /^X\(\/\/\)$/{ s//\1/; q; }
31994           /^X\(\/\).*/{ s//\1/; q; }
31995           s/.*/./; q'`
31996     done
31997     test ! -n "$as_dirs" || mkdir $as_dirs
31998   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31999 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32000    { (exit 1); exit 1; }; }; }
32001
32002     ac_builddir=.
32003
32004 if test "$ac_dir" != .; then
32005   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32006   # A "../" for each directory in $ac_dir_suffix.
32007   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32008 else
32009   ac_dir_suffix= ac_top_builddir=
32010 fi
32011
32012 case $srcdir in
32013   .)  # No --srcdir option.  We are building in place.
32014     ac_srcdir=.
32015     if test -z "$ac_top_builddir"; then
32016        ac_top_srcdir=.
32017     else
32018        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32019     fi ;;
32020   [\\/]* | ?:[\\/]* )  # Absolute path.
32021     ac_srcdir=$srcdir$ac_dir_suffix;
32022     ac_top_srcdir=$srcdir ;;
32023   *) # Relative path.
32024     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32025     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32026 esac
32027
32028 # Do not use `cd foo && pwd` to compute absolute paths, because
32029 # the directories may not exist.
32030 case `pwd` in
32031 .) ac_abs_builddir="$ac_dir";;
32032 *)
32033   case "$ac_dir" in
32034   .) ac_abs_builddir=`pwd`;;
32035   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32036   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32037   esac;;
32038 esac
32039 case $ac_abs_builddir in
32040 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32041 *)
32042   case ${ac_top_builddir}. in
32043   .) ac_abs_top_builddir=$ac_abs_builddir;;
32044   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32045   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32046   esac;;
32047 esac
32048 case $ac_abs_builddir in
32049 .) ac_abs_srcdir=$ac_srcdir;;
32050 *)
32051   case $ac_srcdir in
32052   .) ac_abs_srcdir=$ac_abs_builddir;;
32053   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32054   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32055   esac;;
32056 esac
32057 case $ac_abs_builddir in
32058 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32059 *)
32060   case $ac_top_srcdir in
32061   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32062   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32063   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32064   esac;;
32065 esac
32066
32067
32068     cd $ac_dir
32069
32070     # Check for guested configure; otherwise get Cygnus style configure.
32071     if test -f $ac_srcdir/configure.gnu; then
32072       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32073     elif test -f $ac_srcdir/configure; then
32074       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32075     elif test -f $ac_srcdir/configure.in; then
32076       ac_sub_configure=$ac_configure
32077     else
32078       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32079 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32080       ac_sub_configure=
32081     fi
32082
32083     # The recursion is here.
32084     if test -n "$ac_sub_configure"; then
32085       # Make the cache file name correct relative to the subdirectory.
32086       case $cache_file in
32087       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32088       *) # Relative path.
32089         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32090       esac
32091
32092       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32093 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32094       # The eval makes quoting arguments work.
32095       eval $ac_sub_configure $ac_sub_configure_args \
32096            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32097         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32098 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32099    { (exit 1); exit 1; }; }
32100     fi
32101
32102     cd $ac_popdir
32103   done
32104 fi
32105
32106
32107 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32108  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32109 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32110  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32111 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32112  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32113 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32114  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32115 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32116  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32117 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32118 fi