Alpha has JIT
[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 GRAPHVIZ GV 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=TARGET_HAS_JIT=1
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 # Extract the first word of "Graphviz", so it can be a program name with args.
5058 set dummy Graphviz; ac_word=$2
5059 echo "$as_me:$LINENO: checking for $ac_word" >&5
5060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5061 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5062   echo $ECHO_N "(cached) $ECHO_C" >&6
5063 else
5064   case $GRAPHVIZ in
5065   [\\/]* | ?:[\\/]*)
5066   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5067   ;;
5068   *)
5069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5071 do
5072   IFS=$as_save_IFS
5073   test -z "$as_dir" && as_dir=.
5074   for ac_exec_ext in '' $ac_executable_extensions; do
5075   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5076     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5078     break 2
5079   fi
5080 done
5081 done
5082
5083   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5084   ;;
5085 esac
5086 fi
5087 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5088
5089 if test -n "$GRAPHVIZ"; then
5090   echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5091 echo "${ECHO_T}$GRAPHVIZ" >&6
5092 else
5093   echo "$as_me:$LINENO: result: no" >&5
5094 echo "${ECHO_T}no" >&6
5095 fi
5096
5097 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5098
5099 cat >>confdefs.h <<\_ACEOF
5100 #define HAVE_GRAPHVIZ 1
5101 _ACEOF
5102
5103
5104 cat >>confdefs.h <<_ACEOF
5105 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5106 _ACEOF
5107
5108 fi
5109 # Extract the first word of "gv", so it can be a program name with args.
5110 set dummy gv; ac_word=$2
5111 echo "$as_me:$LINENO: checking for $ac_word" >&5
5112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5113 if test "${ac_cv_path_GV+set}" = set; then
5114   echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116   case $GV in
5117   [\\/]* | ?:[\\/]*)
5118   ac_cv_path_GV="$GV" # Let the user override the test with a path.
5119   ;;
5120   *)
5121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124   IFS=$as_save_IFS
5125   test -z "$as_dir" && as_dir=.
5126   for ac_exec_ext in '' $ac_executable_extensions; do
5127   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5130     break 2
5131   fi
5132 done
5133 done
5134
5135   test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5136   ;;
5137 esac
5138 fi
5139 GV=$ac_cv_path_GV
5140
5141 if test -n "$GV"; then
5142   echo "$as_me:$LINENO: result: $GV" >&5
5143 echo "${ECHO_T}$GV" >&6
5144 else
5145   echo "$as_me:$LINENO: result: no" >&5
5146 echo "${ECHO_T}no" >&6
5147 fi
5148
5149 if test "$GRAPHVIZ" != "echo gv" ; then
5150
5151 cat >>confdefs.h <<\_ACEOF
5152 #define HAVE_GV 1
5153 _ACEOF
5154
5155
5156 cat >>confdefs.h <<_ACEOF
5157 #define LLVM_PATH_GV "$GV"
5158 _ACEOF
5159
5160 fi
5161
5162 # Find a good install program.  We prefer a C program (faster),
5163 # so one script is as good as another.  But avoid the broken or
5164 # incompatible versions:
5165 # SysV /etc/install, /usr/sbin/install
5166 # SunOS /usr/etc/install
5167 # IRIX /sbin/install
5168 # AIX /bin/install
5169 # AmigaOS /C/install, which installs bootblocks on floppy discs
5170 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5171 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5172 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5173 # OS/2's system install, which has a completely different semantic
5174 # ./install, which can be erroneously created by make from ./install.sh.
5175 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5176 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5177 if test -z "$INSTALL"; then
5178 if test "${ac_cv_path_install+set}" = set; then
5179   echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184   IFS=$as_save_IFS
5185   test -z "$as_dir" && as_dir=.
5186   # Account for people who put trailing slashes in PATH elements.
5187 case $as_dir/ in
5188   ./ | .// | /cC/* | \
5189   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5190   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5191   /usr/ucb/* ) ;;
5192   *)
5193     # OSF1 and SCO ODT 3.0 have their own names for install.
5194     # Don't use installbsd from OSF since it installs stuff as root
5195     # by default.
5196     for ac_prog in ginstall scoinst install; do
5197       for ac_exec_ext in '' $ac_executable_extensions; do
5198         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5199           if test $ac_prog = install &&
5200             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5201             # AIX install.  It has an incompatible calling convention.
5202             :
5203           elif test $ac_prog = install &&
5204             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5205             # program-specific install script used by HP pwplus--don't use.
5206             :
5207           else
5208             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5209             break 3
5210           fi
5211         fi
5212       done
5213     done
5214     ;;
5215 esac
5216 done
5217
5218
5219 fi
5220   if test "${ac_cv_path_install+set}" = set; then
5221     INSTALL=$ac_cv_path_install
5222   else
5223     # As a last resort, use the slow shell script.  We don't cache a
5224     # path for INSTALL within a source directory, because that will
5225     # break other packages using the cache if that directory is
5226     # removed, or if the path is relative.
5227     INSTALL=$ac_install_sh
5228   fi
5229 fi
5230 echo "$as_me:$LINENO: result: $INSTALL" >&5
5231 echo "${ECHO_T}$INSTALL" >&6
5232
5233 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5234 # It thinks the first close brace ends the variable substitution.
5235 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5236
5237 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5238
5239 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5240
5241
5242 # Extract the first word of "bzip2", so it can be a program name with args.
5243 set dummy bzip2; ac_word=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_path_BZIP2+set}" = set; then
5247   echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249   case $BZIP2 in
5250   [\\/]* | ?:[\\/]*)
5251   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5252   ;;
5253   *)
5254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5256 do
5257   IFS=$as_save_IFS
5258   test -z "$as_dir" && as_dir=.
5259   for ac_exec_ext in '' $ac_executable_extensions; do
5260   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263     break 2
5264   fi
5265 done
5266 done
5267
5268   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5269   ;;
5270 esac
5271 fi
5272 BZIP2=$ac_cv_path_BZIP2
5273
5274 if test -n "$BZIP2"; then
5275   echo "$as_me:$LINENO: result: $BZIP2" >&5
5276 echo "${ECHO_T}$BZIP2" >&6
5277 else
5278   echo "$as_me:$LINENO: result: no" >&5
5279 echo "${ECHO_T}no" >&6
5280 fi
5281
5282 # Extract the first word of "dot", so it can be a program name with args.
5283 set dummy dot; ac_word=$2
5284 echo "$as_me:$LINENO: checking for $ac_word" >&5
5285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5286 if test "${ac_cv_path_DOT+set}" = set; then
5287   echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289   case $DOT in
5290   [\\/]* | ?:[\\/]*)
5291   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5292   ;;
5293   *)
5294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5296 do
5297   IFS=$as_save_IFS
5298   test -z "$as_dir" && as_dir=.
5299   for ac_exec_ext in '' $ac_executable_extensions; do
5300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5301     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5303     break 2
5304   fi
5305 done
5306 done
5307
5308   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5309   ;;
5310 esac
5311 fi
5312 DOT=$ac_cv_path_DOT
5313
5314 if test -n "$DOT"; then
5315   echo "$as_me:$LINENO: result: $DOT" >&5
5316 echo "${ECHO_T}$DOT" >&6
5317 else
5318   echo "$as_me:$LINENO: result: no" >&5
5319 echo "${ECHO_T}no" >&6
5320 fi
5321
5322 # Extract the first word of "doxygen", so it can be a program name with args.
5323 set dummy doxygen; ac_word=$2
5324 echo "$as_me:$LINENO: checking for $ac_word" >&5
5325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5326 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5327   echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329   case $DOXYGEN in
5330   [\\/]* | ?:[\\/]*)
5331   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5332   ;;
5333   *)
5334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337   IFS=$as_save_IFS
5338   test -z "$as_dir" && as_dir=.
5339   for ac_exec_ext in '' $ac_executable_extensions; do
5340   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5341     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5343     break 2
5344   fi
5345 done
5346 done
5347
5348   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5349   ;;
5350 esac
5351 fi
5352 DOXYGEN=$ac_cv_path_DOXYGEN
5353
5354 if test -n "$DOXYGEN"; then
5355   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5356 echo "${ECHO_T}$DOXYGEN" >&6
5357 else
5358   echo "$as_me:$LINENO: result: no" >&5
5359 echo "${ECHO_T}no" >&6
5360 fi
5361
5362 # Extract the first word of "etags", so it can be a program name with args.
5363 set dummy etags; ac_word=$2
5364 echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366 if test "${ac_cv_path_ETAGS+set}" = set; then
5367   echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369   case $ETAGS in
5370   [\\/]* | ?:[\\/]*)
5371   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5372   ;;
5373   *)
5374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5376 do
5377   IFS=$as_save_IFS
5378   test -z "$as_dir" && as_dir=.
5379   for ac_exec_ext in '' $ac_executable_extensions; do
5380   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5383     break 2
5384   fi
5385 done
5386 done
5387
5388   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5389   ;;
5390 esac
5391 fi
5392 ETAGS=$ac_cv_path_ETAGS
5393
5394 if test -n "$ETAGS"; then
5395   echo "$as_me:$LINENO: result: $ETAGS" >&5
5396 echo "${ECHO_T}$ETAGS" >&6
5397 else
5398   echo "$as_me:$LINENO: result: no" >&5
5399 echo "${ECHO_T}no" >&6
5400 fi
5401
5402 # Extract the first word of "groff", so it can be a program name with args.
5403 set dummy groff; ac_word=$2
5404 echo "$as_me:$LINENO: checking for $ac_word" >&5
5405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5406 if test "${ac_cv_path_GROFF+set}" = set; then
5407   echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409   case $GROFF in
5410   [\\/]* | ?:[\\/]*)
5411   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5412   ;;
5413   *)
5414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH
5416 do
5417   IFS=$as_save_IFS
5418   test -z "$as_dir" && as_dir=.
5419   for ac_exec_ext in '' $ac_executable_extensions; do
5420   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5421     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5423     break 2
5424   fi
5425 done
5426 done
5427
5428   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5429   ;;
5430 esac
5431 fi
5432 GROFF=$ac_cv_path_GROFF
5433
5434 if test -n "$GROFF"; then
5435   echo "$as_me:$LINENO: result: $GROFF" >&5
5436 echo "${ECHO_T}$GROFF" >&6
5437 else
5438   echo "$as_me:$LINENO: result: no" >&5
5439 echo "${ECHO_T}no" >&6
5440 fi
5441
5442 # Extract the first word of "gzip", so it can be a program name with args.
5443 set dummy gzip; ac_word=$2
5444 echo "$as_me:$LINENO: checking for $ac_word" >&5
5445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5446 if test "${ac_cv_path_GZIP+set}" = set; then
5447   echo $ECHO_N "(cached) $ECHO_C" >&6
5448 else
5449   case $GZIP in
5450   [\\/]* | ?:[\\/]*)
5451   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5452   ;;
5453   *)
5454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH
5456 do
5457   IFS=$as_save_IFS
5458   test -z "$as_dir" && as_dir=.
5459   for ac_exec_ext in '' $ac_executable_extensions; do
5460   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5461     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5463     break 2
5464   fi
5465 done
5466 done
5467
5468   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5469   ;;
5470 esac
5471 fi
5472 GZIP=$ac_cv_path_GZIP
5473
5474 if test -n "$GZIP"; then
5475   echo "$as_me:$LINENO: result: $GZIP" >&5
5476 echo "${ECHO_T}$GZIP" >&6
5477 else
5478   echo "$as_me:$LINENO: result: no" >&5
5479 echo "${ECHO_T}no" >&6
5480 fi
5481
5482 # Extract the first word of "pod2html", so it can be a program name with args.
5483 set dummy pod2html; ac_word=$2
5484 echo "$as_me:$LINENO: checking for $ac_word" >&5
5485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5486 if test "${ac_cv_path_POD2HTML+set}" = set; then
5487   echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489   case $POD2HTML in
5490   [\\/]* | ?:[\\/]*)
5491   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5492   ;;
5493   *)
5494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5496 do
5497   IFS=$as_save_IFS
5498   test -z "$as_dir" && as_dir=.
5499   for ac_exec_ext in '' $ac_executable_extensions; do
5500   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5501     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5503     break 2
5504   fi
5505 done
5506 done
5507
5508   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5509   ;;
5510 esac
5511 fi
5512 POD2HTML=$ac_cv_path_POD2HTML
5513
5514 if test -n "$POD2HTML"; then
5515   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5516 echo "${ECHO_T}$POD2HTML" >&6
5517 else
5518   echo "$as_me:$LINENO: result: no" >&5
5519 echo "${ECHO_T}no" >&6
5520 fi
5521
5522 # Extract the first word of "pod2man", so it can be a program name with args.
5523 set dummy pod2man; ac_word=$2
5524 echo "$as_me:$LINENO: checking for $ac_word" >&5
5525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5526 if test "${ac_cv_path_POD2MAN+set}" = set; then
5527   echo $ECHO_N "(cached) $ECHO_C" >&6
5528 else
5529   case $POD2MAN in
5530   [\\/]* | ?:[\\/]*)
5531   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5532   ;;
5533   *)
5534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5536 do
5537   IFS=$as_save_IFS
5538   test -z "$as_dir" && as_dir=.
5539   for ac_exec_ext in '' $ac_executable_extensions; do
5540   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5543     break 2
5544   fi
5545 done
5546 done
5547
5548   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5549   ;;
5550 esac
5551 fi
5552 POD2MAN=$ac_cv_path_POD2MAN
5553
5554 if test -n "$POD2MAN"; then
5555   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5556 echo "${ECHO_T}$POD2MAN" >&6
5557 else
5558   echo "$as_me:$LINENO: result: no" >&5
5559 echo "${ECHO_T}no" >&6
5560 fi
5561
5562 # Extract the first word of "runtest", so it can be a program name with args.
5563 set dummy runtest; ac_word=$2
5564 echo "$as_me:$LINENO: checking for $ac_word" >&5
5565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5566 if test "${ac_cv_path_RUNTEST+set}" = set; then
5567   echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569   case $RUNTEST in
5570   [\\/]* | ?:[\\/]*)
5571   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5572   ;;
5573   *)
5574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5576 do
5577   IFS=$as_save_IFS
5578   test -z "$as_dir" && as_dir=.
5579   for ac_exec_ext in '' $ac_executable_extensions; do
5580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5583     break 2
5584   fi
5585 done
5586 done
5587
5588   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5589   ;;
5590 esac
5591 fi
5592 RUNTEST=$ac_cv_path_RUNTEST
5593
5594 if test -n "$RUNTEST"; then
5595   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5596 echo "${ECHO_T}$RUNTEST" >&6
5597 else
5598   echo "$as_me:$LINENO: result: no" >&5
5599 echo "${ECHO_T}no" >&6
5600 fi
5601
5602
5603 no_itcl=true
5604 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5605 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5606
5607 # Check whether --with-tclinclude or --without-tclinclude was given.
5608 if test "${with_tclinclude+set}" = set; then
5609   withval="$with_tclinclude"
5610   with_tclinclude=${withval}
5611 else
5612   with_tclinclude=''
5613 fi;
5614 if test "${ac_cv_path_tclsh+set}" = set; then
5615   echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617
5618 if test x"${with_tclinclude}" != x ; then
5619   if test -f ${with_tclinclude}/tclsh ; then
5620     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5621   elif test -f ${with_tclinclude}/src/tclsh ; then
5622     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5623   else
5624     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5625 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5626    { (exit 1); exit 1; }; }
5627   fi
5628 fi
5629
5630 if test x"${ac_cv_path_tclsh}" = x ; then
5631   echo "$as_me:$LINENO: result: none" >&5
5632 echo "${ECHO_T}none" >&6
5633   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
5634 do
5635   # Extract the first word of "$ac_prog", so it can be a program name with args.
5636 set dummy $ac_prog; ac_word=$2
5637 echo "$as_me:$LINENO: checking for $ac_word" >&5
5638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5639 if test "${ac_cv_path_TCLSH+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   case $TCLSH in
5643   [\\/]* | ?:[\\/]*)
5644   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5645   ;;
5646   *)
5647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH
5649 do
5650   IFS=$as_save_IFS
5651   test -z "$as_dir" && as_dir=.
5652   for ac_exec_ext in '' $ac_executable_extensions; do
5653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5654     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5656     break 2
5657   fi
5658 done
5659 done
5660
5661   ;;
5662 esac
5663 fi
5664 TCLSH=$ac_cv_path_TCLSH
5665
5666 if test -n "$TCLSH"; then
5667   echo "$as_me:$LINENO: result: $TCLSH" >&5
5668 echo "${ECHO_T}$TCLSH" >&6
5669 else
5670   echo "$as_me:$LINENO: result: no" >&5
5671 echo "${ECHO_T}no" >&6
5672 fi
5673
5674   test -n "$TCLSH" && break
5675 done
5676
5677   if test x"${TCLSH}" = x ; then
5678     ac_cv_path_tclsh='';
5679   else
5680     ac_cv_path_tclsh="${TCLSH}";
5681   fi
5682 else
5683   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5684 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5685   TCLSH="${ac_cv_path_tclsh}"
5686
5687 fi
5688
5689 fi
5690
5691 # Extract the first word of "zip", so it can be a program name with args.
5692 set dummy zip; ac_word=$2
5693 echo "$as_me:$LINENO: checking for $ac_word" >&5
5694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5695 if test "${ac_cv_path_ZIP+set}" = set; then
5696   echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698   case $ZIP in
5699   [\\/]* | ?:[\\/]*)
5700   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5701   ;;
5702   *)
5703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH
5705 do
5706   IFS=$as_save_IFS
5707   test -z "$as_dir" && as_dir=.
5708   for ac_exec_ext in '' $ac_executable_extensions; do
5709   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5710     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5712     break 2
5713   fi
5714 done
5715 done
5716
5717   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5718   ;;
5719 esac
5720 fi
5721 ZIP=$ac_cv_path_ZIP
5722
5723 if test -n "$ZIP"; then
5724   echo "$as_me:$LINENO: result: $ZIP" >&5
5725 echo "${ECHO_T}$ZIP" >&6
5726 else
5727   echo "$as_me:$LINENO: result: no" >&5
5728 echo "${ECHO_T}no" >&6
5729 fi
5730
5731
5732 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5733 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5734 if test "${llvm_cv_link_use_r+set}" = set; then
5735   echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737    ac_ext=c
5738 ac_cpp='$CPP $CPPFLAGS'
5739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5742
5743   oldcflags="$CFLAGS"
5744   CFLAGS="$CFLAGS -Wl,-R."
5745   cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h.  */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h.  */
5751
5752 int
5753 main ()
5754 {
5755 int main() { return 0; }
5756   ;
5757   return 0;
5758 }
5759 _ACEOF
5760 rm -f conftest.$ac_objext conftest$ac_exeext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5762   (eval $ac_link) 2>conftest.er1
5763   ac_status=$?
5764   grep -v '^ *+' conftest.er1 >conftest.err
5765   rm -f conftest.er1
5766   cat conftest.err >&5
5767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768   (exit $ac_status); } &&
5769          { ac_try='test -z "$ac_c_werror_flag"
5770                          || test ! -s conftest.err'
5771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772   (eval $ac_try) 2>&5
5773   ac_status=$?
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); }; } &&
5776          { ac_try='test -s conftest$ac_exeext'
5777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778   (eval $ac_try) 2>&5
5779   ac_status=$?
5780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781   (exit $ac_status); }; }; then
5782   llvm_cv_link_use_r=yes
5783 else
5784   echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5786
5787 llvm_cv_link_use_r=no
5788 fi
5789 rm -f conftest.err conftest.$ac_objext \
5790       conftest$ac_exeext conftest.$ac_ext
5791   CFLAGS="$oldcflags"
5792   ac_ext=c
5793 ac_cpp='$CPP $CPPFLAGS'
5794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5797
5798
5799 fi
5800 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5801 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5802 if test "$llvm_cv_link_use_r" = yes ; then
5803
5804 cat >>confdefs.h <<\_ACEOF
5805 #define HAVE_LINK_R 1
5806 _ACEOF
5807
5808   fi
5809
5810
5811
5812
5813 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5814 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5815 if test "${ac_cv_c_const+set}" = set; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818   cat >conftest.$ac_ext <<_ACEOF
5819 /* confdefs.h.  */
5820 _ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h.  */
5824
5825 int
5826 main ()
5827 {
5828 /* FIXME: Include the comments suggested by Paul. */
5829 #ifndef __cplusplus
5830   /* Ultrix mips cc rejects this.  */
5831   typedef int charset[2];
5832   const charset x;
5833   /* SunOS 4.1.1 cc rejects this.  */
5834   char const *const *ccp;
5835   char **p;
5836   /* NEC SVR4.0.2 mips cc rejects this.  */
5837   struct point {int x, y;};
5838   static struct point const zero = {0,0};
5839   /* AIX XL C 1.02.0.0 rejects this.
5840      It does not let you subtract one const X* pointer from another in
5841      an arm of an if-expression whose if-part is not a constant
5842      expression */
5843   const char *g = "string";
5844   ccp = &g + (g ? g-g : 0);
5845   /* HPUX 7.0 cc rejects these. */
5846   ++ccp;
5847   p = (char**) ccp;
5848   ccp = (char const *const *) p;
5849   { /* SCO 3.2v4 cc rejects this.  */
5850     char *t;
5851     char const *s = 0 ? (char *) 0 : (char const *) 0;
5852
5853     *t++ = 0;
5854   }
5855   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5856     int x[] = {25, 17};
5857     const int *foo = &x[0];
5858     ++foo;
5859   }
5860   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5861     typedef const int *iptr;
5862     iptr p = 0;
5863     ++p;
5864   }
5865   { /* AIX XL C 1.02.0.0 rejects this saying
5866        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5867     struct s { int j; const int *ap[3]; };
5868     struct s *b; b->j = 5;
5869   }
5870   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5871     const int foo = 10;
5872   }
5873 #endif
5874
5875   ;
5876   return 0;
5877 }
5878 _ACEOF
5879 rm -f conftest.$ac_objext
5880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881   (eval $ac_compile) 2>conftest.er1
5882   ac_status=$?
5883   grep -v '^ *+' conftest.er1 >conftest.err
5884   rm -f conftest.er1
5885   cat conftest.err >&5
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); } &&
5888          { ac_try='test -z "$ac_c_werror_flag"
5889                          || test ! -s conftest.err'
5890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891   (eval $ac_try) 2>&5
5892   ac_status=$?
5893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894   (exit $ac_status); }; } &&
5895          { ac_try='test -s conftest.$ac_objext'
5896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897   (eval $ac_try) 2>&5
5898   ac_status=$?
5899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900   (exit $ac_status); }; }; then
5901   ac_cv_c_const=yes
5902 else
5903   echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5905
5906 ac_cv_c_const=no
5907 fi
5908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5909 fi
5910 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5911 echo "${ECHO_T}$ac_cv_c_const" >&6
5912 if test $ac_cv_c_const = no; then
5913
5914 cat >>confdefs.h <<\_ACEOF
5915 #define const
5916 _ACEOF
5917
5918 fi
5919
5920
5921 echo "$as_me:$LINENO: checking for egrep" >&5
5922 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5923 if test "${ac_cv_prog_egrep+set}" = set; then
5924   echo $ECHO_N "(cached) $ECHO_C" >&6
5925 else
5926   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5927     then ac_cv_prog_egrep='grep -E'
5928     else ac_cv_prog_egrep='egrep'
5929     fi
5930 fi
5931 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5932 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5933  EGREP=$ac_cv_prog_egrep
5934
5935
5936 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5937 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5938 if test "${ac_cv_header_stdc+set}" = set; then
5939   echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941   cat >conftest.$ac_ext <<_ACEOF
5942 /* confdefs.h.  */
5943 _ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h.  */
5947 #include <stdlib.h>
5948 #include <stdarg.h>
5949 #include <string.h>
5950 #include <float.h>
5951
5952 int
5953 main ()
5954 {
5955
5956   ;
5957   return 0;
5958 }
5959 _ACEOF
5960 rm -f conftest.$ac_objext
5961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5962   (eval $ac_compile) 2>conftest.er1
5963   ac_status=$?
5964   grep -v '^ *+' conftest.er1 >conftest.err
5965   rm -f conftest.er1
5966   cat conftest.err >&5
5967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968   (exit $ac_status); } &&
5969          { ac_try='test -z "$ac_c_werror_flag"
5970                          || test ! -s conftest.err'
5971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972   (eval $ac_try) 2>&5
5973   ac_status=$?
5974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975   (exit $ac_status); }; } &&
5976          { ac_try='test -s conftest.$ac_objext'
5977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978   (eval $ac_try) 2>&5
5979   ac_status=$?
5980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981   (exit $ac_status); }; }; then
5982   ac_cv_header_stdc=yes
5983 else
5984   echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.$ac_ext >&5
5986
5987 ac_cv_header_stdc=no
5988 fi
5989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5990
5991 if test $ac_cv_header_stdc = yes; then
5992   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5993   cat >conftest.$ac_ext <<_ACEOF
5994 /* confdefs.h.  */
5995 _ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h.  */
5999 #include <string.h>
6000
6001 _ACEOF
6002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6003   $EGREP "memchr" >/dev/null 2>&1; then
6004   :
6005 else
6006   ac_cv_header_stdc=no
6007 fi
6008 rm -f conftest*
6009
6010 fi
6011
6012 if test $ac_cv_header_stdc = yes; then
6013   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6014   cat >conftest.$ac_ext <<_ACEOF
6015 /* confdefs.h.  */
6016 _ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h.  */
6020 #include <stdlib.h>
6021
6022 _ACEOF
6023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6024   $EGREP "free" >/dev/null 2>&1; then
6025   :
6026 else
6027   ac_cv_header_stdc=no
6028 fi
6029 rm -f conftest*
6030
6031 fi
6032
6033 if test $ac_cv_header_stdc = yes; then
6034   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6035   if test "$cross_compiling" = yes; then
6036   :
6037 else
6038   cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h.  */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h.  */
6044 #include <ctype.h>
6045 #if ((' ' & 0x0FF) == 0x020)
6046 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6047 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6048 #else
6049 # define ISLOWER(c) \
6050                    (('a' <= (c) && (c) <= 'i') \
6051                      || ('j' <= (c) && (c) <= 'r') \
6052                      || ('s' <= (c) && (c) <= 'z'))
6053 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6054 #endif
6055
6056 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6057 int
6058 main ()
6059 {
6060   int i;
6061   for (i = 0; i < 256; i++)
6062     if (XOR (islower (i), ISLOWER (i))
6063         || toupper (i) != TOUPPER (i))
6064       exit(2);
6065   exit (0);
6066 }
6067 _ACEOF
6068 rm -f conftest$ac_exeext
6069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6070   (eval $ac_link) 2>&5
6071   ac_status=$?
6072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075   (eval $ac_try) 2>&5
6076   ac_status=$?
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); }; }; then
6079   :
6080 else
6081   echo "$as_me: program exited with status $ac_status" >&5
6082 echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6084
6085 ( exit $ac_status )
6086 ac_cv_header_stdc=no
6087 fi
6088 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6089 fi
6090 fi
6091 fi
6092 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6093 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6094 if test $ac_cv_header_stdc = yes; then
6095
6096 cat >>confdefs.h <<\_ACEOF
6097 #define STDC_HEADERS 1
6098 _ACEOF
6099
6100 fi
6101
6102
6103
6104
6105
6106
6107 ac_header_dirent=no
6108 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6109   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6110 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6111 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6113   echo $ECHO_N "(cached) $ECHO_C" >&6
6114 else
6115   cat >conftest.$ac_ext <<_ACEOF
6116 /* confdefs.h.  */
6117 _ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h.  */
6121 #include <sys/types.h>
6122 #include <$ac_hdr>
6123
6124 int
6125 main ()
6126 {
6127 if ((DIR *) 0)
6128 return 0;
6129   ;
6130   return 0;
6131 }
6132 _ACEOF
6133 rm -f conftest.$ac_objext
6134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6135   (eval $ac_compile) 2>conftest.er1
6136   ac_status=$?
6137   grep -v '^ *+' conftest.er1 >conftest.err
6138   rm -f conftest.er1
6139   cat conftest.err >&5
6140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141   (exit $ac_status); } &&
6142          { ac_try='test -z "$ac_c_werror_flag"
6143                          || test ! -s conftest.err'
6144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145   (eval $ac_try) 2>&5
6146   ac_status=$?
6147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148   (exit $ac_status); }; } &&
6149          { ac_try='test -s conftest.$ac_objext'
6150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151   (eval $ac_try) 2>&5
6152   ac_status=$?
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); }; }; then
6155   eval "$as_ac_Header=yes"
6156 else
6157   echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6159
6160 eval "$as_ac_Header=no"
6161 fi
6162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6163 fi
6164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6167   cat >>confdefs.h <<_ACEOF
6168 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6169 _ACEOF
6170
6171 ac_header_dirent=$ac_hdr; break
6172 fi
6173
6174 done
6175 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6176 if test $ac_header_dirent = dirent.h; then
6177   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6178 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6179 if test "${ac_cv_search_opendir+set}" = set; then
6180   echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182   ac_func_search_save_LIBS=$LIBS
6183 ac_cv_search_opendir=no
6184 cat >conftest.$ac_ext <<_ACEOF
6185 /* confdefs.h.  */
6186 _ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h.  */
6190
6191 /* Override any gcc2 internal prototype to avoid an error.  */
6192 #ifdef __cplusplus
6193 extern "C"
6194 #endif
6195 /* We use char because int might match the return type of a gcc2
6196    builtin and then its argument prototype would still apply.  */
6197 char opendir ();
6198 int
6199 main ()
6200 {
6201 opendir ();
6202   ;
6203   return 0;
6204 }
6205 _ACEOF
6206 rm -f conftest.$ac_objext conftest$ac_exeext
6207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6208   (eval $ac_link) 2>conftest.er1
6209   ac_status=$?
6210   grep -v '^ *+' conftest.er1 >conftest.err
6211   rm -f conftest.er1
6212   cat conftest.err >&5
6213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214   (exit $ac_status); } &&
6215          { ac_try='test -z "$ac_c_werror_flag"
6216                          || test ! -s conftest.err'
6217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218   (eval $ac_try) 2>&5
6219   ac_status=$?
6220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); }; } &&
6222          { ac_try='test -s conftest$ac_exeext'
6223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224   (eval $ac_try) 2>&5
6225   ac_status=$?
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); }; }; then
6228   ac_cv_search_opendir="none required"
6229 else
6230   echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6232
6233 fi
6234 rm -f conftest.err conftest.$ac_objext \
6235       conftest$ac_exeext conftest.$ac_ext
6236 if test "$ac_cv_search_opendir" = no; then
6237   for ac_lib in dir; do
6238     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6239     cat >conftest.$ac_ext <<_ACEOF
6240 /* confdefs.h.  */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h.  */
6245
6246 /* Override any gcc2 internal prototype to avoid an error.  */
6247 #ifdef __cplusplus
6248 extern "C"
6249 #endif
6250 /* We use char because int might match the return type of a gcc2
6251    builtin and then its argument prototype would still apply.  */
6252 char opendir ();
6253 int
6254 main ()
6255 {
6256 opendir ();
6257   ;
6258   return 0;
6259 }
6260 _ACEOF
6261 rm -f conftest.$ac_objext conftest$ac_exeext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6263   (eval $ac_link) 2>conftest.er1
6264   ac_status=$?
6265   grep -v '^ *+' conftest.er1 >conftest.err
6266   rm -f conftest.er1
6267   cat conftest.err >&5
6268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269   (exit $ac_status); } &&
6270          { ac_try='test -z "$ac_c_werror_flag"
6271                          || test ! -s conftest.err'
6272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273   (eval $ac_try) 2>&5
6274   ac_status=$?
6275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276   (exit $ac_status); }; } &&
6277          { ac_try='test -s conftest$ac_exeext'
6278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279   (eval $ac_try) 2>&5
6280   ac_status=$?
6281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282   (exit $ac_status); }; }; then
6283   ac_cv_search_opendir="-l$ac_lib"
6284 break
6285 else
6286   echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6288
6289 fi
6290 rm -f conftest.err conftest.$ac_objext \
6291       conftest$ac_exeext conftest.$ac_ext
6292   done
6293 fi
6294 LIBS=$ac_func_search_save_LIBS
6295 fi
6296 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6297 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6298 if test "$ac_cv_search_opendir" != no; then
6299   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6300
6301 fi
6302
6303 else
6304   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6305 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6306 if test "${ac_cv_search_opendir+set}" = set; then
6307   echo $ECHO_N "(cached) $ECHO_C" >&6
6308 else
6309   ac_func_search_save_LIBS=$LIBS
6310 ac_cv_search_opendir=no
6311 cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h.  */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h.  */
6317
6318 /* Override any gcc2 internal prototype to avoid an error.  */
6319 #ifdef __cplusplus
6320 extern "C"
6321 #endif
6322 /* We use char because int might match the return type of a gcc2
6323    builtin and then its argument prototype would still apply.  */
6324 char opendir ();
6325 int
6326 main ()
6327 {
6328 opendir ();
6329   ;
6330   return 0;
6331 }
6332 _ACEOF
6333 rm -f conftest.$ac_objext conftest$ac_exeext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6335   (eval $ac_link) 2>conftest.er1
6336   ac_status=$?
6337   grep -v '^ *+' conftest.er1 >conftest.err
6338   rm -f conftest.er1
6339   cat conftest.err >&5
6340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341   (exit $ac_status); } &&
6342          { ac_try='test -z "$ac_c_werror_flag"
6343                          || test ! -s conftest.err'
6344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345   (eval $ac_try) 2>&5
6346   ac_status=$?
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); }; } &&
6349          { ac_try='test -s conftest$ac_exeext'
6350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351   (eval $ac_try) 2>&5
6352   ac_status=$?
6353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); }; }; then
6355   ac_cv_search_opendir="none required"
6356 else
6357   echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6359
6360 fi
6361 rm -f conftest.err conftest.$ac_objext \
6362       conftest$ac_exeext conftest.$ac_ext
6363 if test "$ac_cv_search_opendir" = no; then
6364   for ac_lib in x; do
6365     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6366     cat >conftest.$ac_ext <<_ACEOF
6367 /* confdefs.h.  */
6368 _ACEOF
6369 cat confdefs.h >>conftest.$ac_ext
6370 cat >>conftest.$ac_ext <<_ACEOF
6371 /* end confdefs.h.  */
6372
6373 /* Override any gcc2 internal prototype to avoid an error.  */
6374 #ifdef __cplusplus
6375 extern "C"
6376 #endif
6377 /* We use char because int might match the return type of a gcc2
6378    builtin and then its argument prototype would still apply.  */
6379 char opendir ();
6380 int
6381 main ()
6382 {
6383 opendir ();
6384   ;
6385   return 0;
6386 }
6387 _ACEOF
6388 rm -f conftest.$ac_objext conftest$ac_exeext
6389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6390   (eval $ac_link) 2>conftest.er1
6391   ac_status=$?
6392   grep -v '^ *+' conftest.er1 >conftest.err
6393   rm -f conftest.er1
6394   cat conftest.err >&5
6395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396   (exit $ac_status); } &&
6397          { ac_try='test -z "$ac_c_werror_flag"
6398                          || test ! -s conftest.err'
6399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400   (eval $ac_try) 2>&5
6401   ac_status=$?
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); }; } &&
6404          { ac_try='test -s conftest$ac_exeext'
6405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406   (eval $ac_try) 2>&5
6407   ac_status=$?
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); }; }; then
6410   ac_cv_search_opendir="-l$ac_lib"
6411 break
6412 else
6413   echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6415
6416 fi
6417 rm -f conftest.err conftest.$ac_objext \
6418       conftest$ac_exeext conftest.$ac_ext
6419   done
6420 fi
6421 LIBS=$ac_func_search_save_LIBS
6422 fi
6423 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6424 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6425 if test "$ac_cv_search_opendir" != no; then
6426   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6427
6428 fi
6429
6430 fi
6431
6432 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6443                   inttypes.h stdint.h unistd.h
6444 do
6445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6446 echo "$as_me:$LINENO: checking for $ac_header" >&5
6447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6449   echo $ECHO_N "(cached) $ECHO_C" >&6
6450 else
6451   cat >conftest.$ac_ext <<_ACEOF
6452 /* confdefs.h.  */
6453 _ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h.  */
6457 $ac_includes_default
6458
6459 #include <$ac_header>
6460 _ACEOF
6461 rm -f conftest.$ac_objext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6463   (eval $ac_compile) 2>conftest.er1
6464   ac_status=$?
6465   grep -v '^ *+' conftest.er1 >conftest.err
6466   rm -f conftest.er1
6467   cat conftest.err >&5
6468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469   (exit $ac_status); } &&
6470          { ac_try='test -z "$ac_c_werror_flag"
6471                          || test ! -s conftest.err'
6472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473   (eval $ac_try) 2>&5
6474   ac_status=$?
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); }; } &&
6477          { ac_try='test -s conftest.$ac_objext'
6478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479   (eval $ac_try) 2>&5
6480   ac_status=$?
6481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482   (exit $ac_status); }; }; then
6483   eval "$as_ac_Header=yes"
6484 else
6485   echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6487
6488 eval "$as_ac_Header=no"
6489 fi
6490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6491 fi
6492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6495   cat >>confdefs.h <<_ACEOF
6496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6497 _ACEOF
6498
6499 fi
6500
6501 done
6502
6503
6504
6505 for ac_header in dlfcn.h
6506 do
6507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6509   echo "$as_me:$LINENO: checking for $ac_header" >&5
6510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6512   echo $ECHO_N "(cached) $ECHO_C" >&6
6513 fi
6514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6516 else
6517   # Is the header compilable?
6518 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h.  */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h.  */
6526 $ac_includes_default
6527 #include <$ac_header>
6528 _ACEOF
6529 rm -f conftest.$ac_objext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6531   (eval $ac_compile) 2>conftest.er1
6532   ac_status=$?
6533   grep -v '^ *+' conftest.er1 >conftest.err
6534   rm -f conftest.er1
6535   cat conftest.err >&5
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); } &&
6538          { ac_try='test -z "$ac_c_werror_flag"
6539                          || test ! -s conftest.err'
6540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541   (eval $ac_try) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); }; } &&
6545          { ac_try='test -s conftest.$ac_objext'
6546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547   (eval $ac_try) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); }; }; then
6551   ac_header_compiler=yes
6552 else
6553   echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 ac_header_compiler=no
6557 fi
6558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6560 echo "${ECHO_T}$ac_header_compiler" >&6
6561
6562 # Is the header present?
6563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6565 cat >conftest.$ac_ext <<_ACEOF
6566 /* confdefs.h.  */
6567 _ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h.  */
6571 #include <$ac_header>
6572 _ACEOF
6573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6574   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6575   ac_status=$?
6576   grep -v '^ *+' conftest.er1 >conftest.err
6577   rm -f conftest.er1
6578   cat conftest.err >&5
6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); } >/dev/null; then
6581   if test -s conftest.err; then
6582     ac_cpp_err=$ac_c_preproc_warn_flag
6583     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6584   else
6585     ac_cpp_err=
6586   fi
6587 else
6588   ac_cpp_err=yes
6589 fi
6590 if test -z "$ac_cpp_err"; then
6591   ac_header_preproc=yes
6592 else
6593   echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6595
6596   ac_header_preproc=no
6597 fi
6598 rm -f conftest.err conftest.$ac_ext
6599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6600 echo "${ECHO_T}$ac_header_preproc" >&6
6601
6602 # So?  What about this header?
6603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6604   yes:no: )
6605     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6609     ac_header_preproc=yes
6610     ;;
6611   no:yes:* )
6612     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6614     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6615 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6616     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6618     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6619 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6620     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6622     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6624     (
6625       cat <<\_ASBOX
6626 ## ----------------------------------- ##
6627 ## Report this to llvmbugs@cs.uiuc.edu ##
6628 ## ----------------------------------- ##
6629 _ASBOX
6630     ) |
6631       sed "s/^/$as_me: WARNING:     /" >&2
6632     ;;
6633 esac
6634 echo "$as_me:$LINENO: checking for $ac_header" >&5
6635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6637   echo $ECHO_N "(cached) $ECHO_C" >&6
6638 else
6639   eval "$as_ac_Header=\$ac_header_preproc"
6640 fi
6641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6643
6644 fi
6645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6646   cat >>confdefs.h <<_ACEOF
6647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6648 _ACEOF
6649
6650 fi
6651
6652 done
6653
6654 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6655 if test "${enable_ltdl_install+set}" = set; then
6656   enableval="$enable_ltdl_install"
6657
6658 fi;
6659
6660
6661
6662 if test x"${enable_ltdl_install-no}" != xno; then
6663   INSTALL_LTDL_TRUE=
6664   INSTALL_LTDL_FALSE='#'
6665 else
6666   INSTALL_LTDL_TRUE='#'
6667   INSTALL_LTDL_FALSE=
6668 fi
6669
6670
6671
6672 if test x"${enable_ltdl_convenience-no}" != xno; then
6673   CONVENIENCE_LTDL_TRUE=
6674   CONVENIENCE_LTDL_FALSE='#'
6675 else
6676   CONVENIENCE_LTDL_TRUE='#'
6677   CONVENIENCE_LTDL_FALSE=
6678 fi
6679
6680
6681 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6682 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6683 library_names_spec=
6684 libname_spec='lib$name'
6685 soname_spec=
6686 shrext_cmds=".so"
6687 postinstall_cmds=
6688 postuninstall_cmds=
6689 finish_cmds=
6690 finish_eval=
6691 shlibpath_var=
6692 shlibpath_overrides_runpath=unknown
6693 version_type=none
6694 dynamic_linker="$host_os ld.so"
6695 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6696 if test "$GCC" = yes; then
6697   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6698   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6699     # if the path contains ";" then we assume it to be the separator
6700     # otherwise default to the standard path separator (i.e. ":") - it is
6701     # assumed that no part of a normal pathname contains ";" but that should
6702     # okay in the real world where ";" in dirpaths is itself problematic.
6703     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6704   else
6705     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6706   fi
6707 else
6708   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6709 fi
6710 need_lib_prefix=unknown
6711 hardcode_into_libs=no
6712
6713 # when you set need_version to no, make sure it does not cause -set_version
6714 # flags to be left without arguments
6715 need_version=unknown
6716
6717 case $host_os in
6718 aix3*)
6719   version_type=linux
6720   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6721   shlibpath_var=LIBPATH
6722
6723   # AIX 3 has no versioning support, so we append a major version to the name.
6724   soname_spec='${libname}${release}${shared_ext}$major'
6725   ;;
6726
6727 aix4* | aix5*)
6728   version_type=linux
6729   need_lib_prefix=no
6730   need_version=no
6731   hardcode_into_libs=yes
6732   if test "$host_cpu" = ia64; then
6733     # AIX 5 supports IA64
6734     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6735     shlibpath_var=LD_LIBRARY_PATH
6736   else
6737     # With GCC up to 2.95.x, collect2 would create an import file
6738     # for dependence libraries.  The import file would start with
6739     # the line `#! .'.  This would cause the generated library to
6740     # depend on `.', always an invalid library.  This was fixed in
6741     # development snapshots of GCC prior to 3.0.
6742     case $host_os in
6743       aix4 | aix4.[01] | aix4.[01].*)
6744       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6745            echo ' yes '
6746            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6747         :
6748       else
6749         can_build_shared=no
6750       fi
6751       ;;
6752     esac
6753     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6754     # soname into executable. Probably we can add versioning support to
6755     # collect2, so additional links can be useful in future.
6756     if test "$aix_use_runtimelinking" = yes; then
6757       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6758       # instead of lib<name>.a to let people know that these are not
6759       # typical AIX shared libraries.
6760       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6761     else
6762       # We preserve .a as extension for shared libraries through AIX4.2
6763       # and later when we are not doing run time linking.
6764       library_names_spec='${libname}${release}.a $libname.a'
6765       soname_spec='${libname}${release}${shared_ext}$major'
6766     fi
6767     shlibpath_var=LIBPATH
6768   fi
6769   ;;
6770
6771 amigaos*)
6772   library_names_spec='$libname.ixlibrary $libname.a'
6773   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6774   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'
6775   ;;
6776
6777 beos*)
6778   library_names_spec='${libname}${shared_ext}'
6779   dynamic_linker="$host_os ld.so"
6780   shlibpath_var=LIBRARY_PATH
6781   ;;
6782
6783 bsdi[45]*)
6784   version_type=linux
6785   need_version=no
6786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6787   soname_spec='${libname}${release}${shared_ext}$major'
6788   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6789   shlibpath_var=LD_LIBRARY_PATH
6790   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6791   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6792   # the default ld.so.conf also contains /usr/contrib/lib and
6793   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6794   # libtool to hard-code these into programs
6795   ;;
6796
6797 cygwin* | mingw* | pw32*)
6798   version_type=windows
6799   shrext_cmds=".dll"
6800   need_version=no
6801   need_lib_prefix=no
6802
6803   case $GCC,$host_os in
6804   yes,cygwin* | yes,mingw* | yes,pw32*)
6805     library_names_spec='$libname.dll.a'
6806     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6807     postinstall_cmds='base_file=`basename \${file}`~
6808       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6809       dldir=$destdir/`dirname \$dlpath`~
6810       test -d \$dldir || mkdir -p \$dldir~
6811       $install_prog $dir/$dlname \$dldir/$dlname'
6812     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6813       dlpath=$dir/\$dldll~
6814        $rm \$dlpath'
6815     shlibpath_overrides_runpath=yes
6816
6817     case $host_os in
6818     cygwin*)
6819       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6820       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6821       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6822       ;;
6823     mingw*)
6824       # MinGW DLLs use traditional 'lib' prefix
6825       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6826       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6827       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6828         # It is most probably a Windows format PATH printed by
6829         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6830         # path with ; separators, and with drive letters. We can handle the
6831         # drive letters (cygwin fileutils understands them), so leave them,
6832         # especially as we might pass files found there to a mingw objdump,
6833         # which wouldn't understand a cygwinified path. Ahh.
6834         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6835       else
6836         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6837       fi
6838       ;;
6839     pw32*)
6840       # pw32 DLLs use 'pw' prefix rather than 'lib'
6841       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6842       ;;
6843     esac
6844     ;;
6845
6846   *)
6847     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6848     ;;
6849   esac
6850   dynamic_linker='Win32 ld.exe'
6851   # FIXME: first we should search . and the directory the executable is in
6852   shlibpath_var=PATH
6853   ;;
6854
6855 darwin* | rhapsody*)
6856   dynamic_linker="$host_os dyld"
6857   version_type=darwin
6858   need_lib_prefix=no
6859   need_version=no
6860   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6861   soname_spec='${libname}${release}${major}$shared_ext'
6862   shlibpath_overrides_runpath=yes
6863   shlibpath_var=DYLD_LIBRARY_PATH
6864   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6865   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6866   if test "$GCC" = yes; then
6867     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"`
6868   else
6869     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6870   fi
6871   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6872   ;;
6873
6874 dgux*)
6875   version_type=linux
6876   need_lib_prefix=no
6877   need_version=no
6878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6879   soname_spec='${libname}${release}${shared_ext}$major'
6880   shlibpath_var=LD_LIBRARY_PATH
6881   ;;
6882
6883 freebsd1*)
6884   dynamic_linker=no
6885   ;;
6886
6887 kfreebsd*-gnu)
6888   version_type=linux
6889   need_lib_prefix=no
6890   need_version=no
6891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6892   soname_spec='${libname}${release}${shared_ext}$major'
6893   shlibpath_var=LD_LIBRARY_PATH
6894   shlibpath_overrides_runpath=no
6895   hardcode_into_libs=yes
6896   dynamic_linker='GNU ld.so'
6897   ;;
6898
6899 freebsd*)
6900   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6901   version_type=freebsd-$objformat
6902   case $version_type in
6903     freebsd-elf*)
6904       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6905       need_version=no
6906       need_lib_prefix=no
6907       ;;
6908     freebsd-*)
6909       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6910       need_version=yes
6911       ;;
6912   esac
6913   shlibpath_var=LD_LIBRARY_PATH
6914   case $host_os in
6915   freebsd2*)
6916     shlibpath_overrides_runpath=yes
6917     ;;
6918   freebsd3.01* | freebsdelf3.01*)
6919     shlibpath_overrides_runpath=yes
6920     hardcode_into_libs=yes
6921     ;;
6922   *) # from 3.2 on
6923     shlibpath_overrides_runpath=no
6924     hardcode_into_libs=yes
6925     ;;
6926   esac
6927   ;;
6928
6929 gnu*)
6930   version_type=linux
6931   need_lib_prefix=no
6932   need_version=no
6933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6934   soname_spec='${libname}${release}${shared_ext}$major'
6935   shlibpath_var=LD_LIBRARY_PATH
6936   hardcode_into_libs=yes
6937   ;;
6938
6939 hpux9* | hpux10* | hpux11*)
6940   # Give a soname corresponding to the major version so that dld.sl refuses to
6941   # link against other versions.
6942   version_type=sunos
6943   need_lib_prefix=no
6944   need_version=no
6945   case "$host_cpu" in
6946   ia64*)
6947     shrext_cmds='.so'
6948     hardcode_into_libs=yes
6949     dynamic_linker="$host_os dld.so"
6950     shlibpath_var=LD_LIBRARY_PATH
6951     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6952     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6953     soname_spec='${libname}${release}${shared_ext}$major'
6954     if test "X$HPUX_IA64_MODE" = X32; then
6955       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6956     else
6957       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6958     fi
6959     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6960     ;;
6961    hppa*64*)
6962      shrext_cmds='.sl'
6963      hardcode_into_libs=yes
6964      dynamic_linker="$host_os dld.sl"
6965      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6966      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6967      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6968      soname_spec='${libname}${release}${shared_ext}$major'
6969      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6970      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6971      ;;
6972    *)
6973     shrext_cmds='.sl'
6974     dynamic_linker="$host_os dld.sl"
6975     shlibpath_var=SHLIB_PATH
6976     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6977     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6978     soname_spec='${libname}${release}${shared_ext}$major'
6979     ;;
6980   esac
6981   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6982   postinstall_cmds='chmod 555 $lib'
6983   ;;
6984
6985 irix5* | irix6* | nonstopux*)
6986   case $host_os in
6987     nonstopux*) version_type=nonstopux ;;
6988     *)
6989         if test "$lt_cv_prog_gnu_ld" = yes; then
6990                 version_type=linux
6991         else
6992                 version_type=irix
6993         fi ;;
6994   esac
6995   need_lib_prefix=no
6996   need_version=no
6997   soname_spec='${libname}${release}${shared_ext}$major'
6998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6999   case $host_os in
7000   irix5* | nonstopux*)
7001     libsuff= shlibsuff=
7002     ;;
7003   *)
7004     case $LD in # libtool.m4 will add one of these switches to LD
7005     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7006       libsuff= shlibsuff= libmagic=32-bit;;
7007     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7008       libsuff=32 shlibsuff=N32 libmagic=N32;;
7009     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7010       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7011     *) libsuff= shlibsuff= libmagic=never-match;;
7012     esac
7013     ;;
7014   esac
7015   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7016   shlibpath_overrides_runpath=no
7017   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7018   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7019   hardcode_into_libs=yes
7020   ;;
7021
7022 # No shared lib support for Linux oldld, aout, or coff.
7023 linux*oldld* | linux*aout* | linux*coff*)
7024   dynamic_linker=no
7025   ;;
7026
7027 # This must be Linux ELF.
7028 linux*)
7029   version_type=linux
7030   need_lib_prefix=no
7031   need_version=no
7032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7033   soname_spec='${libname}${release}${shared_ext}$major'
7034   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7035   shlibpath_var=LD_LIBRARY_PATH
7036   shlibpath_overrides_runpath=no
7037   # This implies no fast_install, which is unacceptable.
7038   # Some rework will be needed to allow for fast_install
7039   # before this can be enabled.
7040   hardcode_into_libs=yes
7041
7042   # Append ld.so.conf contents to the search path
7043   if test -f /etc/ld.so.conf; then
7044     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7045     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7046   fi
7047
7048   # We used to test for /lib/ld.so.1 and disable shared libraries on
7049   # powerpc, because MkLinux only supported shared libraries with the
7050   # GNU dynamic linker.  Since this was broken with cross compilers,
7051   # most powerpc-linux boxes support dynamic linking these days and
7052   # people can always --disable-shared, the test was removed, and we
7053   # assume the GNU/Linux dynamic linker is in use.
7054   dynamic_linker='GNU/Linux ld.so'
7055   ;;
7056
7057 knetbsd*-gnu)
7058   version_type=linux
7059   need_lib_prefix=no
7060   need_version=no
7061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7062   soname_spec='${libname}${release}${shared_ext}$major'
7063   shlibpath_var=LD_LIBRARY_PATH
7064   shlibpath_overrides_runpath=no
7065   hardcode_into_libs=yes
7066   dynamic_linker='GNU ld.so'
7067   ;;
7068
7069 netbsd*)
7070   version_type=sunos
7071   need_lib_prefix=no
7072   need_version=no
7073   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7074     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7075     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7076     dynamic_linker='NetBSD (a.out) ld.so'
7077   else
7078     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7079     soname_spec='${libname}${release}${shared_ext}$major'
7080     dynamic_linker='NetBSD ld.elf_so'
7081   fi
7082   shlibpath_var=LD_LIBRARY_PATH
7083   shlibpath_overrides_runpath=yes
7084   hardcode_into_libs=yes
7085   ;;
7086
7087 newsos6)
7088   version_type=linux
7089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7090   shlibpath_var=LD_LIBRARY_PATH
7091   shlibpath_overrides_runpath=yes
7092   ;;
7093
7094 nto-qnx*)
7095   version_type=linux
7096   need_lib_prefix=no
7097   need_version=no
7098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7099   soname_spec='${libname}${release}${shared_ext}$major'
7100   shlibpath_var=LD_LIBRARY_PATH
7101   shlibpath_overrides_runpath=yes
7102   ;;
7103
7104 openbsd*)
7105   version_type=sunos
7106   need_lib_prefix=no
7107   need_version=no
7108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7109   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7110   shlibpath_var=LD_LIBRARY_PATH
7111   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7112     case $host_os in
7113       openbsd2.[89] | openbsd2.[89].*)
7114         shlibpath_overrides_runpath=no
7115         ;;
7116       *)
7117         shlibpath_overrides_runpath=yes
7118         ;;
7119       esac
7120   else
7121     shlibpath_overrides_runpath=yes
7122   fi
7123   ;;
7124
7125 os2*)
7126   libname_spec='$name'
7127   shrext_cmds=".dll"
7128   need_lib_prefix=no
7129   library_names_spec='$libname${shared_ext} $libname.a'
7130   dynamic_linker='OS/2 ld.exe'
7131   shlibpath_var=LIBPATH
7132   ;;
7133
7134 osf3* | osf4* | osf5*)
7135   version_type=osf
7136   need_lib_prefix=no
7137   need_version=no
7138   soname_spec='${libname}${release}${shared_ext}$major'
7139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7140   shlibpath_var=LD_LIBRARY_PATH
7141   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7142   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7143   ;;
7144
7145 sco3.2v5*)
7146   version_type=osf
7147   soname_spec='${libname}${release}${shared_ext}$major'
7148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7149   shlibpath_var=LD_LIBRARY_PATH
7150   ;;
7151
7152 solaris*)
7153   version_type=linux
7154   need_lib_prefix=no
7155   need_version=no
7156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7157   soname_spec='${libname}${release}${shared_ext}$major'
7158   shlibpath_var=LD_LIBRARY_PATH
7159   shlibpath_overrides_runpath=yes
7160   hardcode_into_libs=yes
7161   # ldd complains unless libraries are executable
7162   postinstall_cmds='chmod +x $lib'
7163   ;;
7164
7165 sunos4*)
7166   version_type=sunos
7167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7168   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7169   shlibpath_var=LD_LIBRARY_PATH
7170   shlibpath_overrides_runpath=yes
7171   if test "$with_gnu_ld" = yes; then
7172     need_lib_prefix=no
7173   fi
7174   need_version=yes
7175   ;;
7176
7177 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7178   version_type=linux
7179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7180   soname_spec='${libname}${release}${shared_ext}$major'
7181   shlibpath_var=LD_LIBRARY_PATH
7182   case $host_vendor in
7183     sni)
7184       shlibpath_overrides_runpath=no
7185       need_lib_prefix=no
7186       export_dynamic_flag_spec='${wl}-Blargedynsym'
7187       runpath_var=LD_RUN_PATH
7188       ;;
7189     siemens)
7190       need_lib_prefix=no
7191       ;;
7192     motorola)
7193       need_lib_prefix=no
7194       need_version=no
7195       shlibpath_overrides_runpath=no
7196       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7197       ;;
7198   esac
7199   ;;
7200
7201 sysv4*MP*)
7202   if test -d /usr/nec ;then
7203     version_type=linux
7204     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7205     soname_spec='$libname${shared_ext}.$major'
7206     shlibpath_var=LD_LIBRARY_PATH
7207   fi
7208   ;;
7209
7210 uts4*)
7211   version_type=linux
7212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7213   soname_spec='${libname}${release}${shared_ext}$major'
7214   shlibpath_var=LD_LIBRARY_PATH
7215   ;;
7216
7217 *)
7218   dynamic_linker=no
7219   ;;
7220 esac
7221 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7222 echo "${ECHO_T}$dynamic_linker" >&6
7223 test "$dynamic_linker" = no && can_build_shared=no
7224
7225
7226 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7227 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7228 if test "${libltdl_cv_shlibext+set}" = set; then
7229   echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231
7232 module=yes
7233 eval libltdl_cv_shlibext=$shrext_cmds
7234
7235 fi
7236 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7237 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7238 if test -n "$libltdl_cv_shlibext"; then
7239
7240 cat >>confdefs.h <<_ACEOF
7241 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7242 _ACEOF
7243
7244 fi
7245
7246
7247 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7248 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7249 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7250   echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252   libltdl_cv_shlibpath_var="$shlibpath_var"
7253 fi
7254 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7255 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7256 if test -n "$libltdl_cv_shlibpath_var"; then
7257
7258 cat >>confdefs.h <<_ACEOF
7259 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7260 _ACEOF
7261
7262 fi
7263
7264
7265 echo "$as_me:$LINENO: checking for the default library search path" >&5
7266 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7267 if test "${libltdl_cv_sys_search_path+set}" = set; then
7268   echo $ECHO_N "(cached) $ECHO_C" >&6
7269 else
7270   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7271 fi
7272 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7273 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7274 if test -n "$libltdl_cv_sys_search_path"; then
7275   sys_search_path=
7276   for dir in $libltdl_cv_sys_search_path; do
7277     if test -z "$sys_search_path"; then
7278       sys_search_path="$dir"
7279     else
7280       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7281     fi
7282   done
7283
7284 cat >>confdefs.h <<_ACEOF
7285 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7286 _ACEOF
7287
7288 fi
7289
7290 echo "$as_me:$LINENO: checking for objdir" >&5
7291 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7292 if test "${libltdl_cv_objdir+set}" = set; then
7293   echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295   libltdl_cv_objdir="$objdir"
7296   if test -n "$objdir"; then
7297     :
7298   else
7299     rm -f .libs 2>/dev/null
7300     mkdir .libs 2>/dev/null
7301     if test -d .libs; then
7302       libltdl_cv_objdir=.libs
7303     else
7304       # MS-DOS does not allow filenames that begin with a dot.
7305       libltdl_cv_objdir=_libs
7306     fi
7307   rmdir .libs 2>/dev/null
7308   fi
7309
7310 fi
7311 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7312 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7313
7314 cat >>confdefs.h <<_ACEOF
7315 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7316 _ACEOF
7317
7318
7319 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7320 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7321 if test "${lt_cv_path_NM+set}" = set; then
7322   echo $ECHO_N "(cached) $ECHO_C" >&6
7323 else
7324   if test -n "$NM"; then
7325   # Let the user override the test.
7326   lt_cv_path_NM="$NM"
7327 else
7328   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7329   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7330     IFS="$lt_save_ifs"
7331     test -z "$ac_dir" && ac_dir=.
7332     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7333     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7334       # Check to see if the nm accepts a BSD-compat flag.
7335       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7336       #   nm: unknown option "B" ignored
7337       # Tru64's nm complains that /dev/null is an invalid object file
7338       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7339       */dev/null* | *'Invalid file or object type'*)
7340         lt_cv_path_NM="$tmp_nm -B"
7341         break
7342         ;;
7343       *)
7344         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7345         */dev/null*)
7346           lt_cv_path_NM="$tmp_nm -p"
7347           break
7348           ;;
7349         *)
7350           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7351           continue # so that we can try to find one that supports BSD flags
7352           ;;
7353         esac
7354       esac
7355     fi
7356   done
7357   IFS="$lt_save_ifs"
7358   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7359 fi
7360 fi
7361 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7362 echo "${ECHO_T}$lt_cv_path_NM" >&6
7363 NM="$lt_cv_path_NM"
7364
7365
7366
7367
7368
7369 # Check for command to grab the raw symbol name followed by C symbol from nm.
7370 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7371 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7372 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7373   echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375
7376 # These are sane defaults that work on at least a few old systems.
7377 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7378
7379 # Character class describing NM global symbol codes.
7380 symcode='[BCDEGRST]'
7381
7382 # Regexp to match symbols that can be accessed directly from C.
7383 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7384
7385 # Transform the above into a raw symbol and a C symbol.
7386 symxfrm='\1 \2\3 \3'
7387
7388 # Transform an extracted symbol line into a proper C declaration
7389 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7390
7391 # Transform an extracted symbol line into symbol name and symbol address
7392 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'"
7393
7394 # Define system-specific variables.
7395 case $host_os in
7396 aix*)
7397   symcode='[BCDT]'
7398   ;;
7399 cygwin* | mingw* | pw32*)
7400   symcode='[ABCDGISTW]'
7401   ;;
7402 hpux*) # Its linker distinguishes data from code symbols
7403   if test "$host_cpu" = ia64; then
7404     symcode='[ABCDEGRST]'
7405   fi
7406   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7407   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'"
7408   ;;
7409 linux*)
7410   if test "$host_cpu" = ia64; then
7411     symcode='[ABCDGIRSTW]'
7412     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7413     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'"
7414   fi
7415   ;;
7416 irix* | nonstopux*)
7417   symcode='[BCDEGRST]'
7418   ;;
7419 osf*)
7420   symcode='[BCDEGQRST]'
7421   ;;
7422 solaris* | sysv5*)
7423   symcode='[BDRT]'
7424   ;;
7425 sysv4)
7426   symcode='[DFNSTU]'
7427   ;;
7428 esac
7429
7430 # Handle CRLF in mingw tool chain
7431 opt_cr=
7432 case $build_os in
7433 mingw*)
7434   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7435   ;;
7436 esac
7437
7438 # If we're using GNU nm, then use its standard symbol codes.
7439 case `$NM -V 2>&1` in
7440 *GNU* | *'with BFD'*)
7441   symcode='[ABCDGIRSTW]' ;;
7442 esac
7443
7444 # Try without a prefix undercore, then with it.
7445 for ac_symprfx in "" "_"; do
7446
7447   # Write the raw and C identifiers.
7448   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7449
7450   # Check to see that the pipe works correctly.
7451   pipe_works=no
7452
7453   rm -f conftest*
7454   cat > conftest.$ac_ext <<EOF
7455 #ifdef __cplusplus
7456 extern "C" {
7457 #endif
7458 char nm_test_var;
7459 void nm_test_func(){}
7460 #ifdef __cplusplus
7461 }
7462 #endif
7463 int main(){nm_test_var='a';nm_test_func();return(0);}
7464 EOF
7465
7466   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7467   (eval $ac_compile) 2>&5
7468   ac_status=$?
7469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470   (exit $ac_status); }; then
7471     # Now try to grab the symbols.
7472     nlist=conftest.nm
7473     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7474   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7475   ac_status=$?
7476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477   (exit $ac_status); } && test -s "$nlist"; then
7478       # Try sorting and uniquifying the output.
7479       if sort "$nlist" | uniq > "$nlist"T; then
7480         mv -f "$nlist"T "$nlist"
7481       else
7482         rm -f "$nlist"T
7483       fi
7484
7485       # Make sure that we snagged all the symbols we need.
7486       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7487         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7488           cat <<EOF > conftest.$ac_ext
7489 #ifdef __cplusplus
7490 extern "C" {
7491 #endif
7492
7493 EOF
7494           # Now generate the symbol file.
7495           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7496
7497           cat <<EOF >> conftest.$ac_ext
7498 #if defined (__STDC__) && __STDC__
7499 # define lt_ptr_t void *
7500 #else
7501 # define lt_ptr_t char *
7502 # define const
7503 #endif
7504
7505 /* The mapping between symbol names and symbols. */
7506 const struct {
7507   const char *name;
7508   lt_ptr_t address;
7509 }
7510 lt_preloaded_symbols[] =
7511 {
7512 EOF
7513           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7514           cat <<\EOF >> conftest.$ac_ext
7515   {0, (lt_ptr_t) 0}
7516 };
7517
7518 #ifdef __cplusplus
7519 }
7520 #endif
7521 EOF
7522           # Now try linking the two files.
7523           mv conftest.$ac_objext conftstm.$ac_objext
7524           lt_save_LIBS="$LIBS"
7525           lt_save_CFLAGS="$CFLAGS"
7526           LIBS="conftstm.$ac_objext"
7527           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7528           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7529   (eval $ac_link) 2>&5
7530   ac_status=$?
7531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7533             pipe_works=yes
7534           fi
7535           LIBS="$lt_save_LIBS"
7536           CFLAGS="$lt_save_CFLAGS"
7537         else
7538           echo "cannot find nm_test_func in $nlist" >&5
7539         fi
7540       else
7541         echo "cannot find nm_test_var in $nlist" >&5
7542       fi
7543     else
7544       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7545     fi
7546   else
7547     echo "$progname: failed program was:" >&5
7548     cat conftest.$ac_ext >&5
7549   fi
7550   rm -f conftest* conftst*
7551
7552   # Do not use the global_symbol_pipe unless it works.
7553   if test "$pipe_works" = yes; then
7554     break
7555   else
7556     lt_cv_sys_global_symbol_pipe=
7557   fi
7558 done
7559
7560 fi
7561
7562 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7563   lt_cv_sys_global_symbol_to_cdecl=
7564 fi
7565 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7566   echo "$as_me:$LINENO: result: failed" >&5
7567 echo "${ECHO_T}failed" >&6
7568 else
7569   echo "$as_me:$LINENO: result: ok" >&5
7570 echo "${ECHO_T}ok" >&6
7571 fi
7572
7573
7574 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7575 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7576 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7577   echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7580     libltdl_cv_preloaded_symbols=yes
7581   else
7582     libltdl_cv_preloaded_symbols=no
7583   fi
7584
7585 fi
7586 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7587 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7588 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7589
7590 cat >>confdefs.h <<\_ACEOF
7591 #define HAVE_PRELOADED_SYMBOLS 1
7592 _ACEOF
7593
7594 fi
7595
7596 LIBADD_DL=
7597
7598 ac_ext=c
7599 ac_cpp='$CPP $CPPFLAGS'
7600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7603
7604
7605 echo "$as_me:$LINENO: checking for shl_load" >&5
7606 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7607 if test "${ac_cv_func_shl_load+set}" = set; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610   cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h.  */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h.  */
7616 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7618 #define shl_load innocuous_shl_load
7619
7620 /* System header to define __stub macros and hopefully few prototypes,
7621     which can conflict with char shl_load (); below.
7622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7623     <limits.h> exists even on freestanding compilers.  */
7624
7625 #ifdef __STDC__
7626 # include <limits.h>
7627 #else
7628 # include <assert.h>
7629 #endif
7630
7631 #undef shl_load
7632
7633 /* Override any gcc2 internal prototype to avoid an error.  */
7634 #ifdef __cplusplus
7635 extern "C"
7636 {
7637 #endif
7638 /* We use char because int might match the return type of a gcc2
7639    builtin and then its argument prototype would still apply.  */
7640 char shl_load ();
7641 /* The GNU C library defines this for functions which it implements
7642     to always fail with ENOSYS.  Some functions are actually named
7643     something starting with __ and the normal name is an alias.  */
7644 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7645 choke me
7646 #else
7647 char (*f) () = shl_load;
7648 #endif
7649 #ifdef __cplusplus
7650 }
7651 #endif
7652
7653 int
7654 main ()
7655 {
7656 return f != shl_load;
7657   ;
7658   return 0;
7659 }
7660 _ACEOF
7661 rm -f conftest.$ac_objext conftest$ac_exeext
7662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7663   (eval $ac_link) 2>conftest.er1
7664   ac_status=$?
7665   grep -v '^ *+' conftest.er1 >conftest.err
7666   rm -f conftest.er1
7667   cat conftest.err >&5
7668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669   (exit $ac_status); } &&
7670          { ac_try='test -z "$ac_c_werror_flag"
7671                          || test ! -s conftest.err'
7672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673   (eval $ac_try) 2>&5
7674   ac_status=$?
7675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676   (exit $ac_status); }; } &&
7677          { ac_try='test -s conftest$ac_exeext'
7678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679   (eval $ac_try) 2>&5
7680   ac_status=$?
7681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682   (exit $ac_status); }; }; then
7683   ac_cv_func_shl_load=yes
7684 else
7685   echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7687
7688 ac_cv_func_shl_load=no
7689 fi
7690 rm -f conftest.err conftest.$ac_objext \
7691       conftest$ac_exeext conftest.$ac_ext
7692 fi
7693 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7694 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7695 if test $ac_cv_func_shl_load = yes; then
7696
7697 cat >>confdefs.h <<\_ACEOF
7698 #define HAVE_SHL_LOAD 1
7699 _ACEOF
7700
7701 else
7702   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7703 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7704 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7705   echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707   ac_check_lib_save_LIBS=$LIBS
7708 LIBS="-ldld  $LIBS"
7709 cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h.  */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h.  */
7715
7716 /* Override any gcc2 internal prototype to avoid an error.  */
7717 #ifdef __cplusplus
7718 extern "C"
7719 #endif
7720 /* We use char because int might match the return type of a gcc2
7721    builtin and then its argument prototype would still apply.  */
7722 char shl_load ();
7723 int
7724 main ()
7725 {
7726 shl_load ();
7727   ;
7728   return 0;
7729 }
7730 _ACEOF
7731 rm -f conftest.$ac_objext conftest$ac_exeext
7732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7733   (eval $ac_link) 2>conftest.er1
7734   ac_status=$?
7735   grep -v '^ *+' conftest.er1 >conftest.err
7736   rm -f conftest.er1
7737   cat conftest.err >&5
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); } &&
7740          { ac_try='test -z "$ac_c_werror_flag"
7741                          || test ! -s conftest.err'
7742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743   (eval $ac_try) 2>&5
7744   ac_status=$?
7745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746   (exit $ac_status); }; } &&
7747          { ac_try='test -s conftest$ac_exeext'
7748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749   (eval $ac_try) 2>&5
7750   ac_status=$?
7751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752   (exit $ac_status); }; }; then
7753   ac_cv_lib_dld_shl_load=yes
7754 else
7755   echo "$as_me: failed program was:" >&5
7756 sed 's/^/| /' conftest.$ac_ext >&5
7757
7758 ac_cv_lib_dld_shl_load=no
7759 fi
7760 rm -f conftest.err conftest.$ac_objext \
7761       conftest$ac_exeext conftest.$ac_ext
7762 LIBS=$ac_check_lib_save_LIBS
7763 fi
7764 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7765 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7766 if test $ac_cv_lib_dld_shl_load = yes; then
7767
7768 cat >>confdefs.h <<\_ACEOF
7769 #define HAVE_SHL_LOAD 1
7770 _ACEOF
7771
7772         LIBADD_DL="$LIBADD_DL -ldld"
7773 else
7774   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7775 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7776 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7777   echo $ECHO_N "(cached) $ECHO_C" >&6
7778 else
7779   ac_check_lib_save_LIBS=$LIBS
7780 LIBS="-ldl  $LIBS"
7781 cat >conftest.$ac_ext <<_ACEOF
7782 /* confdefs.h.  */
7783 _ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h.  */
7787
7788 /* Override any gcc2 internal prototype to avoid an error.  */
7789 #ifdef __cplusplus
7790 extern "C"
7791 #endif
7792 /* We use char because int might match the return type of a gcc2
7793    builtin and then its argument prototype would still apply.  */
7794 char dlopen ();
7795 int
7796 main ()
7797 {
7798 dlopen ();
7799   ;
7800   return 0;
7801 }
7802 _ACEOF
7803 rm -f conftest.$ac_objext conftest$ac_exeext
7804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7805   (eval $ac_link) 2>conftest.er1
7806   ac_status=$?
7807   grep -v '^ *+' conftest.er1 >conftest.err
7808   rm -f conftest.er1
7809   cat conftest.err >&5
7810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811   (exit $ac_status); } &&
7812          { ac_try='test -z "$ac_c_werror_flag"
7813                          || test ! -s conftest.err'
7814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815   (eval $ac_try) 2>&5
7816   ac_status=$?
7817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818   (exit $ac_status); }; } &&
7819          { ac_try='test -s conftest$ac_exeext'
7820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821   (eval $ac_try) 2>&5
7822   ac_status=$?
7823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824   (exit $ac_status); }; }; then
7825   ac_cv_lib_dl_dlopen=yes
7826 else
7827   echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7829
7830 ac_cv_lib_dl_dlopen=no
7831 fi
7832 rm -f conftest.err conftest.$ac_objext \
7833       conftest$ac_exeext conftest.$ac_ext
7834 LIBS=$ac_check_lib_save_LIBS
7835 fi
7836 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7837 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7838 if test $ac_cv_lib_dl_dlopen = yes; then
7839
7840 cat >>confdefs.h <<\_ACEOF
7841 #define HAVE_LIBDL 1
7842 _ACEOF
7843
7844                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7845 else
7846   cat >conftest.$ac_ext <<_ACEOF
7847 /* confdefs.h.  */
7848 _ACEOF
7849 cat confdefs.h >>conftest.$ac_ext
7850 cat >>conftest.$ac_ext <<_ACEOF
7851 /* end confdefs.h.  */
7852 #if HAVE_DLFCN_H
7853 #  include <dlfcn.h>
7854 #endif
7855
7856 int
7857 main ()
7858 {
7859 dlopen(0, 0);
7860   ;
7861   return 0;
7862 }
7863 _ACEOF
7864 rm -f conftest.$ac_objext conftest$ac_exeext
7865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7866   (eval $ac_link) 2>conftest.er1
7867   ac_status=$?
7868   grep -v '^ *+' conftest.er1 >conftest.err
7869   rm -f conftest.er1
7870   cat conftest.err >&5
7871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872   (exit $ac_status); } &&
7873          { ac_try='test -z "$ac_c_werror_flag"
7874                          || test ! -s conftest.err'
7875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876   (eval $ac_try) 2>&5
7877   ac_status=$?
7878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879   (exit $ac_status); }; } &&
7880          { ac_try='test -s conftest$ac_exeext'
7881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882   (eval $ac_try) 2>&5
7883   ac_status=$?
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); }; }; then
7886
7887 cat >>confdefs.h <<\_ACEOF
7888 #define HAVE_LIBDL 1
7889 _ACEOF
7890  libltdl_cv_func_dlopen="yes"
7891 else
7892   echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7894
7895 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7896 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7897 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7898   echo $ECHO_N "(cached) $ECHO_C" >&6
7899 else
7900   ac_check_lib_save_LIBS=$LIBS
7901 LIBS="-lsvld  $LIBS"
7902 cat >conftest.$ac_ext <<_ACEOF
7903 /* confdefs.h.  */
7904 _ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h.  */
7908
7909 /* Override any gcc2 internal prototype to avoid an error.  */
7910 #ifdef __cplusplus
7911 extern "C"
7912 #endif
7913 /* We use char because int might match the return type of a gcc2
7914    builtin and then its argument prototype would still apply.  */
7915 char dlopen ();
7916 int
7917 main ()
7918 {
7919 dlopen ();
7920   ;
7921   return 0;
7922 }
7923 _ACEOF
7924 rm -f conftest.$ac_objext conftest$ac_exeext
7925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7926   (eval $ac_link) 2>conftest.er1
7927   ac_status=$?
7928   grep -v '^ *+' conftest.er1 >conftest.err
7929   rm -f conftest.er1
7930   cat conftest.err >&5
7931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932   (exit $ac_status); } &&
7933          { ac_try='test -z "$ac_c_werror_flag"
7934                          || test ! -s conftest.err'
7935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936   (eval $ac_try) 2>&5
7937   ac_status=$?
7938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939   (exit $ac_status); }; } &&
7940          { ac_try='test -s conftest$ac_exeext'
7941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942   (eval $ac_try) 2>&5
7943   ac_status=$?
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); }; }; then
7946   ac_cv_lib_svld_dlopen=yes
7947 else
7948   echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7950
7951 ac_cv_lib_svld_dlopen=no
7952 fi
7953 rm -f conftest.err conftest.$ac_objext \
7954       conftest$ac_exeext conftest.$ac_ext
7955 LIBS=$ac_check_lib_save_LIBS
7956 fi
7957 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7958 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7959 if test $ac_cv_lib_svld_dlopen = yes; then
7960
7961 cat >>confdefs.h <<\_ACEOF
7962 #define HAVE_LIBDL 1
7963 _ACEOF
7964
7965                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7966 else
7967   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7968 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7969 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7970   echo $ECHO_N "(cached) $ECHO_C" >&6
7971 else
7972   ac_check_lib_save_LIBS=$LIBS
7973 LIBS="-ldld  $LIBS"
7974 cat >conftest.$ac_ext <<_ACEOF
7975 /* confdefs.h.  */
7976 _ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h.  */
7980
7981 /* Override any gcc2 internal prototype to avoid an error.  */
7982 #ifdef __cplusplus
7983 extern "C"
7984 #endif
7985 /* We use char because int might match the return type of a gcc2
7986    builtin and then its argument prototype would still apply.  */
7987 char dld_link ();
7988 int
7989 main ()
7990 {
7991 dld_link ();
7992   ;
7993   return 0;
7994 }
7995 _ACEOF
7996 rm -f conftest.$ac_objext conftest$ac_exeext
7997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7998   (eval $ac_link) 2>conftest.er1
7999   ac_status=$?
8000   grep -v '^ *+' conftest.er1 >conftest.err
8001   rm -f conftest.er1
8002   cat conftest.err >&5
8003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   (exit $ac_status); } &&
8005          { ac_try='test -z "$ac_c_werror_flag"
8006                          || test ! -s conftest.err'
8007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008   (eval $ac_try) 2>&5
8009   ac_status=$?
8010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011   (exit $ac_status); }; } &&
8012          { ac_try='test -s conftest$ac_exeext'
8013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014   (eval $ac_try) 2>&5
8015   ac_status=$?
8016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017   (exit $ac_status); }; }; then
8018   ac_cv_lib_dld_dld_link=yes
8019 else
8020   echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8022
8023 ac_cv_lib_dld_dld_link=no
8024 fi
8025 rm -f conftest.err conftest.$ac_objext \
8026       conftest$ac_exeext conftest.$ac_ext
8027 LIBS=$ac_check_lib_save_LIBS
8028 fi
8029 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8030 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8031 if test $ac_cv_lib_dld_dld_link = yes; then
8032
8033 cat >>confdefs.h <<\_ACEOF
8034 #define HAVE_DLD 1
8035 _ACEOF
8036
8037                 LIBADD_DL="$LIBADD_DL -ldld"
8038 else
8039   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8040 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8041 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8042   echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044   cat >conftest.$ac_ext <<_ACEOF
8045 /* confdefs.h.  */
8046 _ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h.  */
8050 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8052 #define _dyld_func_lookup innocuous__dyld_func_lookup
8053
8054 /* System header to define __stub macros and hopefully few prototypes,
8055     which can conflict with char _dyld_func_lookup (); below.
8056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8057     <limits.h> exists even on freestanding compilers.  */
8058
8059 #ifdef __STDC__
8060 # include <limits.h>
8061 #else
8062 # include <assert.h>
8063 #endif
8064
8065 #undef _dyld_func_lookup
8066
8067 /* Override any gcc2 internal prototype to avoid an error.  */
8068 #ifdef __cplusplus
8069 extern "C"
8070 {
8071 #endif
8072 /* We use char because int might match the return type of a gcc2
8073    builtin and then its argument prototype would still apply.  */
8074 char _dyld_func_lookup ();
8075 /* The GNU C library defines this for functions which it implements
8076     to always fail with ENOSYS.  Some functions are actually named
8077     something starting with __ and the normal name is an alias.  */
8078 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8079 choke me
8080 #else
8081 char (*f) () = _dyld_func_lookup;
8082 #endif
8083 #ifdef __cplusplus
8084 }
8085 #endif
8086
8087 int
8088 main ()
8089 {
8090 return f != _dyld_func_lookup;
8091   ;
8092   return 0;
8093 }
8094 _ACEOF
8095 rm -f conftest.$ac_objext conftest$ac_exeext
8096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8097   (eval $ac_link) 2>conftest.er1
8098   ac_status=$?
8099   grep -v '^ *+' conftest.er1 >conftest.err
8100   rm -f conftest.er1
8101   cat conftest.err >&5
8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); } &&
8104          { ac_try='test -z "$ac_c_werror_flag"
8105                          || test ! -s conftest.err'
8106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107   (eval $ac_try) 2>&5
8108   ac_status=$?
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); }; } &&
8111          { ac_try='test -s conftest$ac_exeext'
8112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113   (eval $ac_try) 2>&5
8114   ac_status=$?
8115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   (exit $ac_status); }; }; then
8117   ac_cv_func__dyld_func_lookup=yes
8118 else
8119   echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8121
8122 ac_cv_func__dyld_func_lookup=no
8123 fi
8124 rm -f conftest.err conftest.$ac_objext \
8125       conftest$ac_exeext conftest.$ac_ext
8126 fi
8127 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8128 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8129 if test $ac_cv_func__dyld_func_lookup = yes; then
8130
8131 cat >>confdefs.h <<\_ACEOF
8132 #define HAVE_DYLD 1
8133 _ACEOF
8134
8135 fi
8136
8137
8138 fi
8139
8140
8141 fi
8142
8143
8144 fi
8145 rm -f conftest.err conftest.$ac_objext \
8146       conftest$ac_exeext conftest.$ac_ext
8147
8148 fi
8149
8150
8151 fi
8152
8153
8154 fi
8155
8156
8157 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8158 then
8159   lt_save_LIBS="$LIBS"
8160   LIBS="$LIBS $LIBADD_DL"
8161
8162 for ac_func in dlerror
8163 do
8164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8165 echo "$as_me:$LINENO: checking for $ac_func" >&5
8166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8167 if eval "test \"\${$as_ac_var+set}\" = set"; then
8168   echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170   cat >conftest.$ac_ext <<_ACEOF
8171 /* confdefs.h.  */
8172 _ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h.  */
8176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8178 #define $ac_func innocuous_$ac_func
8179
8180 /* System header to define __stub macros and hopefully few prototypes,
8181     which can conflict with char $ac_func (); below.
8182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8183     <limits.h> exists even on freestanding compilers.  */
8184
8185 #ifdef __STDC__
8186 # include <limits.h>
8187 #else
8188 # include <assert.h>
8189 #endif
8190
8191 #undef $ac_func
8192
8193 /* Override any gcc2 internal prototype to avoid an error.  */
8194 #ifdef __cplusplus
8195 extern "C"
8196 {
8197 #endif
8198 /* We use char because int might match the return type of a gcc2
8199    builtin and then its argument prototype would still apply.  */
8200 char $ac_func ();
8201 /* The GNU C library defines this for functions which it implements
8202     to always fail with ENOSYS.  Some functions are actually named
8203     something starting with __ and the normal name is an alias.  */
8204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8205 choke me
8206 #else
8207 char (*f) () = $ac_func;
8208 #endif
8209 #ifdef __cplusplus
8210 }
8211 #endif
8212
8213 int
8214 main ()
8215 {
8216 return f != $ac_func;
8217   ;
8218   return 0;
8219 }
8220 _ACEOF
8221 rm -f conftest.$ac_objext conftest$ac_exeext
8222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8223   (eval $ac_link) 2>conftest.er1
8224   ac_status=$?
8225   grep -v '^ *+' conftest.er1 >conftest.err
8226   rm -f conftest.er1
8227   cat conftest.err >&5
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); } &&
8230          { ac_try='test -z "$ac_c_werror_flag"
8231                          || test ! -s conftest.err'
8232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233   (eval $ac_try) 2>&5
8234   ac_status=$?
8235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236   (exit $ac_status); }; } &&
8237          { ac_try='test -s conftest$ac_exeext'
8238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239   (eval $ac_try) 2>&5
8240   ac_status=$?
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); }; }; then
8243   eval "$as_ac_var=yes"
8244 else
8245   echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8247
8248 eval "$as_ac_var=no"
8249 fi
8250 rm -f conftest.err conftest.$ac_objext \
8251       conftest$ac_exeext conftest.$ac_ext
8252 fi
8253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8255 if test `eval echo '${'$as_ac_var'}'` = yes; then
8256   cat >>confdefs.h <<_ACEOF
8257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8258 _ACEOF
8259
8260 fi
8261 done
8262
8263   LIBS="$lt_save_LIBS"
8264 fi
8265 ac_ext=c
8266 ac_cpp='$CPP $CPPFLAGS'
8267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8270
8271
8272
8273 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8274 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8275 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8276   echo $ECHO_N "(cached) $ECHO_C" >&6
8277 else
8278   ac_cv_sys_symbol_underscore=no
8279   cat > conftest.$ac_ext <<EOF
8280 void nm_test_func(){}
8281 int main(){nm_test_func;return 0;}
8282 EOF
8283   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8284   (eval $ac_compile) 2>&5
8285   ac_status=$?
8286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287   (exit $ac_status); }; then
8288     # Now try to grab the symbols.
8289     ac_nlist=conftest.nm
8290     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8291   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8292   ac_status=$?
8293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294   (exit $ac_status); } && test -s "$ac_nlist"; then
8295       # See whether the symbols have a leading underscore.
8296       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8297         ac_cv_sys_symbol_underscore=yes
8298       else
8299         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8300           :
8301         else
8302           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8303         fi
8304       fi
8305     else
8306       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8307     fi
8308   else
8309     echo "configure: failed program was:" >&5
8310     cat conftest.c >&5
8311   fi
8312   rm -rf conftest*
8313
8314 fi
8315 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8316 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8317
8318
8319 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8320   if test x"$libltdl_cv_func_dlopen" = xyes ||
8321      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8322         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8323 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8324 if test "${libltdl_cv_need_uscore+set}" = set; then
8325   echo $ECHO_N "(cached) $ECHO_C" >&6
8326 else
8327   libltdl_cv_need_uscore=unknown
8328           save_LIBS="$LIBS"
8329           LIBS="$LIBS $LIBADD_DL"
8330           if test "$cross_compiling" = yes; then :
8331   libltdl_cv_need_uscore=cross
8332 else
8333   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8334   lt_status=$lt_dlunknown
8335   cat > conftest.$ac_ext <<EOF
8336 #line 8336 "configure"
8337 #include "confdefs.h"
8338
8339 #if HAVE_DLFCN_H
8340 #include <dlfcn.h>
8341 #endif
8342
8343 #include <stdio.h>
8344
8345 #ifdef RTLD_GLOBAL
8346 #  define LT_DLGLOBAL           RTLD_GLOBAL
8347 #else
8348 #  ifdef DL_GLOBAL
8349 #    define LT_DLGLOBAL         DL_GLOBAL
8350 #  else
8351 #    define LT_DLGLOBAL         0
8352 #  endif
8353 #endif
8354
8355 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8356    find out it does not work in some platform. */
8357 #ifndef LT_DLLAZY_OR_NOW
8358 #  ifdef RTLD_LAZY
8359 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8360 #  else
8361 #    ifdef DL_LAZY
8362 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8363 #    else
8364 #      ifdef RTLD_NOW
8365 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8366 #      else
8367 #        ifdef DL_NOW
8368 #          define LT_DLLAZY_OR_NOW      DL_NOW
8369 #        else
8370 #          define LT_DLLAZY_OR_NOW      0
8371 #        endif
8372 #      endif
8373 #    endif
8374 #  endif
8375 #endif
8376
8377 #ifdef __cplusplus
8378 extern "C" void exit (int);
8379 #endif
8380
8381 void fnord() { int i=42;}
8382 int main ()
8383 {
8384   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8385   int status = $lt_dlunknown;
8386
8387   if (self)
8388     {
8389       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8390       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8391       /* dlclose (self); */
8392     }
8393
8394     exit (status);
8395 }
8396 EOF
8397   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8398   (eval $ac_link) 2>&5
8399   ac_status=$?
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8402     (./conftest; exit; ) 2>/dev/null
8403     lt_status=$?
8404     case x$lt_status in
8405       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8406       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8407       x$lt_unknown|x*)  ;;
8408     esac
8409   else :
8410     # compilation failed
8411
8412   fi
8413 fi
8414 rm -fr conftest*
8415
8416           LIBS="$save_LIBS"
8417
8418 fi
8419 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8420 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8421   fi
8422 fi
8423
8424 if test x"$libltdl_cv_need_uscore" = xyes; then
8425
8426 cat >>confdefs.h <<\_ACEOF
8427 #define NEED_USCORE 1
8428 _ACEOF
8429
8430 fi
8431
8432
8433 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8434 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8435 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8436   echo $ECHO_N "(cached) $ECHO_C" >&6
8437 else
8438   # PORTME does your system automatically load deplibs for dlopen?
8439   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8440   # For now, we just catch OSes we know something about -- in the
8441   # future, we'll try test this programmatically.
8442   libltdl_cv_sys_dlopen_deplibs=unknown
8443   case "$host_os" in
8444   aix3*|aix4.1.*|aix4.2.*)
8445     # Unknown whether this is true for these versions of AIX, but
8446     # we want this `case' here to explicitly catch those versions.
8447     libltdl_cv_sys_dlopen_deplibs=unknown
8448     ;;
8449   aix[45]*)
8450     libltdl_cv_sys_dlopen_deplibs=yes
8451     ;;
8452   darwin*)
8453     # Assuming the user has installed a libdl from somewhere, this is true
8454     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8455     libltdl_cv_sys_dlopen_deplibs=yes
8456     ;;
8457   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8458     # GNU and its variants, using gnu ld.so (Glibc)
8459     libltdl_cv_sys_dlopen_deplibs=yes
8460     ;;
8461   hpux10*|hpux11*)
8462     libltdl_cv_sys_dlopen_deplibs=yes
8463     ;;
8464   irix[12345]*|irix6.[01]*)
8465     # Catch all versions of IRIX before 6.2, and indicate that we don't
8466     # know how it worked for any of those versions.
8467     libltdl_cv_sys_dlopen_deplibs=unknown
8468     ;;
8469   irix*)
8470     # The case above catches anything before 6.2, and it's known that
8471     # at 6.2 and later dlopen does load deplibs.
8472     libltdl_cv_sys_dlopen_deplibs=yes
8473     ;;
8474   netbsd*)
8475     libltdl_cv_sys_dlopen_deplibs=yes
8476     ;;
8477   openbsd*)
8478     libltdl_cv_sys_dlopen_deplibs=yes
8479     ;;
8480   osf[1234]*)
8481     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8482     # it did *not* use an RPATH in a shared library to find objects the
8483     # library depends on, so we explictly say `no'.
8484     libltdl_cv_sys_dlopen_deplibs=no
8485     ;;
8486   osf5.0|osf5.0a|osf5.1)
8487     # dlopen *does* load deplibs and with the right loader patch applied
8488     # it even uses RPATH in a shared library to search for shared objects
8489     # that the library depends on, but there's no easy way to know if that
8490     # patch is installed.  Since this is the case, all we can really
8491     # say is unknown -- it depends on the patch being installed.  If
8492     # it is, this changes to `yes'.  Without it, it would be `no'.
8493     libltdl_cv_sys_dlopen_deplibs=unknown
8494     ;;
8495   osf*)
8496     # the two cases above should catch all versions of osf <= 5.1.  Read
8497     # the comments above for what we know about them.
8498     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8499     # is used to find them so we can finally say `yes'.
8500     libltdl_cv_sys_dlopen_deplibs=yes
8501     ;;
8502   solaris*)
8503     libltdl_cv_sys_dlopen_deplibs=yes
8504     ;;
8505   esac
8506
8507 fi
8508 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8509 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8510 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8511
8512 cat >>confdefs.h <<\_ACEOF
8513 #define LTDL_DLOPEN_DEPLIBS 1
8514 _ACEOF
8515
8516 fi
8517
8518
8519 for ac_header in argz.h
8520 do
8521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8523   echo "$as_me:$LINENO: checking for $ac_header" >&5
8524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8526   echo $ECHO_N "(cached) $ECHO_C" >&6
8527 fi
8528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8530 else
8531   # Is the header compilable?
8532 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8534 cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h.  */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h.  */
8540 $ac_includes_default
8541 #include <$ac_header>
8542 _ACEOF
8543 rm -f conftest.$ac_objext
8544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8545   (eval $ac_compile) 2>conftest.er1
8546   ac_status=$?
8547   grep -v '^ *+' conftest.er1 >conftest.err
8548   rm -f conftest.er1
8549   cat conftest.err >&5
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); } &&
8552          { ac_try='test -z "$ac_c_werror_flag"
8553                          || test ! -s conftest.err'
8554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555   (eval $ac_try) 2>&5
8556   ac_status=$?
8557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558   (exit $ac_status); }; } &&
8559          { ac_try='test -s conftest.$ac_objext'
8560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561   (eval $ac_try) 2>&5
8562   ac_status=$?
8563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   (exit $ac_status); }; }; then
8565   ac_header_compiler=yes
8566 else
8567   echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8569
8570 ac_header_compiler=no
8571 fi
8572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8574 echo "${ECHO_T}$ac_header_compiler" >&6
8575
8576 # Is the header present?
8577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8579 cat >conftest.$ac_ext <<_ACEOF
8580 /* confdefs.h.  */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h.  */
8585 #include <$ac_header>
8586 _ACEOF
8587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8588   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8589   ac_status=$?
8590   grep -v '^ *+' conftest.er1 >conftest.err
8591   rm -f conftest.er1
8592   cat conftest.err >&5
8593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594   (exit $ac_status); } >/dev/null; then
8595   if test -s conftest.err; then
8596     ac_cpp_err=$ac_c_preproc_warn_flag
8597     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8598   else
8599     ac_cpp_err=
8600   fi
8601 else
8602   ac_cpp_err=yes
8603 fi
8604 if test -z "$ac_cpp_err"; then
8605   ac_header_preproc=yes
8606 else
8607   echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610   ac_header_preproc=no
8611 fi
8612 rm -f conftest.err conftest.$ac_ext
8613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8614 echo "${ECHO_T}$ac_header_preproc" >&6
8615
8616 # So?  What about this header?
8617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8618   yes:no: )
8619     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8623     ac_header_preproc=yes
8624     ;;
8625   no:yes:* )
8626     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8628     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8629 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8630     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8632     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8633 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8634     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8636     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8638     (
8639       cat <<\_ASBOX
8640 ## ----------------------------------- ##
8641 ## Report this to llvmbugs@cs.uiuc.edu ##
8642 ## ----------------------------------- ##
8643 _ASBOX
8644     ) |
8645       sed "s/^/$as_me: WARNING:     /" >&2
8646     ;;
8647 esac
8648 echo "$as_me:$LINENO: checking for $ac_header" >&5
8649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8651   echo $ECHO_N "(cached) $ECHO_C" >&6
8652 else
8653   eval "$as_ac_Header=\$ac_header_preproc"
8654 fi
8655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8657
8658 fi
8659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8660   cat >>confdefs.h <<_ACEOF
8661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8662 _ACEOF
8663
8664 fi
8665
8666 done
8667
8668
8669 echo "$as_me:$LINENO: checking for error_t" >&5
8670 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8671 if test "${ac_cv_type_error_t+set}" = set; then
8672   echo $ECHO_N "(cached) $ECHO_C" >&6
8673 else
8674   cat >conftest.$ac_ext <<_ACEOF
8675 /* confdefs.h.  */
8676 _ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h.  */
8680 #if HAVE_ARGZ_H
8681 #  include <argz.h>
8682 #endif
8683
8684 int
8685 main ()
8686 {
8687 if ((error_t *) 0)
8688   return 0;
8689 if (sizeof (error_t))
8690   return 0;
8691   ;
8692   return 0;
8693 }
8694 _ACEOF
8695 rm -f conftest.$ac_objext
8696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8697   (eval $ac_compile) 2>conftest.er1
8698   ac_status=$?
8699   grep -v '^ *+' conftest.er1 >conftest.err
8700   rm -f conftest.er1
8701   cat conftest.err >&5
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); } &&
8704          { ac_try='test -z "$ac_c_werror_flag"
8705                          || test ! -s conftest.err'
8706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707   (eval $ac_try) 2>&5
8708   ac_status=$?
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); }; } &&
8711          { ac_try='test -s conftest.$ac_objext'
8712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713   (eval $ac_try) 2>&5
8714   ac_status=$?
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); }; }; then
8717   ac_cv_type_error_t=yes
8718 else
8719   echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8721
8722 ac_cv_type_error_t=no
8723 fi
8724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8725 fi
8726 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8727 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8728 if test $ac_cv_type_error_t = yes; then
8729
8730 cat >>confdefs.h <<_ACEOF
8731 #define HAVE_ERROR_T 1
8732 _ACEOF
8733
8734
8735 else
8736
8737 cat >>confdefs.h <<\_ACEOF
8738 #define error_t int
8739 _ACEOF
8740
8741 fi
8742
8743
8744
8745
8746
8747
8748
8749 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8750 do
8751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8752 echo "$as_me:$LINENO: checking for $ac_func" >&5
8753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8754 if eval "test \"\${$as_ac_var+set}\" = set"; then
8755   echo $ECHO_N "(cached) $ECHO_C" >&6
8756 else
8757   cat >conftest.$ac_ext <<_ACEOF
8758 /* confdefs.h.  */
8759 _ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h.  */
8763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8765 #define $ac_func innocuous_$ac_func
8766
8767 /* System header to define __stub macros and hopefully few prototypes,
8768     which can conflict with char $ac_func (); below.
8769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8770     <limits.h> exists even on freestanding compilers.  */
8771
8772 #ifdef __STDC__
8773 # include <limits.h>
8774 #else
8775 # include <assert.h>
8776 #endif
8777
8778 #undef $ac_func
8779
8780 /* Override any gcc2 internal prototype to avoid an error.  */
8781 #ifdef __cplusplus
8782 extern "C"
8783 {
8784 #endif
8785 /* We use char because int might match the return type of a gcc2
8786    builtin and then its argument prototype would still apply.  */
8787 char $ac_func ();
8788 /* The GNU C library defines this for functions which it implements
8789     to always fail with ENOSYS.  Some functions are actually named
8790     something starting with __ and the normal name is an alias.  */
8791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8792 choke me
8793 #else
8794 char (*f) () = $ac_func;
8795 #endif
8796 #ifdef __cplusplus
8797 }
8798 #endif
8799
8800 int
8801 main ()
8802 {
8803 return f != $ac_func;
8804   ;
8805   return 0;
8806 }
8807 _ACEOF
8808 rm -f conftest.$ac_objext conftest$ac_exeext
8809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8810   (eval $ac_link) 2>conftest.er1
8811   ac_status=$?
8812   grep -v '^ *+' conftest.er1 >conftest.err
8813   rm -f conftest.er1
8814   cat conftest.err >&5
8815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816   (exit $ac_status); } &&
8817          { ac_try='test -z "$ac_c_werror_flag"
8818                          || test ! -s conftest.err'
8819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820   (eval $ac_try) 2>&5
8821   ac_status=$?
8822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   (exit $ac_status); }; } &&
8824          { ac_try='test -s conftest$ac_exeext'
8825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826   (eval $ac_try) 2>&5
8827   ac_status=$?
8828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   (exit $ac_status); }; }; then
8830   eval "$as_ac_var=yes"
8831 else
8832   echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8834
8835 eval "$as_ac_var=no"
8836 fi
8837 rm -f conftest.err conftest.$ac_objext \
8838       conftest$ac_exeext conftest.$ac_ext
8839 fi
8840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8842 if test `eval echo '${'$as_ac_var'}'` = yes; then
8843   cat >>confdefs.h <<_ACEOF
8844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8845 _ACEOF
8846
8847 fi
8848 done
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8878                   stdio.h unistd.h
8879 do
8880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8882   echo "$as_me:$LINENO: checking for $ac_header" >&5
8883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8885   echo $ECHO_N "(cached) $ECHO_C" >&6
8886 fi
8887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8889 else
8890   # Is the header compilable?
8891 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8893 cat >conftest.$ac_ext <<_ACEOF
8894 /* confdefs.h.  */
8895 _ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h.  */
8899 $ac_includes_default
8900 #include <$ac_header>
8901 _ACEOF
8902 rm -f conftest.$ac_objext
8903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8904   (eval $ac_compile) 2>conftest.er1
8905   ac_status=$?
8906   grep -v '^ *+' conftest.er1 >conftest.err
8907   rm -f conftest.er1
8908   cat conftest.err >&5
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   (exit $ac_status); } &&
8911          { ac_try='test -z "$ac_c_werror_flag"
8912                          || test ! -s conftest.err'
8913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914   (eval $ac_try) 2>&5
8915   ac_status=$?
8916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917   (exit $ac_status); }; } &&
8918          { ac_try='test -s conftest.$ac_objext'
8919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920   (eval $ac_try) 2>&5
8921   ac_status=$?
8922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923   (exit $ac_status); }; }; then
8924   ac_header_compiler=yes
8925 else
8926   echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8928
8929 ac_header_compiler=no
8930 fi
8931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8933 echo "${ECHO_T}$ac_header_compiler" >&6
8934
8935 # Is the header present?
8936 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8938 cat >conftest.$ac_ext <<_ACEOF
8939 /* confdefs.h.  */
8940 _ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h.  */
8944 #include <$ac_header>
8945 _ACEOF
8946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8947   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8948   ac_status=$?
8949   grep -v '^ *+' conftest.er1 >conftest.err
8950   rm -f conftest.er1
8951   cat conftest.err >&5
8952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953   (exit $ac_status); } >/dev/null; then
8954   if test -s conftest.err; then
8955     ac_cpp_err=$ac_c_preproc_warn_flag
8956     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8957   else
8958     ac_cpp_err=
8959   fi
8960 else
8961   ac_cpp_err=yes
8962 fi
8963 if test -z "$ac_cpp_err"; then
8964   ac_header_preproc=yes
8965 else
8966   echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8968
8969   ac_header_preproc=no
8970 fi
8971 rm -f conftest.err conftest.$ac_ext
8972 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8973 echo "${ECHO_T}$ac_header_preproc" >&6
8974
8975 # So?  What about this header?
8976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8977   yes:no: )
8978     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8980     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8982     ac_header_preproc=yes
8983     ;;
8984   no:yes:* )
8985     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8987     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8988 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8989     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8991     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8992 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8993     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8995     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8997     (
8998       cat <<\_ASBOX
8999 ## ----------------------------------- ##
9000 ## Report this to llvmbugs@cs.uiuc.edu ##
9001 ## ----------------------------------- ##
9002 _ASBOX
9003     ) |
9004       sed "s/^/$as_me: WARNING:     /" >&2
9005     ;;
9006 esac
9007 echo "$as_me:$LINENO: checking for $ac_header" >&5
9008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9010   echo $ECHO_N "(cached) $ECHO_C" >&6
9011 else
9012   eval "$as_ac_Header=\$ac_header_preproc"
9013 fi
9014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9016
9017 fi
9018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9019   cat >>confdefs.h <<_ACEOF
9020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9021 _ACEOF
9022
9023 fi
9024
9025 done
9026
9027
9028
9029
9030
9031 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9032 do
9033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9035   echo "$as_me:$LINENO: checking for $ac_header" >&5
9036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9038   echo $ECHO_N "(cached) $ECHO_C" >&6
9039 fi
9040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9042 else
9043   # Is the header compilable?
9044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9046 cat >conftest.$ac_ext <<_ACEOF
9047 /* confdefs.h.  */
9048 _ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h.  */
9052 $ac_includes_default
9053 #include <$ac_header>
9054 _ACEOF
9055 rm -f conftest.$ac_objext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9057   (eval $ac_compile) 2>conftest.er1
9058   ac_status=$?
9059   grep -v '^ *+' conftest.er1 >conftest.err
9060   rm -f conftest.er1
9061   cat conftest.err >&5
9062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063   (exit $ac_status); } &&
9064          { ac_try='test -z "$ac_c_werror_flag"
9065                          || test ! -s conftest.err'
9066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067   (eval $ac_try) 2>&5
9068   ac_status=$?
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); }; } &&
9071          { ac_try='test -s conftest.$ac_objext'
9072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073   (eval $ac_try) 2>&5
9074   ac_status=$?
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); }; }; then
9077   ac_header_compiler=yes
9078 else
9079   echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9081
9082 ac_header_compiler=no
9083 fi
9084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9086 echo "${ECHO_T}$ac_header_compiler" >&6
9087
9088 # Is the header present?
9089 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9091 cat >conftest.$ac_ext <<_ACEOF
9092 /* confdefs.h.  */
9093 _ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h.  */
9097 #include <$ac_header>
9098 _ACEOF
9099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9100   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9101   ac_status=$?
9102   grep -v '^ *+' conftest.er1 >conftest.err
9103   rm -f conftest.er1
9104   cat conftest.err >&5
9105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106   (exit $ac_status); } >/dev/null; then
9107   if test -s conftest.err; then
9108     ac_cpp_err=$ac_c_preproc_warn_flag
9109     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9110   else
9111     ac_cpp_err=
9112   fi
9113 else
9114   ac_cpp_err=yes
9115 fi
9116 if test -z "$ac_cpp_err"; then
9117   ac_header_preproc=yes
9118 else
9119   echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9121
9122   ac_header_preproc=no
9123 fi
9124 rm -f conftest.err conftest.$ac_ext
9125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9126 echo "${ECHO_T}$ac_header_preproc" >&6
9127
9128 # So?  What about this header?
9129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9130   yes:no: )
9131     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9133     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9135     ac_header_preproc=yes
9136     ;;
9137   no:yes:* )
9138     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9140     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9141 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9142     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9144     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9145 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9146     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9148     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9150     (
9151       cat <<\_ASBOX
9152 ## ----------------------------------- ##
9153 ## Report this to llvmbugs@cs.uiuc.edu ##
9154 ## ----------------------------------- ##
9155 _ASBOX
9156     ) |
9157       sed "s/^/$as_me: WARNING:     /" >&2
9158     ;;
9159 esac
9160 echo "$as_me:$LINENO: checking for $ac_header" >&5
9161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9163   echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165   eval "$as_ac_Header=\$ac_header_preproc"
9166 fi
9167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9169
9170 fi
9171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9172   cat >>confdefs.h <<_ACEOF
9173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9174 _ACEOF
9175
9176 fi
9177
9178 done
9179
9180
9181
9182 for ac_header in string.h strings.h
9183 do
9184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9186   echo "$as_me:$LINENO: checking for $ac_header" >&5
9187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9189   echo $ECHO_N "(cached) $ECHO_C" >&6
9190 fi
9191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9193 else
9194   # Is the header compilable?
9195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9197 cat >conftest.$ac_ext <<_ACEOF
9198 /* confdefs.h.  */
9199 _ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h.  */
9203 $ac_includes_default
9204 #include <$ac_header>
9205 _ACEOF
9206 rm -f conftest.$ac_objext
9207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9208   (eval $ac_compile) 2>conftest.er1
9209   ac_status=$?
9210   grep -v '^ *+' conftest.er1 >conftest.err
9211   rm -f conftest.er1
9212   cat conftest.err >&5
9213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214   (exit $ac_status); } &&
9215          { ac_try='test -z "$ac_c_werror_flag"
9216                          || test ! -s conftest.err'
9217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9218   (eval $ac_try) 2>&5
9219   ac_status=$?
9220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221   (exit $ac_status); }; } &&
9222          { ac_try='test -s conftest.$ac_objext'
9223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224   (eval $ac_try) 2>&5
9225   ac_status=$?
9226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227   (exit $ac_status); }; }; then
9228   ac_header_compiler=yes
9229 else
9230   echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.$ac_ext >&5
9232
9233 ac_header_compiler=no
9234 fi
9235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9237 echo "${ECHO_T}$ac_header_compiler" >&6
9238
9239 # Is the header present?
9240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9242 cat >conftest.$ac_ext <<_ACEOF
9243 /* confdefs.h.  */
9244 _ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h.  */
9248 #include <$ac_header>
9249 _ACEOF
9250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9251   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9252   ac_status=$?
9253   grep -v '^ *+' conftest.er1 >conftest.err
9254   rm -f conftest.er1
9255   cat conftest.err >&5
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); } >/dev/null; then
9258   if test -s conftest.err; then
9259     ac_cpp_err=$ac_c_preproc_warn_flag
9260     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9261   else
9262     ac_cpp_err=
9263   fi
9264 else
9265   ac_cpp_err=yes
9266 fi
9267 if test -z "$ac_cpp_err"; then
9268   ac_header_preproc=yes
9269 else
9270   echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9272
9273   ac_header_preproc=no
9274 fi
9275 rm -f conftest.err conftest.$ac_ext
9276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9277 echo "${ECHO_T}$ac_header_preproc" >&6
9278
9279 # So?  What about this header?
9280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9281   yes:no: )
9282     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9286     ac_header_preproc=yes
9287     ;;
9288   no:yes:* )
9289     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9291     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9292 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9293     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9295     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9296 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9299     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9301     (
9302       cat <<\_ASBOX
9303 ## ----------------------------------- ##
9304 ## Report this to llvmbugs@cs.uiuc.edu ##
9305 ## ----------------------------------- ##
9306 _ASBOX
9307     ) |
9308       sed "s/^/$as_me: WARNING:     /" >&2
9309     ;;
9310 esac
9311 echo "$as_me:$LINENO: checking for $ac_header" >&5
9312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9314   echo $ECHO_N "(cached) $ECHO_C" >&6
9315 else
9316   eval "$as_ac_Header=\$ac_header_preproc"
9317 fi
9318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9320
9321 fi
9322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9323   cat >>confdefs.h <<_ACEOF
9324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9325 _ACEOF
9326  break
9327 fi
9328
9329 done
9330
9331
9332
9333
9334 for ac_func in strchr index
9335 do
9336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9337 echo "$as_me:$LINENO: checking for $ac_func" >&5
9338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9339 if eval "test \"\${$as_ac_var+set}\" = set"; then
9340   echo $ECHO_N "(cached) $ECHO_C" >&6
9341 else
9342   cat >conftest.$ac_ext <<_ACEOF
9343 /* confdefs.h.  */
9344 _ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h.  */
9348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9350 #define $ac_func innocuous_$ac_func
9351
9352 /* System header to define __stub macros and hopefully few prototypes,
9353     which can conflict with char $ac_func (); below.
9354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9355     <limits.h> exists even on freestanding compilers.  */
9356
9357 #ifdef __STDC__
9358 # include <limits.h>
9359 #else
9360 # include <assert.h>
9361 #endif
9362
9363 #undef $ac_func
9364
9365 /* Override any gcc2 internal prototype to avoid an error.  */
9366 #ifdef __cplusplus
9367 extern "C"
9368 {
9369 #endif
9370 /* We use char because int might match the return type of a gcc2
9371    builtin and then its argument prototype would still apply.  */
9372 char $ac_func ();
9373 /* The GNU C library defines this for functions which it implements
9374     to always fail with ENOSYS.  Some functions are actually named
9375     something starting with __ and the normal name is an alias.  */
9376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9377 choke me
9378 #else
9379 char (*f) () = $ac_func;
9380 #endif
9381 #ifdef __cplusplus
9382 }
9383 #endif
9384
9385 int
9386 main ()
9387 {
9388 return f != $ac_func;
9389   ;
9390   return 0;
9391 }
9392 _ACEOF
9393 rm -f conftest.$ac_objext conftest$ac_exeext
9394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9395   (eval $ac_link) 2>conftest.er1
9396   ac_status=$?
9397   grep -v '^ *+' conftest.er1 >conftest.err
9398   rm -f conftest.er1
9399   cat conftest.err >&5
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); } &&
9402          { ac_try='test -z "$ac_c_werror_flag"
9403                          || test ! -s conftest.err'
9404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405   (eval $ac_try) 2>&5
9406   ac_status=$?
9407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408   (exit $ac_status); }; } &&
9409          { ac_try='test -s conftest$ac_exeext'
9410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411   (eval $ac_try) 2>&5
9412   ac_status=$?
9413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414   (exit $ac_status); }; }; then
9415   eval "$as_ac_var=yes"
9416 else
9417   echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9419
9420 eval "$as_ac_var=no"
9421 fi
9422 rm -f conftest.err conftest.$ac_objext \
9423       conftest$ac_exeext conftest.$ac_ext
9424 fi
9425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9427 if test `eval echo '${'$as_ac_var'}'` = yes; then
9428   cat >>confdefs.h <<_ACEOF
9429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9430 _ACEOF
9431  break
9432 fi
9433 done
9434
9435
9436
9437 for ac_func in strrchr rindex
9438 do
9439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9440 echo "$as_me:$LINENO: checking for $ac_func" >&5
9441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9442 if eval "test \"\${$as_ac_var+set}\" = set"; then
9443   echo $ECHO_N "(cached) $ECHO_C" >&6
9444 else
9445   cat >conftest.$ac_ext <<_ACEOF
9446 /* confdefs.h.  */
9447 _ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h.  */
9451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9453 #define $ac_func innocuous_$ac_func
9454
9455 /* System header to define __stub macros and hopefully few prototypes,
9456     which can conflict with char $ac_func (); below.
9457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9458     <limits.h> exists even on freestanding compilers.  */
9459
9460 #ifdef __STDC__
9461 # include <limits.h>
9462 #else
9463 # include <assert.h>
9464 #endif
9465
9466 #undef $ac_func
9467
9468 /* Override any gcc2 internal prototype to avoid an error.  */
9469 #ifdef __cplusplus
9470 extern "C"
9471 {
9472 #endif
9473 /* We use char because int might match the return type of a gcc2
9474    builtin and then its argument prototype would still apply.  */
9475 char $ac_func ();
9476 /* The GNU C library defines this for functions which it implements
9477     to always fail with ENOSYS.  Some functions are actually named
9478     something starting with __ and the normal name is an alias.  */
9479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9480 choke me
9481 #else
9482 char (*f) () = $ac_func;
9483 #endif
9484 #ifdef __cplusplus
9485 }
9486 #endif
9487
9488 int
9489 main ()
9490 {
9491 return f != $ac_func;
9492   ;
9493   return 0;
9494 }
9495 _ACEOF
9496 rm -f conftest.$ac_objext conftest$ac_exeext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9498   (eval $ac_link) 2>conftest.er1
9499   ac_status=$?
9500   grep -v '^ *+' conftest.er1 >conftest.err
9501   rm -f conftest.er1
9502   cat conftest.err >&5
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); } &&
9505          { ac_try='test -z "$ac_c_werror_flag"
9506                          || test ! -s conftest.err'
9507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508   (eval $ac_try) 2>&5
9509   ac_status=$?
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); }; } &&
9512          { ac_try='test -s conftest$ac_exeext'
9513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514   (eval $ac_try) 2>&5
9515   ac_status=$?
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); }; }; then
9518   eval "$as_ac_var=yes"
9519 else
9520   echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9522
9523 eval "$as_ac_var=no"
9524 fi
9525 rm -f conftest.err conftest.$ac_objext \
9526       conftest$ac_exeext conftest.$ac_ext
9527 fi
9528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9530 if test `eval echo '${'$as_ac_var'}'` = yes; then
9531   cat >>confdefs.h <<_ACEOF
9532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9533 _ACEOF
9534  break
9535 fi
9536 done
9537
9538
9539
9540 for ac_func in memcpy bcopy
9541 do
9542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9543 echo "$as_me:$LINENO: checking for $ac_func" >&5
9544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9545 if eval "test \"\${$as_ac_var+set}\" = set"; then
9546   echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548   cat >conftest.$ac_ext <<_ACEOF
9549 /* confdefs.h.  */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h.  */
9554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9555    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9556 #define $ac_func innocuous_$ac_func
9557
9558 /* System header to define __stub macros and hopefully few prototypes,
9559     which can conflict with char $ac_func (); below.
9560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9561     <limits.h> exists even on freestanding compilers.  */
9562
9563 #ifdef __STDC__
9564 # include <limits.h>
9565 #else
9566 # include <assert.h>
9567 #endif
9568
9569 #undef $ac_func
9570
9571 /* Override any gcc2 internal prototype to avoid an error.  */
9572 #ifdef __cplusplus
9573 extern "C"
9574 {
9575 #endif
9576 /* We use char because int might match the return type of a gcc2
9577    builtin and then its argument prototype would still apply.  */
9578 char $ac_func ();
9579 /* The GNU C library defines this for functions which it implements
9580     to always fail with ENOSYS.  Some functions are actually named
9581     something starting with __ and the normal name is an alias.  */
9582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9583 choke me
9584 #else
9585 char (*f) () = $ac_func;
9586 #endif
9587 #ifdef __cplusplus
9588 }
9589 #endif
9590
9591 int
9592 main ()
9593 {
9594 return f != $ac_func;
9595   ;
9596   return 0;
9597 }
9598 _ACEOF
9599 rm -f conftest.$ac_objext conftest$ac_exeext
9600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9601   (eval $ac_link) 2>conftest.er1
9602   ac_status=$?
9603   grep -v '^ *+' conftest.er1 >conftest.err
9604   rm -f conftest.er1
9605   cat conftest.err >&5
9606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607   (exit $ac_status); } &&
9608          { ac_try='test -z "$ac_c_werror_flag"
9609                          || test ! -s conftest.err'
9610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611   (eval $ac_try) 2>&5
9612   ac_status=$?
9613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614   (exit $ac_status); }; } &&
9615          { ac_try='test -s conftest$ac_exeext'
9616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617   (eval $ac_try) 2>&5
9618   ac_status=$?
9619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620   (exit $ac_status); }; }; then
9621   eval "$as_ac_var=yes"
9622 else
9623   echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.$ac_ext >&5
9625
9626 eval "$as_ac_var=no"
9627 fi
9628 rm -f conftest.err conftest.$ac_objext \
9629       conftest$ac_exeext conftest.$ac_ext
9630 fi
9631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9633 if test `eval echo '${'$as_ac_var'}'` = yes; then
9634   cat >>confdefs.h <<_ACEOF
9635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9636 _ACEOF
9637  break
9638 fi
9639 done
9640
9641
9642
9643 for ac_func in memmove strcmp
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
9746
9747 for ac_func in closedir opendir readdir
9748 do
9749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9750 echo "$as_me:$LINENO: checking for $ac_func" >&5
9751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9752 if eval "test \"\${$as_ac_var+set}\" = set"; then
9753   echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755   cat >conftest.$ac_ext <<_ACEOF
9756 /* confdefs.h.  */
9757 _ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h.  */
9761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9763 #define $ac_func innocuous_$ac_func
9764
9765 /* System header to define __stub macros and hopefully few prototypes,
9766     which can conflict with char $ac_func (); below.
9767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9768     <limits.h> exists even on freestanding compilers.  */
9769
9770 #ifdef __STDC__
9771 # include <limits.h>
9772 #else
9773 # include <assert.h>
9774 #endif
9775
9776 #undef $ac_func
9777
9778 /* Override any gcc2 internal prototype to avoid an error.  */
9779 #ifdef __cplusplus
9780 extern "C"
9781 {
9782 #endif
9783 /* We use char because int might match the return type of a gcc2
9784    builtin and then its argument prototype would still apply.  */
9785 char $ac_func ();
9786 /* The GNU C library defines this for functions which it implements
9787     to always fail with ENOSYS.  Some functions are actually named
9788     something starting with __ and the normal name is an alias.  */
9789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9790 choke me
9791 #else
9792 char (*f) () = $ac_func;
9793 #endif
9794 #ifdef __cplusplus
9795 }
9796 #endif
9797
9798 int
9799 main ()
9800 {
9801 return f != $ac_func;
9802   ;
9803   return 0;
9804 }
9805 _ACEOF
9806 rm -f conftest.$ac_objext conftest$ac_exeext
9807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9808   (eval $ac_link) 2>conftest.er1
9809   ac_status=$?
9810   grep -v '^ *+' conftest.er1 >conftest.err
9811   rm -f conftest.er1
9812   cat conftest.err >&5
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); } &&
9815          { ac_try='test -z "$ac_c_werror_flag"
9816                          || test ! -s conftest.err'
9817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818   (eval $ac_try) 2>&5
9819   ac_status=$?
9820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821   (exit $ac_status); }; } &&
9822          { ac_try='test -s conftest$ac_exeext'
9823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824   (eval $ac_try) 2>&5
9825   ac_status=$?
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); }; }; then
9828   eval "$as_ac_var=yes"
9829 else
9830   echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9832
9833 eval "$as_ac_var=no"
9834 fi
9835 rm -f conftest.err conftest.$ac_objext \
9836       conftest$ac_exeext conftest.$ac_ext
9837 fi
9838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9839 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9840 if test `eval echo '${'$as_ac_var'}'` = yes; then
9841   cat >>confdefs.h <<_ACEOF
9842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9843 _ACEOF
9844
9845 fi
9846 done
9847
9848
9849 # Check whether --enable-shared or --disable-shared was given.
9850 if test "${enable_shared+set}" = set; then
9851   enableval="$enable_shared"
9852   p=${PACKAGE-default}
9853     case $enableval in
9854     yes) enable_shared=yes ;;
9855     no) enable_shared=no ;;
9856     *)
9857       enable_shared=no
9858       # Look at the argument we got.  We use all the common list separators.
9859       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9860       for pkg in $enableval; do
9861         IFS="$lt_save_ifs"
9862         if test "X$pkg" = "X$p"; then
9863           enable_shared=yes
9864         fi
9865       done
9866       IFS="$lt_save_ifs"
9867       ;;
9868     esac
9869 else
9870   enable_shared=yes
9871 fi;
9872
9873 # Check whether --enable-static or --disable-static was given.
9874 if test "${enable_static+set}" = set; then
9875   enableval="$enable_static"
9876   p=${PACKAGE-default}
9877     case $enableval in
9878     yes) enable_static=yes ;;
9879     no) enable_static=no ;;
9880     *)
9881      enable_static=no
9882       # Look at the argument we got.  We use all the common list separators.
9883       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9884       for pkg in $enableval; do
9885         IFS="$lt_save_ifs"
9886         if test "X$pkg" = "X$p"; then
9887           enable_static=yes
9888         fi
9889       done
9890       IFS="$lt_save_ifs"
9891       ;;
9892     esac
9893 else
9894   enable_static=yes
9895 fi;
9896
9897 # Check whether --enable-fast-install or --disable-fast-install was given.
9898 if test "${enable_fast_install+set}" = set; then
9899   enableval="$enable_fast_install"
9900   p=${PACKAGE-default}
9901     case $enableval in
9902     yes) enable_fast_install=yes ;;
9903     no) enable_fast_install=no ;;
9904     *)
9905       enable_fast_install=no
9906       # Look at the argument we got.  We use all the common list separators.
9907       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9908       for pkg in $enableval; do
9909         IFS="$lt_save_ifs"
9910         if test "X$pkg" = "X$p"; then
9911           enable_fast_install=yes
9912         fi
9913       done
9914       IFS="$lt_save_ifs"
9915       ;;
9916     esac
9917 else
9918   enable_fast_install=yes
9919 fi;
9920
9921 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9922 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9923 if test "${lt_cv_path_SED+set}" = set; then
9924   echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926   # Loop through the user's path and test for sed and gsed.
9927 # Then use that list of sed's as ones to test for truncation.
9928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929 for as_dir in $PATH
9930 do
9931   IFS=$as_save_IFS
9932   test -z "$as_dir" && as_dir=.
9933   for lt_ac_prog in sed gsed; do
9934     for ac_exec_ext in '' $ac_executable_extensions; do
9935       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9936         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9937       fi
9938     done
9939   done
9940 done
9941 lt_ac_max=0
9942 lt_ac_count=0
9943 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9944 # along with /bin/sed that truncates output.
9945 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9946   test ! -f $lt_ac_sed && break
9947   cat /dev/null > conftest.in
9948   lt_ac_count=0
9949   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9950   # Check for GNU sed and select it if it is found.
9951   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9952     lt_cv_path_SED=$lt_ac_sed
9953     break
9954   fi
9955   while true; do
9956     cat conftest.in conftest.in >conftest.tmp
9957     mv conftest.tmp conftest.in
9958     cp conftest.in conftest.nl
9959     echo >>conftest.nl
9960     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9961     cmp -s conftest.out conftest.nl || break
9962     # 10000 chars as input seems more than enough
9963     test $lt_ac_count -gt 10 && break
9964     lt_ac_count=`expr $lt_ac_count + 1`
9965     if test $lt_ac_count -gt $lt_ac_max; then
9966       lt_ac_max=$lt_ac_count
9967       lt_cv_path_SED=$lt_ac_sed
9968     fi
9969   done
9970 done
9971
9972 fi
9973
9974 SED=$lt_cv_path_SED
9975 echo "$as_me:$LINENO: result: $SED" >&5
9976 echo "${ECHO_T}$SED" >&6
9977
9978
9979 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9980 if test "${with_gnu_ld+set}" = set; then
9981   withval="$with_gnu_ld"
9982   test "$withval" = no || with_gnu_ld=yes
9983 else
9984   with_gnu_ld=no
9985 fi;
9986 ac_prog=ld
9987 if test "$GCC" = yes; then
9988   # Check if gcc -print-prog-name=ld gives a path.
9989   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9990 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9991   case $host in
9992   *-*-mingw*)
9993     # gcc leaves a trailing carriage return which upsets mingw
9994     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9995   *)
9996     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9997   esac
9998   case $ac_prog in
9999     # Accept absolute paths.
10000     [\\/]* | ?:[\\/]*)
10001       re_direlt='/[^/][^/]*/\.\./'
10002       # Canonicalize the pathname of ld
10003       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10004       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10005         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10006       done
10007       test -z "$LD" && LD="$ac_prog"
10008       ;;
10009   "")
10010     # If it fails, then pretend we aren't using GCC.
10011     ac_prog=ld
10012     ;;
10013   *)
10014     # If it is relative, then search for the first ld in PATH.
10015     with_gnu_ld=unknown
10016     ;;
10017   esac
10018 elif test "$with_gnu_ld" = yes; then
10019   echo "$as_me:$LINENO: checking for GNU ld" >&5
10020 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10021 else
10022   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10023 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10024 fi
10025 if test "${lt_cv_path_LD+set}" = set; then
10026   echo $ECHO_N "(cached) $ECHO_C" >&6
10027 else
10028   if test -z "$LD"; then
10029   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10030   for ac_dir in $PATH; do
10031     IFS="$lt_save_ifs"
10032     test -z "$ac_dir" && ac_dir=.
10033     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10034       lt_cv_path_LD="$ac_dir/$ac_prog"
10035       # Check to see if the program is GNU ld.  I'd rather use --version,
10036       # but apparently some GNU ld's only accept -v.
10037       # Break only if it was the GNU/non-GNU ld that we prefer.
10038       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10039       *GNU* | *'with BFD'*)
10040         test "$with_gnu_ld" != no && break
10041         ;;
10042       *)
10043         test "$with_gnu_ld" != yes && break
10044         ;;
10045       esac
10046     fi
10047   done
10048   IFS="$lt_save_ifs"
10049 else
10050   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10051 fi
10052 fi
10053
10054 LD="$lt_cv_path_LD"
10055 if test -n "$LD"; then
10056   echo "$as_me:$LINENO: result: $LD" >&5
10057 echo "${ECHO_T}$LD" >&6
10058 else
10059   echo "$as_me:$LINENO: result: no" >&5
10060 echo "${ECHO_T}no" >&6
10061 fi
10062 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10063 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10064    { (exit 1); exit 1; }; }
10065 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10066 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10067 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10068   echo $ECHO_N "(cached) $ECHO_C" >&6
10069 else
10070   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10071 case `$LD -v 2>&1 </dev/null` in
10072 *GNU* | *'with BFD'*)
10073   lt_cv_prog_gnu_ld=yes
10074   ;;
10075 *)
10076   lt_cv_prog_gnu_ld=no
10077   ;;
10078 esac
10079 fi
10080 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10081 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10082 with_gnu_ld=$lt_cv_prog_gnu_ld
10083
10084
10085 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10086 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10087 if test "${lt_cv_ld_reload_flag+set}" = set; then
10088   echo $ECHO_N "(cached) $ECHO_C" >&6
10089 else
10090   lt_cv_ld_reload_flag='-r'
10091 fi
10092 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10093 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10094 reload_flag=$lt_cv_ld_reload_flag
10095 case $reload_flag in
10096 "" | " "*) ;;
10097 *) reload_flag=" $reload_flag" ;;
10098 esac
10099 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10100 case $host_os in
10101   darwin*)
10102     if test "$GCC" = yes; then
10103       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10104     else
10105       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10106     fi
10107     ;;
10108 esac
10109
10110 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10111 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10112 if test "${lt_cv_deplibs_check_method+set}" = set; then
10113   echo $ECHO_N "(cached) $ECHO_C" >&6
10114 else
10115   lt_cv_file_magic_cmd='$MAGIC_CMD'
10116 lt_cv_file_magic_test_file=
10117 lt_cv_deplibs_check_method='unknown'
10118 # Need to set the preceding variable on all platforms that support
10119 # interlibrary dependencies.
10120 # 'none' -- dependencies not supported.
10121 # `unknown' -- same as none, but documents that we really don't know.
10122 # 'pass_all' -- all dependencies passed with no checks.
10123 # 'test_compile' -- check by making test program.
10124 # 'file_magic [[regex]]' -- check by looking for files in library path
10125 # which responds to the $file_magic_cmd with a given extended regex.
10126 # If you have `file' or equivalent on your system and you're not sure
10127 # whether `pass_all' will *always* work, you probably want this one.
10128
10129 case $host_os in
10130 aix4* | aix5*)
10131   lt_cv_deplibs_check_method=pass_all
10132   ;;
10133
10134 beos*)
10135   lt_cv_deplibs_check_method=pass_all
10136   ;;
10137
10138 bsdi[45]*)
10139   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10140   lt_cv_file_magic_cmd='/usr/bin/file -L'
10141   lt_cv_file_magic_test_file=/shlib/libc.so
10142   ;;
10143
10144 cygwin*)
10145   # func_win32_libid is a shell function defined in ltmain.sh
10146   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10147   lt_cv_file_magic_cmd='func_win32_libid'
10148   ;;
10149
10150 mingw* | pw32*)
10151   # Base MSYS/MinGW do not provide the 'file' command needed by
10152   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10153   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10154   lt_cv_file_magic_cmd='$OBJDUMP -f'
10155   ;;
10156
10157 darwin* | rhapsody*)
10158   lt_cv_deplibs_check_method=pass_all
10159   ;;
10160
10161 freebsd* | kfreebsd*-gnu)
10162   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10163     case $host_cpu in
10164     i*86 )
10165       # Not sure whether the presence of OpenBSD here was a mistake.
10166       # Let's accept both of them until this is cleared up.
10167       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10168       lt_cv_file_magic_cmd=/usr/bin/file
10169       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10170       ;;
10171     esac
10172   else
10173     lt_cv_deplibs_check_method=pass_all
10174   fi
10175   ;;
10176
10177 gnu*)
10178   lt_cv_deplibs_check_method=pass_all
10179   ;;
10180
10181 hpux10.20* | hpux11*)
10182   lt_cv_file_magic_cmd=/usr/bin/file
10183   case "$host_cpu" in
10184   ia64*)
10185     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10186     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10187     ;;
10188   hppa*64*)
10189     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]'
10190     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10191     ;;
10192   *)
10193     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10194     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10195     ;;
10196   esac
10197   ;;
10198
10199 irix5* | irix6* | nonstopux*)
10200   case $LD in
10201   *-32|*"-32 ") libmagic=32-bit;;
10202   *-n32|*"-n32 ") libmagic=N32;;
10203   *-64|*"-64 ") libmagic=64-bit;;
10204   *) libmagic=never-match;;
10205   esac
10206   lt_cv_deplibs_check_method=pass_all
10207   ;;
10208
10209 # This must be Linux ELF.
10210 linux*)
10211   lt_cv_deplibs_check_method=pass_all
10212   ;;
10213
10214 netbsd*)
10215   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10216     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10217   else
10218     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10219   fi
10220   ;;
10221
10222 newos6*)
10223   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10224   lt_cv_file_magic_cmd=/usr/bin/file
10225   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10226   ;;
10227
10228 nto-qnx*)
10229   lt_cv_deplibs_check_method=unknown
10230   ;;
10231
10232 openbsd*)
10233   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10234     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10235   else
10236     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10237   fi
10238   ;;
10239
10240 osf3* | osf4* | osf5*)
10241   lt_cv_deplibs_check_method=pass_all
10242   ;;
10243
10244 sco3.2v5*)
10245   lt_cv_deplibs_check_method=pass_all
10246   ;;
10247
10248 solaris*)
10249   lt_cv_deplibs_check_method=pass_all
10250   ;;
10251
10252 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10253   case $host_vendor in
10254   motorola)
10255     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]'
10256     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10257     ;;
10258   ncr)
10259     lt_cv_deplibs_check_method=pass_all
10260     ;;
10261   sequent)
10262     lt_cv_file_magic_cmd='/bin/file'
10263     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10264     ;;
10265   sni)
10266     lt_cv_file_magic_cmd='/bin/file'
10267     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10268     lt_cv_file_magic_test_file=/lib/libc.so
10269     ;;
10270   siemens)
10271     lt_cv_deplibs_check_method=pass_all
10272     ;;
10273   esac
10274   ;;
10275
10276 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10277   lt_cv_deplibs_check_method=pass_all
10278   ;;
10279 esac
10280
10281 fi
10282 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10283 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10284 file_magic_cmd=$lt_cv_file_magic_cmd
10285 deplibs_check_method=$lt_cv_deplibs_check_method
10286 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10287
10288
10289
10290 # If no C compiler was specified, use CC.
10291 LTCC=${LTCC-"$CC"}
10292
10293 # Allow CC to be a program name with arguments.
10294 compiler=$CC
10295
10296 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10297 if test "${enable_libtool_lock+set}" = set; then
10298   enableval="$enable_libtool_lock"
10299
10300 fi;
10301 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10302
10303 # Some flags need to be propagated to the compiler or linker for good
10304 # libtool support.
10305 case $host in
10306 ia64-*-hpux*)
10307   # Find out which ABI we are using.
10308   echo 'int i;' > conftest.$ac_ext
10309   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10310   (eval $ac_compile) 2>&5
10311   ac_status=$?
10312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313   (exit $ac_status); }; then
10314     case `/usr/bin/file conftest.$ac_objext` in
10315     *ELF-32*)
10316       HPUX_IA64_MODE="32"
10317       ;;
10318     *ELF-64*)
10319       HPUX_IA64_MODE="64"
10320       ;;
10321     esac
10322   fi
10323   rm -rf conftest*
10324   ;;
10325 *-*-irix6*)
10326   # Find out which ABI we are using.
10327   echo '#line 10327 "configure"' > conftest.$ac_ext
10328   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10329   (eval $ac_compile) 2>&5
10330   ac_status=$?
10331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332   (exit $ac_status); }; then
10333    if test "$lt_cv_prog_gnu_ld" = yes; then
10334     case `/usr/bin/file conftest.$ac_objext` in
10335     *32-bit*)
10336       LD="${LD-ld} -melf32bsmip"
10337       ;;
10338     *N32*)
10339       LD="${LD-ld} -melf32bmipn32"
10340       ;;
10341     *64-bit*)
10342       LD="${LD-ld} -melf64bmip"
10343       ;;
10344     esac
10345    else
10346     case `/usr/bin/file conftest.$ac_objext` in
10347     *32-bit*)
10348       LD="${LD-ld} -32"
10349       ;;
10350     *N32*)
10351       LD="${LD-ld} -n32"
10352       ;;
10353     *64-bit*)
10354       LD="${LD-ld} -64"
10355       ;;
10356     esac
10357    fi
10358   fi
10359   rm -rf conftest*
10360   ;;
10361
10362 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10363   # Find out which ABI we are using.
10364   echo 'int i;' > conftest.$ac_ext
10365   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10366   (eval $ac_compile) 2>&5
10367   ac_status=$?
10368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369   (exit $ac_status); }; then
10370     case "`/usr/bin/file conftest.o`" in
10371     *32-bit*)
10372       case $host in
10373         x86_64-*linux*)
10374           LD="${LD-ld} -m elf_i386"
10375           ;;
10376         ppc64-*linux*|powerpc64-*linux*)
10377           LD="${LD-ld} -m elf32ppclinux"
10378           ;;
10379         s390x-*linux*)
10380           LD="${LD-ld} -m elf_s390"
10381           ;;
10382         sparc64-*linux*)
10383           LD="${LD-ld} -m elf32_sparc"
10384           ;;
10385       esac
10386       ;;
10387     *64-bit*)
10388       case $host in
10389         x86_64-*linux*)
10390           LD="${LD-ld} -m elf_x86_64"
10391           ;;
10392         ppc*-*linux*|powerpc*-*linux*)
10393           LD="${LD-ld} -m elf64ppc"
10394           ;;
10395         s390*-*linux*)
10396           LD="${LD-ld} -m elf64_s390"
10397           ;;
10398         sparc*-*linux*)
10399           LD="${LD-ld} -m elf64_sparc"
10400           ;;
10401       esac
10402       ;;
10403     esac
10404   fi
10405   rm -rf conftest*
10406   ;;
10407
10408 *-*-sco3.2v5*)
10409   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10410   SAVE_CFLAGS="$CFLAGS"
10411   CFLAGS="$CFLAGS -belf"
10412   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10413 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10414 if test "${lt_cv_cc_needs_belf+set}" = set; then
10415   echo $ECHO_N "(cached) $ECHO_C" >&6
10416 else
10417   ac_ext=c
10418 ac_cpp='$CPP $CPPFLAGS'
10419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10422
10423      cat >conftest.$ac_ext <<_ACEOF
10424 /* confdefs.h.  */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h.  */
10429
10430 _ACEOF
10431 rm -f conftest.$ac_objext conftest$ac_exeext
10432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10433   (eval $ac_link) 2>conftest.er1
10434   ac_status=$?
10435   grep -v '^ *+' conftest.er1 >conftest.err
10436   rm -f conftest.er1
10437   cat conftest.err >&5
10438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439   (exit $ac_status); } &&
10440          { ac_try='test -z "$ac_c_werror_flag"
10441                          || test ! -s conftest.err'
10442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443   (eval $ac_try) 2>&5
10444   ac_status=$?
10445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446   (exit $ac_status); }; } &&
10447          { ac_try='test -s conftest$ac_exeext'
10448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449   (eval $ac_try) 2>&5
10450   ac_status=$?
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); }; }; then
10453   lt_cv_cc_needs_belf=yes
10454 else
10455   echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10457
10458 lt_cv_cc_needs_belf=no
10459 fi
10460 rm -f conftest.err conftest.$ac_objext \
10461       conftest$ac_exeext conftest.$ac_ext
10462      ac_ext=c
10463 ac_cpp='$CPP $CPPFLAGS'
10464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10467
10468 fi
10469 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10470 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10471   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10472     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10473     CFLAGS="$SAVE_CFLAGS"
10474   fi
10475   ;;
10476
10477 esac
10478
10479 need_locks="$enable_libtool_lock"
10480
10481
10482
10483
10484 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10485     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10486     (test "X$CXX" != "Xg++"))) ; then
10487   ac_ext=cc
10488 ac_cpp='$CXXCPP $CPPFLAGS'
10489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10492 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10493 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10494 if test -z "$CXXCPP"; then
10495   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10496   echo $ECHO_N "(cached) $ECHO_C" >&6
10497 else
10498       # Double quotes because CXXCPP needs to be expanded
10499     for CXXCPP in "$CXX -E" "/lib/cpp"
10500     do
10501       ac_preproc_ok=false
10502 for ac_cxx_preproc_warn_flag in '' yes
10503 do
10504   # Use a header file that comes with gcc, so configuring glibc
10505   # with a fresh cross-compiler works.
10506   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10507   # <limits.h> exists even on freestanding compilers.
10508   # On the NeXT, cc -E runs the code through the compiler's parser,
10509   # not just through cpp. "Syntax error" is here to catch this case.
10510   cat >conftest.$ac_ext <<_ACEOF
10511 /* confdefs.h.  */
10512 _ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h.  */
10516 #ifdef __STDC__
10517 # include <limits.h>
10518 #else
10519 # include <assert.h>
10520 #endif
10521                      Syntax error
10522 _ACEOF
10523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10524   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10525   ac_status=$?
10526   grep -v '^ *+' conftest.er1 >conftest.err
10527   rm -f conftest.er1
10528   cat conftest.err >&5
10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); } >/dev/null; then
10531   if test -s conftest.err; then
10532     ac_cpp_err=$ac_cxx_preproc_warn_flag
10533     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10534   else
10535     ac_cpp_err=
10536   fi
10537 else
10538   ac_cpp_err=yes
10539 fi
10540 if test -z "$ac_cpp_err"; then
10541   :
10542 else
10543   echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10545
10546   # Broken: fails on valid input.
10547 continue
10548 fi
10549 rm -f conftest.err conftest.$ac_ext
10550
10551   # OK, works on sane cases.  Now check whether non-existent headers
10552   # can be detected and how.
10553   cat >conftest.$ac_ext <<_ACEOF
10554 /* confdefs.h.  */
10555 _ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h.  */
10559 #include <ac_nonexistent.h>
10560 _ACEOF
10561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10562   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10563   ac_status=$?
10564   grep -v '^ *+' conftest.er1 >conftest.err
10565   rm -f conftest.er1
10566   cat conftest.err >&5
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); } >/dev/null; then
10569   if test -s conftest.err; then
10570     ac_cpp_err=$ac_cxx_preproc_warn_flag
10571     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10572   else
10573     ac_cpp_err=
10574   fi
10575 else
10576   ac_cpp_err=yes
10577 fi
10578 if test -z "$ac_cpp_err"; then
10579   # Broken: success on invalid input.
10580 continue
10581 else
10582   echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10584
10585   # Passes both tests.
10586 ac_preproc_ok=:
10587 break
10588 fi
10589 rm -f conftest.err conftest.$ac_ext
10590
10591 done
10592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10593 rm -f conftest.err conftest.$ac_ext
10594 if $ac_preproc_ok; then
10595   break
10596 fi
10597
10598     done
10599     ac_cv_prog_CXXCPP=$CXXCPP
10600
10601 fi
10602   CXXCPP=$ac_cv_prog_CXXCPP
10603 else
10604   ac_cv_prog_CXXCPP=$CXXCPP
10605 fi
10606 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10607 echo "${ECHO_T}$CXXCPP" >&6
10608 ac_preproc_ok=false
10609 for ac_cxx_preproc_warn_flag in '' yes
10610 do
10611   # Use a header file that comes with gcc, so configuring glibc
10612   # with a fresh cross-compiler works.
10613   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10614   # <limits.h> exists even on freestanding compilers.
10615   # On the NeXT, cc -E runs the code through the compiler's parser,
10616   # not just through cpp. "Syntax error" is here to catch this case.
10617   cat >conftest.$ac_ext <<_ACEOF
10618 /* confdefs.h.  */
10619 _ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h.  */
10623 #ifdef __STDC__
10624 # include <limits.h>
10625 #else
10626 # include <assert.h>
10627 #endif
10628                      Syntax error
10629 _ACEOF
10630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10631   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10632   ac_status=$?
10633   grep -v '^ *+' conftest.er1 >conftest.err
10634   rm -f conftest.er1
10635   cat conftest.err >&5
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); } >/dev/null; then
10638   if test -s conftest.err; then
10639     ac_cpp_err=$ac_cxx_preproc_warn_flag
10640     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10641   else
10642     ac_cpp_err=
10643   fi
10644 else
10645   ac_cpp_err=yes
10646 fi
10647 if test -z "$ac_cpp_err"; then
10648   :
10649 else
10650   echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10652
10653   # Broken: fails on valid input.
10654 continue
10655 fi
10656 rm -f conftest.err conftest.$ac_ext
10657
10658   # OK, works on sane cases.  Now check whether non-existent headers
10659   # can be detected and how.
10660   cat >conftest.$ac_ext <<_ACEOF
10661 /* confdefs.h.  */
10662 _ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h.  */
10666 #include <ac_nonexistent.h>
10667 _ACEOF
10668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10669   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10670   ac_status=$?
10671   grep -v '^ *+' conftest.er1 >conftest.err
10672   rm -f conftest.er1
10673   cat conftest.err >&5
10674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675   (exit $ac_status); } >/dev/null; then
10676   if test -s conftest.err; then
10677     ac_cpp_err=$ac_cxx_preproc_warn_flag
10678     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10679   else
10680     ac_cpp_err=
10681   fi
10682 else
10683   ac_cpp_err=yes
10684 fi
10685 if test -z "$ac_cpp_err"; then
10686   # Broken: success on invalid input.
10687 continue
10688 else
10689   echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.$ac_ext >&5
10691
10692   # Passes both tests.
10693 ac_preproc_ok=:
10694 break
10695 fi
10696 rm -f conftest.err conftest.$ac_ext
10697
10698 done
10699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10700 rm -f conftest.err conftest.$ac_ext
10701 if $ac_preproc_ok; then
10702   :
10703 else
10704   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10705 See \`config.log' for more details." >&5
10706 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10707 See \`config.log' for more details." >&2;}
10708    { (exit 1); exit 1; }; }
10709 fi
10710
10711 ac_ext=cc
10712 ac_cpp='$CXXCPP $CPPFLAGS'
10713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10716
10717 fi
10718
10719
10720 ac_ext=f
10721 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10722 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10723 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10724 if test -n "$ac_tool_prefix"; then
10725   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10726   do
10727     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10728 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10729 echo "$as_me:$LINENO: checking for $ac_word" >&5
10730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10731 if test "${ac_cv_prog_F77+set}" = set; then
10732   echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734   if test -n "$F77"; then
10735   ac_cv_prog_F77="$F77" # Let the user override the test.
10736 else
10737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10738 for as_dir in $PATH
10739 do
10740   IFS=$as_save_IFS
10741   test -z "$as_dir" && as_dir=.
10742   for ac_exec_ext in '' $ac_executable_extensions; do
10743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10744     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10746     break 2
10747   fi
10748 done
10749 done
10750
10751 fi
10752 fi
10753 F77=$ac_cv_prog_F77
10754 if test -n "$F77"; then
10755   echo "$as_me:$LINENO: result: $F77" >&5
10756 echo "${ECHO_T}$F77" >&6
10757 else
10758   echo "$as_me:$LINENO: result: no" >&5
10759 echo "${ECHO_T}no" >&6
10760 fi
10761
10762     test -n "$F77" && break
10763   done
10764 fi
10765 if test -z "$F77"; then
10766   ac_ct_F77=$F77
10767   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10768 do
10769   # Extract the first word of "$ac_prog", so it can be a program name with args.
10770 set dummy $ac_prog; ac_word=$2
10771 echo "$as_me:$LINENO: checking for $ac_word" >&5
10772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10773 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10774   echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776   if test -n "$ac_ct_F77"; then
10777   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10778 else
10779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10780 for as_dir in $PATH
10781 do
10782   IFS=$as_save_IFS
10783   test -z "$as_dir" && as_dir=.
10784   for ac_exec_ext in '' $ac_executable_extensions; do
10785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10786     ac_cv_prog_ac_ct_F77="$ac_prog"
10787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10788     break 2
10789   fi
10790 done
10791 done
10792
10793 fi
10794 fi
10795 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10796 if test -n "$ac_ct_F77"; then
10797   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10798 echo "${ECHO_T}$ac_ct_F77" >&6
10799 else
10800   echo "$as_me:$LINENO: result: no" >&5
10801 echo "${ECHO_T}no" >&6
10802 fi
10803
10804   test -n "$ac_ct_F77" && break
10805 done
10806
10807   F77=$ac_ct_F77
10808 fi
10809
10810
10811 # Provide some information about the compiler.
10812 echo "$as_me:10812:" \
10813      "checking for Fortran 77 compiler version" >&5
10814 ac_compiler=`set X $ac_compile; echo $2`
10815 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10816   (eval $ac_compiler --version </dev/null >&5) 2>&5
10817   ac_status=$?
10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819   (exit $ac_status); }
10820 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10821   (eval $ac_compiler -v </dev/null >&5) 2>&5
10822   ac_status=$?
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); }
10825 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10826   (eval $ac_compiler -V </dev/null >&5) 2>&5
10827   ac_status=$?
10828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829   (exit $ac_status); }
10830 rm -f a.out
10831
10832 # If we don't use `.F' as extension, the preprocessor is not run on the
10833 # input file.  (Note that this only needs to work for GNU compilers.)
10834 ac_save_ext=$ac_ext
10835 ac_ext=F
10836 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10837 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10838 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10839   echo $ECHO_N "(cached) $ECHO_C" >&6
10840 else
10841   cat >conftest.$ac_ext <<_ACEOF
10842       program main
10843 #ifndef __GNUC__
10844        choke me
10845 #endif
10846
10847       end
10848 _ACEOF
10849 rm -f conftest.$ac_objext
10850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10851   (eval $ac_compile) 2>conftest.er1
10852   ac_status=$?
10853   grep -v '^ *+' conftest.er1 >conftest.err
10854   rm -f conftest.er1
10855   cat conftest.err >&5
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); } &&
10858          { ac_try='test -z "$ac_f77_werror_flag"
10859                          || test ! -s conftest.err'
10860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861   (eval $ac_try) 2>&5
10862   ac_status=$?
10863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864   (exit $ac_status); }; } &&
10865          { ac_try='test -s conftest.$ac_objext'
10866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867   (eval $ac_try) 2>&5
10868   ac_status=$?
10869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   (exit $ac_status); }; }; then
10871   ac_compiler_gnu=yes
10872 else
10873   echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10875
10876 ac_compiler_gnu=no
10877 fi
10878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10879 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10880
10881 fi
10882 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10883 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10884 ac_ext=$ac_save_ext
10885 ac_test_FFLAGS=${FFLAGS+set}
10886 ac_save_FFLAGS=$FFLAGS
10887 FFLAGS=
10888 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10889 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10890 if test "${ac_cv_prog_f77_g+set}" = set; then
10891   echo $ECHO_N "(cached) $ECHO_C" >&6
10892 else
10893   FFLAGS=-g
10894 cat >conftest.$ac_ext <<_ACEOF
10895       program main
10896
10897       end
10898 _ACEOF
10899 rm -f conftest.$ac_objext
10900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10901   (eval $ac_compile) 2>conftest.er1
10902   ac_status=$?
10903   grep -v '^ *+' conftest.er1 >conftest.err
10904   rm -f conftest.er1
10905   cat conftest.err >&5
10906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907   (exit $ac_status); } &&
10908          { ac_try='test -z "$ac_f77_werror_flag"
10909                          || test ! -s conftest.err'
10910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911   (eval $ac_try) 2>&5
10912   ac_status=$?
10913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914   (exit $ac_status); }; } &&
10915          { ac_try='test -s conftest.$ac_objext'
10916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917   (eval $ac_try) 2>&5
10918   ac_status=$?
10919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920   (exit $ac_status); }; }; then
10921   ac_cv_prog_f77_g=yes
10922 else
10923   echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10925
10926 ac_cv_prog_f77_g=no
10927 fi
10928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10929
10930 fi
10931 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10932 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10933 if test "$ac_test_FFLAGS" = set; then
10934   FFLAGS=$ac_save_FFLAGS
10935 elif test $ac_cv_prog_f77_g = yes; then
10936   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10937     FFLAGS="-g -O2"
10938   else
10939     FFLAGS="-g"
10940   fi
10941 else
10942   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10943     FFLAGS="-O2"
10944   else
10945     FFLAGS=
10946   fi
10947 fi
10948
10949 G77=`test $ac_compiler_gnu = yes && echo yes`
10950 ac_ext=c
10951 ac_cpp='$CPP $CPPFLAGS'
10952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10955
10956
10957
10958 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10959
10960 # find the maximum length of command line arguments
10961 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10962 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10963 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10964   echo $ECHO_N "(cached) $ECHO_C" >&6
10965 else
10966     i=0
10967   teststring="ABCD"
10968
10969   case $build_os in
10970   msdosdjgpp*)
10971     # On DJGPP, this test can blow up pretty badly due to problems in libc
10972     # (any single argument exceeding 2000 bytes causes a buffer overrun
10973     # during glob expansion).  Even if it were fixed, the result of this
10974     # check would be larger than it should be.
10975     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10976     ;;
10977
10978   gnu*)
10979     # Under GNU Hurd, this test is not required because there is
10980     # no limit to the length of command line arguments.
10981     # Libtool will interpret -1 as no limit whatsoever
10982     lt_cv_sys_max_cmd_len=-1;
10983     ;;
10984
10985   cygwin* | mingw*)
10986     # On Win9x/ME, this test blows up -- it succeeds, but takes
10987     # about 5 minutes as the teststring grows exponentially.
10988     # Worse, since 9x/ME are not pre-emptively multitasking,
10989     # you end up with a "frozen" computer, even though with patience
10990     # the test eventually succeeds (with a max line length of 256k).
10991     # Instead, let's just punt: use the minimum linelength reported by
10992     # all of the supported platforms: 8192 (on NT/2K/XP).
10993     lt_cv_sys_max_cmd_len=8192;
10994     ;;
10995
10996   amigaos*)
10997     # On AmigaOS with pdksh, this test takes hours, literally.
10998     # So we just punt and use a minimum line length of 8192.
10999     lt_cv_sys_max_cmd_len=8192;
11000     ;;
11001
11002   netbsd* | freebsd* | openbsd* | darwin* )
11003     # This has been around since 386BSD, at least.  Likely further.
11004     if test -x /sbin/sysctl; then
11005       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11006     elif test -x /usr/sbin/sysctl; then
11007       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11008     else
11009       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11010     fi
11011     # And add a safety zone
11012     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11013     ;;
11014
11015  *)
11016     # If test is not a shell built-in, we'll probably end up computing a
11017     # maximum length that is only half of the actual maximum length, but
11018     # we can't tell.
11019     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11020     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11021                = "XX$teststring") >/dev/null 2>&1 &&
11022             new_result=`expr "X$teststring" : ".*" 2>&1` &&
11023             lt_cv_sys_max_cmd_len=$new_result &&
11024             test $i != 17 # 1/2 MB should be enough
11025     do
11026       i=`expr $i + 1`
11027       teststring=$teststring$teststring
11028     done
11029     teststring=
11030     # Add a significant safety factor because C++ compilers can tack on massive
11031     # amounts of additional arguments before passing them to the linker.
11032     # It appears as though 1/2 is a usable value.
11033     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11034     ;;
11035   esac
11036
11037 fi
11038
11039 if test -n $lt_cv_sys_max_cmd_len ; then
11040   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11041 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11042 else
11043   echo "$as_me:$LINENO: result: none" >&5
11044 echo "${ECHO_T}none" >&6
11045 fi
11046
11047
11048
11049
11050 # Check for command to grab the raw symbol name followed by C symbol from nm.
11051 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11052 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11053 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11054   echo $ECHO_N "(cached) $ECHO_C" >&6
11055 else
11056
11057 # These are sane defaults that work on at least a few old systems.
11058 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11059
11060 # Character class describing NM global symbol codes.
11061 symcode='[BCDEGRST]'
11062
11063 # Regexp to match symbols that can be accessed directly from C.
11064 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11065
11066 # Transform the above into a raw symbol and a C symbol.
11067 symxfrm='\1 \2\3 \3'
11068
11069 # Transform an extracted symbol line into a proper C declaration
11070 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11071
11072 # Transform an extracted symbol line into symbol name and symbol address
11073 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'"
11074
11075 # Define system-specific variables.
11076 case $host_os in
11077 aix*)
11078   symcode='[BCDT]'
11079   ;;
11080 cygwin* | mingw* | pw32*)
11081   symcode='[ABCDGISTW]'
11082   ;;
11083 hpux*) # Its linker distinguishes data from code symbols
11084   if test "$host_cpu" = ia64; then
11085     symcode='[ABCDEGRST]'
11086   fi
11087   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11088   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'"
11089   ;;
11090 linux*)
11091   if test "$host_cpu" = ia64; then
11092     symcode='[ABCDGIRSTW]'
11093     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11094     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'"
11095   fi
11096   ;;
11097 irix* | nonstopux*)
11098   symcode='[BCDEGRST]'
11099   ;;
11100 osf*)
11101   symcode='[BCDEGQRST]'
11102   ;;
11103 solaris* | sysv5*)
11104   symcode='[BDRT]'
11105   ;;
11106 sysv4)
11107   symcode='[DFNSTU]'
11108   ;;
11109 esac
11110
11111 # Handle CRLF in mingw tool chain
11112 opt_cr=
11113 case $build_os in
11114 mingw*)
11115   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11116   ;;
11117 esac
11118
11119 # If we're using GNU nm, then use its standard symbol codes.
11120 case `$NM -V 2>&1` in
11121 *GNU* | *'with BFD'*)
11122   symcode='[ABCDGIRSTW]' ;;
11123 esac
11124
11125 # Try without a prefix undercore, then with it.
11126 for ac_symprfx in "" "_"; do
11127
11128   # Write the raw and C identifiers.
11129   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11130
11131   # Check to see that the pipe works correctly.
11132   pipe_works=no
11133
11134   rm -f conftest*
11135   cat > conftest.$ac_ext <<EOF
11136 #ifdef __cplusplus
11137 extern "C" {
11138 #endif
11139 char nm_test_var;
11140 void nm_test_func(){}
11141 #ifdef __cplusplus
11142 }
11143 #endif
11144 int main(){nm_test_var='a';nm_test_func();return(0);}
11145 EOF
11146
11147   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11148   (eval $ac_compile) 2>&5
11149   ac_status=$?
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); }; then
11152     # Now try to grab the symbols.
11153     nlist=conftest.nm
11154     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11155   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11156   ac_status=$?
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); } && test -s "$nlist"; then
11159       # Try sorting and uniquifying the output.
11160       if sort "$nlist" | uniq > "$nlist"T; then
11161         mv -f "$nlist"T "$nlist"
11162       else
11163         rm -f "$nlist"T
11164       fi
11165
11166       # Make sure that we snagged all the symbols we need.
11167       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11168         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11169           cat <<EOF > conftest.$ac_ext
11170 #ifdef __cplusplus
11171 extern "C" {
11172 #endif
11173
11174 EOF
11175           # Now generate the symbol file.
11176           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11177
11178           cat <<EOF >> conftest.$ac_ext
11179 #if defined (__STDC__) && __STDC__
11180 # define lt_ptr_t void *
11181 #else
11182 # define lt_ptr_t char *
11183 # define const
11184 #endif
11185
11186 /* The mapping between symbol names and symbols. */
11187 const struct {
11188   const char *name;
11189   lt_ptr_t address;
11190 }
11191 lt_preloaded_symbols[] =
11192 {
11193 EOF
11194           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11195           cat <<\EOF >> conftest.$ac_ext
11196   {0, (lt_ptr_t) 0}
11197 };
11198
11199 #ifdef __cplusplus
11200 }
11201 #endif
11202 EOF
11203           # Now try linking the two files.
11204           mv conftest.$ac_objext conftstm.$ac_objext
11205           lt_save_LIBS="$LIBS"
11206           lt_save_CFLAGS="$CFLAGS"
11207           LIBS="conftstm.$ac_objext"
11208           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11209           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11210   (eval $ac_link) 2>&5
11211   ac_status=$?
11212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11214             pipe_works=yes
11215           fi
11216           LIBS="$lt_save_LIBS"
11217           CFLAGS="$lt_save_CFLAGS"
11218         else
11219           echo "cannot find nm_test_func in $nlist" >&5
11220         fi
11221       else
11222         echo "cannot find nm_test_var in $nlist" >&5
11223       fi
11224     else
11225       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11226     fi
11227   else
11228     echo "$progname: failed program was:" >&5
11229     cat conftest.$ac_ext >&5
11230   fi
11231   rm -f conftest* conftst*
11232
11233   # Do not use the global_symbol_pipe unless it works.
11234   if test "$pipe_works" = yes; then
11235     break
11236   else
11237     lt_cv_sys_global_symbol_pipe=
11238   fi
11239 done
11240
11241 fi
11242
11243 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11244   lt_cv_sys_global_symbol_to_cdecl=
11245 fi
11246 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11247   echo "$as_me:$LINENO: result: failed" >&5
11248 echo "${ECHO_T}failed" >&6
11249 else
11250   echo "$as_me:$LINENO: result: ok" >&5
11251 echo "${ECHO_T}ok" >&6
11252 fi
11253
11254 echo "$as_me:$LINENO: checking for objdir" >&5
11255 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11256 if test "${lt_cv_objdir+set}" = set; then
11257   echo $ECHO_N "(cached) $ECHO_C" >&6
11258 else
11259   rm -f .libs 2>/dev/null
11260 mkdir .libs 2>/dev/null
11261 if test -d .libs; then
11262   lt_cv_objdir=.libs
11263 else
11264   # MS-DOS does not allow filenames that begin with a dot.
11265   lt_cv_objdir=_libs
11266 fi
11267 rmdir .libs 2>/dev/null
11268 fi
11269 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11270 echo "${ECHO_T}$lt_cv_objdir" >&6
11271 objdir=$lt_cv_objdir
11272
11273
11274
11275
11276
11277 case $host_os in
11278 aix3*)
11279   # AIX sometimes has problems with the GCC collect2 program.  For some
11280   # reason, if we set the COLLECT_NAMES environment variable, the problems
11281   # vanish in a puff of smoke.
11282   if test "X${COLLECT_NAMES+set}" != Xset; then
11283     COLLECT_NAMES=
11284     export COLLECT_NAMES
11285   fi
11286   ;;
11287 esac
11288
11289 # Sed substitution that helps us do robust quoting.  It backslashifies
11290 # metacharacters that are still active within double-quoted strings.
11291 Xsed='sed -e s/^X//'
11292 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11293
11294 # Same as above, but do not quote variable references.
11295 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11296
11297 # Sed substitution to delay expansion of an escaped shell variable in a
11298 # double_quote_subst'ed string.
11299 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11300
11301 # Sed substitution to avoid accidental globbing in evaled expressions
11302 no_glob_subst='s/\*/\\\*/g'
11303
11304 # Constants:
11305 rm="rm -f"
11306
11307 # Global variables:
11308 default_ofile=mklib
11309 can_build_shared=yes
11310
11311 # All known linkers require a `.a' archive for static linking (except M$VC,
11312 # which needs '.lib').
11313 libext=a
11314 ltmain="$ac_aux_dir/ltmain.sh"
11315 ofile="$default_ofile"
11316 with_gnu_ld="$lt_cv_prog_gnu_ld"
11317
11318 if test -n "$ac_tool_prefix"; then
11319   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11320 set dummy ${ac_tool_prefix}ar; ac_word=$2
11321 echo "$as_me:$LINENO: checking for $ac_word" >&5
11322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11323 if test "${ac_cv_prog_AR+set}" = set; then
11324   echo $ECHO_N "(cached) $ECHO_C" >&6
11325 else
11326   if test -n "$AR"; then
11327   ac_cv_prog_AR="$AR" # Let the user override the test.
11328 else
11329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11330 for as_dir in $PATH
11331 do
11332   IFS=$as_save_IFS
11333   test -z "$as_dir" && as_dir=.
11334   for ac_exec_ext in '' $ac_executable_extensions; do
11335   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11336     ac_cv_prog_AR="${ac_tool_prefix}ar"
11337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11338     break 2
11339   fi
11340 done
11341 done
11342
11343 fi
11344 fi
11345 AR=$ac_cv_prog_AR
11346 if test -n "$AR"; then
11347   echo "$as_me:$LINENO: result: $AR" >&5
11348 echo "${ECHO_T}$AR" >&6
11349 else
11350   echo "$as_me:$LINENO: result: no" >&5
11351 echo "${ECHO_T}no" >&6
11352 fi
11353
11354 fi
11355 if test -z "$ac_cv_prog_AR"; then
11356   ac_ct_AR=$AR
11357   # Extract the first word of "ar", so it can be a program name with args.
11358 set dummy ar; ac_word=$2
11359 echo "$as_me:$LINENO: checking for $ac_word" >&5
11360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11361 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11362   echo $ECHO_N "(cached) $ECHO_C" >&6
11363 else
11364   if test -n "$ac_ct_AR"; then
11365   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11366 else
11367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11368 for as_dir in $PATH
11369 do
11370   IFS=$as_save_IFS
11371   test -z "$as_dir" && as_dir=.
11372   for ac_exec_ext in '' $ac_executable_extensions; do
11373   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11374     ac_cv_prog_ac_ct_AR="ar"
11375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11376     break 2
11377   fi
11378 done
11379 done
11380
11381   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11382 fi
11383 fi
11384 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11385 if test -n "$ac_ct_AR"; then
11386   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11387 echo "${ECHO_T}$ac_ct_AR" >&6
11388 else
11389   echo "$as_me:$LINENO: result: no" >&5
11390 echo "${ECHO_T}no" >&6
11391 fi
11392
11393   AR=$ac_ct_AR
11394 else
11395   AR="$ac_cv_prog_AR"
11396 fi
11397
11398 if test -n "$ac_tool_prefix"; then
11399   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11400 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11401 echo "$as_me:$LINENO: checking for $ac_word" >&5
11402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11403 if test "${ac_cv_prog_RANLIB+set}" = set; then
11404   echo $ECHO_N "(cached) $ECHO_C" >&6
11405 else
11406   if test -n "$RANLIB"; then
11407   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11408 else
11409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410 for as_dir in $PATH
11411 do
11412   IFS=$as_save_IFS
11413   test -z "$as_dir" && as_dir=.
11414   for ac_exec_ext in '' $ac_executable_extensions; do
11415   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11416     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11418     break 2
11419   fi
11420 done
11421 done
11422
11423 fi
11424 fi
11425 RANLIB=$ac_cv_prog_RANLIB
11426 if test -n "$RANLIB"; then
11427   echo "$as_me:$LINENO: result: $RANLIB" >&5
11428 echo "${ECHO_T}$RANLIB" >&6
11429 else
11430   echo "$as_me:$LINENO: result: no" >&5
11431 echo "${ECHO_T}no" >&6
11432 fi
11433
11434 fi
11435 if test -z "$ac_cv_prog_RANLIB"; then
11436   ac_ct_RANLIB=$RANLIB
11437   # Extract the first word of "ranlib", so it can be a program name with args.
11438 set dummy ranlib; ac_word=$2
11439 echo "$as_me:$LINENO: checking for $ac_word" >&5
11440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11441 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11442   echo $ECHO_N "(cached) $ECHO_C" >&6
11443 else
11444   if test -n "$ac_ct_RANLIB"; then
11445   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11446 else
11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448 for as_dir in $PATH
11449 do
11450   IFS=$as_save_IFS
11451   test -z "$as_dir" && as_dir=.
11452   for ac_exec_ext in '' $ac_executable_extensions; do
11453   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11454     ac_cv_prog_ac_ct_RANLIB="ranlib"
11455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11456     break 2
11457   fi
11458 done
11459 done
11460
11461   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11462 fi
11463 fi
11464 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11465 if test -n "$ac_ct_RANLIB"; then
11466   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11467 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11468 else
11469   echo "$as_me:$LINENO: result: no" >&5
11470 echo "${ECHO_T}no" >&6
11471 fi
11472
11473   RANLIB=$ac_ct_RANLIB
11474 else
11475   RANLIB="$ac_cv_prog_RANLIB"
11476 fi
11477
11478 if test -n "$ac_tool_prefix"; then
11479   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11480 set dummy ${ac_tool_prefix}strip; ac_word=$2
11481 echo "$as_me:$LINENO: checking for $ac_word" >&5
11482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11483 if test "${ac_cv_prog_STRIP+set}" = set; then
11484   echo $ECHO_N "(cached) $ECHO_C" >&6
11485 else
11486   if test -n "$STRIP"; then
11487   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11488 else
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11491 do
11492   IFS=$as_save_IFS
11493   test -z "$as_dir" && as_dir=.
11494   for ac_exec_ext in '' $ac_executable_extensions; do
11495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11496     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11498     break 2
11499   fi
11500 done
11501 done
11502
11503 fi
11504 fi
11505 STRIP=$ac_cv_prog_STRIP
11506 if test -n "$STRIP"; then
11507   echo "$as_me:$LINENO: result: $STRIP" >&5
11508 echo "${ECHO_T}$STRIP" >&6
11509 else
11510   echo "$as_me:$LINENO: result: no" >&5
11511 echo "${ECHO_T}no" >&6
11512 fi
11513
11514 fi
11515 if test -z "$ac_cv_prog_STRIP"; then
11516   ac_ct_STRIP=$STRIP
11517   # Extract the first word of "strip", so it can be a program name with args.
11518 set dummy strip; ac_word=$2
11519 echo "$as_me:$LINENO: checking for $ac_word" >&5
11520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11521 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11522   echo $ECHO_N "(cached) $ECHO_C" >&6
11523 else
11524   if test -n "$ac_ct_STRIP"; then
11525   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11526 else
11527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11528 for as_dir in $PATH
11529 do
11530   IFS=$as_save_IFS
11531   test -z "$as_dir" && as_dir=.
11532   for ac_exec_ext in '' $ac_executable_extensions; do
11533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11534     ac_cv_prog_ac_ct_STRIP="strip"
11535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11536     break 2
11537   fi
11538 done
11539 done
11540
11541   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11542 fi
11543 fi
11544 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11545 if test -n "$ac_ct_STRIP"; then
11546   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11547 echo "${ECHO_T}$ac_ct_STRIP" >&6
11548 else
11549   echo "$as_me:$LINENO: result: no" >&5
11550 echo "${ECHO_T}no" >&6
11551 fi
11552
11553   STRIP=$ac_ct_STRIP
11554 else
11555   STRIP="$ac_cv_prog_STRIP"
11556 fi
11557
11558
11559 old_CC="$CC"
11560 old_CFLAGS="$CFLAGS"
11561
11562 # Set sane defaults for various variables
11563 test -z "$AR" && AR=ar
11564 test -z "$AR_FLAGS" && AR_FLAGS=cru
11565 test -z "$AS" && AS=as
11566 test -z "$CC" && CC=cc
11567 test -z "$LTCC" && LTCC=$CC
11568 test -z "$DLLTOOL" && DLLTOOL=dlltool
11569 test -z "$LD" && LD=ld
11570 test -z "$LN_S" && LN_S="ln -s"
11571 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11572 test -z "$NM" && NM=nm
11573 test -z "$SED" && SED=sed
11574 test -z "$OBJDUMP" && OBJDUMP=objdump
11575 test -z "$RANLIB" && RANLIB=:
11576 test -z "$STRIP" && STRIP=:
11577 test -z "$ac_objext" && ac_objext=o
11578
11579 # Determine commands to create old-style static archives.
11580 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11581 old_postinstall_cmds='chmod 644 $oldlib'
11582 old_postuninstall_cmds=
11583
11584 if test -n "$RANLIB"; then
11585   case $host_os in
11586   openbsd*)
11587     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11588     ;;
11589   *)
11590     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11591     ;;
11592   esac
11593   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11594 fi
11595
11596 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11597
11598 # Only perform the check for file, if the check method requires it
11599 case $deplibs_check_method in
11600 file_magic*)
11601   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11602     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11603 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11604 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11605   echo $ECHO_N "(cached) $ECHO_C" >&6
11606 else
11607   case $MAGIC_CMD in
11608 [\\/*] |  ?:[\\/]*)
11609   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11610   ;;
11611 *)
11612   lt_save_MAGIC_CMD="$MAGIC_CMD"
11613   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11614   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11615   for ac_dir in $ac_dummy; do
11616     IFS="$lt_save_ifs"
11617     test -z "$ac_dir" && ac_dir=.
11618     if test -f $ac_dir/${ac_tool_prefix}file; then
11619       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11620       if test -n "$file_magic_test_file"; then
11621         case $deplibs_check_method in
11622         "file_magic "*)
11623           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11624           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11625           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11626             $EGREP "$file_magic_regex" > /dev/null; then
11627             :
11628           else
11629             cat <<EOF 1>&2
11630
11631 *** Warning: the command libtool uses to detect shared libraries,
11632 *** $file_magic_cmd, produces output that libtool cannot recognize.
11633 *** The result is that libtool may fail to recognize shared libraries
11634 *** as such.  This will affect the creation of libtool libraries that
11635 *** depend on shared libraries, but programs linked with such libtool
11636 *** libraries will work regardless of this problem.  Nevertheless, you
11637 *** may want to report the problem to your system manager and/or to
11638 *** bug-libtool@gnu.org
11639
11640 EOF
11641           fi ;;
11642         esac
11643       fi
11644       break
11645     fi
11646   done
11647   IFS="$lt_save_ifs"
11648   MAGIC_CMD="$lt_save_MAGIC_CMD"
11649   ;;
11650 esac
11651 fi
11652
11653 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11654 if test -n "$MAGIC_CMD"; then
11655   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11656 echo "${ECHO_T}$MAGIC_CMD" >&6
11657 else
11658   echo "$as_me:$LINENO: result: no" >&5
11659 echo "${ECHO_T}no" >&6
11660 fi
11661
11662 if test -z "$lt_cv_path_MAGIC_CMD"; then
11663   if test -n "$ac_tool_prefix"; then
11664     echo "$as_me:$LINENO: checking for file" >&5
11665 echo $ECHO_N "checking for file... $ECHO_C" >&6
11666 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11667   echo $ECHO_N "(cached) $ECHO_C" >&6
11668 else
11669   case $MAGIC_CMD in
11670 [\\/*] |  ?:[\\/]*)
11671   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11672   ;;
11673 *)
11674   lt_save_MAGIC_CMD="$MAGIC_CMD"
11675   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11676   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11677   for ac_dir in $ac_dummy; do
11678     IFS="$lt_save_ifs"
11679     test -z "$ac_dir" && ac_dir=.
11680     if test -f $ac_dir/file; then
11681       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11682       if test -n "$file_magic_test_file"; then
11683         case $deplibs_check_method in
11684         "file_magic "*)
11685           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11686           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11687           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11688             $EGREP "$file_magic_regex" > /dev/null; then
11689             :
11690           else
11691             cat <<EOF 1>&2
11692
11693 *** Warning: the command libtool uses to detect shared libraries,
11694 *** $file_magic_cmd, produces output that libtool cannot recognize.
11695 *** The result is that libtool may fail to recognize shared libraries
11696 *** as such.  This will affect the creation of libtool libraries that
11697 *** depend on shared libraries, but programs linked with such libtool
11698 *** libraries will work regardless of this problem.  Nevertheless, you
11699 *** may want to report the problem to your system manager and/or to
11700 *** bug-libtool@gnu.org
11701
11702 EOF
11703           fi ;;
11704         esac
11705       fi
11706       break
11707     fi
11708   done
11709   IFS="$lt_save_ifs"
11710   MAGIC_CMD="$lt_save_MAGIC_CMD"
11711   ;;
11712 esac
11713 fi
11714
11715 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11716 if test -n "$MAGIC_CMD"; then
11717   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11718 echo "${ECHO_T}$MAGIC_CMD" >&6
11719 else
11720   echo "$as_me:$LINENO: result: no" >&5
11721 echo "${ECHO_T}no" >&6
11722 fi
11723
11724   else
11725     MAGIC_CMD=:
11726   fi
11727 fi
11728
11729   fi
11730   ;;
11731 esac
11732
11733 enable_dlopen=yes
11734 enable_win32_dll=no
11735
11736 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11737 if test "${enable_libtool_lock+set}" = set; then
11738   enableval="$enable_libtool_lock"
11739
11740 fi;
11741 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11742
11743
11744 # Check whether --with-pic or --without-pic was given.
11745 if test "${with_pic+set}" = set; then
11746   withval="$with_pic"
11747   pic_mode="$withval"
11748 else
11749   pic_mode=default
11750 fi;
11751 test -z "$pic_mode" && pic_mode=default
11752
11753 # Use C for the default configuration in the libtool script
11754 tagname=
11755 lt_save_CC="$CC"
11756 ac_ext=c
11757 ac_cpp='$CPP $CPPFLAGS'
11758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11761
11762
11763 # Source file extension for C test sources.
11764 ac_ext=c
11765
11766 # Object file extension for compiled C test sources.
11767 objext=o
11768 objext=$objext
11769
11770 # Code to be used in simple compile tests
11771 lt_simple_compile_test_code="int some_variable = 0;\n"
11772
11773 # Code to be used in simple link tests
11774 lt_simple_link_test_code='int main(){return(0);}\n'
11775
11776
11777 # If no C compiler was specified, use CC.
11778 LTCC=${LTCC-"$CC"}
11779
11780 # Allow CC to be a program name with arguments.
11781 compiler=$CC
11782
11783
11784 #
11785 # Check for any special shared library compilation flags.
11786 #
11787 lt_prog_cc_shlib=
11788 if test "$GCC" = no; then
11789   case $host_os in
11790   sco3.2v5*)
11791     lt_prog_cc_shlib='-belf'
11792     ;;
11793   esac
11794 fi
11795 if test -n "$lt_prog_cc_shlib"; then
11796   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11797 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11798   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11799   else
11800     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11801 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11802     lt_cv_prog_cc_can_build_shared=no
11803   fi
11804 fi
11805
11806
11807 #
11808 # Check to make sure the static flag actually works.
11809 #
11810 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11811 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11812 if test "${lt_prog_compiler_static_works+set}" = set; then
11813   echo $ECHO_N "(cached) $ECHO_C" >&6
11814 else
11815   lt_prog_compiler_static_works=no
11816    save_LDFLAGS="$LDFLAGS"
11817    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11818    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11819    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11820      # The compiler can only warn and ignore the option if not recognized
11821      # So say no if there are warnings
11822      if test -s conftest.err; then
11823        # Append any errors to the config.log.
11824        cat conftest.err 1>&5
11825      else
11826        lt_prog_compiler_static_works=yes
11827      fi
11828    fi
11829    $rm conftest*
11830    LDFLAGS="$save_LDFLAGS"
11831
11832 fi
11833 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11834 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11835
11836 if test x"$lt_prog_compiler_static_works" = xyes; then
11837     :
11838 else
11839     lt_prog_compiler_static=
11840 fi
11841
11842
11843
11844
11845 lt_prog_compiler_no_builtin_flag=
11846
11847 if test "$GCC" = yes; then
11848   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11849
11850
11851 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11852 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11853 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11854   echo $ECHO_N "(cached) $ECHO_C" >&6
11855 else
11856   lt_cv_prog_compiler_rtti_exceptions=no
11857   ac_outfile=conftest.$ac_objext
11858    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11859    lt_compiler_flag="-fno-rtti -fno-exceptions"
11860    # Insert the option either (1) after the last *FLAGS variable, or
11861    # (2) before a word containing "conftest.", or (3) at the end.
11862    # Note that $ac_compile itself does not contain backslashes and begins
11863    # with a dollar sign (not a hyphen), so the echo should work correctly.
11864    # The option is referenced via a variable to avoid confusing sed.
11865    lt_compile=`echo "$ac_compile" | $SED \
11866    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11867    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11868    -e 's:$: $lt_compiler_flag:'`
11869    (eval echo "\"\$as_me:11869: $lt_compile\"" >&5)
11870    (eval "$lt_compile" 2>conftest.err)
11871    ac_status=$?
11872    cat conftest.err >&5
11873    echo "$as_me:11873: \$? = $ac_status" >&5
11874    if (exit $ac_status) && test -s "$ac_outfile"; then
11875      # The compiler can only warn and ignore the option if not recognized
11876      # So say no if there are warnings
11877      if test ! -s conftest.err; then
11878        lt_cv_prog_compiler_rtti_exceptions=yes
11879      fi
11880    fi
11881    $rm conftest*
11882
11883 fi
11884 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11885 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11886
11887 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11888     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11889 else
11890     :
11891 fi
11892
11893 fi
11894
11895 lt_prog_compiler_wl=
11896 lt_prog_compiler_pic=
11897 lt_prog_compiler_static=
11898
11899 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11900 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11901
11902   if test "$GCC" = yes; then
11903     lt_prog_compiler_wl='-Wl,'
11904     lt_prog_compiler_static='-static'
11905
11906     case $host_os in
11907       aix*)
11908       # All AIX code is PIC.
11909       if test "$host_cpu" = ia64; then
11910         # AIX 5 now supports IA64 processor
11911         lt_prog_compiler_static='-Bstatic'
11912       fi
11913       ;;
11914
11915     amigaos*)
11916       # FIXME: we need at least 68020 code to build shared libraries, but
11917       # adding the `-m68020' flag to GCC prevents building anything better,
11918       # like `-m68040'.
11919       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11920       ;;
11921
11922     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11923       # PIC is the default for these OSes.
11924       ;;
11925
11926     mingw* | pw32* | os2*)
11927       # This hack is so that the source file can tell whether it is being
11928       # built for inclusion in a dll (and should export symbols for example).
11929       lt_prog_compiler_pic='-DDLL_EXPORT'
11930       ;;
11931
11932     darwin* | rhapsody*)
11933       # PIC is the default on this platform
11934       # Common symbols not allowed in MH_DYLIB files
11935       lt_prog_compiler_pic='-fno-common'
11936       ;;
11937
11938     msdosdjgpp*)
11939       # Just because we use GCC doesn't mean we suddenly get shared libraries
11940       # on systems that don't support them.
11941       lt_prog_compiler_can_build_shared=no
11942       enable_shared=no
11943       ;;
11944
11945     sysv4*MP*)
11946       if test -d /usr/nec; then
11947         lt_prog_compiler_pic=-Kconform_pic
11948       fi
11949       ;;
11950
11951     hpux*)
11952       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11953       # not for PA HP-UX.
11954       case "$host_cpu" in
11955       hppa*64*|ia64*)
11956         # +Z the default
11957         ;;
11958       *)
11959         lt_prog_compiler_pic='-fPIC'
11960         ;;
11961       esac
11962       ;;
11963
11964     *)
11965       lt_prog_compiler_pic='-fPIC'
11966       ;;
11967     esac
11968   else
11969     # PORTME Check for flag to pass linker flags through the system compiler.
11970     case $host_os in
11971     aix*)
11972       lt_prog_compiler_wl='-Wl,'
11973       if test "$host_cpu" = ia64; then
11974         # AIX 5 now supports IA64 processor
11975         lt_prog_compiler_static='-Bstatic'
11976       else
11977         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11978       fi
11979       ;;
11980       darwin*)
11981         # PIC is the default on this platform
11982         # Common symbols not allowed in MH_DYLIB files
11983        case "$cc_basename" in
11984          xlc*)
11985          lt_prog_compiler_pic='-qnocommon'
11986          lt_prog_compiler_wl='-Wl,'
11987          ;;
11988        esac
11989        ;;
11990
11991     mingw* | pw32* | os2*)
11992       # This hack is so that the source file can tell whether it is being
11993       # built for inclusion in a dll (and should export symbols for example).
11994       lt_prog_compiler_pic='-DDLL_EXPORT'
11995       ;;
11996
11997     hpux9* | hpux10* | hpux11*)
11998       lt_prog_compiler_wl='-Wl,'
11999       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12000       # not for PA HP-UX.
12001       case "$host_cpu" in
12002       hppa*64*|ia64*)
12003         # +Z the default
12004         ;;
12005       *)
12006         lt_prog_compiler_pic='+Z'
12007         ;;
12008       esac
12009       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12010       lt_prog_compiler_static='${wl}-a ${wl}archive'
12011       ;;
12012
12013     irix5* | irix6* | nonstopux*)
12014       lt_prog_compiler_wl='-Wl,'
12015       # PIC (with -KPIC) is the default.
12016       lt_prog_compiler_static='-non_shared'
12017       ;;
12018
12019     newsos6)
12020       lt_prog_compiler_pic='-KPIC'
12021       lt_prog_compiler_static='-Bstatic'
12022       ;;
12023
12024     linux*)
12025       case $CC in
12026       icc* | ecc*)
12027         lt_prog_compiler_wl='-Wl,'
12028         lt_prog_compiler_pic='-KPIC'
12029         lt_prog_compiler_static='-static'
12030         ;;
12031       ccc*)
12032         lt_prog_compiler_wl='-Wl,'
12033         # All Alpha code is PIC.
12034         lt_prog_compiler_static='-non_shared'
12035         ;;
12036       esac
12037       ;;
12038
12039     osf3* | osf4* | osf5*)
12040       lt_prog_compiler_wl='-Wl,'
12041       # All OSF/1 code is PIC.
12042       lt_prog_compiler_static='-non_shared'
12043       ;;
12044
12045     sco3.2v5*)
12046       lt_prog_compiler_pic='-Kpic'
12047       lt_prog_compiler_static='-dn'
12048       ;;
12049
12050     solaris*)
12051       lt_prog_compiler_wl='-Wl,'
12052       lt_prog_compiler_pic='-KPIC'
12053       lt_prog_compiler_static='-Bstatic'
12054       ;;
12055
12056     sunos4*)
12057       lt_prog_compiler_wl='-Qoption ld '
12058       lt_prog_compiler_pic='-PIC'
12059       lt_prog_compiler_static='-Bstatic'
12060       ;;
12061
12062     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12063       lt_prog_compiler_wl='-Wl,'
12064       lt_prog_compiler_pic='-KPIC'
12065       lt_prog_compiler_static='-Bstatic'
12066       ;;
12067
12068     sysv4*MP*)
12069       if test -d /usr/nec ;then
12070         lt_prog_compiler_pic='-Kconform_pic'
12071         lt_prog_compiler_static='-Bstatic'
12072       fi
12073       ;;
12074
12075     uts4*)
12076       lt_prog_compiler_pic='-pic'
12077       lt_prog_compiler_static='-Bstatic'
12078       ;;
12079
12080     *)
12081       lt_prog_compiler_can_build_shared=no
12082       ;;
12083     esac
12084   fi
12085
12086 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12087 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12088
12089 #
12090 # Check to make sure the PIC flag actually works.
12091 #
12092 if test -n "$lt_prog_compiler_pic"; then
12093
12094 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12095 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12096 if test "${lt_prog_compiler_pic_works+set}" = set; then
12097   echo $ECHO_N "(cached) $ECHO_C" >&6
12098 else
12099   lt_prog_compiler_pic_works=no
12100   ac_outfile=conftest.$ac_objext
12101    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12102    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12103    # Insert the option either (1) after the last *FLAGS variable, or
12104    # (2) before a word containing "conftest.", or (3) at the end.
12105    # Note that $ac_compile itself does not contain backslashes and begins
12106    # with a dollar sign (not a hyphen), so the echo should work correctly.
12107    # The option is referenced via a variable to avoid confusing sed.
12108    lt_compile=`echo "$ac_compile" | $SED \
12109    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12110    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12111    -e 's:$: $lt_compiler_flag:'`
12112    (eval echo "\"\$as_me:12112: $lt_compile\"" >&5)
12113    (eval "$lt_compile" 2>conftest.err)
12114    ac_status=$?
12115    cat conftest.err >&5
12116    echo "$as_me:12116: \$? = $ac_status" >&5
12117    if (exit $ac_status) && test -s "$ac_outfile"; then
12118      # The compiler can only warn and ignore the option if not recognized
12119      # So say no if there are warnings
12120      if test ! -s conftest.err; then
12121        lt_prog_compiler_pic_works=yes
12122      fi
12123    fi
12124    $rm conftest*
12125
12126 fi
12127 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12128 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12129
12130 if test x"$lt_prog_compiler_pic_works" = xyes; then
12131     case $lt_prog_compiler_pic in
12132      "" | " "*) ;;
12133      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12134      esac
12135 else
12136     lt_prog_compiler_pic=
12137      lt_prog_compiler_can_build_shared=no
12138 fi
12139
12140 fi
12141 case "$host_os" in
12142   # For platforms which do not support PIC, -DPIC is meaningless:
12143   *djgpp*)
12144     lt_prog_compiler_pic=
12145     ;;
12146   *)
12147     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12148     ;;
12149 esac
12150
12151 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12152 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12153 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12154   echo $ECHO_N "(cached) $ECHO_C" >&6
12155 else
12156   lt_cv_prog_compiler_c_o=no
12157    $rm -r conftest 2>/dev/null
12158    mkdir conftest
12159    cd conftest
12160    mkdir out
12161    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12162
12163    lt_compiler_flag="-o out/conftest2.$ac_objext"
12164    # Insert the option either (1) after the last *FLAGS variable, or
12165    # (2) before a word containing "conftest.", or (3) at the end.
12166    # Note that $ac_compile itself does not contain backslashes and begins
12167    # with a dollar sign (not a hyphen), so the echo should work correctly.
12168    lt_compile=`echo "$ac_compile" | $SED \
12169    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12170    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12171    -e 's:$: $lt_compiler_flag:'`
12172    (eval echo "\"\$as_me:12172: $lt_compile\"" >&5)
12173    (eval "$lt_compile" 2>out/conftest.err)
12174    ac_status=$?
12175    cat out/conftest.err >&5
12176    echo "$as_me:12176: \$? = $ac_status" >&5
12177    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12178    then
12179      # The compiler can only warn and ignore the option if not recognized
12180      # So say no if there are warnings
12181      if test ! -s out/conftest.err; then
12182        lt_cv_prog_compiler_c_o=yes
12183      fi
12184    fi
12185    chmod u+w .
12186    $rm conftest*
12187    # SGI C++ compiler will create directory out/ii_files/ for
12188    # template instantiation
12189    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12190    $rm out/* && rmdir out
12191    cd ..
12192    rmdir conftest
12193    $rm conftest*
12194
12195 fi
12196 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12197 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12198
12199
12200 hard_links="nottested"
12201 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12202   # do not overwrite the value of need_locks provided by the user
12203   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12204 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12205   hard_links=yes
12206   $rm conftest*
12207   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12208   touch conftest.a
12209   ln conftest.a conftest.b 2>&5 || hard_links=no
12210   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12211   echo "$as_me:$LINENO: result: $hard_links" >&5
12212 echo "${ECHO_T}$hard_links" >&6
12213   if test "$hard_links" = no; then
12214     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12215 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12216     need_locks=warn
12217   fi
12218 else
12219   need_locks=no
12220 fi
12221
12222 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12223 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12224
12225   runpath_var=
12226   allow_undefined_flag=
12227   enable_shared_with_static_runtimes=no
12228   archive_cmds=
12229   archive_expsym_cmds=
12230   old_archive_From_new_cmds=
12231   old_archive_from_expsyms_cmds=
12232   export_dynamic_flag_spec=
12233   whole_archive_flag_spec=
12234   thread_safe_flag_spec=
12235   hardcode_libdir_flag_spec=
12236   hardcode_libdir_flag_spec_ld=
12237   hardcode_libdir_separator=
12238   hardcode_direct=no
12239   hardcode_minus_L=no
12240   hardcode_shlibpath_var=unsupported
12241   link_all_deplibs=unknown
12242   hardcode_automatic=no
12243   module_cmds=
12244   module_expsym_cmds=
12245   always_export_symbols=no
12246   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12247   # include_expsyms should be a list of space-separated symbols to be *always*
12248   # included in the symbol list
12249   include_expsyms=
12250   # exclude_expsyms can be an extended regexp of symbols to exclude
12251   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12252   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12253   # as well as any symbol that contains `d'.
12254   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12255   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12256   # platforms (ab)use it in PIC code, but their linkers get confused if
12257   # the symbol is explicitly referenced.  Since portable code cannot
12258   # rely on this symbol name, it's probably fine to never include it in
12259   # preloaded symbol tables.
12260   extract_expsyms_cmds=
12261
12262   case $host_os in
12263   cygwin* | mingw* | pw32*)
12264     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12265     # When not using gcc, we currently assume that we are using
12266     # Microsoft Visual C++.
12267     if test "$GCC" != yes; then
12268       with_gnu_ld=no
12269     fi
12270     ;;
12271   openbsd*)
12272     with_gnu_ld=no
12273     ;;
12274   esac
12275
12276   ld_shlibs=yes
12277   if test "$with_gnu_ld" = yes; then
12278     # If archive_cmds runs LD, not CC, wlarc should be empty
12279     wlarc='${wl}'
12280
12281     # See if GNU ld supports shared libraries.
12282     case $host_os in
12283     aix3* | aix4* | aix5*)
12284       # On AIX/PPC, the GNU linker is very broken
12285       if test "$host_cpu" != ia64; then
12286         ld_shlibs=no
12287         cat <<EOF 1>&2
12288
12289 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12290 *** to be unable to reliably create shared libraries on AIX.
12291 *** Therefore, libtool is disabling shared libraries support.  If you
12292 *** really care for shared libraries, you may want to modify your PATH
12293 *** so that a non-GNU linker is found, and then restart.
12294
12295 EOF
12296       fi
12297       ;;
12298
12299     amigaos*)
12300       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)'
12301       hardcode_libdir_flag_spec='-L$libdir'
12302       hardcode_minus_L=yes
12303
12304       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12305       # that the semantics of dynamic libraries on AmigaOS, at least up
12306       # to version 4, is to share data among multiple programs linked
12307       # with the same dynamic library.  Since this doesn't match the
12308       # behavior of shared libraries on other platforms, we can't use
12309       # them.
12310       ld_shlibs=no
12311       ;;
12312
12313     beos*)
12314       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12315         allow_undefined_flag=unsupported
12316         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12317         # support --undefined.  This deserves some investigation.  FIXME
12318         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12319       else
12320         ld_shlibs=no
12321       fi
12322       ;;
12323
12324     cygwin* | mingw* | pw32*)
12325       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12326       # as there is no search path for DLLs.
12327       hardcode_libdir_flag_spec='-L$libdir'
12328       allow_undefined_flag=unsupported
12329       always_export_symbols=no
12330       enable_shared_with_static_runtimes=yes
12331       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12332
12333       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12334         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12335         # If the export-symbols file already is a .def file (1st line
12336         # is EXPORTS), use it as is; otherwise, prepend...
12337         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12338           cp $export_symbols $output_objdir/$soname.def;
12339         else
12340           echo EXPORTS > $output_objdir/$soname.def;
12341           cat $export_symbols >> $output_objdir/$soname.def;
12342         fi~
12343         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12344       else
12345         ld_shlibs=no
12346       fi
12347       ;;
12348
12349     netbsd*)
12350       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12351         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12352         wlarc=
12353       else
12354         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12355         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12356       fi
12357       ;;
12358
12359     solaris* | sysv5*)
12360       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12361         ld_shlibs=no
12362         cat <<EOF 1>&2
12363
12364 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12365 *** create shared libraries on Solaris systems.  Therefore, libtool
12366 *** is disabling shared libraries support.  We urge you to upgrade GNU
12367 *** binutils to release 2.9.1 or newer.  Another option is to modify
12368 *** your PATH or compiler configuration so that the native linker is
12369 *** used, and then restart.
12370
12371 EOF
12372       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12373         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12374         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12375       else
12376         ld_shlibs=no
12377       fi
12378       ;;
12379
12380     sunos4*)
12381       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12382       wlarc=
12383       hardcode_direct=yes
12384       hardcode_shlibpath_var=no
12385       ;;
12386
12387   linux*)
12388     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12389         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12390         archive_cmds="$tmp_archive_cmds"
12391       supports_anon_versioning=no
12392       case `$LD -v 2>/dev/null` in
12393         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12394         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12395         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12396         *\ 2.11.*) ;; # other 2.11 versions
12397         *) supports_anon_versioning=yes ;;
12398       esac
12399       if test $supports_anon_versioning = yes; then
12400         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12401 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12402 $echo "local: *; };" >> $output_objdir/$libname.ver~
12403         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12404       else
12405         archive_expsym_cmds="$tmp_archive_cmds"
12406       fi
12407     else
12408       ld_shlibs=no
12409     fi
12410     ;;
12411
12412     *)
12413       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12414         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12415         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12416       else
12417         ld_shlibs=no
12418       fi
12419       ;;
12420     esac
12421
12422     if test "$ld_shlibs" = yes; then
12423       runpath_var=LD_RUN_PATH
12424       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12425       export_dynamic_flag_spec='${wl}--export-dynamic'
12426       # ancient GNU ld didn't support --whole-archive et. al.
12427       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12428         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12429       else
12430         whole_archive_flag_spec=
12431       fi
12432     fi
12433   else
12434     # PORTME fill in a description of your system's linker (not GNU ld)
12435     case $host_os in
12436     aix3*)
12437       allow_undefined_flag=unsupported
12438       always_export_symbols=yes
12439       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'
12440       # Note: this linker hardcodes the directories in LIBPATH if there
12441       # are no directories specified by -L.
12442       hardcode_minus_L=yes
12443       if test "$GCC" = yes && test -z "$link_static_flag"; then
12444         # Neither direct hardcoding nor static linking is supported with a
12445         # broken collect2.
12446         hardcode_direct=unsupported
12447       fi
12448       ;;
12449
12450     aix4* | aix5*)
12451       if test "$host_cpu" = ia64; then
12452         # On IA64, the linker does run time linking by default, so we don't
12453         # have to do anything special.
12454         aix_use_runtimelinking=no
12455         exp_sym_flag='-Bexport'
12456         no_entry_flag=""
12457       else
12458         # If we're using GNU nm, then we don't want the "-C" option.
12459         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12460         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12461           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'
12462         else
12463           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'
12464         fi
12465         aix_use_runtimelinking=no
12466
12467         # Test if we are trying to use run time linking or normal
12468         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12469         # need to do runtime linking.
12470         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12471           for ld_flag in $LDFLAGS; do
12472           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12473             aix_use_runtimelinking=yes
12474             break
12475           fi
12476           done
12477         esac
12478
12479         exp_sym_flag='-bexport'
12480         no_entry_flag='-bnoentry'
12481       fi
12482
12483       # When large executables or shared objects are built, AIX ld can
12484       # have problems creating the table of contents.  If linking a library
12485       # or program results in "error TOC overflow" add -mminimal-toc to
12486       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12487       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12488
12489       archive_cmds=''
12490       hardcode_direct=yes
12491       hardcode_libdir_separator=':'
12492       link_all_deplibs=yes
12493
12494       if test "$GCC" = yes; then
12495         case $host_os in aix4.012|aix4.012.*)
12496         # We only want to do this on AIX 4.2 and lower, the check
12497         # below for broken collect2 doesn't work under 4.3+
12498           collect2name=`${CC} -print-prog-name=collect2`
12499           if test -f "$collect2name" && \
12500            strings "$collect2name" | grep resolve_lib_name >/dev/null
12501           then
12502           # We have reworked collect2
12503           hardcode_direct=yes
12504           else
12505           # We have old collect2
12506           hardcode_direct=unsupported
12507           # It fails to find uninstalled libraries when the uninstalled
12508           # path is not listed in the libpath.  Setting hardcode_minus_L
12509           # to unsupported forces relinking
12510           hardcode_minus_L=yes
12511           hardcode_libdir_flag_spec='-L$libdir'
12512           hardcode_libdir_separator=
12513           fi
12514         esac
12515         shared_flag='-shared'
12516       else
12517         # not using gcc
12518         if test "$host_cpu" = ia64; then
12519         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12520         # chokes on -Wl,-G. The following line is correct:
12521           shared_flag='-G'
12522         else
12523         if test "$aix_use_runtimelinking" = yes; then
12524             shared_flag='${wl}-G'
12525           else
12526             shared_flag='${wl}-bM:SRE'
12527         fi
12528         fi
12529       fi
12530
12531       # It seems that -bexpall does not export symbols beginning with
12532       # underscore (_), so it is better to generate a list of symbols to export.
12533       always_export_symbols=yes
12534       if test "$aix_use_runtimelinking" = yes; then
12535         # Warning - without using the other runtime loading flags (-brtl),
12536         # -berok will link without error, but may produce a broken library.
12537         allow_undefined_flag='-berok'
12538        # Determine the default libpath from the value encoded in an empty executable.
12539        cat >conftest.$ac_ext <<_ACEOF
12540 /* confdefs.h.  */
12541 _ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h.  */
12545
12546 int
12547 main ()
12548 {
12549
12550   ;
12551   return 0;
12552 }
12553 _ACEOF
12554 rm -f conftest.$ac_objext conftest$ac_exeext
12555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12556   (eval $ac_link) 2>conftest.er1
12557   ac_status=$?
12558   grep -v '^ *+' conftest.er1 >conftest.err
12559   rm -f conftest.er1
12560   cat conftest.err >&5
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); } &&
12563          { ac_try='test -z "$ac_c_werror_flag"
12564                          || test ! -s conftest.err'
12565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566   (eval $ac_try) 2>&5
12567   ac_status=$?
12568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569   (exit $ac_status); }; } &&
12570          { ac_try='test -s conftest$ac_exeext'
12571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572   (eval $ac_try) 2>&5
12573   ac_status=$?
12574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575   (exit $ac_status); }; }; then
12576
12577 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12578 }'`
12579 # Check for a 64-bit object if we didn't find anything.
12580 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; }
12581 }'`; fi
12582 else
12583   echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.$ac_ext >&5
12585
12586 fi
12587 rm -f conftest.err conftest.$ac_objext \
12588       conftest$ac_exeext conftest.$ac_ext
12589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12590
12591        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12592         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"
12593        else
12594         if test "$host_cpu" = ia64; then
12595           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12596           allow_undefined_flag="-z nodefs"
12597           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"
12598         else
12599          # Determine the default libpath from the value encoded in an empty executable.
12600          cat >conftest.$ac_ext <<_ACEOF
12601 /* confdefs.h.  */
12602 _ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h.  */
12606
12607 int
12608 main ()
12609 {
12610
12611   ;
12612   return 0;
12613 }
12614 _ACEOF
12615 rm -f conftest.$ac_objext conftest$ac_exeext
12616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12617   (eval $ac_link) 2>conftest.er1
12618   ac_status=$?
12619   grep -v '^ *+' conftest.er1 >conftest.err
12620   rm -f conftest.er1
12621   cat conftest.err >&5
12622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623   (exit $ac_status); } &&
12624          { ac_try='test -z "$ac_c_werror_flag"
12625                          || test ! -s conftest.err'
12626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627   (eval $ac_try) 2>&5
12628   ac_status=$?
12629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630   (exit $ac_status); }; } &&
12631          { ac_try='test -s conftest$ac_exeext'
12632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633   (eval $ac_try) 2>&5
12634   ac_status=$?
12635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636   (exit $ac_status); }; }; then
12637
12638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12639 }'`
12640 # Check for a 64-bit object if we didn't find anything.
12641 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; }
12642 }'`; fi
12643 else
12644   echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12646
12647 fi
12648 rm -f conftest.err conftest.$ac_objext \
12649       conftest$ac_exeext conftest.$ac_ext
12650 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12651
12652          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12653           # Warning - without using the other run time loading flags,
12654           # -berok will link without error, but may produce a broken library.
12655           no_undefined_flag=' ${wl}-bernotok'
12656           allow_undefined_flag=' ${wl}-berok'
12657           # -bexpall does not export symbols beginning with underscore (_)
12658           always_export_symbols=yes
12659           # Exported symbols can be pulled into shared objects from archives
12660           whole_archive_flag_spec=' '
12661           archive_cmds_need_lc=yes
12662           # This is similar to how AIX traditionally builds it's shared libraries.
12663           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'
12664         fi
12665       fi
12666       ;;
12667
12668     amigaos*)
12669       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)'
12670       hardcode_libdir_flag_spec='-L$libdir'
12671       hardcode_minus_L=yes
12672       # see comment about different semantics on the GNU ld section
12673       ld_shlibs=no
12674       ;;
12675
12676     bsdi[45]*)
12677       export_dynamic_flag_spec=-rdynamic
12678       ;;
12679
12680     cygwin* | mingw* | pw32*)
12681       # When not using gcc, we currently assume that we are using
12682       # Microsoft Visual C++.
12683       # hardcode_libdir_flag_spec is actually meaningless, as there is
12684       # no search path for DLLs.
12685       hardcode_libdir_flag_spec=' '
12686       allow_undefined_flag=unsupported
12687       # Tell ltmain to make .lib files, not .a files.
12688       libext=lib
12689       # Tell ltmain to make .dll files, not .so files.
12690       shrext_cmds=".dll"
12691       # FIXME: Setting linknames here is a bad hack.
12692       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12693       # The linker will automatically build a .lib file if we build a DLL.
12694       old_archive_From_new_cmds='true'
12695       # FIXME: Should let the user specify the lib program.
12696       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12697       fix_srcfile_path='`cygpath -w "$srcfile"`'
12698       enable_shared_with_static_runtimes=yes
12699       ;;
12700
12701     darwin* | rhapsody*)
12702       case "$host_os" in
12703         rhapsody* | darwin1.[012])
12704          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12705          ;;
12706        *) # Darwin 1.3 on
12707          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12708            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12709          else
12710            case ${MACOSX_DEPLOYMENT_TARGET} in
12711              10.[012])
12712                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12713                ;;
12714              10.*)
12715                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12716                ;;
12717            esac
12718          fi
12719          ;;
12720       esac
12721       archive_cmds_need_lc=no
12722       hardcode_direct=no
12723       hardcode_automatic=yes
12724       hardcode_shlibpath_var=unsupported
12725       whole_archive_flag_spec=''
12726       link_all_deplibs=yes
12727     if test "$GCC" = yes ; then
12728         output_verbose_link_cmd='echo'
12729         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12730       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12731       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12732       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}'
12733       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}'
12734     else
12735       case "$cc_basename" in
12736         xlc*)
12737          output_verbose_link_cmd='echo'
12738          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12739          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12740           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12741          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}'
12742           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}'
12743           ;;
12744        *)
12745          ld_shlibs=no
12746           ;;
12747       esac
12748     fi
12749       ;;
12750
12751     dgux*)
12752       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12753       hardcode_libdir_flag_spec='-L$libdir'
12754       hardcode_shlibpath_var=no
12755       ;;
12756
12757     freebsd1*)
12758       ld_shlibs=no
12759       ;;
12760
12761     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12762     # support.  Future versions do this automatically, but an explicit c++rt0.o
12763     # does not break anything, and helps significantly (at the cost of a little
12764     # extra space).
12765     freebsd2.2*)
12766       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12767       hardcode_libdir_flag_spec='-R$libdir'
12768       hardcode_direct=yes
12769       hardcode_shlibpath_var=no
12770       ;;
12771
12772     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12773     freebsd2*)
12774       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12775       hardcode_direct=yes
12776       hardcode_minus_L=yes
12777       hardcode_shlibpath_var=no
12778       ;;
12779
12780     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12781     freebsd* | kfreebsd*-gnu)
12782       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12783       hardcode_libdir_flag_spec='-R$libdir'
12784       hardcode_direct=yes
12785       hardcode_shlibpath_var=no
12786       ;;
12787
12788     hpux9*)
12789       if test "$GCC" = yes; then
12790         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'
12791       else
12792         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'
12793       fi
12794       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12795       hardcode_libdir_separator=:
12796       hardcode_direct=yes
12797
12798       # hardcode_minus_L: Not really in the search PATH,
12799       # but as the default location of the library.
12800       hardcode_minus_L=yes
12801       export_dynamic_flag_spec='${wl}-E'
12802       ;;
12803
12804     hpux10* | hpux11*)
12805       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12806         case "$host_cpu" in
12807         hppa*64*|ia64*)
12808           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12809           ;;
12810         *)
12811           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12812           ;;
12813         esac
12814       else
12815         case "$host_cpu" in
12816         hppa*64*|ia64*)
12817           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12818           ;;
12819         *)
12820           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12821           ;;
12822         esac
12823       fi
12824       if test "$with_gnu_ld" = no; then
12825         case "$host_cpu" in
12826         hppa*64*)
12827           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12828           hardcode_libdir_flag_spec_ld='+b $libdir'
12829           hardcode_libdir_separator=:
12830           hardcode_direct=no
12831           hardcode_shlibpath_var=no
12832           ;;
12833         ia64*)
12834           hardcode_libdir_flag_spec='-L$libdir'
12835           hardcode_direct=no
12836           hardcode_shlibpath_var=no
12837
12838           # hardcode_minus_L: Not really in the search PATH,
12839           # but as the default location of the library.
12840           hardcode_minus_L=yes
12841           ;;
12842         *)
12843           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12844           hardcode_libdir_separator=:
12845           hardcode_direct=yes
12846           export_dynamic_flag_spec='${wl}-E'
12847
12848           # hardcode_minus_L: Not really in the search PATH,
12849           # but as the default location of the library.
12850           hardcode_minus_L=yes
12851           ;;
12852         esac
12853       fi
12854       ;;
12855
12856     irix5* | irix6* | nonstopux*)
12857       if test "$GCC" = yes; then
12858         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'
12859       else
12860         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'
12861         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12862       fi
12863       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12864       hardcode_libdir_separator=:
12865       link_all_deplibs=yes
12866       ;;
12867
12868     netbsd*)
12869       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12870         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12871       else
12872         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12873       fi
12874       hardcode_libdir_flag_spec='-R$libdir'
12875       hardcode_direct=yes
12876       hardcode_shlibpath_var=no
12877       ;;
12878
12879     newsos6)
12880       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12881       hardcode_direct=yes
12882       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12883       hardcode_libdir_separator=:
12884       hardcode_shlibpath_var=no
12885       ;;
12886
12887     openbsd*)
12888       hardcode_direct=yes
12889       hardcode_shlibpath_var=no
12890       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12891         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12892         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12893         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12894         export_dynamic_flag_spec='${wl}-E'
12895       else
12896        case $host_os in
12897          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12898            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12899            hardcode_libdir_flag_spec='-R$libdir'
12900            ;;
12901          *)
12902            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12903            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12904            ;;
12905        esac
12906       fi
12907       ;;
12908
12909     os2*)
12910       hardcode_libdir_flag_spec='-L$libdir'
12911       hardcode_minus_L=yes
12912       allow_undefined_flag=unsupported
12913       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'
12914       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12915       ;;
12916
12917     osf3*)
12918       if test "$GCC" = yes; then
12919         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12920         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'
12921       else
12922         allow_undefined_flag=' -expect_unresolved \*'
12923         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'
12924       fi
12925       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12926       hardcode_libdir_separator=:
12927       ;;
12928
12929     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12930       if test "$GCC" = yes; then
12931         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12932         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'
12933         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12934       else
12935         allow_undefined_flag=' -expect_unresolved \*'
12936         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'
12937         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12938         $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'
12939
12940         # Both c and cxx compiler support -rpath directly
12941         hardcode_libdir_flag_spec='-rpath $libdir'
12942       fi
12943       hardcode_libdir_separator=:
12944       ;;
12945
12946     sco3.2v5*)
12947       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12948       hardcode_shlibpath_var=no
12949       export_dynamic_flag_spec='${wl}-Bexport'
12950       runpath_var=LD_RUN_PATH
12951       hardcode_runpath_var=yes
12952       ;;
12953
12954     solaris*)
12955       no_undefined_flag=' -z text'
12956       if test "$GCC" = yes; then
12957         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12958         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12959           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12960       else
12961         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12962         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12963         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12964       fi
12965       hardcode_libdir_flag_spec='-R$libdir'
12966       hardcode_shlibpath_var=no
12967       case $host_os in
12968       solaris2.[0-5] | solaris2.[0-5].*) ;;
12969       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12970         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12971       esac
12972       link_all_deplibs=yes
12973       ;;
12974
12975     sunos4*)
12976       if test "x$host_vendor" = xsequent; then
12977         # Use $CC to link under sequent, because it throws in some extra .o
12978         # files that make .init and .fini sections work.
12979         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12980       else
12981         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12982       fi
12983       hardcode_libdir_flag_spec='-L$libdir'
12984       hardcode_direct=yes
12985       hardcode_minus_L=yes
12986       hardcode_shlibpath_var=no
12987       ;;
12988
12989     sysv4)
12990       case $host_vendor in
12991         sni)
12992           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12993           hardcode_direct=yes # is this really true???
12994         ;;
12995         siemens)
12996           ## LD is ld it makes a PLAMLIB
12997           ## CC just makes a GrossModule.
12998           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12999           reload_cmds='$CC -r -o $output$reload_objs'
13000           hardcode_direct=no
13001         ;;
13002         motorola)
13003           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13004           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13005         ;;
13006       esac
13007       runpath_var='LD_RUN_PATH'
13008       hardcode_shlibpath_var=no
13009       ;;
13010
13011     sysv4.3*)
13012       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13013       hardcode_shlibpath_var=no
13014       export_dynamic_flag_spec='-Bexport'
13015       ;;
13016
13017     sysv4*MP*)
13018       if test -d /usr/nec; then
13019         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13020         hardcode_shlibpath_var=no
13021         runpath_var=LD_RUN_PATH
13022         hardcode_runpath_var=yes
13023         ld_shlibs=yes
13024       fi
13025       ;;
13026
13027     sysv4.2uw2*)
13028       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13029       hardcode_direct=yes
13030       hardcode_minus_L=no
13031       hardcode_shlibpath_var=no
13032       hardcode_runpath_var=yes
13033       runpath_var=LD_RUN_PATH
13034       ;;
13035
13036    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13037       no_undefined_flag='${wl}-z ${wl}text'
13038       if test "$GCC" = yes; then
13039         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13040       else
13041         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13042       fi
13043       runpath_var='LD_RUN_PATH'
13044       hardcode_shlibpath_var=no
13045       ;;
13046
13047     sysv5*)
13048       no_undefined_flag=' -z text'
13049       # $CC -shared without GNU ld will not create a library from C++
13050       # object files and a static libstdc++, better avoid it by now
13051       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13052       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13053                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13054       hardcode_libdir_flag_spec=
13055       hardcode_shlibpath_var=no
13056       runpath_var='LD_RUN_PATH'
13057       ;;
13058
13059     uts4*)
13060       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13061       hardcode_libdir_flag_spec='-L$libdir'
13062       hardcode_shlibpath_var=no
13063       ;;
13064
13065     *)
13066       ld_shlibs=no
13067       ;;
13068     esac
13069   fi
13070
13071 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13072 echo "${ECHO_T}$ld_shlibs" >&6
13073 test "$ld_shlibs" = no && can_build_shared=no
13074
13075 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13076 if test "$GCC" = yes; then
13077   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13078 fi
13079
13080 #
13081 # Do we need to explicitly link libc?
13082 #
13083 case "x$archive_cmds_need_lc" in
13084 x|xyes)
13085   # Assume -lc should be added
13086   archive_cmds_need_lc=yes
13087
13088   if test "$enable_shared" = yes && test "$GCC" = yes; then
13089     case $archive_cmds in
13090     *'~'*)
13091       # FIXME: we may have to deal with multi-command sequences.
13092       ;;
13093     '$CC '*)
13094       # Test whether the compiler implicitly links with -lc since on some
13095       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13096       # to ld, don't add -lc before -lgcc.
13097       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13098 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13099       $rm conftest*
13100       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13101
13102       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13103   (eval $ac_compile) 2>&5
13104   ac_status=$?
13105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106   (exit $ac_status); } 2>conftest.err; then
13107         soname=conftest
13108         lib=conftest
13109         libobjs=conftest.$ac_objext
13110         deplibs=
13111         wl=$lt_prog_compiler_wl
13112         compiler_flags=-v
13113         linker_flags=-v
13114         verstring=
13115         output_objdir=.
13116         libname=conftest
13117         lt_save_allow_undefined_flag=$allow_undefined_flag
13118         allow_undefined_flag=
13119         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13120   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13121   ac_status=$?
13122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123   (exit $ac_status); }
13124         then
13125           archive_cmds_need_lc=no
13126         else
13127           archive_cmds_need_lc=yes
13128         fi
13129         allow_undefined_flag=$lt_save_allow_undefined_flag
13130       else
13131         cat conftest.err 1>&5
13132       fi
13133       $rm conftest*
13134       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13135 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13136       ;;
13137     esac
13138   fi
13139   ;;
13140 esac
13141
13142 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13143 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13144 library_names_spec=
13145 libname_spec='lib$name'
13146 soname_spec=
13147 shrext_cmds=".so"
13148 postinstall_cmds=
13149 postuninstall_cmds=
13150 finish_cmds=
13151 finish_eval=
13152 shlibpath_var=
13153 shlibpath_overrides_runpath=unknown
13154 version_type=none
13155 dynamic_linker="$host_os ld.so"
13156 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13157 if test "$GCC" = yes; then
13158   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13159   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13160     # if the path contains ";" then we assume it to be the separator
13161     # otherwise default to the standard path separator (i.e. ":") - it is
13162     # assumed that no part of a normal pathname contains ";" but that should
13163     # okay in the real world where ";" in dirpaths is itself problematic.
13164     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13165   else
13166     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13167   fi
13168 else
13169   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13170 fi
13171 need_lib_prefix=unknown
13172 hardcode_into_libs=no
13173
13174 # when you set need_version to no, make sure it does not cause -set_version
13175 # flags to be left without arguments
13176 need_version=unknown
13177
13178 case $host_os in
13179 aix3*)
13180   version_type=linux
13181   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13182   shlibpath_var=LIBPATH
13183
13184   # AIX 3 has no versioning support, so we append a major version to the name.
13185   soname_spec='${libname}${release}${shared_ext}$major'
13186   ;;
13187
13188 aix4* | aix5*)
13189   version_type=linux
13190   need_lib_prefix=no
13191   need_version=no
13192   hardcode_into_libs=yes
13193   if test "$host_cpu" = ia64; then
13194     # AIX 5 supports IA64
13195     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13196     shlibpath_var=LD_LIBRARY_PATH
13197   else
13198     # With GCC up to 2.95.x, collect2 would create an import file
13199     # for dependence libraries.  The import file would start with
13200     # the line `#! .'.  This would cause the generated library to
13201     # depend on `.', always an invalid library.  This was fixed in
13202     # development snapshots of GCC prior to 3.0.
13203     case $host_os in
13204       aix4 | aix4.[01] | aix4.[01].*)
13205       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13206            echo ' yes '
13207            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13208         :
13209       else
13210         can_build_shared=no
13211       fi
13212       ;;
13213     esac
13214     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13215     # soname into executable. Probably we can add versioning support to
13216     # collect2, so additional links can be useful in future.
13217     if test "$aix_use_runtimelinking" = yes; then
13218       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13219       # instead of lib<name>.a to let people know that these are not
13220       # typical AIX shared libraries.
13221       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13222     else
13223       # We preserve .a as extension for shared libraries through AIX4.2
13224       # and later when we are not doing run time linking.
13225       library_names_spec='${libname}${release}.a $libname.a'
13226       soname_spec='${libname}${release}${shared_ext}$major'
13227     fi
13228     shlibpath_var=LIBPATH
13229   fi
13230   ;;
13231
13232 amigaos*)
13233   library_names_spec='$libname.ixlibrary $libname.a'
13234   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13235   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'
13236   ;;
13237
13238 beos*)
13239   library_names_spec='${libname}${shared_ext}'
13240   dynamic_linker="$host_os ld.so"
13241   shlibpath_var=LIBRARY_PATH
13242   ;;
13243
13244 bsdi[45]*)
13245   version_type=linux
13246   need_version=no
13247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13248   soname_spec='${libname}${release}${shared_ext}$major'
13249   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13250   shlibpath_var=LD_LIBRARY_PATH
13251   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13252   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13253   # the default ld.so.conf also contains /usr/contrib/lib and
13254   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13255   # libtool to hard-code these into programs
13256   ;;
13257
13258 cygwin* | mingw* | pw32*)
13259   version_type=windows
13260   shrext_cmds=".dll"
13261   need_version=no
13262   need_lib_prefix=no
13263
13264   case $GCC,$host_os in
13265   yes,cygwin* | yes,mingw* | yes,pw32*)
13266     library_names_spec='$libname.dll.a'
13267     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13268     postinstall_cmds='base_file=`basename \${file}`~
13269       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13270       dldir=$destdir/`dirname \$dlpath`~
13271       test -d \$dldir || mkdir -p \$dldir~
13272       $install_prog $dir/$dlname \$dldir/$dlname'
13273     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13274       dlpath=$dir/\$dldll~
13275        $rm \$dlpath'
13276     shlibpath_overrides_runpath=yes
13277
13278     case $host_os in
13279     cygwin*)
13280       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13281       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13282       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13283       ;;
13284     mingw*)
13285       # MinGW DLLs use traditional 'lib' prefix
13286       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13287       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13288       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13289         # It is most probably a Windows format PATH printed by
13290         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13291         # path with ; separators, and with drive letters. We can handle the
13292         # drive letters (cygwin fileutils understands them), so leave them,
13293         # especially as we might pass files found there to a mingw objdump,
13294         # which wouldn't understand a cygwinified path. Ahh.
13295         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13296       else
13297         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13298       fi
13299       ;;
13300     pw32*)
13301       # pw32 DLLs use 'pw' prefix rather than 'lib'
13302       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13303       ;;
13304     esac
13305     ;;
13306
13307   *)
13308     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13309     ;;
13310   esac
13311   dynamic_linker='Win32 ld.exe'
13312   # FIXME: first we should search . and the directory the executable is in
13313   shlibpath_var=PATH
13314   ;;
13315
13316 darwin* | rhapsody*)
13317   dynamic_linker="$host_os dyld"
13318   version_type=darwin
13319   need_lib_prefix=no
13320   need_version=no
13321   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13322   soname_spec='${libname}${release}${major}$shared_ext'
13323   shlibpath_overrides_runpath=yes
13324   shlibpath_var=DYLD_LIBRARY_PATH
13325   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13326   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13327   if test "$GCC" = yes; then
13328     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"`
13329   else
13330     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13331   fi
13332   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13333   ;;
13334
13335 dgux*)
13336   version_type=linux
13337   need_lib_prefix=no
13338   need_version=no
13339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13340   soname_spec='${libname}${release}${shared_ext}$major'
13341   shlibpath_var=LD_LIBRARY_PATH
13342   ;;
13343
13344 freebsd1*)
13345   dynamic_linker=no
13346   ;;
13347
13348 kfreebsd*-gnu)
13349   version_type=linux
13350   need_lib_prefix=no
13351   need_version=no
13352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13353   soname_spec='${libname}${release}${shared_ext}$major'
13354   shlibpath_var=LD_LIBRARY_PATH
13355   shlibpath_overrides_runpath=no
13356   hardcode_into_libs=yes
13357   dynamic_linker='GNU ld.so'
13358   ;;
13359
13360 freebsd*)
13361   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13362   version_type=freebsd-$objformat
13363   case $version_type in
13364     freebsd-elf*)
13365       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13366       need_version=no
13367       need_lib_prefix=no
13368       ;;
13369     freebsd-*)
13370       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13371       need_version=yes
13372       ;;
13373   esac
13374   shlibpath_var=LD_LIBRARY_PATH
13375   case $host_os in
13376   freebsd2*)
13377     shlibpath_overrides_runpath=yes
13378     ;;
13379   freebsd3.01* | freebsdelf3.01*)
13380     shlibpath_overrides_runpath=yes
13381     hardcode_into_libs=yes
13382     ;;
13383   *) # from 3.2 on
13384     shlibpath_overrides_runpath=no
13385     hardcode_into_libs=yes
13386     ;;
13387   esac
13388   ;;
13389
13390 gnu*)
13391   version_type=linux
13392   need_lib_prefix=no
13393   need_version=no
13394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13395   soname_spec='${libname}${release}${shared_ext}$major'
13396   shlibpath_var=LD_LIBRARY_PATH
13397   hardcode_into_libs=yes
13398   ;;
13399
13400 hpux9* | hpux10* | hpux11*)
13401   # Give a soname corresponding to the major version so that dld.sl refuses to
13402   # link against other versions.
13403   version_type=sunos
13404   need_lib_prefix=no
13405   need_version=no
13406   case "$host_cpu" in
13407   ia64*)
13408     shrext_cmds='.so'
13409     hardcode_into_libs=yes
13410     dynamic_linker="$host_os dld.so"
13411     shlibpath_var=LD_LIBRARY_PATH
13412     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13413     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13414     soname_spec='${libname}${release}${shared_ext}$major'
13415     if test "X$HPUX_IA64_MODE" = X32; then
13416       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13417     else
13418       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13419     fi
13420     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13421     ;;
13422    hppa*64*)
13423      shrext_cmds='.sl'
13424      hardcode_into_libs=yes
13425      dynamic_linker="$host_os dld.sl"
13426      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13427      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13428      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13429      soname_spec='${libname}${release}${shared_ext}$major'
13430      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13431      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13432      ;;
13433    *)
13434     shrext_cmds='.sl'
13435     dynamic_linker="$host_os dld.sl"
13436     shlibpath_var=SHLIB_PATH
13437     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13439     soname_spec='${libname}${release}${shared_ext}$major'
13440     ;;
13441   esac
13442   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13443   postinstall_cmds='chmod 555 $lib'
13444   ;;
13445
13446 irix5* | irix6* | nonstopux*)
13447   case $host_os in
13448     nonstopux*) version_type=nonstopux ;;
13449     *)
13450         if test "$lt_cv_prog_gnu_ld" = yes; then
13451                 version_type=linux
13452         else
13453                 version_type=irix
13454         fi ;;
13455   esac
13456   need_lib_prefix=no
13457   need_version=no
13458   soname_spec='${libname}${release}${shared_ext}$major'
13459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13460   case $host_os in
13461   irix5* | nonstopux*)
13462     libsuff= shlibsuff=
13463     ;;
13464   *)
13465     case $LD in # libtool.m4 will add one of these switches to LD
13466     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13467       libsuff= shlibsuff= libmagic=32-bit;;
13468     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13469       libsuff=32 shlibsuff=N32 libmagic=N32;;
13470     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13471       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13472     *) libsuff= shlibsuff= libmagic=never-match;;
13473     esac
13474     ;;
13475   esac
13476   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13477   shlibpath_overrides_runpath=no
13478   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13479   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13480   hardcode_into_libs=yes
13481   ;;
13482
13483 # No shared lib support for Linux oldld, aout, or coff.
13484 linux*oldld* | linux*aout* | linux*coff*)
13485   dynamic_linker=no
13486   ;;
13487
13488 # This must be Linux ELF.
13489 linux*)
13490   version_type=linux
13491   need_lib_prefix=no
13492   need_version=no
13493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494   soname_spec='${libname}${release}${shared_ext}$major'
13495   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13496   shlibpath_var=LD_LIBRARY_PATH
13497   shlibpath_overrides_runpath=no
13498   # This implies no fast_install, which is unacceptable.
13499   # Some rework will be needed to allow for fast_install
13500   # before this can be enabled.
13501   hardcode_into_libs=yes
13502
13503   # Append ld.so.conf contents to the search path
13504   if test -f /etc/ld.so.conf; then
13505     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13506     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13507   fi
13508
13509   # We used to test for /lib/ld.so.1 and disable shared libraries on
13510   # powerpc, because MkLinux only supported shared libraries with the
13511   # GNU dynamic linker.  Since this was broken with cross compilers,
13512   # most powerpc-linux boxes support dynamic linking these days and
13513   # people can always --disable-shared, the test was removed, and we
13514   # assume the GNU/Linux dynamic linker is in use.
13515   dynamic_linker='GNU/Linux ld.so'
13516   ;;
13517
13518 knetbsd*-gnu)
13519   version_type=linux
13520   need_lib_prefix=no
13521   need_version=no
13522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13523   soname_spec='${libname}${release}${shared_ext}$major'
13524   shlibpath_var=LD_LIBRARY_PATH
13525   shlibpath_overrides_runpath=no
13526   hardcode_into_libs=yes
13527   dynamic_linker='GNU ld.so'
13528   ;;
13529
13530 netbsd*)
13531   version_type=sunos
13532   need_lib_prefix=no
13533   need_version=no
13534   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13535     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13536     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13537     dynamic_linker='NetBSD (a.out) ld.so'
13538   else
13539     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13540     soname_spec='${libname}${release}${shared_ext}$major'
13541     dynamic_linker='NetBSD ld.elf_so'
13542   fi
13543   shlibpath_var=LD_LIBRARY_PATH
13544   shlibpath_overrides_runpath=yes
13545   hardcode_into_libs=yes
13546   ;;
13547
13548 newsos6)
13549   version_type=linux
13550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13551   shlibpath_var=LD_LIBRARY_PATH
13552   shlibpath_overrides_runpath=yes
13553   ;;
13554
13555 nto-qnx*)
13556   version_type=linux
13557   need_lib_prefix=no
13558   need_version=no
13559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13560   soname_spec='${libname}${release}${shared_ext}$major'
13561   shlibpath_var=LD_LIBRARY_PATH
13562   shlibpath_overrides_runpath=yes
13563   ;;
13564
13565 openbsd*)
13566   version_type=sunos
13567   need_lib_prefix=no
13568   need_version=no
13569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13570   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13571   shlibpath_var=LD_LIBRARY_PATH
13572   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13573     case $host_os in
13574       openbsd2.[89] | openbsd2.[89].*)
13575         shlibpath_overrides_runpath=no
13576         ;;
13577       *)
13578         shlibpath_overrides_runpath=yes
13579         ;;
13580       esac
13581   else
13582     shlibpath_overrides_runpath=yes
13583   fi
13584   ;;
13585
13586 os2*)
13587   libname_spec='$name'
13588   shrext_cmds=".dll"
13589   need_lib_prefix=no
13590   library_names_spec='$libname${shared_ext} $libname.a'
13591   dynamic_linker='OS/2 ld.exe'
13592   shlibpath_var=LIBPATH
13593   ;;
13594
13595 osf3* | osf4* | osf5*)
13596   version_type=osf
13597   need_lib_prefix=no
13598   need_version=no
13599   soname_spec='${libname}${release}${shared_ext}$major'
13600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13601   shlibpath_var=LD_LIBRARY_PATH
13602   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13603   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13604   ;;
13605
13606 sco3.2v5*)
13607   version_type=osf
13608   soname_spec='${libname}${release}${shared_ext}$major'
13609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13610   shlibpath_var=LD_LIBRARY_PATH
13611   ;;
13612
13613 solaris*)
13614   version_type=linux
13615   need_lib_prefix=no
13616   need_version=no
13617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13618   soname_spec='${libname}${release}${shared_ext}$major'
13619   shlibpath_var=LD_LIBRARY_PATH
13620   shlibpath_overrides_runpath=yes
13621   hardcode_into_libs=yes
13622   # ldd complains unless libraries are executable
13623   postinstall_cmds='chmod +x $lib'
13624   ;;
13625
13626 sunos4*)
13627   version_type=sunos
13628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13629   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13630   shlibpath_var=LD_LIBRARY_PATH
13631   shlibpath_overrides_runpath=yes
13632   if test "$with_gnu_ld" = yes; then
13633     need_lib_prefix=no
13634   fi
13635   need_version=yes
13636   ;;
13637
13638 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13639   version_type=linux
13640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13641   soname_spec='${libname}${release}${shared_ext}$major'
13642   shlibpath_var=LD_LIBRARY_PATH
13643   case $host_vendor in
13644     sni)
13645       shlibpath_overrides_runpath=no
13646       need_lib_prefix=no
13647       export_dynamic_flag_spec='${wl}-Blargedynsym'
13648       runpath_var=LD_RUN_PATH
13649       ;;
13650     siemens)
13651       need_lib_prefix=no
13652       ;;
13653     motorola)
13654       need_lib_prefix=no
13655       need_version=no
13656       shlibpath_overrides_runpath=no
13657       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13658       ;;
13659   esac
13660   ;;
13661
13662 sysv4*MP*)
13663   if test -d /usr/nec ;then
13664     version_type=linux
13665     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13666     soname_spec='$libname${shared_ext}.$major'
13667     shlibpath_var=LD_LIBRARY_PATH
13668   fi
13669   ;;
13670
13671 uts4*)
13672   version_type=linux
13673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13674   soname_spec='${libname}${release}${shared_ext}$major'
13675   shlibpath_var=LD_LIBRARY_PATH
13676   ;;
13677
13678 *)
13679   dynamic_linker=no
13680   ;;
13681 esac
13682 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13683 echo "${ECHO_T}$dynamic_linker" >&6
13684 test "$dynamic_linker" = no && can_build_shared=no
13685
13686 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13687 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13688 hardcode_action=
13689 if test -n "$hardcode_libdir_flag_spec" || \
13690    test -n "$runpath_var" || \
13691    test "X$hardcode_automatic" = "Xyes" ; then
13692
13693   # We can hardcode non-existant directories.
13694   if test "$hardcode_direct" != no &&
13695      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13696      # have to relink, otherwise we might link with an installed library
13697      # when we should be linking with a yet-to-be-installed one
13698      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13699      test "$hardcode_minus_L" != no; then
13700     # Linking always hardcodes the temporary library directory.
13701     hardcode_action=relink
13702   else
13703     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13704     hardcode_action=immediate
13705   fi
13706 else
13707   # We cannot hardcode anything, or else we can only hardcode existing
13708   # directories.
13709   hardcode_action=unsupported
13710 fi
13711 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13712 echo "${ECHO_T}$hardcode_action" >&6
13713
13714 if test "$hardcode_action" = relink; then
13715   # Fast installation is not supported
13716   enable_fast_install=no
13717 elif test "$shlibpath_overrides_runpath" = yes ||
13718      test "$enable_shared" = no; then
13719   # Fast installation is not necessary
13720   enable_fast_install=needless
13721 fi
13722
13723 striplib=
13724 old_striplib=
13725 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13726 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13727 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13728   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13729   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13730   echo "$as_me:$LINENO: result: yes" >&5
13731 echo "${ECHO_T}yes" >&6
13732 else
13733 # FIXME - insert some real tests, host_os isn't really good enough
13734   case $host_os in
13735    darwin*)
13736        if test -n "$STRIP" ; then
13737          striplib="$STRIP -x"
13738          echo "$as_me:$LINENO: result: yes" >&5
13739 echo "${ECHO_T}yes" >&6
13740        else
13741   echo "$as_me:$LINENO: result: no" >&5
13742 echo "${ECHO_T}no" >&6
13743 fi
13744        ;;
13745    *)
13746   echo "$as_me:$LINENO: result: no" >&5
13747 echo "${ECHO_T}no" >&6
13748     ;;
13749   esac
13750 fi
13751
13752 if test "x$enable_dlopen" != xyes; then
13753   enable_dlopen=unknown
13754   enable_dlopen_self=unknown
13755   enable_dlopen_self_static=unknown
13756 else
13757   lt_cv_dlopen=no
13758   lt_cv_dlopen_libs=
13759
13760   case $host_os in
13761   beos*)
13762     lt_cv_dlopen="load_add_on"
13763     lt_cv_dlopen_libs=
13764     lt_cv_dlopen_self=yes
13765     ;;
13766
13767   mingw* | pw32*)
13768     lt_cv_dlopen="LoadLibrary"
13769     lt_cv_dlopen_libs=
13770    ;;
13771
13772   cygwin*)
13773     lt_cv_dlopen="dlopen"
13774     lt_cv_dlopen_libs=
13775    ;;
13776
13777   darwin*)
13778   # if libdl is installed we need to link against it
13779     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13780 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13781 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13782   echo $ECHO_N "(cached) $ECHO_C" >&6
13783 else
13784   ac_check_lib_save_LIBS=$LIBS
13785 LIBS="-ldl  $LIBS"
13786 cat >conftest.$ac_ext <<_ACEOF
13787 /* confdefs.h.  */
13788 _ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h.  */
13792
13793 /* Override any gcc2 internal prototype to avoid an error.  */
13794 #ifdef __cplusplus
13795 extern "C"
13796 #endif
13797 /* We use char because int might match the return type of a gcc2
13798    builtin and then its argument prototype would still apply.  */
13799 char dlopen ();
13800 int
13801 main ()
13802 {
13803 dlopen ();
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_lib_dl_dlopen=yes
13831 else
13832   echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13834
13835 ac_cv_lib_dl_dlopen=no
13836 fi
13837 rm -f conftest.err conftest.$ac_objext \
13838       conftest$ac_exeext conftest.$ac_ext
13839 LIBS=$ac_check_lib_save_LIBS
13840 fi
13841 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13842 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13843 if test $ac_cv_lib_dl_dlopen = yes; then
13844   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13845 else
13846
13847     lt_cv_dlopen="dyld"
13848     lt_cv_dlopen_libs=
13849     lt_cv_dlopen_self=yes
13850
13851 fi
13852
13853    ;;
13854
13855   *)
13856     echo "$as_me:$LINENO: checking for shl_load" >&5
13857 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13858 if test "${ac_cv_func_shl_load+set}" = set; then
13859   echo $ECHO_N "(cached) $ECHO_C" >&6
13860 else
13861   cat >conftest.$ac_ext <<_ACEOF
13862 /* confdefs.h.  */
13863 _ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h.  */
13867 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13869 #define shl_load innocuous_shl_load
13870
13871 /* System header to define __stub macros and hopefully few prototypes,
13872     which can conflict with char shl_load (); below.
13873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13874     <limits.h> exists even on freestanding compilers.  */
13875
13876 #ifdef __STDC__
13877 # include <limits.h>
13878 #else
13879 # include <assert.h>
13880 #endif
13881
13882 #undef shl_load
13883
13884 /* Override any gcc2 internal prototype to avoid an error.  */
13885 #ifdef __cplusplus
13886 extern "C"
13887 {
13888 #endif
13889 /* We use char because int might match the return type of a gcc2
13890    builtin and then its argument prototype would still apply.  */
13891 char shl_load ();
13892 /* The GNU C library defines this for functions which it implements
13893     to always fail with ENOSYS.  Some functions are actually named
13894     something starting with __ and the normal name is an alias.  */
13895 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13896 choke me
13897 #else
13898 char (*f) () = shl_load;
13899 #endif
13900 #ifdef __cplusplus
13901 }
13902 #endif
13903
13904 int
13905 main ()
13906 {
13907 return f != shl_load;
13908   ;
13909   return 0;
13910 }
13911 _ACEOF
13912 rm -f conftest.$ac_objext conftest$ac_exeext
13913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13914   (eval $ac_link) 2>conftest.er1
13915   ac_status=$?
13916   grep -v '^ *+' conftest.er1 >conftest.err
13917   rm -f conftest.er1
13918   cat conftest.err >&5
13919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920   (exit $ac_status); } &&
13921          { ac_try='test -z "$ac_c_werror_flag"
13922                          || test ! -s conftest.err'
13923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13924   (eval $ac_try) 2>&5
13925   ac_status=$?
13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); }; } &&
13928          { ac_try='test -s conftest$ac_exeext'
13929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930   (eval $ac_try) 2>&5
13931   ac_status=$?
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); }; }; then
13934   ac_cv_func_shl_load=yes
13935 else
13936   echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13938
13939 ac_cv_func_shl_load=no
13940 fi
13941 rm -f conftest.err conftest.$ac_objext \
13942       conftest$ac_exeext conftest.$ac_ext
13943 fi
13944 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13945 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13946 if test $ac_cv_func_shl_load = yes; then
13947   lt_cv_dlopen="shl_load"
13948 else
13949   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13950 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13951 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13952   echo $ECHO_N "(cached) $ECHO_C" >&6
13953 else
13954   ac_check_lib_save_LIBS=$LIBS
13955 LIBS="-ldld  $LIBS"
13956 cat >conftest.$ac_ext <<_ACEOF
13957 /* confdefs.h.  */
13958 _ACEOF
13959 cat confdefs.h >>conftest.$ac_ext
13960 cat >>conftest.$ac_ext <<_ACEOF
13961 /* end confdefs.h.  */
13962
13963 /* Override any gcc2 internal prototype to avoid an error.  */
13964 #ifdef __cplusplus
13965 extern "C"
13966 #endif
13967 /* We use char because int might match the return type of a gcc2
13968    builtin and then its argument prototype would still apply.  */
13969 char shl_load ();
13970 int
13971 main ()
13972 {
13973 shl_load ();
13974   ;
13975   return 0;
13976 }
13977 _ACEOF
13978 rm -f conftest.$ac_objext conftest$ac_exeext
13979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13980   (eval $ac_link) 2>conftest.er1
13981   ac_status=$?
13982   grep -v '^ *+' conftest.er1 >conftest.err
13983   rm -f conftest.er1
13984   cat conftest.err >&5
13985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986   (exit $ac_status); } &&
13987          { ac_try='test -z "$ac_c_werror_flag"
13988                          || test ! -s conftest.err'
13989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990   (eval $ac_try) 2>&5
13991   ac_status=$?
13992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993   (exit $ac_status); }; } &&
13994          { ac_try='test -s conftest$ac_exeext'
13995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996   (eval $ac_try) 2>&5
13997   ac_status=$?
13998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); }; }; then
14000   ac_cv_lib_dld_shl_load=yes
14001 else
14002   echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14004
14005 ac_cv_lib_dld_shl_load=no
14006 fi
14007 rm -f conftest.err conftest.$ac_objext \
14008       conftest$ac_exeext conftest.$ac_ext
14009 LIBS=$ac_check_lib_save_LIBS
14010 fi
14011 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14012 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14013 if test $ac_cv_lib_dld_shl_load = yes; then
14014   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14015 else
14016   echo "$as_me:$LINENO: checking for dlopen" >&5
14017 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14018 if test "${ac_cv_func_dlopen+set}" = set; then
14019   echo $ECHO_N "(cached) $ECHO_C" >&6
14020 else
14021   cat >conftest.$ac_ext <<_ACEOF
14022 /* confdefs.h.  */
14023 _ACEOF
14024 cat confdefs.h >>conftest.$ac_ext
14025 cat >>conftest.$ac_ext <<_ACEOF
14026 /* end confdefs.h.  */
14027 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14029 #define dlopen innocuous_dlopen
14030
14031 /* System header to define __stub macros and hopefully few prototypes,
14032     which can conflict with char dlopen (); below.
14033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14034     <limits.h> exists even on freestanding compilers.  */
14035
14036 #ifdef __STDC__
14037 # include <limits.h>
14038 #else
14039 # include <assert.h>
14040 #endif
14041
14042 #undef dlopen
14043
14044 /* Override any gcc2 internal prototype to avoid an error.  */
14045 #ifdef __cplusplus
14046 extern "C"
14047 {
14048 #endif
14049 /* We use char because int might match the return type of a gcc2
14050    builtin and then its argument prototype would still apply.  */
14051 char dlopen ();
14052 /* The GNU C library defines this for functions which it implements
14053     to always fail with ENOSYS.  Some functions are actually named
14054     something starting with __ and the normal name is an alias.  */
14055 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14056 choke me
14057 #else
14058 char (*f) () = dlopen;
14059 #endif
14060 #ifdef __cplusplus
14061 }
14062 #endif
14063
14064 int
14065 main ()
14066 {
14067 return f != dlopen;
14068   ;
14069   return 0;
14070 }
14071 _ACEOF
14072 rm -f conftest.$ac_objext conftest$ac_exeext
14073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14074   (eval $ac_link) 2>conftest.er1
14075   ac_status=$?
14076   grep -v '^ *+' conftest.er1 >conftest.err
14077   rm -f conftest.er1
14078   cat conftest.err >&5
14079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080   (exit $ac_status); } &&
14081          { ac_try='test -z "$ac_c_werror_flag"
14082                          || test ! -s conftest.err'
14083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084   (eval $ac_try) 2>&5
14085   ac_status=$?
14086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087   (exit $ac_status); }; } &&
14088          { ac_try='test -s conftest$ac_exeext'
14089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090   (eval $ac_try) 2>&5
14091   ac_status=$?
14092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093   (exit $ac_status); }; }; then
14094   ac_cv_func_dlopen=yes
14095 else
14096   echo "$as_me: failed program was:" >&5
14097 sed 's/^/| /' conftest.$ac_ext >&5
14098
14099 ac_cv_func_dlopen=no
14100 fi
14101 rm -f conftest.err conftest.$ac_objext \
14102       conftest$ac_exeext conftest.$ac_ext
14103 fi
14104 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14105 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14106 if test $ac_cv_func_dlopen = yes; then
14107   lt_cv_dlopen="dlopen"
14108 else
14109   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14110 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14111 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14112   echo $ECHO_N "(cached) $ECHO_C" >&6
14113 else
14114   ac_check_lib_save_LIBS=$LIBS
14115 LIBS="-ldl  $LIBS"
14116 cat >conftest.$ac_ext <<_ACEOF
14117 /* confdefs.h.  */
14118 _ACEOF
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h.  */
14122
14123 /* Override any gcc2 internal prototype to avoid an error.  */
14124 #ifdef __cplusplus
14125 extern "C"
14126 #endif
14127 /* We use char because int might match the return type of a gcc2
14128    builtin and then its argument prototype would still apply.  */
14129 char dlopen ();
14130 int
14131 main ()
14132 {
14133 dlopen ();
14134   ;
14135   return 0;
14136 }
14137 _ACEOF
14138 rm -f conftest.$ac_objext conftest$ac_exeext
14139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14140   (eval $ac_link) 2>conftest.er1
14141   ac_status=$?
14142   grep -v '^ *+' conftest.er1 >conftest.err
14143   rm -f conftest.er1
14144   cat conftest.err >&5
14145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146   (exit $ac_status); } &&
14147          { ac_try='test -z "$ac_c_werror_flag"
14148                          || test ! -s conftest.err'
14149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150   (eval $ac_try) 2>&5
14151   ac_status=$?
14152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153   (exit $ac_status); }; } &&
14154          { ac_try='test -s conftest$ac_exeext'
14155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156   (eval $ac_try) 2>&5
14157   ac_status=$?
14158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159   (exit $ac_status); }; }; then
14160   ac_cv_lib_dl_dlopen=yes
14161 else
14162   echo "$as_me: failed program was:" >&5
14163 sed 's/^/| /' conftest.$ac_ext >&5
14164
14165 ac_cv_lib_dl_dlopen=no
14166 fi
14167 rm -f conftest.err conftest.$ac_objext \
14168       conftest$ac_exeext conftest.$ac_ext
14169 LIBS=$ac_check_lib_save_LIBS
14170 fi
14171 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14172 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14173 if test $ac_cv_lib_dl_dlopen = yes; then
14174   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14175 else
14176   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14177 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14178 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14179   echo $ECHO_N "(cached) $ECHO_C" >&6
14180 else
14181   ac_check_lib_save_LIBS=$LIBS
14182 LIBS="-lsvld  $LIBS"
14183 cat >conftest.$ac_ext <<_ACEOF
14184 /* confdefs.h.  */
14185 _ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h.  */
14189
14190 /* Override any gcc2 internal prototype to avoid an error.  */
14191 #ifdef __cplusplus
14192 extern "C"
14193 #endif
14194 /* We use char because int might match the return type of a gcc2
14195    builtin and then its argument prototype would still apply.  */
14196 char dlopen ();
14197 int
14198 main ()
14199 {
14200 dlopen ();
14201   ;
14202   return 0;
14203 }
14204 _ACEOF
14205 rm -f conftest.$ac_objext conftest$ac_exeext
14206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14207   (eval $ac_link) 2>conftest.er1
14208   ac_status=$?
14209   grep -v '^ *+' conftest.er1 >conftest.err
14210   rm -f conftest.er1
14211   cat conftest.err >&5
14212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213   (exit $ac_status); } &&
14214          { ac_try='test -z "$ac_c_werror_flag"
14215                          || test ! -s conftest.err'
14216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217   (eval $ac_try) 2>&5
14218   ac_status=$?
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); }; } &&
14221          { ac_try='test -s conftest$ac_exeext'
14222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223   (eval $ac_try) 2>&5
14224   ac_status=$?
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); }; }; then
14227   ac_cv_lib_svld_dlopen=yes
14228 else
14229   echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14231
14232 ac_cv_lib_svld_dlopen=no
14233 fi
14234 rm -f conftest.err conftest.$ac_objext \
14235       conftest$ac_exeext conftest.$ac_ext
14236 LIBS=$ac_check_lib_save_LIBS
14237 fi
14238 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14239 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14240 if test $ac_cv_lib_svld_dlopen = yes; then
14241   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14242 else
14243   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14244 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14245 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14246   echo $ECHO_N "(cached) $ECHO_C" >&6
14247 else
14248   ac_check_lib_save_LIBS=$LIBS
14249 LIBS="-ldld  $LIBS"
14250 cat >conftest.$ac_ext <<_ACEOF
14251 /* confdefs.h.  */
14252 _ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h.  */
14256
14257 /* Override any gcc2 internal prototype to avoid an error.  */
14258 #ifdef __cplusplus
14259 extern "C"
14260 #endif
14261 /* We use char because int might match the return type of a gcc2
14262    builtin and then its argument prototype would still apply.  */
14263 char dld_link ();
14264 int
14265 main ()
14266 {
14267 dld_link ();
14268   ;
14269   return 0;
14270 }
14271 _ACEOF
14272 rm -f conftest.$ac_objext conftest$ac_exeext
14273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14274   (eval $ac_link) 2>conftest.er1
14275   ac_status=$?
14276   grep -v '^ *+' conftest.er1 >conftest.err
14277   rm -f conftest.er1
14278   cat conftest.err >&5
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); } &&
14281          { ac_try='test -z "$ac_c_werror_flag"
14282                          || test ! -s conftest.err'
14283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284   (eval $ac_try) 2>&5
14285   ac_status=$?
14286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287   (exit $ac_status); }; } &&
14288          { ac_try='test -s conftest$ac_exeext'
14289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290   (eval $ac_try) 2>&5
14291   ac_status=$?
14292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293   (exit $ac_status); }; }; then
14294   ac_cv_lib_dld_dld_link=yes
14295 else
14296   echo "$as_me: failed program was:" >&5
14297 sed 's/^/| /' conftest.$ac_ext >&5
14298
14299 ac_cv_lib_dld_dld_link=no
14300 fi
14301 rm -f conftest.err conftest.$ac_objext \
14302       conftest$ac_exeext conftest.$ac_ext
14303 LIBS=$ac_check_lib_save_LIBS
14304 fi
14305 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14306 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14307 if test $ac_cv_lib_dld_dld_link = yes; then
14308   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14309 fi
14310
14311
14312 fi
14313
14314
14315 fi
14316
14317
14318 fi
14319
14320
14321 fi
14322
14323
14324 fi
14325
14326     ;;
14327   esac
14328
14329   if test "x$lt_cv_dlopen" != xno; then
14330     enable_dlopen=yes
14331   else
14332     enable_dlopen=no
14333   fi
14334
14335   case $lt_cv_dlopen in
14336   dlopen)
14337     save_CPPFLAGS="$CPPFLAGS"
14338     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14339
14340     save_LDFLAGS="$LDFLAGS"
14341     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14342
14343     save_LIBS="$LIBS"
14344     LIBS="$lt_cv_dlopen_libs $LIBS"
14345
14346     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14347 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14348 if test "${lt_cv_dlopen_self+set}" = set; then
14349   echo $ECHO_N "(cached) $ECHO_C" >&6
14350 else
14351           if test "$cross_compiling" = yes; then :
14352   lt_cv_dlopen_self=cross
14353 else
14354   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14355   lt_status=$lt_dlunknown
14356   cat > conftest.$ac_ext <<EOF
14357 #line 14357 "configure"
14358 #include "confdefs.h"
14359
14360 #if HAVE_DLFCN_H
14361 #include <dlfcn.h>
14362 #endif
14363
14364 #include <stdio.h>
14365
14366 #ifdef RTLD_GLOBAL
14367 #  define LT_DLGLOBAL           RTLD_GLOBAL
14368 #else
14369 #  ifdef DL_GLOBAL
14370 #    define LT_DLGLOBAL         DL_GLOBAL
14371 #  else
14372 #    define LT_DLGLOBAL         0
14373 #  endif
14374 #endif
14375
14376 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14377    find out it does not work in some platform. */
14378 #ifndef LT_DLLAZY_OR_NOW
14379 #  ifdef RTLD_LAZY
14380 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14381 #  else
14382 #    ifdef DL_LAZY
14383 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14384 #    else
14385 #      ifdef RTLD_NOW
14386 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14387 #      else
14388 #        ifdef DL_NOW
14389 #          define LT_DLLAZY_OR_NOW      DL_NOW
14390 #        else
14391 #          define LT_DLLAZY_OR_NOW      0
14392 #        endif
14393 #      endif
14394 #    endif
14395 #  endif
14396 #endif
14397
14398 #ifdef __cplusplus
14399 extern "C" void exit (int);
14400 #endif
14401
14402 void fnord() { int i=42;}
14403 int main ()
14404 {
14405   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14406   int status = $lt_dlunknown;
14407
14408   if (self)
14409     {
14410       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14411       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14412       /* dlclose (self); */
14413     }
14414
14415     exit (status);
14416 }
14417 EOF
14418   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14419   (eval $ac_link) 2>&5
14420   ac_status=$?
14421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14423     (./conftest; exit; ) 2>/dev/null
14424     lt_status=$?
14425     case x$lt_status in
14426       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14427       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14428       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14429     esac
14430   else :
14431     # compilation failed
14432     lt_cv_dlopen_self=no
14433   fi
14434 fi
14435 rm -fr conftest*
14436
14437
14438 fi
14439 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14440 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14441
14442     if test "x$lt_cv_dlopen_self" = xyes; then
14443       LDFLAGS="$LDFLAGS $link_static_flag"
14444       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14445 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14446 if test "${lt_cv_dlopen_self_static+set}" = set; then
14447   echo $ECHO_N "(cached) $ECHO_C" >&6
14448 else
14449           if test "$cross_compiling" = yes; then :
14450   lt_cv_dlopen_self_static=cross
14451 else
14452   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14453   lt_status=$lt_dlunknown
14454   cat > conftest.$ac_ext <<EOF
14455 #line 14455 "configure"
14456 #include "confdefs.h"
14457
14458 #if HAVE_DLFCN_H
14459 #include <dlfcn.h>
14460 #endif
14461
14462 #include <stdio.h>
14463
14464 #ifdef RTLD_GLOBAL
14465 #  define LT_DLGLOBAL           RTLD_GLOBAL
14466 #else
14467 #  ifdef DL_GLOBAL
14468 #    define LT_DLGLOBAL         DL_GLOBAL
14469 #  else
14470 #    define LT_DLGLOBAL         0
14471 #  endif
14472 #endif
14473
14474 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14475    find out it does not work in some platform. */
14476 #ifndef LT_DLLAZY_OR_NOW
14477 #  ifdef RTLD_LAZY
14478 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14479 #  else
14480 #    ifdef DL_LAZY
14481 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14482 #    else
14483 #      ifdef RTLD_NOW
14484 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14485 #      else
14486 #        ifdef DL_NOW
14487 #          define LT_DLLAZY_OR_NOW      DL_NOW
14488 #        else
14489 #          define LT_DLLAZY_OR_NOW      0
14490 #        endif
14491 #      endif
14492 #    endif
14493 #  endif
14494 #endif
14495
14496 #ifdef __cplusplus
14497 extern "C" void exit (int);
14498 #endif
14499
14500 void fnord() { int i=42;}
14501 int main ()
14502 {
14503   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14504   int status = $lt_dlunknown;
14505
14506   if (self)
14507     {
14508       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14509       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14510       /* dlclose (self); */
14511     }
14512
14513     exit (status);
14514 }
14515 EOF
14516   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14517   (eval $ac_link) 2>&5
14518   ac_status=$?
14519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14521     (./conftest; exit; ) 2>/dev/null
14522     lt_status=$?
14523     case x$lt_status in
14524       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14525       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14526       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14527     esac
14528   else :
14529     # compilation failed
14530     lt_cv_dlopen_self_static=no
14531   fi
14532 fi
14533 rm -fr conftest*
14534
14535
14536 fi
14537 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14538 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14539     fi
14540
14541     CPPFLAGS="$save_CPPFLAGS"
14542     LDFLAGS="$save_LDFLAGS"
14543     LIBS="$save_LIBS"
14544     ;;
14545   esac
14546
14547   case $lt_cv_dlopen_self in
14548   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14549   *) enable_dlopen_self=unknown ;;
14550   esac
14551
14552   case $lt_cv_dlopen_self_static in
14553   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14554   *) enable_dlopen_self_static=unknown ;;
14555   esac
14556 fi
14557
14558
14559 # Report which librarie types wil actually be built
14560 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14561 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14562 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14563 echo "${ECHO_T}$can_build_shared" >&6
14564
14565 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14566 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14567 test "$can_build_shared" = "no" && enable_shared=no
14568
14569 # On AIX, shared libraries and static libraries use the same namespace, and
14570 # are all built from PIC.
14571 case "$host_os" in
14572 aix3*)
14573   test "$enable_shared" = yes && enable_static=no
14574   if test -n "$RANLIB"; then
14575     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14576     postinstall_cmds='$RANLIB $lib'
14577   fi
14578   ;;
14579
14580 aix4* | aix5*)
14581   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14582     test "$enable_shared" = yes && enable_static=no
14583   fi
14584     ;;
14585 esac
14586 echo "$as_me:$LINENO: result: $enable_shared" >&5
14587 echo "${ECHO_T}$enable_shared" >&6
14588
14589 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14590 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14591 # Make sure either enable_shared or enable_static is yes.
14592 test "$enable_shared" = yes || enable_static=yes
14593 echo "$as_me:$LINENO: result: $enable_static" >&5
14594 echo "${ECHO_T}$enable_static" >&6
14595
14596 # The else clause should only fire when bootstrapping the
14597 # libtool distribution, otherwise you forgot to ship ltmain.sh
14598 # with your package, and you will get complaints that there are
14599 # no rules to generate ltmain.sh.
14600 if test -f "$ltmain"; then
14601   # See if we are running on zsh, and set the options which allow our commands through
14602   # without removal of \ escapes.
14603   if test -n "${ZSH_VERSION+set}" ; then
14604     setopt NO_GLOB_SUBST
14605   fi
14606   # Now quote all the things that may contain metacharacters while being
14607   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14608   # variables and quote the copies for generation of the libtool script.
14609   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14610     SED SHELL STRIP \
14611     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14612     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14613     deplibs_check_method reload_flag reload_cmds need_locks \
14614     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14615     lt_cv_sys_global_symbol_to_c_name_address \
14616     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14617     old_postinstall_cmds old_postuninstall_cmds \
14618     compiler \
14619     CC \
14620     LD \
14621     lt_prog_compiler_wl \
14622     lt_prog_compiler_pic \
14623     lt_prog_compiler_static \
14624     lt_prog_compiler_no_builtin_flag \
14625     export_dynamic_flag_spec \
14626     thread_safe_flag_spec \
14627     whole_archive_flag_spec \
14628     enable_shared_with_static_runtimes \
14629     old_archive_cmds \
14630     old_archive_from_new_cmds \
14631     predep_objects \
14632     postdep_objects \
14633     predeps \
14634     postdeps \
14635     compiler_lib_search_path \
14636     archive_cmds \
14637     archive_expsym_cmds \
14638     postinstall_cmds \
14639     postuninstall_cmds \
14640     old_archive_from_expsyms_cmds \
14641     allow_undefined_flag \
14642     no_undefined_flag \
14643     export_symbols_cmds \
14644     hardcode_libdir_flag_spec \
14645     hardcode_libdir_flag_spec_ld \
14646     hardcode_libdir_separator \
14647     hardcode_automatic \
14648     module_cmds \
14649     module_expsym_cmds \
14650     lt_cv_prog_compiler_c_o \
14651     exclude_expsyms \
14652     include_expsyms; do
14653
14654     case $var in
14655     old_archive_cmds | \
14656     old_archive_from_new_cmds | \
14657     archive_cmds | \
14658     archive_expsym_cmds | \
14659     module_cmds | \
14660     module_expsym_cmds | \
14661     old_archive_from_expsyms_cmds | \
14662     export_symbols_cmds | \
14663     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14664     postinstall_cmds | postuninstall_cmds | \
14665     old_postinstall_cmds | old_postuninstall_cmds | \
14666     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14667       # Double-quote double-evaled strings.
14668       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14669       ;;
14670     *)
14671       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14672       ;;
14673     esac
14674   done
14675
14676   case $lt_echo in
14677   *'\$0 --fallback-echo"')
14678     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14679     ;;
14680   esac
14681
14682 cfgfile="${ofile}T"
14683   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14684   $rm -f "$cfgfile"
14685   { echo "$as_me:$LINENO: creating $ofile" >&5
14686 echo "$as_me: creating $ofile" >&6;}
14687
14688   cat <<__EOF__ >> "$cfgfile"
14689 #! $SHELL
14690
14691 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14692 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14693 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14694 #
14695 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14696 # Free Software Foundation, Inc.
14697 #
14698 # This file is part of GNU Libtool:
14699 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14700 #
14701 # This program is free software; you can redistribute it and/or modify
14702 # it under the terms of the GNU General Public License as published by
14703 # the Free Software Foundation; either version 2 of the License, or
14704 # (at your option) any later version.
14705 #
14706 # This program is distributed in the hope that it will be useful, but
14707 # WITHOUT ANY WARRANTY; without even the implied warranty of
14708 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14709 # General Public License for more details.
14710 #
14711 # You should have received a copy of the GNU General Public License
14712 # along with this program; if not, write to the Free Software
14713 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14714 #
14715 # As a special exception to the GNU General Public License, if you
14716 # distribute this file as part of a program that contains a
14717 # configuration script generated by Autoconf, you may include it under
14718 # the same distribution terms that you use for the rest of that program.
14719
14720 # A sed program that does not truncate output.
14721 SED=$lt_SED
14722
14723 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14724 Xsed="$SED -e s/^X//"
14725
14726 # The HP-UX ksh and POSIX shell print the target directory to stdout
14727 # if CDPATH is set.
14728 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14729
14730 # The names of the tagged configurations supported by this script.
14731 available_tags=
14732
14733 # ### BEGIN LIBTOOL CONFIG
14734
14735 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14736
14737 # Shell to use when invoking shell scripts.
14738 SHELL=$lt_SHELL
14739
14740 # Whether or not to build shared libraries.
14741 build_libtool_libs=$enable_shared
14742
14743 # Whether or not to build static libraries.
14744 build_old_libs=$enable_static
14745
14746 # Whether or not to add -lc for building shared libraries.
14747 build_libtool_need_lc=$archive_cmds_need_lc
14748
14749 # Whether or not to disallow shared libs when runtime libs are static
14750 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14751
14752 # Whether or not to optimize for fast installation.
14753 fast_install=$enable_fast_install
14754
14755 # The host system.
14756 host_alias=$host_alias
14757 host=$host
14758
14759 # An echo program that does not interpret backslashes.
14760 echo=$lt_echo
14761
14762 # The archiver.
14763 AR=$lt_AR
14764 AR_FLAGS=$lt_AR_FLAGS
14765
14766 # A C compiler.
14767 LTCC=$lt_LTCC
14768
14769 # A language-specific compiler.
14770 CC=$lt_compiler
14771
14772 # Is the compiler the GNU C compiler?
14773 with_gcc=$GCC
14774
14775 # An ERE matcher.
14776 EGREP=$lt_EGREP
14777
14778 # The linker used to build libraries.
14779 LD=$lt_LD
14780
14781 # Whether we need hard or soft links.
14782 LN_S=$lt_LN_S
14783
14784 # A BSD-compatible nm program.
14785 NM=$lt_NM
14786
14787 # A symbol stripping program
14788 STRIP=$lt_STRIP
14789
14790 # Used to examine libraries when file_magic_cmd begins "file"
14791 MAGIC_CMD=$MAGIC_CMD
14792
14793 # Used on cygwin: DLL creation program.
14794 DLLTOOL="$DLLTOOL"
14795
14796 # Used on cygwin: object dumper.
14797 OBJDUMP="$OBJDUMP"
14798
14799 # Used on cygwin: assembler.
14800 AS="$AS"
14801
14802 # The name of the directory that contains temporary libtool files.
14803 objdir=$objdir
14804
14805 # How to create reloadable object files.
14806 reload_flag=$lt_reload_flag
14807 reload_cmds=$lt_reload_cmds
14808
14809 # How to pass a linker flag through the compiler.
14810 wl=$lt_lt_prog_compiler_wl
14811
14812 # Object file suffix (normally "o").
14813 objext="$ac_objext"
14814
14815 # Old archive suffix (normally "a").
14816 libext="$libext"
14817
14818 # Shared library suffix (normally ".so").
14819 shrext_cmds='$shrext_cmds'
14820
14821 # Executable file suffix (normally "").
14822 exeext="$exeext"
14823
14824 # Additional compiler flags for building library objects.
14825 pic_flag=$lt_lt_prog_compiler_pic
14826 pic_mode=$pic_mode
14827
14828 # What is the maximum length of a command?
14829 max_cmd_len=$lt_cv_sys_max_cmd_len
14830
14831 # Does compiler simultaneously support -c and -o options?
14832 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14833
14834 # Must we lock files when doing compilation ?
14835 need_locks=$lt_need_locks
14836
14837 # Do we need the lib prefix for modules?
14838 need_lib_prefix=$need_lib_prefix
14839
14840 # Do we need a version for libraries?
14841 need_version=$need_version
14842
14843 # Whether dlopen is supported.
14844 dlopen_support=$enable_dlopen
14845
14846 # Whether dlopen of programs is supported.
14847 dlopen_self=$enable_dlopen_self
14848
14849 # Whether dlopen of statically linked programs is supported.
14850 dlopen_self_static=$enable_dlopen_self_static
14851
14852 # Compiler flag to prevent dynamic linking.
14853 link_static_flag=$lt_lt_prog_compiler_static
14854
14855 # Compiler flag to turn off builtin functions.
14856 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14857
14858 # Compiler flag to allow reflexive dlopens.
14859 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14860
14861 # Compiler flag to generate shared objects directly from archives.
14862 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14863
14864 # Compiler flag to generate thread-safe objects.
14865 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14866
14867 # Library versioning type.
14868 version_type=$version_type
14869
14870 # Format of library name prefix.
14871 libname_spec=$lt_libname_spec
14872
14873 # List of archive names.  First name is the real one, the rest are links.
14874 # The last name is the one that the linker finds with -lNAME.
14875 library_names_spec=$lt_library_names_spec
14876
14877 # The coded name of the library, if different from the real name.
14878 soname_spec=$lt_soname_spec
14879
14880 # Commands used to build and install an old-style archive.
14881 RANLIB=$lt_RANLIB
14882 old_archive_cmds=$lt_old_archive_cmds
14883 old_postinstall_cmds=$lt_old_postinstall_cmds
14884 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14885
14886 # Create an old-style archive from a shared archive.
14887 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14888
14889 # Create a temporary old-style archive to link instead of a shared archive.
14890 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14891
14892 # Commands used to build and install a shared archive.
14893 archive_cmds=$lt_archive_cmds
14894 archive_expsym_cmds=$lt_archive_expsym_cmds
14895 postinstall_cmds=$lt_postinstall_cmds
14896 postuninstall_cmds=$lt_postuninstall_cmds
14897
14898 # Commands used to build a loadable module (assumed same as above if empty)
14899 module_cmds=$lt_module_cmds
14900 module_expsym_cmds=$lt_module_expsym_cmds
14901
14902 # Commands to strip libraries.
14903 old_striplib=$lt_old_striplib
14904 striplib=$lt_striplib
14905
14906 # Dependencies to place before the objects being linked to create a
14907 # shared library.
14908 predep_objects=$lt_predep_objects
14909
14910 # Dependencies to place after the objects being linked to create a
14911 # shared library.
14912 postdep_objects=$lt_postdep_objects
14913
14914 # Dependencies to place before the objects being linked to create a
14915 # shared library.
14916 predeps=$lt_predeps
14917
14918 # Dependencies to place after the objects being linked to create a
14919 # shared library.
14920 postdeps=$lt_postdeps
14921
14922 # The library search path used internally by the compiler when linking
14923 # a shared library.
14924 compiler_lib_search_path=$lt_compiler_lib_search_path
14925
14926 # Method to check whether dependent libraries are shared objects.
14927 deplibs_check_method=$lt_deplibs_check_method
14928
14929 # Command to use when deplibs_check_method == file_magic.
14930 file_magic_cmd=$lt_file_magic_cmd
14931
14932 # Flag that allows shared libraries with undefined symbols to be built.
14933 allow_undefined_flag=$lt_allow_undefined_flag
14934
14935 # Flag that forces no undefined symbols.
14936 no_undefined_flag=$lt_no_undefined_flag
14937
14938 # Commands used to finish a libtool library installation in a directory.
14939 finish_cmds=$lt_finish_cmds
14940
14941 # Same as above, but a single script fragment to be evaled but not shown.
14942 finish_eval=$lt_finish_eval
14943
14944 # Take the output of nm and produce a listing of raw symbols and C names.
14945 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14946
14947 # Transform the output of nm in a proper C declaration
14948 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14949
14950 # Transform the output of nm in a C name address pair
14951 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14952
14953 # This is the shared library runtime path variable.
14954 runpath_var=$runpath_var
14955
14956 # This is the shared library path variable.
14957 shlibpath_var=$shlibpath_var
14958
14959 # Is shlibpath searched before the hard-coded library search path?
14960 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14961
14962 # How to hardcode a shared library path into an executable.
14963 hardcode_action=$hardcode_action
14964
14965 # Whether we should hardcode library paths into libraries.
14966 hardcode_into_libs=$hardcode_into_libs
14967
14968 # Flag to hardcode \$libdir into a binary during linking.
14969 # This must work even if \$libdir does not exist.
14970 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14971
14972 # If ld is used when linking, flag to hardcode \$libdir into
14973 # a binary during linking. This must work even if \$libdir does
14974 # not exist.
14975 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14976
14977 # Whether we need a single -rpath flag with a separated argument.
14978 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14979
14980 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14981 # resulting binary.
14982 hardcode_direct=$hardcode_direct
14983
14984 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14985 # resulting binary.
14986 hardcode_minus_L=$hardcode_minus_L
14987
14988 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14989 # the resulting binary.
14990 hardcode_shlibpath_var=$hardcode_shlibpath_var
14991
14992 # Set to yes if building a shared library automatically hardcodes DIR into the library
14993 # and all subsequent libraries and executables linked against it.
14994 hardcode_automatic=$hardcode_automatic
14995
14996 # Variables whose values should be saved in libtool wrapper scripts and
14997 # restored at relink time.
14998 variables_saved_for_relink="$variables_saved_for_relink"
14999
15000 # Whether libtool must link a program against all its dependency libraries.
15001 link_all_deplibs=$link_all_deplibs
15002
15003 # Compile-time system search path for libraries
15004 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15005
15006 # Run-time system search path for libraries
15007 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15008
15009 # Fix the shell variable \$srcfile for the compiler.
15010 fix_srcfile_path="$fix_srcfile_path"
15011
15012 # Set to yes if exported symbols are required.
15013 always_export_symbols=$always_export_symbols
15014
15015 # The commands to list exported symbols.
15016 export_symbols_cmds=$lt_export_symbols_cmds
15017
15018 # The commands to extract the exported symbol list from a shared archive.
15019 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15020
15021 # Symbols that should not be listed in the preloaded symbols.
15022 exclude_expsyms=$lt_exclude_expsyms
15023
15024 # Symbols that must always be exported.
15025 include_expsyms=$lt_include_expsyms
15026
15027 # ### END LIBTOOL CONFIG
15028
15029 __EOF__
15030
15031
15032   case $host_os in
15033   aix3*)
15034     cat <<\EOF >> "$cfgfile"
15035
15036 # AIX sometimes has problems with the GCC collect2 program.  For some
15037 # reason, if we set the COLLECT_NAMES environment variable, the problems
15038 # vanish in a puff of smoke.
15039 if test "X${COLLECT_NAMES+set}" != Xset; then
15040   COLLECT_NAMES=
15041   export COLLECT_NAMES
15042 fi
15043 EOF
15044     ;;
15045   esac
15046
15047   # We use sed instead of cat because bash on DJGPP gets confused if
15048   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15049   # text mode, it properly converts lines to CR/LF.  This bash problem
15050   # is reportedly fixed, but why not run on old versions too?
15051   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15052
15053   mv -f "$cfgfile" "$ofile" || \
15054     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15055   chmod +x "$ofile"
15056
15057 else
15058   # If there is no Makefile yet, we rely on a make rule to execute
15059   # `config.status --recheck' to rerun these tests and create the
15060   # libtool script then.
15061   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15062   if test -f "$ltmain_in"; then
15063     test -f Makefile && make "$ltmain"
15064   fi
15065 fi
15066
15067
15068 ac_ext=c
15069 ac_cpp='$CPP $CPPFLAGS'
15070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15073
15074 CC="$lt_save_CC"
15075
15076
15077 # Check whether --with-tags or --without-tags was given.
15078 if test "${with_tags+set}" = set; then
15079   withval="$with_tags"
15080   tagnames="$withval"
15081 fi;
15082
15083 if test -f "$ltmain" && test -n "$tagnames"; then
15084   if test ! -f "${ofile}"; then
15085     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15086 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15087   fi
15088
15089   if test -z "$LTCC"; then
15090     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15091     if test -z "$LTCC"; then
15092       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15093 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15094     else
15095       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15096 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15097     fi
15098   fi
15099
15100   # Extract list of available tagged configurations in $ofile.
15101   # Note that this assumes the entire list is on one line.
15102   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15103
15104   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15105   for tagname in $tagnames; do
15106     IFS="$lt_save_ifs"
15107     # Check whether tagname contains only valid characters
15108     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15109     "") ;;
15110     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15111 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15112    { (exit 1); exit 1; }; }
15113         ;;
15114     esac
15115
15116     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15117     then
15118       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15119 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15120    { (exit 1); exit 1; }; }
15121     fi
15122
15123     # Update the list of available tags.
15124     if test -n "$tagname"; then
15125       echo appending configuration tag "$tagname" to $ofile
15126
15127       case $tagname in
15128       CXX)
15129         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15130             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15131             (test "X$CXX" != "Xg++"))) ; then
15132           ac_ext=cc
15133 ac_cpp='$CXXCPP $CPPFLAGS'
15134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15137
15138
15139
15140
15141 archive_cmds_need_lc_CXX=no
15142 allow_undefined_flag_CXX=
15143 always_export_symbols_CXX=no
15144 archive_expsym_cmds_CXX=
15145 export_dynamic_flag_spec_CXX=
15146 hardcode_direct_CXX=no
15147 hardcode_libdir_flag_spec_CXX=
15148 hardcode_libdir_flag_spec_ld_CXX=
15149 hardcode_libdir_separator_CXX=
15150 hardcode_minus_L_CXX=no
15151 hardcode_automatic_CXX=no
15152 module_cmds_CXX=
15153 module_expsym_cmds_CXX=
15154 link_all_deplibs_CXX=unknown
15155 old_archive_cmds_CXX=$old_archive_cmds
15156 no_undefined_flag_CXX=
15157 whole_archive_flag_spec_CXX=
15158 enable_shared_with_static_runtimes_CXX=no
15159
15160 # Dependencies to place before and after the object being linked:
15161 predep_objects_CXX=
15162 postdep_objects_CXX=
15163 predeps_CXX=
15164 postdeps_CXX=
15165 compiler_lib_search_path_CXX=
15166
15167 # Source file extension for C++ test sources.
15168 ac_ext=cc
15169
15170 # Object file extension for compiled C++ test sources.
15171 objext=o
15172 objext_CXX=$objext
15173
15174 # Code to be used in simple compile tests
15175 lt_simple_compile_test_code="int some_variable = 0;\n"
15176
15177 # Code to be used in simple link tests
15178 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15179
15180 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15181
15182 # If no C compiler was specified, use CC.
15183 LTCC=${LTCC-"$CC"}
15184
15185 # Allow CC to be a program name with arguments.
15186 compiler=$CC
15187
15188
15189 # Allow CC to be a program name with arguments.
15190 lt_save_CC=$CC
15191 lt_save_LD=$LD
15192 lt_save_GCC=$GCC
15193 GCC=$GXX
15194 lt_save_with_gnu_ld=$with_gnu_ld
15195 lt_save_path_LD=$lt_cv_path_LD
15196 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15197   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15198 else
15199   unset lt_cv_prog_gnu_ld
15200 fi
15201 if test -n "${lt_cv_path_LDCXX+set}"; then
15202   lt_cv_path_LD=$lt_cv_path_LDCXX
15203 else
15204   unset lt_cv_path_LD
15205 fi
15206 test -z "${LDCXX+set}" || LD=$LDCXX
15207 CC=${CXX-"c++"}
15208 compiler=$CC
15209 compiler_CXX=$CC
15210 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15211
15212 # We don't want -fno-exception wen compiling C++ code, so set the
15213 # no_builtin_flag separately
15214 if test "$GXX" = yes; then
15215   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15216 else
15217   lt_prog_compiler_no_builtin_flag_CXX=
15218 fi
15219
15220 if test "$GXX" = yes; then
15221   # Set up default GNU C++ configuration
15222
15223
15224 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15225 if test "${with_gnu_ld+set}" = set; then
15226   withval="$with_gnu_ld"
15227   test "$withval" = no || with_gnu_ld=yes
15228 else
15229   with_gnu_ld=no
15230 fi;
15231 ac_prog=ld
15232 if test "$GCC" = yes; then
15233   # Check if gcc -print-prog-name=ld gives a path.
15234   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15235 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15236   case $host in
15237   *-*-mingw*)
15238     # gcc leaves a trailing carriage return which upsets mingw
15239     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15240   *)
15241     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15242   esac
15243   case $ac_prog in
15244     # Accept absolute paths.
15245     [\\/]* | ?:[\\/]*)
15246       re_direlt='/[^/][^/]*/\.\./'
15247       # Canonicalize the pathname of ld
15248       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15249       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15250         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15251       done
15252       test -z "$LD" && LD="$ac_prog"
15253       ;;
15254   "")
15255     # If it fails, then pretend we aren't using GCC.
15256     ac_prog=ld
15257     ;;
15258   *)
15259     # If it is relative, then search for the first ld in PATH.
15260     with_gnu_ld=unknown
15261     ;;
15262   esac
15263 elif test "$with_gnu_ld" = yes; then
15264   echo "$as_me:$LINENO: checking for GNU ld" >&5
15265 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15266 else
15267   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15268 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15269 fi
15270 if test "${lt_cv_path_LD+set}" = set; then
15271   echo $ECHO_N "(cached) $ECHO_C" >&6
15272 else
15273   if test -z "$LD"; then
15274   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15275   for ac_dir in $PATH; do
15276     IFS="$lt_save_ifs"
15277     test -z "$ac_dir" && ac_dir=.
15278     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15279       lt_cv_path_LD="$ac_dir/$ac_prog"
15280       # Check to see if the program is GNU ld.  I'd rather use --version,
15281       # but apparently some GNU ld's only accept -v.
15282       # Break only if it was the GNU/non-GNU ld that we prefer.
15283       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15284       *GNU* | *'with BFD'*)
15285         test "$with_gnu_ld" != no && break
15286         ;;
15287       *)
15288         test "$with_gnu_ld" != yes && break
15289         ;;
15290       esac
15291     fi
15292   done
15293   IFS="$lt_save_ifs"
15294 else
15295   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15296 fi
15297 fi
15298
15299 LD="$lt_cv_path_LD"
15300 if test -n "$LD"; then
15301   echo "$as_me:$LINENO: result: $LD" >&5
15302 echo "${ECHO_T}$LD" >&6
15303 else
15304   echo "$as_me:$LINENO: result: no" >&5
15305 echo "${ECHO_T}no" >&6
15306 fi
15307 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15308 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15309    { (exit 1); exit 1; }; }
15310 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15311 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15312 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15313   echo $ECHO_N "(cached) $ECHO_C" >&6
15314 else
15315   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15316 case `$LD -v 2>&1 </dev/null` in
15317 *GNU* | *'with BFD'*)
15318   lt_cv_prog_gnu_ld=yes
15319   ;;
15320 *)
15321   lt_cv_prog_gnu_ld=no
15322   ;;
15323 esac
15324 fi
15325 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15326 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15327 with_gnu_ld=$lt_cv_prog_gnu_ld
15328
15329
15330
15331   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15332   # archiving commands below assume that GNU ld is being used.
15333   if test "$with_gnu_ld" = yes; then
15334     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15335     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'
15336
15337     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15338     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15339
15340     # If archive_cmds runs LD, not CC, wlarc should be empty
15341     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15342     #     investigate it a little bit more. (MM)
15343     wlarc='${wl}'
15344
15345     # ancient GNU ld didn't support --whole-archive et. al.
15346     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15347         grep 'no-whole-archive' > /dev/null; then
15348       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15349     else
15350       whole_archive_flag_spec_CXX=
15351     fi
15352   else
15353     with_gnu_ld=no
15354     wlarc=
15355
15356     # A generic and very simple default shared library creation
15357     # command for GNU C++ for the case where it uses the native
15358     # linker, instead of GNU ld.  If possible, this setting should
15359     # overridden to take advantage of the native linker features on
15360     # the platform it is being used on.
15361     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15362   fi
15363
15364   # Commands to make compiler produce verbose output that lists
15365   # what "hidden" libraries, object files and flags are used when
15366   # linking a shared library.
15367   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15368
15369 else
15370   GXX=no
15371   with_gnu_ld=no
15372   wlarc=
15373 fi
15374
15375 # PORTME: fill in a description of your system's C++ link characteristics
15376 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15377 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15378 ld_shlibs_CXX=yes
15379 case $host_os in
15380   aix3*)
15381     # FIXME: insert proper C++ library support
15382     ld_shlibs_CXX=no
15383     ;;
15384   aix4* | aix5*)
15385     if test "$host_cpu" = ia64; then
15386       # On IA64, the linker does run time linking by default, so we don't
15387       # have to do anything special.
15388       aix_use_runtimelinking=no
15389       exp_sym_flag='-Bexport'
15390       no_entry_flag=""
15391     else
15392       aix_use_runtimelinking=no
15393
15394       # Test if we are trying to use run time linking or normal
15395       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15396       # need to do runtime linking.
15397       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15398         for ld_flag in $LDFLAGS; do
15399           case $ld_flag in
15400           *-brtl*)
15401             aix_use_runtimelinking=yes
15402             break
15403             ;;
15404           esac
15405         done
15406       esac
15407
15408       exp_sym_flag='-bexport'
15409       no_entry_flag='-bnoentry'
15410     fi
15411
15412     # When large executables or shared objects are built, AIX ld can
15413     # have problems creating the table of contents.  If linking a library
15414     # or program results in "error TOC overflow" add -mminimal-toc to
15415     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15416     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15417
15418     archive_cmds_CXX=''
15419     hardcode_direct_CXX=yes
15420     hardcode_libdir_separator_CXX=':'
15421     link_all_deplibs_CXX=yes
15422
15423     if test "$GXX" = yes; then
15424       case $host_os in aix4.012|aix4.012.*)
15425       # We only want to do this on AIX 4.2 and lower, the check
15426       # below for broken collect2 doesn't work under 4.3+
15427         collect2name=`${CC} -print-prog-name=collect2`
15428         if test -f "$collect2name" && \
15429            strings "$collect2name" | grep resolve_lib_name >/dev/null
15430         then
15431           # We have reworked collect2
15432           hardcode_direct_CXX=yes
15433         else
15434           # We have old collect2
15435           hardcode_direct_CXX=unsupported
15436           # It fails to find uninstalled libraries when the uninstalled
15437           # path is not listed in the libpath.  Setting hardcode_minus_L
15438           # to unsupported forces relinking
15439           hardcode_minus_L_CXX=yes
15440           hardcode_libdir_flag_spec_CXX='-L$libdir'
15441           hardcode_libdir_separator_CXX=
15442         fi
15443       esac
15444       shared_flag='-shared'
15445     else
15446       # not using gcc
15447       if test "$host_cpu" = ia64; then
15448         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15449         # chokes on -Wl,-G. The following line is correct:
15450         shared_flag='-G'
15451       else
15452         if test "$aix_use_runtimelinking" = yes; then
15453           shared_flag='${wl}-G'
15454         else
15455           shared_flag='${wl}-bM:SRE'
15456         fi
15457       fi
15458     fi
15459
15460     # It seems that -bexpall does not export symbols beginning with
15461     # underscore (_), so it is better to generate a list of symbols to export.
15462     always_export_symbols_CXX=yes
15463     if test "$aix_use_runtimelinking" = yes; then
15464       # Warning - without using the other runtime loading flags (-brtl),
15465       # -berok will link without error, but may produce a broken library.
15466       allow_undefined_flag_CXX='-berok'
15467       # Determine the default libpath from the value encoded in an empty executable.
15468       cat >conftest.$ac_ext <<_ACEOF
15469 /* confdefs.h.  */
15470 _ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h.  */
15474
15475 int
15476 main ()
15477 {
15478
15479   ;
15480   return 0;
15481 }
15482 _ACEOF
15483 rm -f conftest.$ac_objext conftest$ac_exeext
15484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15485   (eval $ac_link) 2>conftest.er1
15486   ac_status=$?
15487   grep -v '^ *+' conftest.er1 >conftest.err
15488   rm -f conftest.er1
15489   cat conftest.err >&5
15490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491   (exit $ac_status); } &&
15492          { ac_try='test -z "$ac_cxx_werror_flag"
15493                          || test ! -s conftest.err'
15494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495   (eval $ac_try) 2>&5
15496   ac_status=$?
15497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498   (exit $ac_status); }; } &&
15499          { ac_try='test -s conftest$ac_exeext'
15500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501   (eval $ac_try) 2>&5
15502   ac_status=$?
15503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504   (exit $ac_status); }; }; then
15505
15506 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15507 }'`
15508 # Check for a 64-bit object if we didn't find anything.
15509 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; }
15510 }'`; fi
15511 else
15512   echo "$as_me: failed program was:" >&5
15513 sed 's/^/| /' conftest.$ac_ext >&5
15514
15515 fi
15516 rm -f conftest.err conftest.$ac_objext \
15517       conftest$ac_exeext conftest.$ac_ext
15518 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15519
15520       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15521
15522       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"
15523      else
15524       if test "$host_cpu" = ia64; then
15525         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15526         allow_undefined_flag_CXX="-z nodefs"
15527         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"
15528       else
15529         # Determine the default libpath from the value encoded in an empty executable.
15530         cat >conftest.$ac_ext <<_ACEOF
15531 /* confdefs.h.  */
15532 _ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h.  */
15536
15537 int
15538 main ()
15539 {
15540
15541   ;
15542   return 0;
15543 }
15544 _ACEOF
15545 rm -f conftest.$ac_objext conftest$ac_exeext
15546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15547   (eval $ac_link) 2>conftest.er1
15548   ac_status=$?
15549   grep -v '^ *+' conftest.er1 >conftest.err
15550   rm -f conftest.er1
15551   cat conftest.err >&5
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); } &&
15554          { ac_try='test -z "$ac_cxx_werror_flag"
15555                          || test ! -s conftest.err'
15556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557   (eval $ac_try) 2>&5
15558   ac_status=$?
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); }; } &&
15561          { ac_try='test -s conftest$ac_exeext'
15562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563   (eval $ac_try) 2>&5
15564   ac_status=$?
15565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566   (exit $ac_status); }; }; then
15567
15568 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15569 }'`
15570 # Check for a 64-bit object if we didn't find anything.
15571 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; }
15572 }'`; fi
15573 else
15574   echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15576
15577 fi
15578 rm -f conftest.err conftest.$ac_objext \
15579       conftest$ac_exeext conftest.$ac_ext
15580 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15581
15582         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15583         # Warning - without using the other run time loading flags,
15584         # -berok will link without error, but may produce a broken library.
15585         no_undefined_flag_CXX=' ${wl}-bernotok'
15586         allow_undefined_flag_CXX=' ${wl}-berok'
15587         # -bexpall does not export symbols beginning with underscore (_)
15588         always_export_symbols_CXX=yes
15589         # Exported symbols can be pulled into shared objects from archives
15590         whole_archive_flag_spec_CXX=' '
15591         archive_cmds_need_lc_CXX=yes
15592         # This is similar to how AIX traditionally builds it's shared libraries.
15593         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'
15594       fi
15595     fi
15596     ;;
15597   chorus*)
15598     case $cc_basename in
15599       *)
15600         # FIXME: insert proper C++ library support
15601         ld_shlibs_CXX=no
15602         ;;
15603     esac
15604     ;;
15605
15606
15607   cygwin* | mingw* | pw32*)
15608     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15609     # as there is no search path for DLLs.
15610     hardcode_libdir_flag_spec_CXX='-L$libdir'
15611     allow_undefined_flag_CXX=unsupported
15612     always_export_symbols_CXX=no
15613     enable_shared_with_static_runtimes_CXX=yes
15614
15615     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15616       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'
15617       # If the export-symbols file already is a .def file (1st line
15618       # is EXPORTS), use it as is; otherwise, prepend...
15619       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15620         cp $export_symbols $output_objdir/$soname.def;
15621       else
15622         echo EXPORTS > $output_objdir/$soname.def;
15623         cat $export_symbols >> $output_objdir/$soname.def;
15624       fi~
15625       $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'
15626     else
15627       ld_shlibs_CXX=no
15628     fi
15629   ;;
15630       darwin* | rhapsody*)
15631         case "$host_os" in
15632         rhapsody* | darwin1.[012])
15633          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15634          ;;
15635        *) # Darwin 1.3 on
15636          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15637            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15638          else
15639            case ${MACOSX_DEPLOYMENT_TARGET} in
15640              10.[012])
15641                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15642                ;;
15643              10.*)
15644                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15645                ;;
15646            esac
15647          fi
15648          ;;
15649         esac
15650       archive_cmds_need_lc_CXX=no
15651       hardcode_direct_CXX=no
15652       hardcode_automatic_CXX=yes
15653       hardcode_shlibpath_var_CXX=unsupported
15654       whole_archive_flag_spec_CXX=''
15655       link_all_deplibs_CXX=yes
15656
15657     if test "$GXX" = yes ; then
15658       lt_int_apple_cc_single_mod=no
15659       output_verbose_link_cmd='echo'
15660       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15661        lt_int_apple_cc_single_mod=yes
15662       fi
15663       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15664        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15665       else
15666           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'
15667         fi
15668         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15669         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15670           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15671             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}'
15672           else
15673             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}'
15674           fi
15675             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}'
15676       else
15677       case "$cc_basename" in
15678         xlc*)
15679          output_verbose_link_cmd='echo'
15680           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'
15681           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15682           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15683           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}'
15684           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}'
15685           ;;
15686        *)
15687          ld_shlibs_CXX=no
15688           ;;
15689       esac
15690       fi
15691         ;;
15692
15693   dgux*)
15694     case $cc_basename in
15695       ec++)
15696         # FIXME: insert proper C++ library support
15697         ld_shlibs_CXX=no
15698         ;;
15699       ghcx)
15700         # Green Hills C++ Compiler
15701         # FIXME: insert proper C++ library support
15702         ld_shlibs_CXX=no
15703         ;;
15704       *)
15705         # FIXME: insert proper C++ library support
15706         ld_shlibs_CXX=no
15707         ;;
15708     esac
15709     ;;
15710   freebsd12*)
15711     # C++ shared libraries reported to be fairly broken before switch to ELF
15712     ld_shlibs_CXX=no
15713     ;;
15714   freebsd-elf*)
15715     archive_cmds_need_lc_CXX=no
15716     ;;
15717   freebsd* | kfreebsd*-gnu)
15718     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15719     # conventions
15720     ld_shlibs_CXX=yes
15721     ;;
15722   gnu*)
15723     ;;
15724   hpux9*)
15725     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15726     hardcode_libdir_separator_CXX=:
15727     export_dynamic_flag_spec_CXX='${wl}-E'
15728     hardcode_direct_CXX=yes
15729     hardcode_minus_L_CXX=yes # Not in the search PATH,
15730                                 # but as the default
15731                                 # location of the library.
15732
15733     case $cc_basename in
15734     CC)
15735       # FIXME: insert proper C++ library support
15736       ld_shlibs_CXX=no
15737       ;;
15738     aCC)
15739       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'
15740       # Commands to make compiler produce verbose output that lists
15741       # what "hidden" libraries, object files and flags are used when
15742       # linking a shared library.
15743       #
15744       # There doesn't appear to be a way to prevent this compiler from
15745       # explicitly linking system object files so we need to strip them
15746       # from the output so that they don't get included in the library
15747       # dependencies.
15748       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'
15749       ;;
15750     *)
15751       if test "$GXX" = yes; then
15752         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'
15753       else
15754         # FIXME: insert proper C++ library support
15755         ld_shlibs_CXX=no
15756       fi
15757       ;;
15758     esac
15759     ;;
15760   hpux10*|hpux11*)
15761     if test $with_gnu_ld = no; then
15762       case "$host_cpu" in
15763       hppa*64*)
15764         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15765         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15766         hardcode_libdir_separator_CXX=:
15767         ;;
15768       ia64*)
15769         hardcode_libdir_flag_spec_CXX='-L$libdir'
15770         ;;
15771       *)
15772         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15773         hardcode_libdir_separator_CXX=:
15774         export_dynamic_flag_spec_CXX='${wl}-E'
15775         ;;
15776       esac
15777     fi
15778     case "$host_cpu" in
15779     hppa*64*)
15780       hardcode_direct_CXX=no
15781       hardcode_shlibpath_var_CXX=no
15782       ;;
15783     ia64*)
15784       hardcode_direct_CXX=no
15785       hardcode_shlibpath_var_CXX=no
15786       hardcode_minus_L_CXX=yes # Not in the search PATH,
15787                                               # but as the default
15788                                               # location of the library.
15789       ;;
15790     *)
15791       hardcode_direct_CXX=yes
15792       hardcode_minus_L_CXX=yes # Not in the search PATH,
15793                                               # but as the default
15794                                               # location of the library.
15795       ;;
15796     esac
15797
15798     case $cc_basename in
15799       CC)
15800         # FIXME: insert proper C++ library support
15801         ld_shlibs_CXX=no
15802         ;;
15803       aCC)
15804         case "$host_cpu" in
15805         hppa*64*|ia64*)
15806           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15807           ;;
15808         *)
15809           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15810           ;;
15811         esac
15812         # Commands to make compiler produce verbose output that lists
15813         # what "hidden" libraries, object files and flags are used when
15814         # linking a shared library.
15815         #
15816         # There doesn't appear to be a way to prevent this compiler from
15817         # explicitly linking system object files so we need to strip them
15818         # from the output so that they don't get included in the library
15819         # dependencies.
15820         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'
15821         ;;
15822       *)
15823         if test "$GXX" = yes; then
15824           if test $with_gnu_ld = no; then
15825             case "$host_cpu" in
15826             ia64*|hppa*64*)
15827               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15828               ;;
15829             *)
15830               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'
15831               ;;
15832             esac
15833           fi
15834         else
15835           # FIXME: insert proper C++ library support
15836           ld_shlibs_CXX=no
15837         fi
15838         ;;
15839     esac
15840     ;;
15841   irix5* | irix6*)
15842     case $cc_basename in
15843       CC)
15844         # SGI C++
15845         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'
15846
15847         # Archives containing C++ object files must be created using
15848         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15849         # necessary to make sure instantiated templates are included
15850         # in the archive.
15851         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15852         ;;
15853       *)
15854         if test "$GXX" = yes; then
15855           if test "$with_gnu_ld" = no; then
15856             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'
15857           else
15858             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'
15859           fi
15860         fi
15861         link_all_deplibs_CXX=yes
15862         ;;
15863     esac
15864     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15865     hardcode_libdir_separator_CXX=:
15866     ;;
15867   linux*)
15868     case $cc_basename in
15869       KCC)
15870         # Kuck and Associates, Inc. (KAI) C++ Compiler
15871
15872         # KCC will only create a shared library if the output file
15873         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15874         # to its proper name (with version) after linking.
15875         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'
15876         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'
15877         # Commands to make compiler produce verbose output that lists
15878         # what "hidden" libraries, object files and flags are used when
15879         # linking a shared library.
15880         #
15881         # There doesn't appear to be a way to prevent this compiler from
15882         # explicitly linking system object files so we need to strip them
15883         # from the output so that they don't get included in the library
15884         # dependencies.
15885         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'
15886
15887         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15888         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15889
15890         # Archives containing C++ object files must be created using
15891         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15892         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15893         ;;
15894       icpc)
15895         # Intel C++
15896         with_gnu_ld=yes
15897         # version 8.0 and above of icpc choke on multiply defined symbols
15898         # if we add $predep_objects and $postdep_objects, however 7.1 and
15899         # earlier do not add the objects themselves.
15900         case `$CC -V 2>&1` in
15901         *"Version 7."*)
15902           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15903           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'
15904           ;;
15905         *)  # Version 8.0 or newer
15906           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15907         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15908           ;;
15909         esac
15910         archive_cmds_need_lc_CXX=no
15911         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15912         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15913         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15914         ;;
15915       cxx)
15916         # Compaq C++
15917         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15918         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'
15919
15920         runpath_var=LD_RUN_PATH
15921         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15922         hardcode_libdir_separator_CXX=:
15923
15924         # Commands to make compiler produce verbose output that lists
15925         # what "hidden" libraries, object files and flags are used when
15926         # linking a shared library.
15927         #
15928         # There doesn't appear to be a way to prevent this compiler from
15929         # explicitly linking system object files so we need to strip them
15930         # from the output so that they don't get included in the library
15931         # dependencies.
15932         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'
15933         ;;
15934     esac
15935     ;;
15936   lynxos*)
15937     # FIXME: insert proper C++ library support
15938     ld_shlibs_CXX=no
15939     ;;
15940   m88k*)
15941     # FIXME: insert proper C++ library support
15942     ld_shlibs_CXX=no
15943     ;;
15944   mvs*)
15945     case $cc_basename in
15946       cxx)
15947         # FIXME: insert proper C++ library support
15948         ld_shlibs_CXX=no
15949         ;;
15950       *)
15951         # FIXME: insert proper C++ library support
15952         ld_shlibs_CXX=no
15953         ;;
15954     esac
15955     ;;
15956   netbsd*)
15957     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15958       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15959       wlarc=
15960       hardcode_libdir_flag_spec_CXX='-R$libdir'
15961       hardcode_direct_CXX=yes
15962       hardcode_shlibpath_var_CXX=no
15963     fi
15964     # Workaround some broken pre-1.5 toolchains
15965     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15966     ;;
15967   openbsd2*)
15968     # C++ shared libraries are fairly broken
15969     ld_shlibs_CXX=no
15970     ;;
15971   openbsd*)
15972     hardcode_direct_CXX=yes
15973     hardcode_shlibpath_var_CXX=no
15974     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15975     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15976     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15977       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15978       export_dynamic_flag_spec_CXX='${wl}-E'
15979       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15980     fi
15981     output_verbose_link_cmd='echo'
15982     ;;
15983   osf3*)
15984     case $cc_basename in
15985       KCC)
15986         # Kuck and Associates, Inc. (KAI) C++ Compiler
15987
15988         # KCC will only create a shared library if the output file
15989         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15990         # to its proper name (with version) after linking.
15991         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'
15992
15993         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15994         hardcode_libdir_separator_CXX=:
15995
15996         # Archives containing C++ object files must be created using
15997         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15998         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15999
16000         ;;
16001       RCC)
16002         # Rational C++ 2.4.1
16003         # FIXME: insert proper C++ library support
16004         ld_shlibs_CXX=no
16005         ;;
16006       cxx)
16007         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16008         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'
16009
16010         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16011         hardcode_libdir_separator_CXX=:
16012
16013         # Commands to make compiler produce verbose output that lists
16014         # what "hidden" libraries, object files and flags are used when
16015         # linking a shared library.
16016         #
16017         # There doesn't appear to be a way to prevent this compiler from
16018         # explicitly linking system object files so we need to strip them
16019         # from the output so that they don't get included in the library
16020         # dependencies.
16021         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'
16022         ;;
16023       *)
16024         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16025           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16026           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'
16027
16028           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16029           hardcode_libdir_separator_CXX=:
16030
16031           # Commands to make compiler produce verbose output that lists
16032           # what "hidden" libraries, object files and flags are used when
16033           # linking a shared library.
16034           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16035
16036         else
16037           # FIXME: insert proper C++ library support
16038           ld_shlibs_CXX=no
16039         fi
16040         ;;
16041     esac
16042     ;;
16043   osf4* | osf5*)
16044     case $cc_basename in
16045       KCC)
16046         # Kuck and Associates, Inc. (KAI) C++ Compiler
16047
16048         # KCC will only create a shared library if the output file
16049         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16050         # to its proper name (with version) after linking.
16051         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'
16052
16053         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16054         hardcode_libdir_separator_CXX=:
16055
16056         # Archives containing C++ object files must be created using
16057         # the KAI C++ compiler.
16058         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16059         ;;
16060       RCC)
16061         # Rational C++ 2.4.1
16062         # FIXME: insert proper C++ library support
16063         ld_shlibs_CXX=no
16064         ;;
16065       cxx)
16066         allow_undefined_flag_CXX=' -expect_unresolved \*'
16067         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'
16068         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16069           echo "-hidden">> $lib.exp~
16070           $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~
16071           $rm $lib.exp'
16072
16073         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16074         hardcode_libdir_separator_CXX=:
16075
16076         # Commands to make compiler produce verbose output that lists
16077         # what "hidden" libraries, object files and flags are used when
16078         # linking a shared library.
16079         #
16080         # There doesn't appear to be a way to prevent this compiler from
16081         # explicitly linking system object files so we need to strip them
16082         # from the output so that they don't get included in the library
16083         # dependencies.
16084         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'
16085         ;;
16086       *)
16087         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16088           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16089          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'
16090
16091           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16092           hardcode_libdir_separator_CXX=:
16093
16094           # Commands to make compiler produce verbose output that lists
16095           # what "hidden" libraries, object files and flags are used when
16096           # linking a shared library.
16097           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16098
16099         else
16100           # FIXME: insert proper C++ library support
16101           ld_shlibs_CXX=no
16102         fi
16103         ;;
16104     esac
16105     ;;
16106   psos*)
16107     # FIXME: insert proper C++ library support
16108     ld_shlibs_CXX=no
16109     ;;
16110   sco*)
16111     archive_cmds_need_lc_CXX=no
16112     case $cc_basename in
16113       CC)
16114         # FIXME: insert proper C++ library support
16115         ld_shlibs_CXX=no
16116         ;;
16117       *)
16118         # FIXME: insert proper C++ library support
16119         ld_shlibs_CXX=no
16120         ;;
16121     esac
16122     ;;
16123   sunos4*)
16124     case $cc_basename in
16125       CC)
16126         # Sun C++ 4.x
16127         # FIXME: insert proper C++ library support
16128         ld_shlibs_CXX=no
16129         ;;
16130       lcc)
16131         # Lucid
16132         # FIXME: insert proper C++ library support
16133         ld_shlibs_CXX=no
16134         ;;
16135       *)
16136         # FIXME: insert proper C++ library support
16137         ld_shlibs_CXX=no
16138         ;;
16139     esac
16140     ;;
16141   solaris*)
16142     case $cc_basename in
16143       CC)
16144         # Sun C++ 4.2, 5.x and Centerline C++
16145         no_undefined_flag_CXX=' -zdefs'
16146         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16147         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16148         $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'
16149
16150         hardcode_libdir_flag_spec_CXX='-R$libdir'
16151         hardcode_shlibpath_var_CXX=no
16152         case $host_os in
16153           solaris2.0-5 | solaris2.0-5.*) ;;
16154           *)
16155             # The C++ compiler is used as linker so we must use $wl
16156             # flag to pass the commands to the underlying system
16157             # linker.
16158             # Supported since Solaris 2.6 (maybe 2.5.1?)
16159             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16160             ;;
16161         esac
16162         link_all_deplibs_CXX=yes
16163
16164         # Commands to make compiler produce verbose output that lists
16165         # what "hidden" libraries, object files and flags are used when
16166         # linking a shared library.
16167         #
16168         # There doesn't appear to be a way to prevent this compiler from
16169         # explicitly linking system object files so we need to strip them
16170         # from the output so that they don't get included in the library
16171         # dependencies.
16172         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'
16173
16174         # Archives containing C++ object files must be created using
16175         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16176         # necessary to make sure instantiated templates are included
16177         # in the archive.
16178         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16179         ;;
16180       gcx)
16181         # Green Hills C++ Compiler
16182         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16183
16184         # The C++ compiler must be used to create the archive.
16185         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16186         ;;
16187       *)
16188         # GNU C++ compiler with Solaris linker
16189         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16190           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16191           if $CC --version | grep -v '^2\.7' > /dev/null; then
16192             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16193             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16194                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16195
16196             # Commands to make compiler produce verbose output that lists
16197             # what "hidden" libraries, object files and flags are used when
16198             # linking a shared library.
16199             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16200           else
16201             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16202             # platform.
16203             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16204             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16205                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16206
16207             # Commands to make compiler produce verbose output that lists
16208             # what "hidden" libraries, object files and flags are used when
16209             # linking a shared library.
16210             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16211           fi
16212
16213           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16214         fi
16215         ;;
16216     esac
16217     ;;
16218   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16219     archive_cmds_need_lc_CXX=no
16220     ;;
16221   tandem*)
16222     case $cc_basename in
16223       NCC)
16224         # NonStop-UX NCC 3.20
16225         # FIXME: insert proper C++ library support
16226         ld_shlibs_CXX=no
16227         ;;
16228       *)
16229         # FIXME: insert proper C++ library support
16230         ld_shlibs_CXX=no
16231         ;;
16232     esac
16233     ;;
16234   vxworks*)
16235     # FIXME: insert proper C++ library support
16236     ld_shlibs_CXX=no
16237     ;;
16238   *)
16239     # FIXME: insert proper C++ library support
16240     ld_shlibs_CXX=no
16241     ;;
16242 esac
16243 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16244 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16245 test "$ld_shlibs_CXX" = no && can_build_shared=no
16246
16247 GCC_CXX="$GXX"
16248 LD_CXX="$LD"
16249
16250
16251 cat > conftest.$ac_ext <<EOF
16252 class Foo
16253 {
16254 public:
16255   Foo (void) { a = 0; }
16256 private:
16257   int a;
16258 };
16259 EOF
16260
16261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16262   (eval $ac_compile) 2>&5
16263   ac_status=$?
16264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265   (exit $ac_status); }; then
16266   # Parse the compiler output and extract the necessary
16267   # objects, libraries and library flags.
16268
16269   # Sentinel used to keep track of whether or not we are before
16270   # the conftest object file.
16271   pre_test_object_deps_done=no
16272
16273   # The `*' in the case matches for architectures that use `case' in
16274   # $output_verbose_cmd can trigger glob expansion during the loop
16275   # eval without this substitution.
16276   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16277
16278   for p in `eval $output_verbose_link_cmd`; do
16279     case $p in
16280
16281     -L* | -R* | -l*)
16282        # Some compilers place space between "-{L,R}" and the path.
16283        # Remove the space.
16284        if test $p = "-L" \
16285           || test $p = "-R"; then
16286          prev=$p
16287          continue
16288        else
16289          prev=
16290        fi
16291
16292        if test "$pre_test_object_deps_done" = no; then
16293          case $p in
16294          -L* | -R*)
16295            # Internal compiler library paths should come after those
16296            # provided the user.  The postdeps already come after the
16297            # user supplied libs so there is no need to process them.
16298            if test -z "$compiler_lib_search_path_CXX"; then
16299              compiler_lib_search_path_CXX="${prev}${p}"
16300            else
16301              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16302            fi
16303            ;;
16304          # The "-l" case would never come before the object being
16305          # linked, so don't bother handling this case.
16306          esac
16307        else
16308          if test -z "$postdeps_CXX"; then
16309            postdeps_CXX="${prev}${p}"
16310          else
16311            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16312          fi
16313        fi
16314        ;;
16315
16316     *.$objext)
16317        # This assumes that the test object file only shows up
16318        # once in the compiler output.
16319        if test "$p" = "conftest.$objext"; then
16320          pre_test_object_deps_done=yes
16321          continue
16322        fi
16323
16324        if test "$pre_test_object_deps_done" = no; then
16325          if test -z "$predep_objects_CXX"; then
16326            predep_objects_CXX="$p"
16327          else
16328            predep_objects_CXX="$predep_objects_CXX $p"
16329          fi
16330        else
16331          if test -z "$postdep_objects_CXX"; then
16332            postdep_objects_CXX="$p"
16333          else
16334            postdep_objects_CXX="$postdep_objects_CXX $p"
16335          fi
16336        fi
16337        ;;
16338
16339     *) ;; # Ignore the rest.
16340
16341     esac
16342   done
16343
16344   # Clean up.
16345   rm -f a.out a.exe
16346 else
16347   echo "libtool.m4: error: problem compiling CXX test program"
16348 fi
16349
16350 $rm -f confest.$objext
16351
16352 case " $postdeps_CXX " in
16353 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16354 esac
16355
16356 lt_prog_compiler_wl_CXX=
16357 lt_prog_compiler_pic_CXX=
16358 lt_prog_compiler_static_CXX=
16359
16360 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16361 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16362
16363   # C++ specific cases for pic, static, wl, etc.
16364   if test "$GXX" = yes; then
16365     lt_prog_compiler_wl_CXX='-Wl,'
16366     lt_prog_compiler_static_CXX='-static'
16367
16368     case $host_os in
16369     aix*)
16370       # All AIX code is PIC.
16371       if test "$host_cpu" = ia64; then
16372         # AIX 5 now supports IA64 processor
16373         lt_prog_compiler_static_CXX='-Bstatic'
16374       fi
16375       ;;
16376     amigaos*)
16377       # FIXME: we need at least 68020 code to build shared libraries, but
16378       # adding the `-m68020' flag to GCC prevents building anything better,
16379       # like `-m68040'.
16380       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16381       ;;
16382     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16383       # PIC is the default for these OSes.
16384       ;;
16385     mingw* | os2* | pw32*)
16386       # This hack is so that the source file can tell whether it is being
16387       # built for inclusion in a dll (and should export symbols for example).
16388       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16389       ;;
16390     darwin* | rhapsody*)
16391       # PIC is the default on this platform
16392       # Common symbols not allowed in MH_DYLIB files
16393       lt_prog_compiler_pic_CXX='-fno-common'
16394       ;;
16395     *djgpp*)
16396       # DJGPP does not support shared libraries at all
16397       lt_prog_compiler_pic_CXX=
16398       ;;
16399     sysv4*MP*)
16400       if test -d /usr/nec; then
16401         lt_prog_compiler_pic_CXX=-Kconform_pic
16402       fi
16403       ;;
16404     hpux*)
16405       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16406       # not for PA HP-UX.
16407       case "$host_cpu" in
16408       hppa*64*|ia64*)
16409         ;;
16410       *)
16411         lt_prog_compiler_pic_CXX='-fPIC'
16412         ;;
16413       esac
16414       ;;
16415     *)
16416       lt_prog_compiler_pic_CXX='-fPIC'
16417       ;;
16418     esac
16419   else
16420     case $host_os in
16421       aix4* | aix5*)
16422         # All AIX code is PIC.
16423         if test "$host_cpu" = ia64; then
16424           # AIX 5 now supports IA64 processor
16425           lt_prog_compiler_static_CXX='-Bstatic'
16426         else
16427           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16428         fi
16429         ;;
16430       chorus*)
16431         case $cc_basename in
16432         cxch68)
16433           # Green Hills C++ Compiler
16434           # _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"
16435           ;;
16436         esac
16437         ;;
16438        darwin*)
16439          # PIC is the default on this platform
16440          # Common symbols not allowed in MH_DYLIB files
16441          case "$cc_basename" in
16442            xlc*)
16443            lt_prog_compiler_pic_CXX='-qnocommon'
16444            lt_prog_compiler_wl_CXX='-Wl,'
16445            ;;
16446          esac
16447        ;;
16448       dgux*)
16449         case $cc_basename in
16450           ec++)
16451             lt_prog_compiler_pic_CXX='-KPIC'
16452             ;;
16453           ghcx)
16454             # Green Hills C++ Compiler
16455             lt_prog_compiler_pic_CXX='-pic'
16456             ;;
16457           *)
16458             ;;
16459         esac
16460         ;;
16461       freebsd* | kfreebsd*-gnu)
16462         # FreeBSD uses GNU C++
16463         ;;
16464       hpux9* | hpux10* | hpux11*)
16465         case $cc_basename in
16466           CC)
16467             lt_prog_compiler_wl_CXX='-Wl,'
16468             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16469             if test "$host_cpu" != ia64; then
16470               lt_prog_compiler_pic_CXX='+Z'
16471             fi
16472             ;;
16473           aCC)
16474             lt_prog_compiler_wl_CXX='-Wl,'
16475             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16476             case "$host_cpu" in
16477             hppa*64*|ia64*)
16478               # +Z the default
16479               ;;
16480             *)
16481               lt_prog_compiler_pic_CXX='+Z'
16482               ;;
16483             esac
16484             ;;
16485           *)
16486             ;;
16487         esac
16488         ;;
16489       irix5* | irix6* | nonstopux*)
16490         case $cc_basename in
16491           CC)
16492             lt_prog_compiler_wl_CXX='-Wl,'
16493             lt_prog_compiler_static_CXX='-non_shared'
16494             # CC pic flag -KPIC is the default.
16495             ;;
16496           *)
16497             ;;
16498         esac
16499         ;;
16500       linux*)
16501         case $cc_basename in
16502           KCC)
16503             # KAI C++ Compiler
16504             lt_prog_compiler_wl_CXX='--backend -Wl,'
16505             lt_prog_compiler_pic_CXX='-fPIC'
16506             ;;
16507           icpc)
16508             # Intel C++
16509             lt_prog_compiler_wl_CXX='-Wl,'
16510             lt_prog_compiler_pic_CXX='-KPIC'
16511             lt_prog_compiler_static_CXX='-static'
16512             ;;
16513           cxx)
16514             # Compaq C++
16515             # Make sure the PIC flag is empty.  It appears that all Alpha
16516             # Linux and Compaq Tru64 Unix objects are PIC.
16517             lt_prog_compiler_pic_CXX=
16518             lt_prog_compiler_static_CXX='-non_shared'
16519             ;;
16520           *)
16521             ;;
16522         esac
16523         ;;
16524       lynxos*)
16525         ;;
16526       m88k*)
16527         ;;
16528       mvs*)
16529         case $cc_basename in
16530           cxx)
16531             lt_prog_compiler_pic_CXX='-W c,exportall'
16532             ;;
16533           *)
16534             ;;
16535         esac
16536         ;;
16537       netbsd*)
16538         ;;
16539       osf3* | osf4* | osf5*)
16540         case $cc_basename in
16541           KCC)
16542             lt_prog_compiler_wl_CXX='--backend -Wl,'
16543             ;;
16544           RCC)
16545             # Rational C++ 2.4.1
16546             lt_prog_compiler_pic_CXX='-pic'
16547             ;;
16548           cxx)
16549             # Digital/Compaq C++
16550             lt_prog_compiler_wl_CXX='-Wl,'
16551             # Make sure the PIC flag is empty.  It appears that all Alpha
16552             # Linux and Compaq Tru64 Unix objects are PIC.
16553             lt_prog_compiler_pic_CXX=
16554             lt_prog_compiler_static_CXX='-non_shared'
16555             ;;
16556           *)
16557             ;;
16558         esac
16559         ;;
16560       psos*)
16561         ;;
16562       sco*)
16563         case $cc_basename in
16564           CC)
16565             lt_prog_compiler_pic_CXX='-fPIC'
16566             ;;
16567           *)
16568             ;;
16569         esac
16570         ;;
16571       solaris*)
16572         case $cc_basename in
16573           CC)
16574             # Sun C++ 4.2, 5.x and Centerline C++
16575             lt_prog_compiler_pic_CXX='-KPIC'
16576             lt_prog_compiler_static_CXX='-Bstatic'
16577             lt_prog_compiler_wl_CXX='-Qoption ld '
16578             ;;
16579           gcx)
16580             # Green Hills C++ Compiler
16581             lt_prog_compiler_pic_CXX='-PIC'
16582             ;;
16583           *)
16584             ;;
16585         esac
16586         ;;
16587       sunos4*)
16588         case $cc_basename in
16589           CC)
16590             # Sun C++ 4.x
16591             lt_prog_compiler_pic_CXX='-pic'
16592             lt_prog_compiler_static_CXX='-Bstatic'
16593             ;;
16594           lcc)
16595             # Lucid
16596             lt_prog_compiler_pic_CXX='-pic'
16597             ;;
16598           *)
16599             ;;
16600         esac
16601         ;;
16602       tandem*)
16603         case $cc_basename in
16604           NCC)
16605             # NonStop-UX NCC 3.20
16606             lt_prog_compiler_pic_CXX='-KPIC'
16607             ;;
16608           *)
16609             ;;
16610         esac
16611         ;;
16612       unixware*)
16613         ;;
16614       vxworks*)
16615         ;;
16616       *)
16617         lt_prog_compiler_can_build_shared_CXX=no
16618         ;;
16619     esac
16620   fi
16621
16622 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16623 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16624
16625 #
16626 # Check to make sure the PIC flag actually works.
16627 #
16628 if test -n "$lt_prog_compiler_pic_CXX"; then
16629
16630 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16631 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16632 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16633   echo $ECHO_N "(cached) $ECHO_C" >&6
16634 else
16635   lt_prog_compiler_pic_works_CXX=no
16636   ac_outfile=conftest.$ac_objext
16637    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16638    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16639    # Insert the option either (1) after the last *FLAGS variable, or
16640    # (2) before a word containing "conftest.", or (3) at the end.
16641    # Note that $ac_compile itself does not contain backslashes and begins
16642    # with a dollar sign (not a hyphen), so the echo should work correctly.
16643    # The option is referenced via a variable to avoid confusing sed.
16644    lt_compile=`echo "$ac_compile" | $SED \
16645    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16646    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16647    -e 's:$: $lt_compiler_flag:'`
16648    (eval echo "\"\$as_me:16648: $lt_compile\"" >&5)
16649    (eval "$lt_compile" 2>conftest.err)
16650    ac_status=$?
16651    cat conftest.err >&5
16652    echo "$as_me:16652: \$? = $ac_status" >&5
16653    if (exit $ac_status) && test -s "$ac_outfile"; then
16654      # The compiler can only warn and ignore the option if not recognized
16655      # So say no if there are warnings
16656      if test ! -s conftest.err; then
16657        lt_prog_compiler_pic_works_CXX=yes
16658      fi
16659    fi
16660    $rm conftest*
16661
16662 fi
16663 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16664 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16665
16666 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16667     case $lt_prog_compiler_pic_CXX in
16668      "" | " "*) ;;
16669      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16670      esac
16671 else
16672     lt_prog_compiler_pic_CXX=
16673      lt_prog_compiler_can_build_shared_CXX=no
16674 fi
16675
16676 fi
16677 case "$host_os" in
16678   # For platforms which do not support PIC, -DPIC is meaningless:
16679   *djgpp*)
16680     lt_prog_compiler_pic_CXX=
16681     ;;
16682   *)
16683     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16684     ;;
16685 esac
16686
16687 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16688 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16689 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16690   echo $ECHO_N "(cached) $ECHO_C" >&6
16691 else
16692   lt_cv_prog_compiler_c_o_CXX=no
16693    $rm -r conftest 2>/dev/null
16694    mkdir conftest
16695    cd conftest
16696    mkdir out
16697    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16698
16699    lt_compiler_flag="-o out/conftest2.$ac_objext"
16700    # Insert the option either (1) after the last *FLAGS variable, or
16701    # (2) before a word containing "conftest.", or (3) at the end.
16702    # Note that $ac_compile itself does not contain backslashes and begins
16703    # with a dollar sign (not a hyphen), so the echo should work correctly.
16704    lt_compile=`echo "$ac_compile" | $SED \
16705    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16706    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16707    -e 's:$: $lt_compiler_flag:'`
16708    (eval echo "\"\$as_me:16708: $lt_compile\"" >&5)
16709    (eval "$lt_compile" 2>out/conftest.err)
16710    ac_status=$?
16711    cat out/conftest.err >&5
16712    echo "$as_me:16712: \$? = $ac_status" >&5
16713    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16714    then
16715      # The compiler can only warn and ignore the option if not recognized
16716      # So say no if there are warnings
16717      if test ! -s out/conftest.err; then
16718        lt_cv_prog_compiler_c_o_CXX=yes
16719      fi
16720    fi
16721    chmod u+w .
16722    $rm conftest*
16723    # SGI C++ compiler will create directory out/ii_files/ for
16724    # template instantiation
16725    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16726    $rm out/* && rmdir out
16727    cd ..
16728    rmdir conftest
16729    $rm conftest*
16730
16731 fi
16732 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16733 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16734
16735
16736 hard_links="nottested"
16737 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16738   # do not overwrite the value of need_locks provided by the user
16739   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16740 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16741   hard_links=yes
16742   $rm conftest*
16743   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16744   touch conftest.a
16745   ln conftest.a conftest.b 2>&5 || hard_links=no
16746   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16747   echo "$as_me:$LINENO: result: $hard_links" >&5
16748 echo "${ECHO_T}$hard_links" >&6
16749   if test "$hard_links" = no; then
16750     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16751 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16752     need_locks=warn
16753   fi
16754 else
16755   need_locks=no
16756 fi
16757
16758 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16759 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16760
16761   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16762   case $host_os in
16763   aix4* | aix5*)
16764     # If we're using GNU nm, then we don't want the "-C" option.
16765     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16766     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16767       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'
16768     else
16769       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'
16770     fi
16771     ;;
16772   pw32*)
16773     export_symbols_cmds_CXX="$ltdll_cmds"
16774   ;;
16775   cygwin* | mingw*)
16776     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16777   ;;
16778   *)
16779     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16780   ;;
16781   esac
16782
16783 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16784 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16785 test "$ld_shlibs_CXX" = no && can_build_shared=no
16786
16787 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16788 if test "$GCC" = yes; then
16789   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16790 fi
16791
16792 #
16793 # Do we need to explicitly link libc?
16794 #
16795 case "x$archive_cmds_need_lc_CXX" in
16796 x|xyes)
16797   # Assume -lc should be added
16798   archive_cmds_need_lc_CXX=yes
16799
16800   if test "$enable_shared" = yes && test "$GCC" = yes; then
16801     case $archive_cmds_CXX in
16802     *'~'*)
16803       # FIXME: we may have to deal with multi-command sequences.
16804       ;;
16805     '$CC '*)
16806       # Test whether the compiler implicitly links with -lc since on some
16807       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16808       # to ld, don't add -lc before -lgcc.
16809       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16810 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16811       $rm conftest*
16812       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16813
16814       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16815   (eval $ac_compile) 2>&5
16816   ac_status=$?
16817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818   (exit $ac_status); } 2>conftest.err; then
16819         soname=conftest
16820         lib=conftest
16821         libobjs=conftest.$ac_objext
16822         deplibs=
16823         wl=$lt_prog_compiler_wl_CXX
16824         compiler_flags=-v
16825         linker_flags=-v
16826         verstring=
16827         output_objdir=.
16828         libname=conftest
16829         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16830         allow_undefined_flag_CXX=
16831         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16832   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16833   ac_status=$?
16834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835   (exit $ac_status); }
16836         then
16837           archive_cmds_need_lc_CXX=no
16838         else
16839           archive_cmds_need_lc_CXX=yes
16840         fi
16841         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16842       else
16843         cat conftest.err 1>&5
16844       fi
16845       $rm conftest*
16846       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16847 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16848       ;;
16849     esac
16850   fi
16851   ;;
16852 esac
16853
16854 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16855 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16856 library_names_spec=
16857 libname_spec='lib$name'
16858 soname_spec=
16859 shrext_cmds=".so"
16860 postinstall_cmds=
16861 postuninstall_cmds=
16862 finish_cmds=
16863 finish_eval=
16864 shlibpath_var=
16865 shlibpath_overrides_runpath=unknown
16866 version_type=none
16867 dynamic_linker="$host_os ld.so"
16868 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16869 if test "$GCC" = yes; then
16870   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16871   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16872     # if the path contains ";" then we assume it to be the separator
16873     # otherwise default to the standard path separator (i.e. ":") - it is
16874     # assumed that no part of a normal pathname contains ";" but that should
16875     # okay in the real world where ";" in dirpaths is itself problematic.
16876     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16877   else
16878     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16879   fi
16880 else
16881   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16882 fi
16883 need_lib_prefix=unknown
16884 hardcode_into_libs=no
16885
16886 # when you set need_version to no, make sure it does not cause -set_version
16887 # flags to be left without arguments
16888 need_version=unknown
16889
16890 case $host_os in
16891 aix3*)
16892   version_type=linux
16893   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16894   shlibpath_var=LIBPATH
16895
16896   # AIX 3 has no versioning support, so we append a major version to the name.
16897   soname_spec='${libname}${release}${shared_ext}$major'
16898   ;;
16899
16900 aix4* | aix5*)
16901   version_type=linux
16902   need_lib_prefix=no
16903   need_version=no
16904   hardcode_into_libs=yes
16905   if test "$host_cpu" = ia64; then
16906     # AIX 5 supports IA64
16907     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16908     shlibpath_var=LD_LIBRARY_PATH
16909   else
16910     # With GCC up to 2.95.x, collect2 would create an import file
16911     # for dependence libraries.  The import file would start with
16912     # the line `#! .'.  This would cause the generated library to
16913     # depend on `.', always an invalid library.  This was fixed in
16914     # development snapshots of GCC prior to 3.0.
16915     case $host_os in
16916       aix4 | aix4.[01] | aix4.[01].*)
16917       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16918            echo ' yes '
16919            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16920         :
16921       else
16922         can_build_shared=no
16923       fi
16924       ;;
16925     esac
16926     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16927     # soname into executable. Probably we can add versioning support to
16928     # collect2, so additional links can be useful in future.
16929     if test "$aix_use_runtimelinking" = yes; then
16930       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16931       # instead of lib<name>.a to let people know that these are not
16932       # typical AIX shared libraries.
16933       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16934     else
16935       # We preserve .a as extension for shared libraries through AIX4.2
16936       # and later when we are not doing run time linking.
16937       library_names_spec='${libname}${release}.a $libname.a'
16938       soname_spec='${libname}${release}${shared_ext}$major'
16939     fi
16940     shlibpath_var=LIBPATH
16941   fi
16942   ;;
16943
16944 amigaos*)
16945   library_names_spec='$libname.ixlibrary $libname.a'
16946   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16947   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'
16948   ;;
16949
16950 beos*)
16951   library_names_spec='${libname}${shared_ext}'
16952   dynamic_linker="$host_os ld.so"
16953   shlibpath_var=LIBRARY_PATH
16954   ;;
16955
16956 bsdi[45]*)
16957   version_type=linux
16958   need_version=no
16959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16960   soname_spec='${libname}${release}${shared_ext}$major'
16961   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16962   shlibpath_var=LD_LIBRARY_PATH
16963   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16964   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16965   # the default ld.so.conf also contains /usr/contrib/lib and
16966   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16967   # libtool to hard-code these into programs
16968   ;;
16969
16970 cygwin* | mingw* | pw32*)
16971   version_type=windows
16972   shrext_cmds=".dll"
16973   need_version=no
16974   need_lib_prefix=no
16975
16976   case $GCC,$host_os in
16977   yes,cygwin* | yes,mingw* | yes,pw32*)
16978     library_names_spec='$libname.dll.a'
16979     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16980     postinstall_cmds='base_file=`basename \${file}`~
16981       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16982       dldir=$destdir/`dirname \$dlpath`~
16983       test -d \$dldir || mkdir -p \$dldir~
16984       $install_prog $dir/$dlname \$dldir/$dlname'
16985     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16986       dlpath=$dir/\$dldll~
16987        $rm \$dlpath'
16988     shlibpath_overrides_runpath=yes
16989
16990     case $host_os in
16991     cygwin*)
16992       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16993       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16994       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16995       ;;
16996     mingw*)
16997       # MinGW DLLs use traditional 'lib' prefix
16998       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16999       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17000       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17001         # It is most probably a Windows format PATH printed by
17002         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17003         # path with ; separators, and with drive letters. We can handle the
17004         # drive letters (cygwin fileutils understands them), so leave them,
17005         # especially as we might pass files found there to a mingw objdump,
17006         # which wouldn't understand a cygwinified path. Ahh.
17007         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17008       else
17009         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17010       fi
17011       ;;
17012     pw32*)
17013       # pw32 DLLs use 'pw' prefix rather than 'lib'
17014       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17015       ;;
17016     esac
17017     ;;
17018
17019   *)
17020     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17021     ;;
17022   esac
17023   dynamic_linker='Win32 ld.exe'
17024   # FIXME: first we should search . and the directory the executable is in
17025   shlibpath_var=PATH
17026   ;;
17027
17028 darwin* | rhapsody*)
17029   dynamic_linker="$host_os dyld"
17030   version_type=darwin
17031   need_lib_prefix=no
17032   need_version=no
17033   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17034   soname_spec='${libname}${release}${major}$shared_ext'
17035   shlibpath_overrides_runpath=yes
17036   shlibpath_var=DYLD_LIBRARY_PATH
17037   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17038   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17039   if test "$GCC" = yes; then
17040     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"`
17041   else
17042     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17043   fi
17044   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17045   ;;
17046
17047 dgux*)
17048   version_type=linux
17049   need_lib_prefix=no
17050   need_version=no
17051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17052   soname_spec='${libname}${release}${shared_ext}$major'
17053   shlibpath_var=LD_LIBRARY_PATH
17054   ;;
17055
17056 freebsd1*)
17057   dynamic_linker=no
17058   ;;
17059
17060 kfreebsd*-gnu)
17061   version_type=linux
17062   need_lib_prefix=no
17063   need_version=no
17064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17065   soname_spec='${libname}${release}${shared_ext}$major'
17066   shlibpath_var=LD_LIBRARY_PATH
17067   shlibpath_overrides_runpath=no
17068   hardcode_into_libs=yes
17069   dynamic_linker='GNU ld.so'
17070   ;;
17071
17072 freebsd*)
17073   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17074   version_type=freebsd-$objformat
17075   case $version_type in
17076     freebsd-elf*)
17077       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17078       need_version=no
17079       need_lib_prefix=no
17080       ;;
17081     freebsd-*)
17082       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17083       need_version=yes
17084       ;;
17085   esac
17086   shlibpath_var=LD_LIBRARY_PATH
17087   case $host_os in
17088   freebsd2*)
17089     shlibpath_overrides_runpath=yes
17090     ;;
17091   freebsd3.01* | freebsdelf3.01*)
17092     shlibpath_overrides_runpath=yes
17093     hardcode_into_libs=yes
17094     ;;
17095   *) # from 3.2 on
17096     shlibpath_overrides_runpath=no
17097     hardcode_into_libs=yes
17098     ;;
17099   esac
17100   ;;
17101
17102 gnu*)
17103   version_type=linux
17104   need_lib_prefix=no
17105   need_version=no
17106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17107   soname_spec='${libname}${release}${shared_ext}$major'
17108   shlibpath_var=LD_LIBRARY_PATH
17109   hardcode_into_libs=yes
17110   ;;
17111
17112 hpux9* | hpux10* | hpux11*)
17113   # Give a soname corresponding to the major version so that dld.sl refuses to
17114   # link against other versions.
17115   version_type=sunos
17116   need_lib_prefix=no
17117   need_version=no
17118   case "$host_cpu" in
17119   ia64*)
17120     shrext_cmds='.so'
17121     hardcode_into_libs=yes
17122     dynamic_linker="$host_os dld.so"
17123     shlibpath_var=LD_LIBRARY_PATH
17124     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17125     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17126     soname_spec='${libname}${release}${shared_ext}$major'
17127     if test "X$HPUX_IA64_MODE" = X32; then
17128       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17129     else
17130       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17131     fi
17132     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17133     ;;
17134    hppa*64*)
17135      shrext_cmds='.sl'
17136      hardcode_into_libs=yes
17137      dynamic_linker="$host_os dld.sl"
17138      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17139      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17140      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17141      soname_spec='${libname}${release}${shared_ext}$major'
17142      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17143      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17144      ;;
17145    *)
17146     shrext_cmds='.sl'
17147     dynamic_linker="$host_os dld.sl"
17148     shlibpath_var=SHLIB_PATH
17149     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17150     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17151     soname_spec='${libname}${release}${shared_ext}$major'
17152     ;;
17153   esac
17154   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17155   postinstall_cmds='chmod 555 $lib'
17156   ;;
17157
17158 irix5* | irix6* | nonstopux*)
17159   case $host_os in
17160     nonstopux*) version_type=nonstopux ;;
17161     *)
17162         if test "$lt_cv_prog_gnu_ld" = yes; then
17163                 version_type=linux
17164         else
17165                 version_type=irix
17166         fi ;;
17167   esac
17168   need_lib_prefix=no
17169   need_version=no
17170   soname_spec='${libname}${release}${shared_ext}$major'
17171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17172   case $host_os in
17173   irix5* | nonstopux*)
17174     libsuff= shlibsuff=
17175     ;;
17176   *)
17177     case $LD in # libtool.m4 will add one of these switches to LD
17178     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17179       libsuff= shlibsuff= libmagic=32-bit;;
17180     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17181       libsuff=32 shlibsuff=N32 libmagic=N32;;
17182     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17183       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17184     *) libsuff= shlibsuff= libmagic=never-match;;
17185     esac
17186     ;;
17187   esac
17188   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17189   shlibpath_overrides_runpath=no
17190   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17191   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17192   hardcode_into_libs=yes
17193   ;;
17194
17195 # No shared lib support for Linux oldld, aout, or coff.
17196 linux*oldld* | linux*aout* | linux*coff*)
17197   dynamic_linker=no
17198   ;;
17199
17200 # This must be Linux ELF.
17201 linux*)
17202   version_type=linux
17203   need_lib_prefix=no
17204   need_version=no
17205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206   soname_spec='${libname}${release}${shared_ext}$major'
17207   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17208   shlibpath_var=LD_LIBRARY_PATH
17209   shlibpath_overrides_runpath=no
17210   # This implies no fast_install, which is unacceptable.
17211   # Some rework will be needed to allow for fast_install
17212   # before this can be enabled.
17213   hardcode_into_libs=yes
17214
17215   # Append ld.so.conf contents to the search path
17216   if test -f /etc/ld.so.conf; then
17217     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17218     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17219   fi
17220
17221   # We used to test for /lib/ld.so.1 and disable shared libraries on
17222   # powerpc, because MkLinux only supported shared libraries with the
17223   # GNU dynamic linker.  Since this was broken with cross compilers,
17224   # most powerpc-linux boxes support dynamic linking these days and
17225   # people can always --disable-shared, the test was removed, and we
17226   # assume the GNU/Linux dynamic linker is in use.
17227   dynamic_linker='GNU/Linux ld.so'
17228   ;;
17229
17230 knetbsd*-gnu)
17231   version_type=linux
17232   need_lib_prefix=no
17233   need_version=no
17234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17235   soname_spec='${libname}${release}${shared_ext}$major'
17236   shlibpath_var=LD_LIBRARY_PATH
17237   shlibpath_overrides_runpath=no
17238   hardcode_into_libs=yes
17239   dynamic_linker='GNU ld.so'
17240   ;;
17241
17242 netbsd*)
17243   version_type=sunos
17244   need_lib_prefix=no
17245   need_version=no
17246   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17247     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17248     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17249     dynamic_linker='NetBSD (a.out) ld.so'
17250   else
17251     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17252     soname_spec='${libname}${release}${shared_ext}$major'
17253     dynamic_linker='NetBSD ld.elf_so'
17254   fi
17255   shlibpath_var=LD_LIBRARY_PATH
17256   shlibpath_overrides_runpath=yes
17257   hardcode_into_libs=yes
17258   ;;
17259
17260 newsos6)
17261   version_type=linux
17262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17263   shlibpath_var=LD_LIBRARY_PATH
17264   shlibpath_overrides_runpath=yes
17265   ;;
17266
17267 nto-qnx*)
17268   version_type=linux
17269   need_lib_prefix=no
17270   need_version=no
17271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17272   soname_spec='${libname}${release}${shared_ext}$major'
17273   shlibpath_var=LD_LIBRARY_PATH
17274   shlibpath_overrides_runpath=yes
17275   ;;
17276
17277 openbsd*)
17278   version_type=sunos
17279   need_lib_prefix=no
17280   need_version=no
17281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17282   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17283   shlibpath_var=LD_LIBRARY_PATH
17284   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17285     case $host_os in
17286       openbsd2.[89] | openbsd2.[89].*)
17287         shlibpath_overrides_runpath=no
17288         ;;
17289       *)
17290         shlibpath_overrides_runpath=yes
17291         ;;
17292       esac
17293   else
17294     shlibpath_overrides_runpath=yes
17295   fi
17296   ;;
17297
17298 os2*)
17299   libname_spec='$name'
17300   shrext_cmds=".dll"
17301   need_lib_prefix=no
17302   library_names_spec='$libname${shared_ext} $libname.a'
17303   dynamic_linker='OS/2 ld.exe'
17304   shlibpath_var=LIBPATH
17305   ;;
17306
17307 osf3* | osf4* | osf5*)
17308   version_type=osf
17309   need_lib_prefix=no
17310   need_version=no
17311   soname_spec='${libname}${release}${shared_ext}$major'
17312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17313   shlibpath_var=LD_LIBRARY_PATH
17314   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17315   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17316   ;;
17317
17318 sco3.2v5*)
17319   version_type=osf
17320   soname_spec='${libname}${release}${shared_ext}$major'
17321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17322   shlibpath_var=LD_LIBRARY_PATH
17323   ;;
17324
17325 solaris*)
17326   version_type=linux
17327   need_lib_prefix=no
17328   need_version=no
17329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17330   soname_spec='${libname}${release}${shared_ext}$major'
17331   shlibpath_var=LD_LIBRARY_PATH
17332   shlibpath_overrides_runpath=yes
17333   hardcode_into_libs=yes
17334   # ldd complains unless libraries are executable
17335   postinstall_cmds='chmod +x $lib'
17336   ;;
17337
17338 sunos4*)
17339   version_type=sunos
17340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17341   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17342   shlibpath_var=LD_LIBRARY_PATH
17343   shlibpath_overrides_runpath=yes
17344   if test "$with_gnu_ld" = yes; then
17345     need_lib_prefix=no
17346   fi
17347   need_version=yes
17348   ;;
17349
17350 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17351   version_type=linux
17352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17353   soname_spec='${libname}${release}${shared_ext}$major'
17354   shlibpath_var=LD_LIBRARY_PATH
17355   case $host_vendor in
17356     sni)
17357       shlibpath_overrides_runpath=no
17358       need_lib_prefix=no
17359       export_dynamic_flag_spec='${wl}-Blargedynsym'
17360       runpath_var=LD_RUN_PATH
17361       ;;
17362     siemens)
17363       need_lib_prefix=no
17364       ;;
17365     motorola)
17366       need_lib_prefix=no
17367       need_version=no
17368       shlibpath_overrides_runpath=no
17369       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17370       ;;
17371   esac
17372   ;;
17373
17374 sysv4*MP*)
17375   if test -d /usr/nec ;then
17376     version_type=linux
17377     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17378     soname_spec='$libname${shared_ext}.$major'
17379     shlibpath_var=LD_LIBRARY_PATH
17380   fi
17381   ;;
17382
17383 uts4*)
17384   version_type=linux
17385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17386   soname_spec='${libname}${release}${shared_ext}$major'
17387   shlibpath_var=LD_LIBRARY_PATH
17388   ;;
17389
17390 *)
17391   dynamic_linker=no
17392   ;;
17393 esac
17394 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17395 echo "${ECHO_T}$dynamic_linker" >&6
17396 test "$dynamic_linker" = no && can_build_shared=no
17397
17398 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17399 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17400 hardcode_action_CXX=
17401 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17402    test -n "$runpath_var_CXX" || \
17403    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17404
17405   # We can hardcode non-existant directories.
17406   if test "$hardcode_direct_CXX" != no &&
17407      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17408      # have to relink, otherwise we might link with an installed library
17409      # when we should be linking with a yet-to-be-installed one
17410      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17411      test "$hardcode_minus_L_CXX" != no; then
17412     # Linking always hardcodes the temporary library directory.
17413     hardcode_action_CXX=relink
17414   else
17415     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17416     hardcode_action_CXX=immediate
17417   fi
17418 else
17419   # We cannot hardcode anything, or else we can only hardcode existing
17420   # directories.
17421   hardcode_action_CXX=unsupported
17422 fi
17423 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17424 echo "${ECHO_T}$hardcode_action_CXX" >&6
17425
17426 if test "$hardcode_action_CXX" = relink; then
17427   # Fast installation is not supported
17428   enable_fast_install=no
17429 elif test "$shlibpath_overrides_runpath" = yes ||
17430      test "$enable_shared" = no; then
17431   # Fast installation is not necessary
17432   enable_fast_install=needless
17433 fi
17434
17435 striplib=
17436 old_striplib=
17437 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17438 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17439 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17440   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17441   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17442   echo "$as_me:$LINENO: result: yes" >&5
17443 echo "${ECHO_T}yes" >&6
17444 else
17445 # FIXME - insert some real tests, host_os isn't really good enough
17446   case $host_os in
17447    darwin*)
17448        if test -n "$STRIP" ; then
17449          striplib="$STRIP -x"
17450          echo "$as_me:$LINENO: result: yes" >&5
17451 echo "${ECHO_T}yes" >&6
17452        else
17453   echo "$as_me:$LINENO: result: no" >&5
17454 echo "${ECHO_T}no" >&6
17455 fi
17456        ;;
17457    *)
17458   echo "$as_me:$LINENO: result: no" >&5
17459 echo "${ECHO_T}no" >&6
17460     ;;
17461   esac
17462 fi
17463
17464 if test "x$enable_dlopen" != xyes; then
17465   enable_dlopen=unknown
17466   enable_dlopen_self=unknown
17467   enable_dlopen_self_static=unknown
17468 else
17469   lt_cv_dlopen=no
17470   lt_cv_dlopen_libs=
17471
17472   case $host_os in
17473   beos*)
17474     lt_cv_dlopen="load_add_on"
17475     lt_cv_dlopen_libs=
17476     lt_cv_dlopen_self=yes
17477     ;;
17478
17479   mingw* | pw32*)
17480     lt_cv_dlopen="LoadLibrary"
17481     lt_cv_dlopen_libs=
17482    ;;
17483
17484   cygwin*)
17485     lt_cv_dlopen="dlopen"
17486     lt_cv_dlopen_libs=
17487    ;;
17488
17489   darwin*)
17490   # if libdl is installed we need to link against it
17491     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17492 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17493 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17494   echo $ECHO_N "(cached) $ECHO_C" >&6
17495 else
17496   ac_check_lib_save_LIBS=$LIBS
17497 LIBS="-ldl  $LIBS"
17498 cat >conftest.$ac_ext <<_ACEOF
17499 /* confdefs.h.  */
17500 _ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h.  */
17504
17505 /* Override any gcc2 internal prototype to avoid an error.  */
17506 #ifdef __cplusplus
17507 extern "C"
17508 #endif
17509 /* We use char because int might match the return type of a gcc2
17510    builtin and then its argument prototype would still apply.  */
17511 char dlopen ();
17512 int
17513 main ()
17514 {
17515 dlopen ();
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_lib_dl_dlopen=yes
17543 else
17544   echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17546
17547 ac_cv_lib_dl_dlopen=no
17548 fi
17549 rm -f conftest.err conftest.$ac_objext \
17550       conftest$ac_exeext conftest.$ac_ext
17551 LIBS=$ac_check_lib_save_LIBS
17552 fi
17553 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17554 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17555 if test $ac_cv_lib_dl_dlopen = yes; then
17556   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17557 else
17558
17559     lt_cv_dlopen="dyld"
17560     lt_cv_dlopen_libs=
17561     lt_cv_dlopen_self=yes
17562
17563 fi
17564
17565    ;;
17566
17567   *)
17568     echo "$as_me:$LINENO: checking for shl_load" >&5
17569 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17570 if test "${ac_cv_func_shl_load+set}" = set; then
17571   echo $ECHO_N "(cached) $ECHO_C" >&6
17572 else
17573   cat >conftest.$ac_ext <<_ACEOF
17574 /* confdefs.h.  */
17575 _ACEOF
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h.  */
17579 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17581 #define shl_load innocuous_shl_load
17582
17583 /* System header to define __stub macros and hopefully few prototypes,
17584     which can conflict with char shl_load (); below.
17585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17586     <limits.h> exists even on freestanding compilers.  */
17587
17588 #ifdef __STDC__
17589 # include <limits.h>
17590 #else
17591 # include <assert.h>
17592 #endif
17593
17594 #undef shl_load
17595
17596 /* Override any gcc2 internal prototype to avoid an error.  */
17597 #ifdef __cplusplus
17598 extern "C"
17599 {
17600 #endif
17601 /* We use char because int might match the return type of a gcc2
17602    builtin and then its argument prototype would still apply.  */
17603 char shl_load ();
17604 /* The GNU C library defines this for functions which it implements
17605     to always fail with ENOSYS.  Some functions are actually named
17606     something starting with __ and the normal name is an alias.  */
17607 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17608 choke me
17609 #else
17610 char (*f) () = shl_load;
17611 #endif
17612 #ifdef __cplusplus
17613 }
17614 #endif
17615
17616 int
17617 main ()
17618 {
17619 return f != shl_load;
17620   ;
17621   return 0;
17622 }
17623 _ACEOF
17624 rm -f conftest.$ac_objext conftest$ac_exeext
17625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17626   (eval $ac_link) 2>conftest.er1
17627   ac_status=$?
17628   grep -v '^ *+' conftest.er1 >conftest.err
17629   rm -f conftest.er1
17630   cat conftest.err >&5
17631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); } &&
17633          { ac_try='test -z "$ac_cxx_werror_flag"
17634                          || test ! -s conftest.err'
17635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636   (eval $ac_try) 2>&5
17637   ac_status=$?
17638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639   (exit $ac_status); }; } &&
17640          { ac_try='test -s conftest$ac_exeext'
17641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642   (eval $ac_try) 2>&5
17643   ac_status=$?
17644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645   (exit $ac_status); }; }; then
17646   ac_cv_func_shl_load=yes
17647 else
17648   echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17650
17651 ac_cv_func_shl_load=no
17652 fi
17653 rm -f conftest.err conftest.$ac_objext \
17654       conftest$ac_exeext conftest.$ac_ext
17655 fi
17656 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17657 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17658 if test $ac_cv_func_shl_load = yes; then
17659   lt_cv_dlopen="shl_load"
17660 else
17661   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17662 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17663 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17664   echo $ECHO_N "(cached) $ECHO_C" >&6
17665 else
17666   ac_check_lib_save_LIBS=$LIBS
17667 LIBS="-ldld  $LIBS"
17668 cat >conftest.$ac_ext <<_ACEOF
17669 /* confdefs.h.  */
17670 _ACEOF
17671 cat confdefs.h >>conftest.$ac_ext
17672 cat >>conftest.$ac_ext <<_ACEOF
17673 /* end confdefs.h.  */
17674
17675 /* Override any gcc2 internal prototype to avoid an error.  */
17676 #ifdef __cplusplus
17677 extern "C"
17678 #endif
17679 /* We use char because int might match the return type of a gcc2
17680    builtin and then its argument prototype would still apply.  */
17681 char shl_load ();
17682 int
17683 main ()
17684 {
17685 shl_load ();
17686   ;
17687   return 0;
17688 }
17689 _ACEOF
17690 rm -f conftest.$ac_objext conftest$ac_exeext
17691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17692   (eval $ac_link) 2>conftest.er1
17693   ac_status=$?
17694   grep -v '^ *+' conftest.er1 >conftest.err
17695   rm -f conftest.er1
17696   cat conftest.err >&5
17697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698   (exit $ac_status); } &&
17699          { ac_try='test -z "$ac_cxx_werror_flag"
17700                          || test ! -s conftest.err'
17701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702   (eval $ac_try) 2>&5
17703   ac_status=$?
17704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705   (exit $ac_status); }; } &&
17706          { ac_try='test -s conftest$ac_exeext'
17707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708   (eval $ac_try) 2>&5
17709   ac_status=$?
17710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711   (exit $ac_status); }; }; then
17712   ac_cv_lib_dld_shl_load=yes
17713 else
17714   echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17716
17717 ac_cv_lib_dld_shl_load=no
17718 fi
17719 rm -f conftest.err conftest.$ac_objext \
17720       conftest$ac_exeext conftest.$ac_ext
17721 LIBS=$ac_check_lib_save_LIBS
17722 fi
17723 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17724 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17725 if test $ac_cv_lib_dld_shl_load = yes; then
17726   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17727 else
17728   echo "$as_me:$LINENO: checking for dlopen" >&5
17729 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17730 if test "${ac_cv_func_dlopen+set}" = set; then
17731   echo $ECHO_N "(cached) $ECHO_C" >&6
17732 else
17733   cat >conftest.$ac_ext <<_ACEOF
17734 /* confdefs.h.  */
17735 _ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h.  */
17739 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17741 #define dlopen innocuous_dlopen
17742
17743 /* System header to define __stub macros and hopefully few prototypes,
17744     which can conflict with char dlopen (); below.
17745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17746     <limits.h> exists even on freestanding compilers.  */
17747
17748 #ifdef __STDC__
17749 # include <limits.h>
17750 #else
17751 # include <assert.h>
17752 #endif
17753
17754 #undef dlopen
17755
17756 /* Override any gcc2 internal prototype to avoid an error.  */
17757 #ifdef __cplusplus
17758 extern "C"
17759 {
17760 #endif
17761 /* We use char because int might match the return type of a gcc2
17762    builtin and then its argument prototype would still apply.  */
17763 char dlopen ();
17764 /* The GNU C library defines this for functions which it implements
17765     to always fail with ENOSYS.  Some functions are actually named
17766     something starting with __ and the normal name is an alias.  */
17767 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17768 choke me
17769 #else
17770 char (*f) () = dlopen;
17771 #endif
17772 #ifdef __cplusplus
17773 }
17774 #endif
17775
17776 int
17777 main ()
17778 {
17779 return f != dlopen;
17780   ;
17781   return 0;
17782 }
17783 _ACEOF
17784 rm -f conftest.$ac_objext conftest$ac_exeext
17785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17786   (eval $ac_link) 2>conftest.er1
17787   ac_status=$?
17788   grep -v '^ *+' conftest.er1 >conftest.err
17789   rm -f conftest.er1
17790   cat conftest.err >&5
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); } &&
17793          { ac_try='test -z "$ac_cxx_werror_flag"
17794                          || test ! -s conftest.err'
17795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796   (eval $ac_try) 2>&5
17797   ac_status=$?
17798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799   (exit $ac_status); }; } &&
17800          { ac_try='test -s conftest$ac_exeext'
17801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802   (eval $ac_try) 2>&5
17803   ac_status=$?
17804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805   (exit $ac_status); }; }; then
17806   ac_cv_func_dlopen=yes
17807 else
17808   echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.$ac_ext >&5
17810
17811 ac_cv_func_dlopen=no
17812 fi
17813 rm -f conftest.err conftest.$ac_objext \
17814       conftest$ac_exeext conftest.$ac_ext
17815 fi
17816 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17817 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17818 if test $ac_cv_func_dlopen = yes; then
17819   lt_cv_dlopen="dlopen"
17820 else
17821   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17822 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17823 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17824   echo $ECHO_N "(cached) $ECHO_C" >&6
17825 else
17826   ac_check_lib_save_LIBS=$LIBS
17827 LIBS="-ldl  $LIBS"
17828 cat >conftest.$ac_ext <<_ACEOF
17829 /* confdefs.h.  */
17830 _ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h.  */
17834
17835 /* Override any gcc2 internal prototype to avoid an error.  */
17836 #ifdef __cplusplus
17837 extern "C"
17838 #endif
17839 /* We use char because int might match the return type of a gcc2
17840    builtin and then its argument prototype would still apply.  */
17841 char dlopen ();
17842 int
17843 main ()
17844 {
17845 dlopen ();
17846   ;
17847   return 0;
17848 }
17849 _ACEOF
17850 rm -f conftest.$ac_objext conftest$ac_exeext
17851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17852   (eval $ac_link) 2>conftest.er1
17853   ac_status=$?
17854   grep -v '^ *+' conftest.er1 >conftest.err
17855   rm -f conftest.er1
17856   cat conftest.err >&5
17857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858   (exit $ac_status); } &&
17859          { ac_try='test -z "$ac_cxx_werror_flag"
17860                          || test ! -s conftest.err'
17861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862   (eval $ac_try) 2>&5
17863   ac_status=$?
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); }; } &&
17866          { ac_try='test -s conftest$ac_exeext'
17867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868   (eval $ac_try) 2>&5
17869   ac_status=$?
17870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871   (exit $ac_status); }; }; then
17872   ac_cv_lib_dl_dlopen=yes
17873 else
17874   echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17876
17877 ac_cv_lib_dl_dlopen=no
17878 fi
17879 rm -f conftest.err conftest.$ac_objext \
17880       conftest$ac_exeext conftest.$ac_ext
17881 LIBS=$ac_check_lib_save_LIBS
17882 fi
17883 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17884 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17885 if test $ac_cv_lib_dl_dlopen = yes; then
17886   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17887 else
17888   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17889 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17890 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17891   echo $ECHO_N "(cached) $ECHO_C" >&6
17892 else
17893   ac_check_lib_save_LIBS=$LIBS
17894 LIBS="-lsvld  $LIBS"
17895 cat >conftest.$ac_ext <<_ACEOF
17896 /* confdefs.h.  */
17897 _ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h.  */
17901
17902 /* Override any gcc2 internal prototype to avoid an error.  */
17903 #ifdef __cplusplus
17904 extern "C"
17905 #endif
17906 /* We use char because int might match the return type of a gcc2
17907    builtin and then its argument prototype would still apply.  */
17908 char dlopen ();
17909 int
17910 main ()
17911 {
17912 dlopen ();
17913   ;
17914   return 0;
17915 }
17916 _ACEOF
17917 rm -f conftest.$ac_objext conftest$ac_exeext
17918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17919   (eval $ac_link) 2>conftest.er1
17920   ac_status=$?
17921   grep -v '^ *+' conftest.er1 >conftest.err
17922   rm -f conftest.er1
17923   cat conftest.err >&5
17924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); } &&
17926          { ac_try='test -z "$ac_cxx_werror_flag"
17927                          || test ! -s conftest.err'
17928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929   (eval $ac_try) 2>&5
17930   ac_status=$?
17931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932   (exit $ac_status); }; } &&
17933          { ac_try='test -s conftest$ac_exeext'
17934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935   (eval $ac_try) 2>&5
17936   ac_status=$?
17937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938   (exit $ac_status); }; }; then
17939   ac_cv_lib_svld_dlopen=yes
17940 else
17941   echo "$as_me: failed program was:" >&5
17942 sed 's/^/| /' conftest.$ac_ext >&5
17943
17944 ac_cv_lib_svld_dlopen=no
17945 fi
17946 rm -f conftest.err conftest.$ac_objext \
17947       conftest$ac_exeext conftest.$ac_ext
17948 LIBS=$ac_check_lib_save_LIBS
17949 fi
17950 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17951 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17952 if test $ac_cv_lib_svld_dlopen = yes; then
17953   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17954 else
17955   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17956 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17957 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17958   echo $ECHO_N "(cached) $ECHO_C" >&6
17959 else
17960   ac_check_lib_save_LIBS=$LIBS
17961 LIBS="-ldld  $LIBS"
17962 cat >conftest.$ac_ext <<_ACEOF
17963 /* confdefs.h.  */
17964 _ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h.  */
17968
17969 /* Override any gcc2 internal prototype to avoid an error.  */
17970 #ifdef __cplusplus
17971 extern "C"
17972 #endif
17973 /* We use char because int might match the return type of a gcc2
17974    builtin and then its argument prototype would still apply.  */
17975 char dld_link ();
17976 int
17977 main ()
17978 {
17979 dld_link ();
17980   ;
17981   return 0;
17982 }
17983 _ACEOF
17984 rm -f conftest.$ac_objext conftest$ac_exeext
17985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17986   (eval $ac_link) 2>conftest.er1
17987   ac_status=$?
17988   grep -v '^ *+' conftest.er1 >conftest.err
17989   rm -f conftest.er1
17990   cat conftest.err >&5
17991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992   (exit $ac_status); } &&
17993          { ac_try='test -z "$ac_cxx_werror_flag"
17994                          || test ! -s conftest.err'
17995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996   (eval $ac_try) 2>&5
17997   ac_status=$?
17998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999   (exit $ac_status); }; } &&
18000          { ac_try='test -s conftest$ac_exeext'
18001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002   (eval $ac_try) 2>&5
18003   ac_status=$?
18004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005   (exit $ac_status); }; }; then
18006   ac_cv_lib_dld_dld_link=yes
18007 else
18008   echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18010
18011 ac_cv_lib_dld_dld_link=no
18012 fi
18013 rm -f conftest.err conftest.$ac_objext \
18014       conftest$ac_exeext conftest.$ac_ext
18015 LIBS=$ac_check_lib_save_LIBS
18016 fi
18017 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18018 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18019 if test $ac_cv_lib_dld_dld_link = yes; then
18020   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18021 fi
18022
18023
18024 fi
18025
18026
18027 fi
18028
18029
18030 fi
18031
18032
18033 fi
18034
18035
18036 fi
18037
18038     ;;
18039   esac
18040
18041   if test "x$lt_cv_dlopen" != xno; then
18042     enable_dlopen=yes
18043   else
18044     enable_dlopen=no
18045   fi
18046
18047   case $lt_cv_dlopen in
18048   dlopen)
18049     save_CPPFLAGS="$CPPFLAGS"
18050     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18051
18052     save_LDFLAGS="$LDFLAGS"
18053     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18054
18055     save_LIBS="$LIBS"
18056     LIBS="$lt_cv_dlopen_libs $LIBS"
18057
18058     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18059 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18060 if test "${lt_cv_dlopen_self+set}" = set; then
18061   echo $ECHO_N "(cached) $ECHO_C" >&6
18062 else
18063           if test "$cross_compiling" = yes; then :
18064   lt_cv_dlopen_self=cross
18065 else
18066   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18067   lt_status=$lt_dlunknown
18068   cat > conftest.$ac_ext <<EOF
18069 #line 18069 "configure"
18070 #include "confdefs.h"
18071
18072 #if HAVE_DLFCN_H
18073 #include <dlfcn.h>
18074 #endif
18075
18076 #include <stdio.h>
18077
18078 #ifdef RTLD_GLOBAL
18079 #  define LT_DLGLOBAL           RTLD_GLOBAL
18080 #else
18081 #  ifdef DL_GLOBAL
18082 #    define LT_DLGLOBAL         DL_GLOBAL
18083 #  else
18084 #    define LT_DLGLOBAL         0
18085 #  endif
18086 #endif
18087
18088 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18089    find out it does not work in some platform. */
18090 #ifndef LT_DLLAZY_OR_NOW
18091 #  ifdef RTLD_LAZY
18092 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18093 #  else
18094 #    ifdef DL_LAZY
18095 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18096 #    else
18097 #      ifdef RTLD_NOW
18098 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18099 #      else
18100 #        ifdef DL_NOW
18101 #          define LT_DLLAZY_OR_NOW      DL_NOW
18102 #        else
18103 #          define LT_DLLAZY_OR_NOW      0
18104 #        endif
18105 #      endif
18106 #    endif
18107 #  endif
18108 #endif
18109
18110 #ifdef __cplusplus
18111 extern "C" void exit (int);
18112 #endif
18113
18114 void fnord() { int i=42;}
18115 int main ()
18116 {
18117   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18118   int status = $lt_dlunknown;
18119
18120   if (self)
18121     {
18122       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18123       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18124       /* dlclose (self); */
18125     }
18126
18127     exit (status);
18128 }
18129 EOF
18130   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18131   (eval $ac_link) 2>&5
18132   ac_status=$?
18133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18135     (./conftest; exit; ) 2>/dev/null
18136     lt_status=$?
18137     case x$lt_status in
18138       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18139       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18140       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18141     esac
18142   else :
18143     # compilation failed
18144     lt_cv_dlopen_self=no
18145   fi
18146 fi
18147 rm -fr conftest*
18148
18149
18150 fi
18151 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18152 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18153
18154     if test "x$lt_cv_dlopen_self" = xyes; then
18155       LDFLAGS="$LDFLAGS $link_static_flag"
18156       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18157 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18158 if test "${lt_cv_dlopen_self_static+set}" = set; then
18159   echo $ECHO_N "(cached) $ECHO_C" >&6
18160 else
18161           if test "$cross_compiling" = yes; then :
18162   lt_cv_dlopen_self_static=cross
18163 else
18164   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18165   lt_status=$lt_dlunknown
18166   cat > conftest.$ac_ext <<EOF
18167 #line 18167 "configure"
18168 #include "confdefs.h"
18169
18170 #if HAVE_DLFCN_H
18171 #include <dlfcn.h>
18172 #endif
18173
18174 #include <stdio.h>
18175
18176 #ifdef RTLD_GLOBAL
18177 #  define LT_DLGLOBAL           RTLD_GLOBAL
18178 #else
18179 #  ifdef DL_GLOBAL
18180 #    define LT_DLGLOBAL         DL_GLOBAL
18181 #  else
18182 #    define LT_DLGLOBAL         0
18183 #  endif
18184 #endif
18185
18186 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18187    find out it does not work in some platform. */
18188 #ifndef LT_DLLAZY_OR_NOW
18189 #  ifdef RTLD_LAZY
18190 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18191 #  else
18192 #    ifdef DL_LAZY
18193 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18194 #    else
18195 #      ifdef RTLD_NOW
18196 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18197 #      else
18198 #        ifdef DL_NOW
18199 #          define LT_DLLAZY_OR_NOW      DL_NOW
18200 #        else
18201 #          define LT_DLLAZY_OR_NOW      0
18202 #        endif
18203 #      endif
18204 #    endif
18205 #  endif
18206 #endif
18207
18208 #ifdef __cplusplus
18209 extern "C" void exit (int);
18210 #endif
18211
18212 void fnord() { int i=42;}
18213 int main ()
18214 {
18215   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18216   int status = $lt_dlunknown;
18217
18218   if (self)
18219     {
18220       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18221       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18222       /* dlclose (self); */
18223     }
18224
18225     exit (status);
18226 }
18227 EOF
18228   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18229   (eval $ac_link) 2>&5
18230   ac_status=$?
18231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18233     (./conftest; exit; ) 2>/dev/null
18234     lt_status=$?
18235     case x$lt_status in
18236       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18237       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18238       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18239     esac
18240   else :
18241     # compilation failed
18242     lt_cv_dlopen_self_static=no
18243   fi
18244 fi
18245 rm -fr conftest*
18246
18247
18248 fi
18249 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18250 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18251     fi
18252
18253     CPPFLAGS="$save_CPPFLAGS"
18254     LDFLAGS="$save_LDFLAGS"
18255     LIBS="$save_LIBS"
18256     ;;
18257   esac
18258
18259   case $lt_cv_dlopen_self in
18260   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18261   *) enable_dlopen_self=unknown ;;
18262   esac
18263
18264   case $lt_cv_dlopen_self_static in
18265   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18266   *) enable_dlopen_self_static=unknown ;;
18267   esac
18268 fi
18269
18270
18271 # The else clause should only fire when bootstrapping the
18272 # libtool distribution, otherwise you forgot to ship ltmain.sh
18273 # with your package, and you will get complaints that there are
18274 # no rules to generate ltmain.sh.
18275 if test -f "$ltmain"; then
18276   # See if we are running on zsh, and set the options which allow our commands through
18277   # without removal of \ escapes.
18278   if test -n "${ZSH_VERSION+set}" ; then
18279     setopt NO_GLOB_SUBST
18280   fi
18281   # Now quote all the things that may contain metacharacters while being
18282   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18283   # variables and quote the copies for generation of the libtool script.
18284   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18285     SED SHELL STRIP \
18286     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18287     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18288     deplibs_check_method reload_flag reload_cmds need_locks \
18289     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18290     lt_cv_sys_global_symbol_to_c_name_address \
18291     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18292     old_postinstall_cmds old_postuninstall_cmds \
18293     compiler_CXX \
18294     CC_CXX \
18295     LD_CXX \
18296     lt_prog_compiler_wl_CXX \
18297     lt_prog_compiler_pic_CXX \
18298     lt_prog_compiler_static_CXX \
18299     lt_prog_compiler_no_builtin_flag_CXX \
18300     export_dynamic_flag_spec_CXX \
18301     thread_safe_flag_spec_CXX \
18302     whole_archive_flag_spec_CXX \
18303     enable_shared_with_static_runtimes_CXX \
18304     old_archive_cmds_CXX \
18305     old_archive_from_new_cmds_CXX \
18306     predep_objects_CXX \
18307     postdep_objects_CXX \
18308     predeps_CXX \
18309     postdeps_CXX \
18310     compiler_lib_search_path_CXX \
18311     archive_cmds_CXX \
18312     archive_expsym_cmds_CXX \
18313     postinstall_cmds_CXX \
18314     postuninstall_cmds_CXX \
18315     old_archive_from_expsyms_cmds_CXX \
18316     allow_undefined_flag_CXX \
18317     no_undefined_flag_CXX \
18318     export_symbols_cmds_CXX \
18319     hardcode_libdir_flag_spec_CXX \
18320     hardcode_libdir_flag_spec_ld_CXX \
18321     hardcode_libdir_separator_CXX \
18322     hardcode_automatic_CXX \
18323     module_cmds_CXX \
18324     module_expsym_cmds_CXX \
18325     lt_cv_prog_compiler_c_o_CXX \
18326     exclude_expsyms_CXX \
18327     include_expsyms_CXX; do
18328
18329     case $var in
18330     old_archive_cmds_CXX | \
18331     old_archive_from_new_cmds_CXX | \
18332     archive_cmds_CXX | \
18333     archive_expsym_cmds_CXX | \
18334     module_cmds_CXX | \
18335     module_expsym_cmds_CXX | \
18336     old_archive_from_expsyms_cmds_CXX | \
18337     export_symbols_cmds_CXX | \
18338     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18339     postinstall_cmds | postuninstall_cmds | \
18340     old_postinstall_cmds | old_postuninstall_cmds | \
18341     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18342       # Double-quote double-evaled strings.
18343       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18344       ;;
18345     *)
18346       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18347       ;;
18348     esac
18349   done
18350
18351   case $lt_echo in
18352   *'\$0 --fallback-echo"')
18353     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18354     ;;
18355   esac
18356
18357 cfgfile="$ofile"
18358
18359   cat <<__EOF__ >> "$cfgfile"
18360 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18361
18362 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18363
18364 # Shell to use when invoking shell scripts.
18365 SHELL=$lt_SHELL
18366
18367 # Whether or not to build shared libraries.
18368 build_libtool_libs=$enable_shared
18369
18370 # Whether or not to build static libraries.
18371 build_old_libs=$enable_static
18372
18373 # Whether or not to add -lc for building shared libraries.
18374 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18375
18376 # Whether or not to disallow shared libs when runtime libs are static
18377 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18378
18379 # Whether or not to optimize for fast installation.
18380 fast_install=$enable_fast_install
18381
18382 # The host system.
18383 host_alias=$host_alias
18384 host=$host
18385
18386 # An echo program that does not interpret backslashes.
18387 echo=$lt_echo
18388
18389 # The archiver.
18390 AR=$lt_AR
18391 AR_FLAGS=$lt_AR_FLAGS
18392
18393 # A C compiler.
18394 LTCC=$lt_LTCC
18395
18396 # A language-specific compiler.
18397 CC=$lt_compiler_CXX
18398
18399 # Is the compiler the GNU C compiler?
18400 with_gcc=$GCC_CXX
18401
18402 # An ERE matcher.
18403 EGREP=$lt_EGREP
18404
18405 # The linker used to build libraries.
18406 LD=$lt_LD_CXX
18407
18408 # Whether we need hard or soft links.
18409 LN_S=$lt_LN_S
18410
18411 # A BSD-compatible nm program.
18412 NM=$lt_NM
18413
18414 # A symbol stripping program
18415 STRIP=$lt_STRIP
18416
18417 # Used to examine libraries when file_magic_cmd begins "file"
18418 MAGIC_CMD=$MAGIC_CMD
18419
18420 # Used on cygwin: DLL creation program.
18421 DLLTOOL="$DLLTOOL"
18422
18423 # Used on cygwin: object dumper.
18424 OBJDUMP="$OBJDUMP"
18425
18426 # Used on cygwin: assembler.
18427 AS="$AS"
18428
18429 # The name of the directory that contains temporary libtool files.
18430 objdir=$objdir
18431
18432 # How to create reloadable object files.
18433 reload_flag=$lt_reload_flag
18434 reload_cmds=$lt_reload_cmds
18435
18436 # How to pass a linker flag through the compiler.
18437 wl=$lt_lt_prog_compiler_wl_CXX
18438
18439 # Object file suffix (normally "o").
18440 objext="$ac_objext"
18441
18442 # Old archive suffix (normally "a").
18443 libext="$libext"
18444
18445 # Shared library suffix (normally ".so").
18446 shrext_cmds='$shrext_cmds'
18447
18448 # Executable file suffix (normally "").
18449 exeext="$exeext"
18450
18451 # Additional compiler flags for building library objects.
18452 pic_flag=$lt_lt_prog_compiler_pic_CXX
18453 pic_mode=$pic_mode
18454
18455 # What is the maximum length of a command?
18456 max_cmd_len=$lt_cv_sys_max_cmd_len
18457
18458 # Does compiler simultaneously support -c and -o options?
18459 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18460
18461 # Must we lock files when doing compilation ?
18462 need_locks=$lt_need_locks
18463
18464 # Do we need the lib prefix for modules?
18465 need_lib_prefix=$need_lib_prefix
18466
18467 # Do we need a version for libraries?
18468 need_version=$need_version
18469
18470 # Whether dlopen is supported.
18471 dlopen_support=$enable_dlopen
18472
18473 # Whether dlopen of programs is supported.
18474 dlopen_self=$enable_dlopen_self
18475
18476 # Whether dlopen of statically linked programs is supported.
18477 dlopen_self_static=$enable_dlopen_self_static
18478
18479 # Compiler flag to prevent dynamic linking.
18480 link_static_flag=$lt_lt_prog_compiler_static_CXX
18481
18482 # Compiler flag to turn off builtin functions.
18483 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18484
18485 # Compiler flag to allow reflexive dlopens.
18486 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18487
18488 # Compiler flag to generate shared objects directly from archives.
18489 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18490
18491 # Compiler flag to generate thread-safe objects.
18492 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18493
18494 # Library versioning type.
18495 version_type=$version_type
18496
18497 # Format of library name prefix.
18498 libname_spec=$lt_libname_spec
18499
18500 # List of archive names.  First name is the real one, the rest are links.
18501 # The last name is the one that the linker finds with -lNAME.
18502 library_names_spec=$lt_library_names_spec
18503
18504 # The coded name of the library, if different from the real name.
18505 soname_spec=$lt_soname_spec
18506
18507 # Commands used to build and install an old-style archive.
18508 RANLIB=$lt_RANLIB
18509 old_archive_cmds=$lt_old_archive_cmds_CXX
18510 old_postinstall_cmds=$lt_old_postinstall_cmds
18511 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18512
18513 # Create an old-style archive from a shared archive.
18514 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18515
18516 # Create a temporary old-style archive to link instead of a shared archive.
18517 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18518
18519 # Commands used to build and install a shared archive.
18520 archive_cmds=$lt_archive_cmds_CXX
18521 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18522 postinstall_cmds=$lt_postinstall_cmds
18523 postuninstall_cmds=$lt_postuninstall_cmds
18524
18525 # Commands used to build a loadable module (assumed same as above if empty)
18526 module_cmds=$lt_module_cmds_CXX
18527 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18528
18529 # Commands to strip libraries.
18530 old_striplib=$lt_old_striplib
18531 striplib=$lt_striplib
18532
18533 # Dependencies to place before the objects being linked to create a
18534 # shared library.
18535 predep_objects=$lt_predep_objects_CXX
18536
18537 # Dependencies to place after the objects being linked to create a
18538 # shared library.
18539 postdep_objects=$lt_postdep_objects_CXX
18540
18541 # Dependencies to place before the objects being linked to create a
18542 # shared library.
18543 predeps=$lt_predeps_CXX
18544
18545 # Dependencies to place after the objects being linked to create a
18546 # shared library.
18547 postdeps=$lt_postdeps_CXX
18548
18549 # The library search path used internally by the compiler when linking
18550 # a shared library.
18551 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18552
18553 # Method to check whether dependent libraries are shared objects.
18554 deplibs_check_method=$lt_deplibs_check_method
18555
18556 # Command to use when deplibs_check_method == file_magic.
18557 file_magic_cmd=$lt_file_magic_cmd
18558
18559 # Flag that allows shared libraries with undefined symbols to be built.
18560 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18561
18562 # Flag that forces no undefined symbols.
18563 no_undefined_flag=$lt_no_undefined_flag_CXX
18564
18565 # Commands used to finish a libtool library installation in a directory.
18566 finish_cmds=$lt_finish_cmds
18567
18568 # Same as above, but a single script fragment to be evaled but not shown.
18569 finish_eval=$lt_finish_eval
18570
18571 # Take the output of nm and produce a listing of raw symbols and C names.
18572 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18573
18574 # Transform the output of nm in a proper C declaration
18575 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18576
18577 # Transform the output of nm in a C name address pair
18578 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18579
18580 # This is the shared library runtime path variable.
18581 runpath_var=$runpath_var
18582
18583 # This is the shared library path variable.
18584 shlibpath_var=$shlibpath_var
18585
18586 # Is shlibpath searched before the hard-coded library search path?
18587 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18588
18589 # How to hardcode a shared library path into an executable.
18590 hardcode_action=$hardcode_action_CXX
18591
18592 # Whether we should hardcode library paths into libraries.
18593 hardcode_into_libs=$hardcode_into_libs
18594
18595 # Flag to hardcode \$libdir into a binary during linking.
18596 # This must work even if \$libdir does not exist.
18597 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18598
18599 # If ld is used when linking, flag to hardcode \$libdir into
18600 # a binary during linking. This must work even if \$libdir does
18601 # not exist.
18602 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18603
18604 # Whether we need a single -rpath flag with a separated argument.
18605 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18606
18607 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18608 # resulting binary.
18609 hardcode_direct=$hardcode_direct_CXX
18610
18611 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18612 # resulting binary.
18613 hardcode_minus_L=$hardcode_minus_L_CXX
18614
18615 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18616 # the resulting binary.
18617 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18618
18619 # Set to yes if building a shared library automatically hardcodes DIR into the library
18620 # and all subsequent libraries and executables linked against it.
18621 hardcode_automatic=$hardcode_automatic_CXX
18622
18623 # Variables whose values should be saved in libtool wrapper scripts and
18624 # restored at relink time.
18625 variables_saved_for_relink="$variables_saved_for_relink"
18626
18627 # Whether libtool must link a program against all its dependency libraries.
18628 link_all_deplibs=$link_all_deplibs_CXX
18629
18630 # Compile-time system search path for libraries
18631 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18632
18633 # Run-time system search path for libraries
18634 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18635
18636 # Fix the shell variable \$srcfile for the compiler.
18637 fix_srcfile_path="$fix_srcfile_path_CXX"
18638
18639 # Set to yes if exported symbols are required.
18640 always_export_symbols=$always_export_symbols_CXX
18641
18642 # The commands to list exported symbols.
18643 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18644
18645 # The commands to extract the exported symbol list from a shared archive.
18646 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18647
18648 # Symbols that should not be listed in the preloaded symbols.
18649 exclude_expsyms=$lt_exclude_expsyms_CXX
18650
18651 # Symbols that must always be exported.
18652 include_expsyms=$lt_include_expsyms_CXX
18653
18654 # ### END LIBTOOL TAG CONFIG: $tagname
18655
18656 __EOF__
18657
18658
18659 else
18660   # If there is no Makefile yet, we rely on a make rule to execute
18661   # `config.status --recheck' to rerun these tests and create the
18662   # libtool script then.
18663   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18664   if test -f "$ltmain_in"; then
18665     test -f Makefile && make "$ltmain"
18666   fi
18667 fi
18668
18669
18670 ac_ext=c
18671 ac_cpp='$CPP $CPPFLAGS'
18672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18675
18676 CC=$lt_save_CC
18677 LDCXX=$LD
18678 LD=$lt_save_LD
18679 GCC=$lt_save_GCC
18680 with_gnu_ldcxx=$with_gnu_ld
18681 with_gnu_ld=$lt_save_with_gnu_ld
18682 lt_cv_path_LDCXX=$lt_cv_path_LD
18683 lt_cv_path_LD=$lt_save_path_LD
18684 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18685 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18686
18687         else
18688           tagname=""
18689         fi
18690         ;;
18691
18692       F77)
18693         if test -n "$F77" && test "X$F77" != "Xno"; then
18694
18695 ac_ext=f
18696 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18697 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18698 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18699
18700
18701 archive_cmds_need_lc_F77=no
18702 allow_undefined_flag_F77=
18703 always_export_symbols_F77=no
18704 archive_expsym_cmds_F77=
18705 export_dynamic_flag_spec_F77=
18706 hardcode_direct_F77=no
18707 hardcode_libdir_flag_spec_F77=
18708 hardcode_libdir_flag_spec_ld_F77=
18709 hardcode_libdir_separator_F77=
18710 hardcode_minus_L_F77=no
18711 hardcode_automatic_F77=no
18712 module_cmds_F77=
18713 module_expsym_cmds_F77=
18714 link_all_deplibs_F77=unknown
18715 old_archive_cmds_F77=$old_archive_cmds
18716 no_undefined_flag_F77=
18717 whole_archive_flag_spec_F77=
18718 enable_shared_with_static_runtimes_F77=no
18719
18720 # Source file extension for f77 test sources.
18721 ac_ext=f
18722
18723 # Object file extension for compiled f77 test sources.
18724 objext=o
18725 objext_F77=$objext
18726
18727 # Code to be used in simple compile tests
18728 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18729
18730 # Code to be used in simple link tests
18731 lt_simple_link_test_code="      program t\n      end\n"
18732
18733 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18734
18735 # If no C compiler was specified, use CC.
18736 LTCC=${LTCC-"$CC"}
18737
18738 # Allow CC to be a program name with arguments.
18739 compiler=$CC
18740
18741
18742 # Allow CC to be a program name with arguments.
18743 lt_save_CC="$CC"
18744 CC=${F77-"f77"}
18745 compiler=$CC
18746 compiler_F77=$CC
18747 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18748
18749 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18750 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18751 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18752 echo "${ECHO_T}$can_build_shared" >&6
18753
18754 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18755 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18756 test "$can_build_shared" = "no" && enable_shared=no
18757
18758 # On AIX, shared libraries and static libraries use the same namespace, and
18759 # are all built from PIC.
18760 case "$host_os" in
18761 aix3*)
18762   test "$enable_shared" = yes && enable_static=no
18763   if test -n "$RANLIB"; then
18764     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18765     postinstall_cmds='$RANLIB $lib'
18766   fi
18767   ;;
18768 aix4* | aix5*)
18769   test "$enable_shared" = yes && enable_static=no
18770   ;;
18771 esac
18772 echo "$as_me:$LINENO: result: $enable_shared" >&5
18773 echo "${ECHO_T}$enable_shared" >&6
18774
18775 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18776 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18777 # Make sure either enable_shared or enable_static is yes.
18778 test "$enable_shared" = yes || enable_static=yes
18779 echo "$as_me:$LINENO: result: $enable_static" >&5
18780 echo "${ECHO_T}$enable_static" >&6
18781
18782 test "$ld_shlibs_F77" = no && can_build_shared=no
18783
18784 GCC_F77="$G77"
18785 LD_F77="$LD"
18786
18787 lt_prog_compiler_wl_F77=
18788 lt_prog_compiler_pic_F77=
18789 lt_prog_compiler_static_F77=
18790
18791 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18792 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18793
18794   if test "$GCC" = yes; then
18795     lt_prog_compiler_wl_F77='-Wl,'
18796     lt_prog_compiler_static_F77='-static'
18797
18798     case $host_os in
18799       aix*)
18800       # All AIX code is PIC.
18801       if test "$host_cpu" = ia64; then
18802         # AIX 5 now supports IA64 processor
18803         lt_prog_compiler_static_F77='-Bstatic'
18804       fi
18805       ;;
18806
18807     amigaos*)
18808       # FIXME: we need at least 68020 code to build shared libraries, but
18809       # adding the `-m68020' flag to GCC prevents building anything better,
18810       # like `-m68040'.
18811       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18812       ;;
18813
18814     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18815       # PIC is the default for these OSes.
18816       ;;
18817
18818     mingw* | pw32* | os2*)
18819       # This hack is so that the source file can tell whether it is being
18820       # built for inclusion in a dll (and should export symbols for example).
18821       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18822       ;;
18823
18824     darwin* | rhapsody*)
18825       # PIC is the default on this platform
18826       # Common symbols not allowed in MH_DYLIB files
18827       lt_prog_compiler_pic_F77='-fno-common'
18828       ;;
18829
18830     msdosdjgpp*)
18831       # Just because we use GCC doesn't mean we suddenly get shared libraries
18832       # on systems that don't support them.
18833       lt_prog_compiler_can_build_shared_F77=no
18834       enable_shared=no
18835       ;;
18836
18837     sysv4*MP*)
18838       if test -d /usr/nec; then
18839         lt_prog_compiler_pic_F77=-Kconform_pic
18840       fi
18841       ;;
18842
18843     hpux*)
18844       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18845       # not for PA HP-UX.
18846       case "$host_cpu" in
18847       hppa*64*|ia64*)
18848         # +Z the default
18849         ;;
18850       *)
18851         lt_prog_compiler_pic_F77='-fPIC'
18852         ;;
18853       esac
18854       ;;
18855
18856     *)
18857       lt_prog_compiler_pic_F77='-fPIC'
18858       ;;
18859     esac
18860   else
18861     # PORTME Check for flag to pass linker flags through the system compiler.
18862     case $host_os in
18863     aix*)
18864       lt_prog_compiler_wl_F77='-Wl,'
18865       if test "$host_cpu" = ia64; then
18866         # AIX 5 now supports IA64 processor
18867         lt_prog_compiler_static_F77='-Bstatic'
18868       else
18869         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18870       fi
18871       ;;
18872       darwin*)
18873         # PIC is the default on this platform
18874         # Common symbols not allowed in MH_DYLIB files
18875        case "$cc_basename" in
18876          xlc*)
18877          lt_prog_compiler_pic_F77='-qnocommon'
18878          lt_prog_compiler_wl_F77='-Wl,'
18879          ;;
18880        esac
18881        ;;
18882
18883     mingw* | pw32* | os2*)
18884       # This hack is so that the source file can tell whether it is being
18885       # built for inclusion in a dll (and should export symbols for example).
18886       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18887       ;;
18888
18889     hpux9* | hpux10* | hpux11*)
18890       lt_prog_compiler_wl_F77='-Wl,'
18891       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18892       # not for PA HP-UX.
18893       case "$host_cpu" in
18894       hppa*64*|ia64*)
18895         # +Z the default
18896         ;;
18897       *)
18898         lt_prog_compiler_pic_F77='+Z'
18899         ;;
18900       esac
18901       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18902       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18903       ;;
18904
18905     irix5* | irix6* | nonstopux*)
18906       lt_prog_compiler_wl_F77='-Wl,'
18907       # PIC (with -KPIC) is the default.
18908       lt_prog_compiler_static_F77='-non_shared'
18909       ;;
18910
18911     newsos6)
18912       lt_prog_compiler_pic_F77='-KPIC'
18913       lt_prog_compiler_static_F77='-Bstatic'
18914       ;;
18915
18916     linux*)
18917       case $CC in
18918       icc* | ecc*)
18919         lt_prog_compiler_wl_F77='-Wl,'
18920         lt_prog_compiler_pic_F77='-KPIC'
18921         lt_prog_compiler_static_F77='-static'
18922         ;;
18923       ccc*)
18924         lt_prog_compiler_wl_F77='-Wl,'
18925         # All Alpha code is PIC.
18926         lt_prog_compiler_static_F77='-non_shared'
18927         ;;
18928       esac
18929       ;;
18930
18931     osf3* | osf4* | osf5*)
18932       lt_prog_compiler_wl_F77='-Wl,'
18933       # All OSF/1 code is PIC.
18934       lt_prog_compiler_static_F77='-non_shared'
18935       ;;
18936
18937     sco3.2v5*)
18938       lt_prog_compiler_pic_F77='-Kpic'
18939       lt_prog_compiler_static_F77='-dn'
18940       ;;
18941
18942     solaris*)
18943       lt_prog_compiler_wl_F77='-Wl,'
18944       lt_prog_compiler_pic_F77='-KPIC'
18945       lt_prog_compiler_static_F77='-Bstatic'
18946       ;;
18947
18948     sunos4*)
18949       lt_prog_compiler_wl_F77='-Qoption ld '
18950       lt_prog_compiler_pic_F77='-PIC'
18951       lt_prog_compiler_static_F77='-Bstatic'
18952       ;;
18953
18954     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18955       lt_prog_compiler_wl_F77='-Wl,'
18956       lt_prog_compiler_pic_F77='-KPIC'
18957       lt_prog_compiler_static_F77='-Bstatic'
18958       ;;
18959
18960     sysv4*MP*)
18961       if test -d /usr/nec ;then
18962         lt_prog_compiler_pic_F77='-Kconform_pic'
18963         lt_prog_compiler_static_F77='-Bstatic'
18964       fi
18965       ;;
18966
18967     uts4*)
18968       lt_prog_compiler_pic_F77='-pic'
18969       lt_prog_compiler_static_F77='-Bstatic'
18970       ;;
18971
18972     *)
18973       lt_prog_compiler_can_build_shared_F77=no
18974       ;;
18975     esac
18976   fi
18977
18978 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18979 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18980
18981 #
18982 # Check to make sure the PIC flag actually works.
18983 #
18984 if test -n "$lt_prog_compiler_pic_F77"; then
18985
18986 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18987 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18988 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18989   echo $ECHO_N "(cached) $ECHO_C" >&6
18990 else
18991   lt_prog_compiler_pic_works_F77=no
18992   ac_outfile=conftest.$ac_objext
18993    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18994    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18995    # Insert the option either (1) after the last *FLAGS variable, or
18996    # (2) before a word containing "conftest.", or (3) at the end.
18997    # Note that $ac_compile itself does not contain backslashes and begins
18998    # with a dollar sign (not a hyphen), so the echo should work correctly.
18999    # The option is referenced via a variable to avoid confusing sed.
19000    lt_compile=`echo "$ac_compile" | $SED \
19001    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19002    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19003    -e 's:$: $lt_compiler_flag:'`
19004    (eval echo "\"\$as_me:19004: $lt_compile\"" >&5)
19005    (eval "$lt_compile" 2>conftest.err)
19006    ac_status=$?
19007    cat conftest.err >&5
19008    echo "$as_me:19008: \$? = $ac_status" >&5
19009    if (exit $ac_status) && test -s "$ac_outfile"; then
19010      # The compiler can only warn and ignore the option if not recognized
19011      # So say no if there are warnings
19012      if test ! -s conftest.err; then
19013        lt_prog_compiler_pic_works_F77=yes
19014      fi
19015    fi
19016    $rm conftest*
19017
19018 fi
19019 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19020 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19021
19022 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19023     case $lt_prog_compiler_pic_F77 in
19024      "" | " "*) ;;
19025      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19026      esac
19027 else
19028     lt_prog_compiler_pic_F77=
19029      lt_prog_compiler_can_build_shared_F77=no
19030 fi
19031
19032 fi
19033 case "$host_os" in
19034   # For platforms which do not support PIC, -DPIC is meaningless:
19035   *djgpp*)
19036     lt_prog_compiler_pic_F77=
19037     ;;
19038   *)
19039     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19040     ;;
19041 esac
19042
19043 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19044 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19045 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19046   echo $ECHO_N "(cached) $ECHO_C" >&6
19047 else
19048   lt_cv_prog_compiler_c_o_F77=no
19049    $rm -r conftest 2>/dev/null
19050    mkdir conftest
19051    cd conftest
19052    mkdir out
19053    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19054
19055    lt_compiler_flag="-o out/conftest2.$ac_objext"
19056    # Insert the option either (1) after the last *FLAGS variable, or
19057    # (2) before a word containing "conftest.", or (3) at the end.
19058    # Note that $ac_compile itself does not contain backslashes and begins
19059    # with a dollar sign (not a hyphen), so the echo should work correctly.
19060    lt_compile=`echo "$ac_compile" | $SED \
19061    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19062    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19063    -e 's:$: $lt_compiler_flag:'`
19064    (eval echo "\"\$as_me:19064: $lt_compile\"" >&5)
19065    (eval "$lt_compile" 2>out/conftest.err)
19066    ac_status=$?
19067    cat out/conftest.err >&5
19068    echo "$as_me:19068: \$? = $ac_status" >&5
19069    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19070    then
19071      # The compiler can only warn and ignore the option if not recognized
19072      # So say no if there are warnings
19073      if test ! -s out/conftest.err; then
19074        lt_cv_prog_compiler_c_o_F77=yes
19075      fi
19076    fi
19077    chmod u+w .
19078    $rm conftest*
19079    # SGI C++ compiler will create directory out/ii_files/ for
19080    # template instantiation
19081    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19082    $rm out/* && rmdir out
19083    cd ..
19084    rmdir conftest
19085    $rm conftest*
19086
19087 fi
19088 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19089 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19090
19091
19092 hard_links="nottested"
19093 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19094   # do not overwrite the value of need_locks provided by the user
19095   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19096 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19097   hard_links=yes
19098   $rm conftest*
19099   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19100   touch conftest.a
19101   ln conftest.a conftest.b 2>&5 || hard_links=no
19102   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19103   echo "$as_me:$LINENO: result: $hard_links" >&5
19104 echo "${ECHO_T}$hard_links" >&6
19105   if test "$hard_links" = no; then
19106     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19107 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19108     need_locks=warn
19109   fi
19110 else
19111   need_locks=no
19112 fi
19113
19114 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19115 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19116
19117   runpath_var=
19118   allow_undefined_flag_F77=
19119   enable_shared_with_static_runtimes_F77=no
19120   archive_cmds_F77=
19121   archive_expsym_cmds_F77=
19122   old_archive_From_new_cmds_F77=
19123   old_archive_from_expsyms_cmds_F77=
19124   export_dynamic_flag_spec_F77=
19125   whole_archive_flag_spec_F77=
19126   thread_safe_flag_spec_F77=
19127   hardcode_libdir_flag_spec_F77=
19128   hardcode_libdir_flag_spec_ld_F77=
19129   hardcode_libdir_separator_F77=
19130   hardcode_direct_F77=no
19131   hardcode_minus_L_F77=no
19132   hardcode_shlibpath_var_F77=unsupported
19133   link_all_deplibs_F77=unknown
19134   hardcode_automatic_F77=no
19135   module_cmds_F77=
19136   module_expsym_cmds_F77=
19137   always_export_symbols_F77=no
19138   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19139   # include_expsyms should be a list of space-separated symbols to be *always*
19140   # included in the symbol list
19141   include_expsyms_F77=
19142   # exclude_expsyms can be an extended regexp of symbols to exclude
19143   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19144   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19145   # as well as any symbol that contains `d'.
19146   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19147   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19148   # platforms (ab)use it in PIC code, but their linkers get confused if
19149   # the symbol is explicitly referenced.  Since portable code cannot
19150   # rely on this symbol name, it's probably fine to never include it in
19151   # preloaded symbol tables.
19152   extract_expsyms_cmds=
19153
19154   case $host_os in
19155   cygwin* | mingw* | pw32*)
19156     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19157     # When not using gcc, we currently assume that we are using
19158     # Microsoft Visual C++.
19159     if test "$GCC" != yes; then
19160       with_gnu_ld=no
19161     fi
19162     ;;
19163   openbsd*)
19164     with_gnu_ld=no
19165     ;;
19166   esac
19167
19168   ld_shlibs_F77=yes
19169   if test "$with_gnu_ld" = yes; then
19170     # If archive_cmds runs LD, not CC, wlarc should be empty
19171     wlarc='${wl}'
19172
19173     # See if GNU ld supports shared libraries.
19174     case $host_os in
19175     aix3* | aix4* | aix5*)
19176       # On AIX/PPC, the GNU linker is very broken
19177       if test "$host_cpu" != ia64; then
19178         ld_shlibs_F77=no
19179         cat <<EOF 1>&2
19180
19181 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19182 *** to be unable to reliably create shared libraries on AIX.
19183 *** Therefore, libtool is disabling shared libraries support.  If you
19184 *** really care for shared libraries, you may want to modify your PATH
19185 *** so that a non-GNU linker is found, and then restart.
19186
19187 EOF
19188       fi
19189       ;;
19190
19191     amigaos*)
19192       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)'
19193       hardcode_libdir_flag_spec_F77='-L$libdir'
19194       hardcode_minus_L_F77=yes
19195
19196       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19197       # that the semantics of dynamic libraries on AmigaOS, at least up
19198       # to version 4, is to share data among multiple programs linked
19199       # with the same dynamic library.  Since this doesn't match the
19200       # behavior of shared libraries on other platforms, we can't use
19201       # them.
19202       ld_shlibs_F77=no
19203       ;;
19204
19205     beos*)
19206       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19207         allow_undefined_flag_F77=unsupported
19208         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19209         # support --undefined.  This deserves some investigation.  FIXME
19210         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19211       else
19212         ld_shlibs_F77=no
19213       fi
19214       ;;
19215
19216     cygwin* | mingw* | pw32*)
19217       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19218       # as there is no search path for DLLs.
19219       hardcode_libdir_flag_spec_F77='-L$libdir'
19220       allow_undefined_flag_F77=unsupported
19221       always_export_symbols_F77=no
19222       enable_shared_with_static_runtimes_F77=yes
19223       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19224
19225       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19226         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19227         # If the export-symbols file already is a .def file (1st line
19228         # is EXPORTS), use it as is; otherwise, prepend...
19229         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19230           cp $export_symbols $output_objdir/$soname.def;
19231         else
19232           echo EXPORTS > $output_objdir/$soname.def;
19233           cat $export_symbols >> $output_objdir/$soname.def;
19234         fi~
19235         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19236       else
19237         ld_shlibs=no
19238       fi
19239       ;;
19240
19241     netbsd*)
19242       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19243         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19244         wlarc=
19245       else
19246         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19247         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19248       fi
19249       ;;
19250
19251     solaris* | sysv5*)
19252       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19253         ld_shlibs_F77=no
19254         cat <<EOF 1>&2
19255
19256 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19257 *** create shared libraries on Solaris systems.  Therefore, libtool
19258 *** is disabling shared libraries support.  We urge you to upgrade GNU
19259 *** binutils to release 2.9.1 or newer.  Another option is to modify
19260 *** your PATH or compiler configuration so that the native linker is
19261 *** used, and then restart.
19262
19263 EOF
19264       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19265         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19266         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19267       else
19268         ld_shlibs_F77=no
19269       fi
19270       ;;
19271
19272     sunos4*)
19273       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19274       wlarc=
19275       hardcode_direct_F77=yes
19276       hardcode_shlibpath_var_F77=no
19277       ;;
19278
19279   linux*)
19280     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19281         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19282         archive_cmds_F77="$tmp_archive_cmds"
19283       supports_anon_versioning=no
19284       case `$LD -v 2>/dev/null` in
19285         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19286         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19287         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19288         *\ 2.11.*) ;; # other 2.11 versions
19289         *) supports_anon_versioning=yes ;;
19290       esac
19291       if test $supports_anon_versioning = yes; then
19292         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19293 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19294 $echo "local: *; };" >> $output_objdir/$libname.ver~
19295         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19296       else
19297         archive_expsym_cmds_F77="$tmp_archive_cmds"
19298       fi
19299     else
19300       ld_shlibs_F77=no
19301     fi
19302     ;;
19303
19304     *)
19305       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19306         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19307         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19308       else
19309         ld_shlibs_F77=no
19310       fi
19311       ;;
19312     esac
19313
19314     if test "$ld_shlibs_F77" = yes; then
19315       runpath_var=LD_RUN_PATH
19316       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19317       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19318       # ancient GNU ld didn't support --whole-archive et. al.
19319       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19320         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19321       else
19322         whole_archive_flag_spec_F77=
19323       fi
19324     fi
19325   else
19326     # PORTME fill in a description of your system's linker (not GNU ld)
19327     case $host_os in
19328     aix3*)
19329       allow_undefined_flag_F77=unsupported
19330       always_export_symbols_F77=yes
19331       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'
19332       # Note: this linker hardcodes the directories in LIBPATH if there
19333       # are no directories specified by -L.
19334       hardcode_minus_L_F77=yes
19335       if test "$GCC" = yes && test -z "$link_static_flag"; then
19336         # Neither direct hardcoding nor static linking is supported with a
19337         # broken collect2.
19338         hardcode_direct_F77=unsupported
19339       fi
19340       ;;
19341
19342     aix4* | aix5*)
19343       if test "$host_cpu" = ia64; then
19344         # On IA64, the linker does run time linking by default, so we don't
19345         # have to do anything special.
19346         aix_use_runtimelinking=no
19347         exp_sym_flag='-Bexport'
19348         no_entry_flag=""
19349       else
19350         # If we're using GNU nm, then we don't want the "-C" option.
19351         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19352         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19353           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'
19354         else
19355           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'
19356         fi
19357         aix_use_runtimelinking=no
19358
19359         # Test if we are trying to use run time linking or normal
19360         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19361         # need to do runtime linking.
19362         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19363           for ld_flag in $LDFLAGS; do
19364           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19365             aix_use_runtimelinking=yes
19366             break
19367           fi
19368           done
19369         esac
19370
19371         exp_sym_flag='-bexport'
19372         no_entry_flag='-bnoentry'
19373       fi
19374
19375       # When large executables or shared objects are built, AIX ld can
19376       # have problems creating the table of contents.  If linking a library
19377       # or program results in "error TOC overflow" add -mminimal-toc to
19378       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19379       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19380
19381       archive_cmds_F77=''
19382       hardcode_direct_F77=yes
19383       hardcode_libdir_separator_F77=':'
19384       link_all_deplibs_F77=yes
19385
19386       if test "$GCC" = yes; then
19387         case $host_os in aix4.012|aix4.012.*)
19388         # We only want to do this on AIX 4.2 and lower, the check
19389         # below for broken collect2 doesn't work under 4.3+
19390           collect2name=`${CC} -print-prog-name=collect2`
19391           if test -f "$collect2name" && \
19392            strings "$collect2name" | grep resolve_lib_name >/dev/null
19393           then
19394           # We have reworked collect2
19395           hardcode_direct_F77=yes
19396           else
19397           # We have old collect2
19398           hardcode_direct_F77=unsupported
19399           # It fails to find uninstalled libraries when the uninstalled
19400           # path is not listed in the libpath.  Setting hardcode_minus_L
19401           # to unsupported forces relinking
19402           hardcode_minus_L_F77=yes
19403           hardcode_libdir_flag_spec_F77='-L$libdir'
19404           hardcode_libdir_separator_F77=
19405           fi
19406         esac
19407         shared_flag='-shared'
19408       else
19409         # not using gcc
19410         if test "$host_cpu" = ia64; then
19411         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19412         # chokes on -Wl,-G. The following line is correct:
19413           shared_flag='-G'
19414         else
19415         if test "$aix_use_runtimelinking" = yes; then
19416             shared_flag='${wl}-G'
19417           else
19418             shared_flag='${wl}-bM:SRE'
19419         fi
19420         fi
19421       fi
19422
19423       # It seems that -bexpall does not export symbols beginning with
19424       # underscore (_), so it is better to generate a list of symbols to export.
19425       always_export_symbols_F77=yes
19426       if test "$aix_use_runtimelinking" = yes; then
19427         # Warning - without using the other runtime loading flags (-brtl),
19428         # -berok will link without error, but may produce a broken library.
19429         allow_undefined_flag_F77='-berok'
19430        # Determine the default libpath from the value encoded in an empty executable.
19431        cat >conftest.$ac_ext <<_ACEOF
19432       program main
19433
19434       end
19435 _ACEOF
19436 rm -f conftest.$ac_objext conftest$ac_exeext
19437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19438   (eval $ac_link) 2>conftest.er1
19439   ac_status=$?
19440   grep -v '^ *+' conftest.er1 >conftest.err
19441   rm -f conftest.er1
19442   cat conftest.err >&5
19443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444   (exit $ac_status); } &&
19445          { ac_try='test -z "$ac_f77_werror_flag"
19446                          || test ! -s conftest.err'
19447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448   (eval $ac_try) 2>&5
19449   ac_status=$?
19450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451   (exit $ac_status); }; } &&
19452          { ac_try='test -s conftest$ac_exeext'
19453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454   (eval $ac_try) 2>&5
19455   ac_status=$?
19456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457   (exit $ac_status); }; }; then
19458
19459 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19460 }'`
19461 # Check for a 64-bit object if we didn't find anything.
19462 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; }
19463 }'`; fi
19464 else
19465   echo "$as_me: failed program was:" >&5
19466 sed 's/^/| /' conftest.$ac_ext >&5
19467
19468 fi
19469 rm -f conftest.err conftest.$ac_objext \
19470       conftest$ac_exeext conftest.$ac_ext
19471 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19472
19473        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19474         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"
19475        else
19476         if test "$host_cpu" = ia64; then
19477           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19478           allow_undefined_flag_F77="-z nodefs"
19479           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"
19480         else
19481          # Determine the default libpath from the value encoded in an empty executable.
19482          cat >conftest.$ac_ext <<_ACEOF
19483       program main
19484
19485       end
19486 _ACEOF
19487 rm -f conftest.$ac_objext conftest$ac_exeext
19488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19489   (eval $ac_link) 2>conftest.er1
19490   ac_status=$?
19491   grep -v '^ *+' conftest.er1 >conftest.err
19492   rm -f conftest.er1
19493   cat conftest.err >&5
19494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495   (exit $ac_status); } &&
19496          { ac_try='test -z "$ac_f77_werror_flag"
19497                          || test ! -s conftest.err'
19498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19499   (eval $ac_try) 2>&5
19500   ac_status=$?
19501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502   (exit $ac_status); }; } &&
19503          { ac_try='test -s conftest$ac_exeext'
19504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505   (eval $ac_try) 2>&5
19506   ac_status=$?
19507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508   (exit $ac_status); }; }; then
19509
19510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19511 }'`
19512 # Check for a 64-bit object if we didn't find anything.
19513 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; }
19514 }'`; fi
19515 else
19516   echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19518
19519 fi
19520 rm -f conftest.err conftest.$ac_objext \
19521       conftest$ac_exeext conftest.$ac_ext
19522 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19523
19524          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19525           # Warning - without using the other run time loading flags,
19526           # -berok will link without error, but may produce a broken library.
19527           no_undefined_flag_F77=' ${wl}-bernotok'
19528           allow_undefined_flag_F77=' ${wl}-berok'
19529           # -bexpall does not export symbols beginning with underscore (_)
19530           always_export_symbols_F77=yes
19531           # Exported symbols can be pulled into shared objects from archives
19532           whole_archive_flag_spec_F77=' '
19533           archive_cmds_need_lc_F77=yes
19534           # This is similar to how AIX traditionally builds it's shared libraries.
19535           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'
19536         fi
19537       fi
19538       ;;
19539
19540     amigaos*)
19541       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)'
19542       hardcode_libdir_flag_spec_F77='-L$libdir'
19543       hardcode_minus_L_F77=yes
19544       # see comment about different semantics on the GNU ld section
19545       ld_shlibs_F77=no
19546       ;;
19547
19548     bsdi[45]*)
19549       export_dynamic_flag_spec_F77=-rdynamic
19550       ;;
19551
19552     cygwin* | mingw* | pw32*)
19553       # When not using gcc, we currently assume that we are using
19554       # Microsoft Visual C++.
19555       # hardcode_libdir_flag_spec is actually meaningless, as there is
19556       # no search path for DLLs.
19557       hardcode_libdir_flag_spec_F77=' '
19558       allow_undefined_flag_F77=unsupported
19559       # Tell ltmain to make .lib files, not .a files.
19560       libext=lib
19561       # Tell ltmain to make .dll files, not .so files.
19562       shrext_cmds=".dll"
19563       # FIXME: Setting linknames here is a bad hack.
19564       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19565       # The linker will automatically build a .lib file if we build a DLL.
19566       old_archive_From_new_cmds_F77='true'
19567       # FIXME: Should let the user specify the lib program.
19568       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19569       fix_srcfile_path='`cygpath -w "$srcfile"`'
19570       enable_shared_with_static_runtimes_F77=yes
19571       ;;
19572
19573     darwin* | rhapsody*)
19574       case "$host_os" in
19575         rhapsody* | darwin1.[012])
19576          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19577          ;;
19578        *) # Darwin 1.3 on
19579          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19580            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19581          else
19582            case ${MACOSX_DEPLOYMENT_TARGET} in
19583              10.[012])
19584                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19585                ;;
19586              10.*)
19587                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19588                ;;
19589            esac
19590          fi
19591          ;;
19592       esac
19593       archive_cmds_need_lc_F77=no
19594       hardcode_direct_F77=no
19595       hardcode_automatic_F77=yes
19596       hardcode_shlibpath_var_F77=unsupported
19597       whole_archive_flag_spec_F77=''
19598       link_all_deplibs_F77=yes
19599     if test "$GCC" = yes ; then
19600         output_verbose_link_cmd='echo'
19601         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19602       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19603       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19604       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}'
19605       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}'
19606     else
19607       case "$cc_basename" in
19608         xlc*)
19609          output_verbose_link_cmd='echo'
19610          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19611          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19612           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19613          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}'
19614           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}'
19615           ;;
19616        *)
19617          ld_shlibs_F77=no
19618           ;;
19619       esac
19620     fi
19621       ;;
19622
19623     dgux*)
19624       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19625       hardcode_libdir_flag_spec_F77='-L$libdir'
19626       hardcode_shlibpath_var_F77=no
19627       ;;
19628
19629     freebsd1*)
19630       ld_shlibs_F77=no
19631       ;;
19632
19633     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19634     # support.  Future versions do this automatically, but an explicit c++rt0.o
19635     # does not break anything, and helps significantly (at the cost of a little
19636     # extra space).
19637     freebsd2.2*)
19638       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19639       hardcode_libdir_flag_spec_F77='-R$libdir'
19640       hardcode_direct_F77=yes
19641       hardcode_shlibpath_var_F77=no
19642       ;;
19643
19644     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19645     freebsd2*)
19646       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19647       hardcode_direct_F77=yes
19648       hardcode_minus_L_F77=yes
19649       hardcode_shlibpath_var_F77=no
19650       ;;
19651
19652     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19653     freebsd* | kfreebsd*-gnu)
19654       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19655       hardcode_libdir_flag_spec_F77='-R$libdir'
19656       hardcode_direct_F77=yes
19657       hardcode_shlibpath_var_F77=no
19658       ;;
19659
19660     hpux9*)
19661       if test "$GCC" = yes; then
19662         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'
19663       else
19664         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'
19665       fi
19666       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19667       hardcode_libdir_separator_F77=:
19668       hardcode_direct_F77=yes
19669
19670       # hardcode_minus_L: Not really in the search PATH,
19671       # but as the default location of the library.
19672       hardcode_minus_L_F77=yes
19673       export_dynamic_flag_spec_F77='${wl}-E'
19674       ;;
19675
19676     hpux10* | hpux11*)
19677       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19678         case "$host_cpu" in
19679         hppa*64*|ia64*)
19680           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19681           ;;
19682         *)
19683           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19684           ;;
19685         esac
19686       else
19687         case "$host_cpu" in
19688         hppa*64*|ia64*)
19689           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19690           ;;
19691         *)
19692           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19693           ;;
19694         esac
19695       fi
19696       if test "$with_gnu_ld" = no; then
19697         case "$host_cpu" in
19698         hppa*64*)
19699           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19700           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19701           hardcode_libdir_separator_F77=:
19702           hardcode_direct_F77=no
19703           hardcode_shlibpath_var_F77=no
19704           ;;
19705         ia64*)
19706           hardcode_libdir_flag_spec_F77='-L$libdir'
19707           hardcode_direct_F77=no
19708           hardcode_shlibpath_var_F77=no
19709
19710           # hardcode_minus_L: Not really in the search PATH,
19711           # but as the default location of the library.
19712           hardcode_minus_L_F77=yes
19713           ;;
19714         *)
19715           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19716           hardcode_libdir_separator_F77=:
19717           hardcode_direct_F77=yes
19718           export_dynamic_flag_spec_F77='${wl}-E'
19719
19720           # hardcode_minus_L: Not really in the search PATH,
19721           # but as the default location of the library.
19722           hardcode_minus_L_F77=yes
19723           ;;
19724         esac
19725       fi
19726       ;;
19727
19728     irix5* | irix6* | nonstopux*)
19729       if test "$GCC" = yes; then
19730         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'
19731       else
19732         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'
19733         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19734       fi
19735       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19736       hardcode_libdir_separator_F77=:
19737       link_all_deplibs_F77=yes
19738       ;;
19739
19740     netbsd*)
19741       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19742         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19743       else
19744         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19745       fi
19746       hardcode_libdir_flag_spec_F77='-R$libdir'
19747       hardcode_direct_F77=yes
19748       hardcode_shlibpath_var_F77=no
19749       ;;
19750
19751     newsos6)
19752       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19753       hardcode_direct_F77=yes
19754       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19755       hardcode_libdir_separator_F77=:
19756       hardcode_shlibpath_var_F77=no
19757       ;;
19758
19759     openbsd*)
19760       hardcode_direct_F77=yes
19761       hardcode_shlibpath_var_F77=no
19762       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19763         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19764         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19765         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19766         export_dynamic_flag_spec_F77='${wl}-E'
19767       else
19768        case $host_os in
19769          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19770            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19771            hardcode_libdir_flag_spec_F77='-R$libdir'
19772            ;;
19773          *)
19774            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19775            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19776            ;;
19777        esac
19778       fi
19779       ;;
19780
19781     os2*)
19782       hardcode_libdir_flag_spec_F77='-L$libdir'
19783       hardcode_minus_L_F77=yes
19784       allow_undefined_flag_F77=unsupported
19785       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'
19786       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19787       ;;
19788
19789     osf3*)
19790       if test "$GCC" = yes; then
19791         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19792         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'
19793       else
19794         allow_undefined_flag_F77=' -expect_unresolved \*'
19795         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'
19796       fi
19797       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19798       hardcode_libdir_separator_F77=:
19799       ;;
19800
19801     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19802       if test "$GCC" = yes; then
19803         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19804         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'
19805         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19806       else
19807         allow_undefined_flag_F77=' -expect_unresolved \*'
19808         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'
19809         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~
19810         $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'
19811
19812         # Both c and cxx compiler support -rpath directly
19813         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19814       fi
19815       hardcode_libdir_separator_F77=:
19816       ;;
19817
19818     sco3.2v5*)
19819       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19820       hardcode_shlibpath_var_F77=no
19821       export_dynamic_flag_spec_F77='${wl}-Bexport'
19822       runpath_var=LD_RUN_PATH
19823       hardcode_runpath_var=yes
19824       ;;
19825
19826     solaris*)
19827       no_undefined_flag_F77=' -z text'
19828       if test "$GCC" = yes; then
19829         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19830         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19831           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19832       else
19833         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19834         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19835         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19836       fi
19837       hardcode_libdir_flag_spec_F77='-R$libdir'
19838       hardcode_shlibpath_var_F77=no
19839       case $host_os in
19840       solaris2.[0-5] | solaris2.[0-5].*) ;;
19841       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19842         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19843       esac
19844       link_all_deplibs_F77=yes
19845       ;;
19846
19847     sunos4*)
19848       if test "x$host_vendor" = xsequent; then
19849         # Use $CC to link under sequent, because it throws in some extra .o
19850         # files that make .init and .fini sections work.
19851         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19852       else
19853         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19854       fi
19855       hardcode_libdir_flag_spec_F77='-L$libdir'
19856       hardcode_direct_F77=yes
19857       hardcode_minus_L_F77=yes
19858       hardcode_shlibpath_var_F77=no
19859       ;;
19860
19861     sysv4)
19862       case $host_vendor in
19863         sni)
19864           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19865           hardcode_direct_F77=yes # is this really true???
19866         ;;
19867         siemens)
19868           ## LD is ld it makes a PLAMLIB
19869           ## CC just makes a GrossModule.
19870           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19871           reload_cmds_F77='$CC -r -o $output$reload_objs'
19872           hardcode_direct_F77=no
19873         ;;
19874         motorola)
19875           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19876           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19877         ;;
19878       esac
19879       runpath_var='LD_RUN_PATH'
19880       hardcode_shlibpath_var_F77=no
19881       ;;
19882
19883     sysv4.3*)
19884       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19885       hardcode_shlibpath_var_F77=no
19886       export_dynamic_flag_spec_F77='-Bexport'
19887       ;;
19888
19889     sysv4*MP*)
19890       if test -d /usr/nec; then
19891         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19892         hardcode_shlibpath_var_F77=no
19893         runpath_var=LD_RUN_PATH
19894         hardcode_runpath_var=yes
19895         ld_shlibs_F77=yes
19896       fi
19897       ;;
19898
19899     sysv4.2uw2*)
19900       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19901       hardcode_direct_F77=yes
19902       hardcode_minus_L_F77=no
19903       hardcode_shlibpath_var_F77=no
19904       hardcode_runpath_var=yes
19905       runpath_var=LD_RUN_PATH
19906       ;;
19907
19908    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19909       no_undefined_flag_F77='${wl}-z ${wl}text'
19910       if test "$GCC" = yes; then
19911         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19912       else
19913         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19914       fi
19915       runpath_var='LD_RUN_PATH'
19916       hardcode_shlibpath_var_F77=no
19917       ;;
19918
19919     sysv5*)
19920       no_undefined_flag_F77=' -z text'
19921       # $CC -shared without GNU ld will not create a library from C++
19922       # object files and a static libstdc++, better avoid it by now
19923       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19924       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19925                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19926       hardcode_libdir_flag_spec_F77=
19927       hardcode_shlibpath_var_F77=no
19928       runpath_var='LD_RUN_PATH'
19929       ;;
19930
19931     uts4*)
19932       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19933       hardcode_libdir_flag_spec_F77='-L$libdir'
19934       hardcode_shlibpath_var_F77=no
19935       ;;
19936
19937     *)
19938       ld_shlibs_F77=no
19939       ;;
19940     esac
19941   fi
19942
19943 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19944 echo "${ECHO_T}$ld_shlibs_F77" >&6
19945 test "$ld_shlibs_F77" = no && can_build_shared=no
19946
19947 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19948 if test "$GCC" = yes; then
19949   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19950 fi
19951
19952 #
19953 # Do we need to explicitly link libc?
19954 #
19955 case "x$archive_cmds_need_lc_F77" in
19956 x|xyes)
19957   # Assume -lc should be added
19958   archive_cmds_need_lc_F77=yes
19959
19960   if test "$enable_shared" = yes && test "$GCC" = yes; then
19961     case $archive_cmds_F77 in
19962     *'~'*)
19963       # FIXME: we may have to deal with multi-command sequences.
19964       ;;
19965     '$CC '*)
19966       # Test whether the compiler implicitly links with -lc since on some
19967       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19968       # to ld, don't add -lc before -lgcc.
19969       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19970 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19971       $rm conftest*
19972       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19973
19974       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19975   (eval $ac_compile) 2>&5
19976   ac_status=$?
19977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978   (exit $ac_status); } 2>conftest.err; then
19979         soname=conftest
19980         lib=conftest
19981         libobjs=conftest.$ac_objext
19982         deplibs=
19983         wl=$lt_prog_compiler_wl_F77
19984         compiler_flags=-v
19985         linker_flags=-v
19986         verstring=
19987         output_objdir=.
19988         libname=conftest
19989         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19990         allow_undefined_flag_F77=
19991         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19992   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19993   ac_status=$?
19994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995   (exit $ac_status); }
19996         then
19997           archive_cmds_need_lc_F77=no
19998         else
19999           archive_cmds_need_lc_F77=yes
20000         fi
20001         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20002       else
20003         cat conftest.err 1>&5
20004       fi
20005       $rm conftest*
20006       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20007 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20008       ;;
20009     esac
20010   fi
20011   ;;
20012 esac
20013
20014 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20015 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20016 library_names_spec=
20017 libname_spec='lib$name'
20018 soname_spec=
20019 shrext_cmds=".so"
20020 postinstall_cmds=
20021 postuninstall_cmds=
20022 finish_cmds=
20023 finish_eval=
20024 shlibpath_var=
20025 shlibpath_overrides_runpath=unknown
20026 version_type=none
20027 dynamic_linker="$host_os ld.so"
20028 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20029 if test "$GCC" = yes; then
20030   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20031   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20032     # if the path contains ";" then we assume it to be the separator
20033     # otherwise default to the standard path separator (i.e. ":") - it is
20034     # assumed that no part of a normal pathname contains ";" but that should
20035     # okay in the real world where ";" in dirpaths is itself problematic.
20036     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20037   else
20038     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20039   fi
20040 else
20041   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20042 fi
20043 need_lib_prefix=unknown
20044 hardcode_into_libs=no
20045
20046 # when you set need_version to no, make sure it does not cause -set_version
20047 # flags to be left without arguments
20048 need_version=unknown
20049
20050 case $host_os in
20051 aix3*)
20052   version_type=linux
20053   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20054   shlibpath_var=LIBPATH
20055
20056   # AIX 3 has no versioning support, so we append a major version to the name.
20057   soname_spec='${libname}${release}${shared_ext}$major'
20058   ;;
20059
20060 aix4* | aix5*)
20061   version_type=linux
20062   need_lib_prefix=no
20063   need_version=no
20064   hardcode_into_libs=yes
20065   if test "$host_cpu" = ia64; then
20066     # AIX 5 supports IA64
20067     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20068     shlibpath_var=LD_LIBRARY_PATH
20069   else
20070     # With GCC up to 2.95.x, collect2 would create an import file
20071     # for dependence libraries.  The import file would start with
20072     # the line `#! .'.  This would cause the generated library to
20073     # depend on `.', always an invalid library.  This was fixed in
20074     # development snapshots of GCC prior to 3.0.
20075     case $host_os in
20076       aix4 | aix4.[01] | aix4.[01].*)
20077       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20078            echo ' yes '
20079            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20080         :
20081       else
20082         can_build_shared=no
20083       fi
20084       ;;
20085     esac
20086     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20087     # soname into executable. Probably we can add versioning support to
20088     # collect2, so additional links can be useful in future.
20089     if test "$aix_use_runtimelinking" = yes; then
20090       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20091       # instead of lib<name>.a to let people know that these are not
20092       # typical AIX shared libraries.
20093       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20094     else
20095       # We preserve .a as extension for shared libraries through AIX4.2
20096       # and later when we are not doing run time linking.
20097       library_names_spec='${libname}${release}.a $libname.a'
20098       soname_spec='${libname}${release}${shared_ext}$major'
20099     fi
20100     shlibpath_var=LIBPATH
20101   fi
20102   ;;
20103
20104 amigaos*)
20105   library_names_spec='$libname.ixlibrary $libname.a'
20106   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20107   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'
20108   ;;
20109
20110 beos*)
20111   library_names_spec='${libname}${shared_ext}'
20112   dynamic_linker="$host_os ld.so"
20113   shlibpath_var=LIBRARY_PATH
20114   ;;
20115
20116 bsdi[45]*)
20117   version_type=linux
20118   need_version=no
20119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20120   soname_spec='${libname}${release}${shared_ext}$major'
20121   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20122   shlibpath_var=LD_LIBRARY_PATH
20123   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20124   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20125   # the default ld.so.conf also contains /usr/contrib/lib and
20126   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20127   # libtool to hard-code these into programs
20128   ;;
20129
20130 cygwin* | mingw* | pw32*)
20131   version_type=windows
20132   shrext_cmds=".dll"
20133   need_version=no
20134   need_lib_prefix=no
20135
20136   case $GCC,$host_os in
20137   yes,cygwin* | yes,mingw* | yes,pw32*)
20138     library_names_spec='$libname.dll.a'
20139     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20140     postinstall_cmds='base_file=`basename \${file}`~
20141       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20142       dldir=$destdir/`dirname \$dlpath`~
20143       test -d \$dldir || mkdir -p \$dldir~
20144       $install_prog $dir/$dlname \$dldir/$dlname'
20145     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20146       dlpath=$dir/\$dldll~
20147        $rm \$dlpath'
20148     shlibpath_overrides_runpath=yes
20149
20150     case $host_os in
20151     cygwin*)
20152       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20153       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20154       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20155       ;;
20156     mingw*)
20157       # MinGW DLLs use traditional 'lib' prefix
20158       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20159       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20160       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20161         # It is most probably a Windows format PATH printed by
20162         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20163         # path with ; separators, and with drive letters. We can handle the
20164         # drive letters (cygwin fileutils understands them), so leave them,
20165         # especially as we might pass files found there to a mingw objdump,
20166         # which wouldn't understand a cygwinified path. Ahh.
20167         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20168       else
20169         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20170       fi
20171       ;;
20172     pw32*)
20173       # pw32 DLLs use 'pw' prefix rather than 'lib'
20174       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20175       ;;
20176     esac
20177     ;;
20178
20179   *)
20180     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20181     ;;
20182   esac
20183   dynamic_linker='Win32 ld.exe'
20184   # FIXME: first we should search . and the directory the executable is in
20185   shlibpath_var=PATH
20186   ;;
20187
20188 darwin* | rhapsody*)
20189   dynamic_linker="$host_os dyld"
20190   version_type=darwin
20191   need_lib_prefix=no
20192   need_version=no
20193   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20194   soname_spec='${libname}${release}${major}$shared_ext'
20195   shlibpath_overrides_runpath=yes
20196   shlibpath_var=DYLD_LIBRARY_PATH
20197   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20198   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20199   if test "$GCC" = yes; then
20200     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"`
20201   else
20202     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20203   fi
20204   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20205   ;;
20206
20207 dgux*)
20208   version_type=linux
20209   need_lib_prefix=no
20210   need_version=no
20211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20212   soname_spec='${libname}${release}${shared_ext}$major'
20213   shlibpath_var=LD_LIBRARY_PATH
20214   ;;
20215
20216 freebsd1*)
20217   dynamic_linker=no
20218   ;;
20219
20220 kfreebsd*-gnu)
20221   version_type=linux
20222   need_lib_prefix=no
20223   need_version=no
20224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20225   soname_spec='${libname}${release}${shared_ext}$major'
20226   shlibpath_var=LD_LIBRARY_PATH
20227   shlibpath_overrides_runpath=no
20228   hardcode_into_libs=yes
20229   dynamic_linker='GNU ld.so'
20230   ;;
20231
20232 freebsd*)
20233   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20234   version_type=freebsd-$objformat
20235   case $version_type in
20236     freebsd-elf*)
20237       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20238       need_version=no
20239       need_lib_prefix=no
20240       ;;
20241     freebsd-*)
20242       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20243       need_version=yes
20244       ;;
20245   esac
20246   shlibpath_var=LD_LIBRARY_PATH
20247   case $host_os in
20248   freebsd2*)
20249     shlibpath_overrides_runpath=yes
20250     ;;
20251   freebsd3.01* | freebsdelf3.01*)
20252     shlibpath_overrides_runpath=yes
20253     hardcode_into_libs=yes
20254     ;;
20255   *) # from 3.2 on
20256     shlibpath_overrides_runpath=no
20257     hardcode_into_libs=yes
20258     ;;
20259   esac
20260   ;;
20261
20262 gnu*)
20263   version_type=linux
20264   need_lib_prefix=no
20265   need_version=no
20266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20267   soname_spec='${libname}${release}${shared_ext}$major'
20268   shlibpath_var=LD_LIBRARY_PATH
20269   hardcode_into_libs=yes
20270   ;;
20271
20272 hpux9* | hpux10* | hpux11*)
20273   # Give a soname corresponding to the major version so that dld.sl refuses to
20274   # link against other versions.
20275   version_type=sunos
20276   need_lib_prefix=no
20277   need_version=no
20278   case "$host_cpu" in
20279   ia64*)
20280     shrext_cmds='.so'
20281     hardcode_into_libs=yes
20282     dynamic_linker="$host_os dld.so"
20283     shlibpath_var=LD_LIBRARY_PATH
20284     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20285     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20286     soname_spec='${libname}${release}${shared_ext}$major'
20287     if test "X$HPUX_IA64_MODE" = X32; then
20288       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20289     else
20290       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20291     fi
20292     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20293     ;;
20294    hppa*64*)
20295      shrext_cmds='.sl'
20296      hardcode_into_libs=yes
20297      dynamic_linker="$host_os dld.sl"
20298      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20299      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20300      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20301      soname_spec='${libname}${release}${shared_ext}$major'
20302      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20303      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20304      ;;
20305    *)
20306     shrext_cmds='.sl'
20307     dynamic_linker="$host_os dld.sl"
20308     shlibpath_var=SHLIB_PATH
20309     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20311     soname_spec='${libname}${release}${shared_ext}$major'
20312     ;;
20313   esac
20314   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20315   postinstall_cmds='chmod 555 $lib'
20316   ;;
20317
20318 irix5* | irix6* | nonstopux*)
20319   case $host_os in
20320     nonstopux*) version_type=nonstopux ;;
20321     *)
20322         if test "$lt_cv_prog_gnu_ld" = yes; then
20323                 version_type=linux
20324         else
20325                 version_type=irix
20326         fi ;;
20327   esac
20328   need_lib_prefix=no
20329   need_version=no
20330   soname_spec='${libname}${release}${shared_ext}$major'
20331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20332   case $host_os in
20333   irix5* | nonstopux*)
20334     libsuff= shlibsuff=
20335     ;;
20336   *)
20337     case $LD in # libtool.m4 will add one of these switches to LD
20338     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20339       libsuff= shlibsuff= libmagic=32-bit;;
20340     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20341       libsuff=32 shlibsuff=N32 libmagic=N32;;
20342     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20343       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20344     *) libsuff= shlibsuff= libmagic=never-match;;
20345     esac
20346     ;;
20347   esac
20348   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20349   shlibpath_overrides_runpath=no
20350   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20351   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20352   hardcode_into_libs=yes
20353   ;;
20354
20355 # No shared lib support for Linux oldld, aout, or coff.
20356 linux*oldld* | linux*aout* | linux*coff*)
20357   dynamic_linker=no
20358   ;;
20359
20360 # This must be Linux ELF.
20361 linux*)
20362   version_type=linux
20363   need_lib_prefix=no
20364   need_version=no
20365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20366   soname_spec='${libname}${release}${shared_ext}$major'
20367   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20368   shlibpath_var=LD_LIBRARY_PATH
20369   shlibpath_overrides_runpath=no
20370   # This implies no fast_install, which is unacceptable.
20371   # Some rework will be needed to allow for fast_install
20372   # before this can be enabled.
20373   hardcode_into_libs=yes
20374
20375   # Append ld.so.conf contents to the search path
20376   if test -f /etc/ld.so.conf; then
20377     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20378     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20379   fi
20380
20381   # We used to test for /lib/ld.so.1 and disable shared libraries on
20382   # powerpc, because MkLinux only supported shared libraries with the
20383   # GNU dynamic linker.  Since this was broken with cross compilers,
20384   # most powerpc-linux boxes support dynamic linking these days and
20385   # people can always --disable-shared, the test was removed, and we
20386   # assume the GNU/Linux dynamic linker is in use.
20387   dynamic_linker='GNU/Linux ld.so'
20388   ;;
20389
20390 knetbsd*-gnu)
20391   version_type=linux
20392   need_lib_prefix=no
20393   need_version=no
20394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20395   soname_spec='${libname}${release}${shared_ext}$major'
20396   shlibpath_var=LD_LIBRARY_PATH
20397   shlibpath_overrides_runpath=no
20398   hardcode_into_libs=yes
20399   dynamic_linker='GNU ld.so'
20400   ;;
20401
20402 netbsd*)
20403   version_type=sunos
20404   need_lib_prefix=no
20405   need_version=no
20406   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20407     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20408     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20409     dynamic_linker='NetBSD (a.out) ld.so'
20410   else
20411     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20412     soname_spec='${libname}${release}${shared_ext}$major'
20413     dynamic_linker='NetBSD ld.elf_so'
20414   fi
20415   shlibpath_var=LD_LIBRARY_PATH
20416   shlibpath_overrides_runpath=yes
20417   hardcode_into_libs=yes
20418   ;;
20419
20420 newsos6)
20421   version_type=linux
20422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20423   shlibpath_var=LD_LIBRARY_PATH
20424   shlibpath_overrides_runpath=yes
20425   ;;
20426
20427 nto-qnx*)
20428   version_type=linux
20429   need_lib_prefix=no
20430   need_version=no
20431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20432   soname_spec='${libname}${release}${shared_ext}$major'
20433   shlibpath_var=LD_LIBRARY_PATH
20434   shlibpath_overrides_runpath=yes
20435   ;;
20436
20437 openbsd*)
20438   version_type=sunos
20439   need_lib_prefix=no
20440   need_version=no
20441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20442   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20443   shlibpath_var=LD_LIBRARY_PATH
20444   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20445     case $host_os in
20446       openbsd2.[89] | openbsd2.[89].*)
20447         shlibpath_overrides_runpath=no
20448         ;;
20449       *)
20450         shlibpath_overrides_runpath=yes
20451         ;;
20452       esac
20453   else
20454     shlibpath_overrides_runpath=yes
20455   fi
20456   ;;
20457
20458 os2*)
20459   libname_spec='$name'
20460   shrext_cmds=".dll"
20461   need_lib_prefix=no
20462   library_names_spec='$libname${shared_ext} $libname.a'
20463   dynamic_linker='OS/2 ld.exe'
20464   shlibpath_var=LIBPATH
20465   ;;
20466
20467 osf3* | osf4* | osf5*)
20468   version_type=osf
20469   need_lib_prefix=no
20470   need_version=no
20471   soname_spec='${libname}${release}${shared_ext}$major'
20472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20473   shlibpath_var=LD_LIBRARY_PATH
20474   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20475   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20476   ;;
20477
20478 sco3.2v5*)
20479   version_type=osf
20480   soname_spec='${libname}${release}${shared_ext}$major'
20481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20482   shlibpath_var=LD_LIBRARY_PATH
20483   ;;
20484
20485 solaris*)
20486   version_type=linux
20487   need_lib_prefix=no
20488   need_version=no
20489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20490   soname_spec='${libname}${release}${shared_ext}$major'
20491   shlibpath_var=LD_LIBRARY_PATH
20492   shlibpath_overrides_runpath=yes
20493   hardcode_into_libs=yes
20494   # ldd complains unless libraries are executable
20495   postinstall_cmds='chmod +x $lib'
20496   ;;
20497
20498 sunos4*)
20499   version_type=sunos
20500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20501   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20502   shlibpath_var=LD_LIBRARY_PATH
20503   shlibpath_overrides_runpath=yes
20504   if test "$with_gnu_ld" = yes; then
20505     need_lib_prefix=no
20506   fi
20507   need_version=yes
20508   ;;
20509
20510 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20511   version_type=linux
20512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20513   soname_spec='${libname}${release}${shared_ext}$major'
20514   shlibpath_var=LD_LIBRARY_PATH
20515   case $host_vendor in
20516     sni)
20517       shlibpath_overrides_runpath=no
20518       need_lib_prefix=no
20519       export_dynamic_flag_spec='${wl}-Blargedynsym'
20520       runpath_var=LD_RUN_PATH
20521       ;;
20522     siemens)
20523       need_lib_prefix=no
20524       ;;
20525     motorola)
20526       need_lib_prefix=no
20527       need_version=no
20528       shlibpath_overrides_runpath=no
20529       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20530       ;;
20531   esac
20532   ;;
20533
20534 sysv4*MP*)
20535   if test -d /usr/nec ;then
20536     version_type=linux
20537     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20538     soname_spec='$libname${shared_ext}.$major'
20539     shlibpath_var=LD_LIBRARY_PATH
20540   fi
20541   ;;
20542
20543 uts4*)
20544   version_type=linux
20545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20546   soname_spec='${libname}${release}${shared_ext}$major'
20547   shlibpath_var=LD_LIBRARY_PATH
20548   ;;
20549
20550 *)
20551   dynamic_linker=no
20552   ;;
20553 esac
20554 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20555 echo "${ECHO_T}$dynamic_linker" >&6
20556 test "$dynamic_linker" = no && can_build_shared=no
20557
20558 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20559 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20560 hardcode_action_F77=
20561 if test -n "$hardcode_libdir_flag_spec_F77" || \
20562    test -n "$runpath_var_F77" || \
20563    test "X$hardcode_automatic_F77" = "Xyes" ; then
20564
20565   # We can hardcode non-existant directories.
20566   if test "$hardcode_direct_F77" != no &&
20567      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20568      # have to relink, otherwise we might link with an installed library
20569      # when we should be linking with a yet-to-be-installed one
20570      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20571      test "$hardcode_minus_L_F77" != no; then
20572     # Linking always hardcodes the temporary library directory.
20573     hardcode_action_F77=relink
20574   else
20575     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20576     hardcode_action_F77=immediate
20577   fi
20578 else
20579   # We cannot hardcode anything, or else we can only hardcode existing
20580   # directories.
20581   hardcode_action_F77=unsupported
20582 fi
20583 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20584 echo "${ECHO_T}$hardcode_action_F77" >&6
20585
20586 if test "$hardcode_action_F77" = relink; then
20587   # Fast installation is not supported
20588   enable_fast_install=no
20589 elif test "$shlibpath_overrides_runpath" = yes ||
20590      test "$enable_shared" = no; then
20591   # Fast installation is not necessary
20592   enable_fast_install=needless
20593 fi
20594
20595 striplib=
20596 old_striplib=
20597 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20598 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20599 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20600   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20601   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20602   echo "$as_me:$LINENO: result: yes" >&5
20603 echo "${ECHO_T}yes" >&6
20604 else
20605 # FIXME - insert some real tests, host_os isn't really good enough
20606   case $host_os in
20607    darwin*)
20608        if test -n "$STRIP" ; then
20609          striplib="$STRIP -x"
20610          echo "$as_me:$LINENO: result: yes" >&5
20611 echo "${ECHO_T}yes" >&6
20612        else
20613   echo "$as_me:$LINENO: result: no" >&5
20614 echo "${ECHO_T}no" >&6
20615 fi
20616        ;;
20617    *)
20618   echo "$as_me:$LINENO: result: no" >&5
20619 echo "${ECHO_T}no" >&6
20620     ;;
20621   esac
20622 fi
20623
20624
20625
20626 # The else clause should only fire when bootstrapping the
20627 # libtool distribution, otherwise you forgot to ship ltmain.sh
20628 # with your package, and you will get complaints that there are
20629 # no rules to generate ltmain.sh.
20630 if test -f "$ltmain"; then
20631   # See if we are running on zsh, and set the options which allow our commands through
20632   # without removal of \ escapes.
20633   if test -n "${ZSH_VERSION+set}" ; then
20634     setopt NO_GLOB_SUBST
20635   fi
20636   # Now quote all the things that may contain metacharacters while being
20637   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20638   # variables and quote the copies for generation of the libtool script.
20639   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20640     SED SHELL STRIP \
20641     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20642     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20643     deplibs_check_method reload_flag reload_cmds need_locks \
20644     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20645     lt_cv_sys_global_symbol_to_c_name_address \
20646     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20647     old_postinstall_cmds old_postuninstall_cmds \
20648     compiler_F77 \
20649     CC_F77 \
20650     LD_F77 \
20651     lt_prog_compiler_wl_F77 \
20652     lt_prog_compiler_pic_F77 \
20653     lt_prog_compiler_static_F77 \
20654     lt_prog_compiler_no_builtin_flag_F77 \
20655     export_dynamic_flag_spec_F77 \
20656     thread_safe_flag_spec_F77 \
20657     whole_archive_flag_spec_F77 \
20658     enable_shared_with_static_runtimes_F77 \
20659     old_archive_cmds_F77 \
20660     old_archive_from_new_cmds_F77 \
20661     predep_objects_F77 \
20662     postdep_objects_F77 \
20663     predeps_F77 \
20664     postdeps_F77 \
20665     compiler_lib_search_path_F77 \
20666     archive_cmds_F77 \
20667     archive_expsym_cmds_F77 \
20668     postinstall_cmds_F77 \
20669     postuninstall_cmds_F77 \
20670     old_archive_from_expsyms_cmds_F77 \
20671     allow_undefined_flag_F77 \
20672     no_undefined_flag_F77 \
20673     export_symbols_cmds_F77 \
20674     hardcode_libdir_flag_spec_F77 \
20675     hardcode_libdir_flag_spec_ld_F77 \
20676     hardcode_libdir_separator_F77 \
20677     hardcode_automatic_F77 \
20678     module_cmds_F77 \
20679     module_expsym_cmds_F77 \
20680     lt_cv_prog_compiler_c_o_F77 \
20681     exclude_expsyms_F77 \
20682     include_expsyms_F77; do
20683
20684     case $var in
20685     old_archive_cmds_F77 | \
20686     old_archive_from_new_cmds_F77 | \
20687     archive_cmds_F77 | \
20688     archive_expsym_cmds_F77 | \
20689     module_cmds_F77 | \
20690     module_expsym_cmds_F77 | \
20691     old_archive_from_expsyms_cmds_F77 | \
20692     export_symbols_cmds_F77 | \
20693     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20694     postinstall_cmds | postuninstall_cmds | \
20695     old_postinstall_cmds | old_postuninstall_cmds | \
20696     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20697       # Double-quote double-evaled strings.
20698       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20699       ;;
20700     *)
20701       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20702       ;;
20703     esac
20704   done
20705
20706   case $lt_echo in
20707   *'\$0 --fallback-echo"')
20708     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20709     ;;
20710   esac
20711
20712 cfgfile="$ofile"
20713
20714   cat <<__EOF__ >> "$cfgfile"
20715 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20716
20717 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20718
20719 # Shell to use when invoking shell scripts.
20720 SHELL=$lt_SHELL
20721
20722 # Whether or not to build shared libraries.
20723 build_libtool_libs=$enable_shared
20724
20725 # Whether or not to build static libraries.
20726 build_old_libs=$enable_static
20727
20728 # Whether or not to add -lc for building shared libraries.
20729 build_libtool_need_lc=$archive_cmds_need_lc_F77
20730
20731 # Whether or not to disallow shared libs when runtime libs are static
20732 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20733
20734 # Whether or not to optimize for fast installation.
20735 fast_install=$enable_fast_install
20736
20737 # The host system.
20738 host_alias=$host_alias
20739 host=$host
20740
20741 # An echo program that does not interpret backslashes.
20742 echo=$lt_echo
20743
20744 # The archiver.
20745 AR=$lt_AR
20746 AR_FLAGS=$lt_AR_FLAGS
20747
20748 # A C compiler.
20749 LTCC=$lt_LTCC
20750
20751 # A language-specific compiler.
20752 CC=$lt_compiler_F77
20753
20754 # Is the compiler the GNU C compiler?
20755 with_gcc=$GCC_F77
20756
20757 # An ERE matcher.
20758 EGREP=$lt_EGREP
20759
20760 # The linker used to build libraries.
20761 LD=$lt_LD_F77
20762
20763 # Whether we need hard or soft links.
20764 LN_S=$lt_LN_S
20765
20766 # A BSD-compatible nm program.
20767 NM=$lt_NM
20768
20769 # A symbol stripping program
20770 STRIP=$lt_STRIP
20771
20772 # Used to examine libraries when file_magic_cmd begins "file"
20773 MAGIC_CMD=$MAGIC_CMD
20774
20775 # Used on cygwin: DLL creation program.
20776 DLLTOOL="$DLLTOOL"
20777
20778 # Used on cygwin: object dumper.
20779 OBJDUMP="$OBJDUMP"
20780
20781 # Used on cygwin: assembler.
20782 AS="$AS"
20783
20784 # The name of the directory that contains temporary libtool files.
20785 objdir=$objdir
20786
20787 # How to create reloadable object files.
20788 reload_flag=$lt_reload_flag
20789 reload_cmds=$lt_reload_cmds
20790
20791 # How to pass a linker flag through the compiler.
20792 wl=$lt_lt_prog_compiler_wl_F77
20793
20794 # Object file suffix (normally "o").
20795 objext="$ac_objext"
20796
20797 # Old archive suffix (normally "a").
20798 libext="$libext"
20799
20800 # Shared library suffix (normally ".so").
20801 shrext_cmds='$shrext_cmds'
20802
20803 # Executable file suffix (normally "").
20804 exeext="$exeext"
20805
20806 # Additional compiler flags for building library objects.
20807 pic_flag=$lt_lt_prog_compiler_pic_F77
20808 pic_mode=$pic_mode
20809
20810 # What is the maximum length of a command?
20811 max_cmd_len=$lt_cv_sys_max_cmd_len
20812
20813 # Does compiler simultaneously support -c and -o options?
20814 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20815
20816 # Must we lock files when doing compilation ?
20817 need_locks=$lt_need_locks
20818
20819 # Do we need the lib prefix for modules?
20820 need_lib_prefix=$need_lib_prefix
20821
20822 # Do we need a version for libraries?
20823 need_version=$need_version
20824
20825 # Whether dlopen is supported.
20826 dlopen_support=$enable_dlopen
20827
20828 # Whether dlopen of programs is supported.
20829 dlopen_self=$enable_dlopen_self
20830
20831 # Whether dlopen of statically linked programs is supported.
20832 dlopen_self_static=$enable_dlopen_self_static
20833
20834 # Compiler flag to prevent dynamic linking.
20835 link_static_flag=$lt_lt_prog_compiler_static_F77
20836
20837 # Compiler flag to turn off builtin functions.
20838 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20839
20840 # Compiler flag to allow reflexive dlopens.
20841 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20842
20843 # Compiler flag to generate shared objects directly from archives.
20844 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20845
20846 # Compiler flag to generate thread-safe objects.
20847 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20848
20849 # Library versioning type.
20850 version_type=$version_type
20851
20852 # Format of library name prefix.
20853 libname_spec=$lt_libname_spec
20854
20855 # List of archive names.  First name is the real one, the rest are links.
20856 # The last name is the one that the linker finds with -lNAME.
20857 library_names_spec=$lt_library_names_spec
20858
20859 # The coded name of the library, if different from the real name.
20860 soname_spec=$lt_soname_spec
20861
20862 # Commands used to build and install an old-style archive.
20863 RANLIB=$lt_RANLIB
20864 old_archive_cmds=$lt_old_archive_cmds_F77
20865 old_postinstall_cmds=$lt_old_postinstall_cmds
20866 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20867
20868 # Create an old-style archive from a shared archive.
20869 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20870
20871 # Create a temporary old-style archive to link instead of a shared archive.
20872 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20873
20874 # Commands used to build and install a shared archive.
20875 archive_cmds=$lt_archive_cmds_F77
20876 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20877 postinstall_cmds=$lt_postinstall_cmds
20878 postuninstall_cmds=$lt_postuninstall_cmds
20879
20880 # Commands used to build a loadable module (assumed same as above if empty)
20881 module_cmds=$lt_module_cmds_F77
20882 module_expsym_cmds=$lt_module_expsym_cmds_F77
20883
20884 # Commands to strip libraries.
20885 old_striplib=$lt_old_striplib
20886 striplib=$lt_striplib
20887
20888 # Dependencies to place before the objects being linked to create a
20889 # shared library.
20890 predep_objects=$lt_predep_objects_F77
20891
20892 # Dependencies to place after the objects being linked to create a
20893 # shared library.
20894 postdep_objects=$lt_postdep_objects_F77
20895
20896 # Dependencies to place before the objects being linked to create a
20897 # shared library.
20898 predeps=$lt_predeps_F77
20899
20900 # Dependencies to place after the objects being linked to create a
20901 # shared library.
20902 postdeps=$lt_postdeps_F77
20903
20904 # The library search path used internally by the compiler when linking
20905 # a shared library.
20906 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20907
20908 # Method to check whether dependent libraries are shared objects.
20909 deplibs_check_method=$lt_deplibs_check_method
20910
20911 # Command to use when deplibs_check_method == file_magic.
20912 file_magic_cmd=$lt_file_magic_cmd
20913
20914 # Flag that allows shared libraries with undefined symbols to be built.
20915 allow_undefined_flag=$lt_allow_undefined_flag_F77
20916
20917 # Flag that forces no undefined symbols.
20918 no_undefined_flag=$lt_no_undefined_flag_F77
20919
20920 # Commands used to finish a libtool library installation in a directory.
20921 finish_cmds=$lt_finish_cmds
20922
20923 # Same as above, but a single script fragment to be evaled but not shown.
20924 finish_eval=$lt_finish_eval
20925
20926 # Take the output of nm and produce a listing of raw symbols and C names.
20927 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20928
20929 # Transform the output of nm in a proper C declaration
20930 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20931
20932 # Transform the output of nm in a C name address pair
20933 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20934
20935 # This is the shared library runtime path variable.
20936 runpath_var=$runpath_var
20937
20938 # This is the shared library path variable.
20939 shlibpath_var=$shlibpath_var
20940
20941 # Is shlibpath searched before the hard-coded library search path?
20942 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20943
20944 # How to hardcode a shared library path into an executable.
20945 hardcode_action=$hardcode_action_F77
20946
20947 # Whether we should hardcode library paths into libraries.
20948 hardcode_into_libs=$hardcode_into_libs
20949
20950 # Flag to hardcode \$libdir into a binary during linking.
20951 # This must work even if \$libdir does not exist.
20952 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20953
20954 # If ld is used when linking, flag to hardcode \$libdir into
20955 # a binary during linking. This must work even if \$libdir does
20956 # not exist.
20957 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20958
20959 # Whether we need a single -rpath flag with a separated argument.
20960 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20961
20962 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20963 # resulting binary.
20964 hardcode_direct=$hardcode_direct_F77
20965
20966 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20967 # resulting binary.
20968 hardcode_minus_L=$hardcode_minus_L_F77
20969
20970 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20971 # the resulting binary.
20972 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20973
20974 # Set to yes if building a shared library automatically hardcodes DIR into the library
20975 # and all subsequent libraries and executables linked against it.
20976 hardcode_automatic=$hardcode_automatic_F77
20977
20978 # Variables whose values should be saved in libtool wrapper scripts and
20979 # restored at relink time.
20980 variables_saved_for_relink="$variables_saved_for_relink"
20981
20982 # Whether libtool must link a program against all its dependency libraries.
20983 link_all_deplibs=$link_all_deplibs_F77
20984
20985 # Compile-time system search path for libraries
20986 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20987
20988 # Run-time system search path for libraries
20989 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20990
20991 # Fix the shell variable \$srcfile for the compiler.
20992 fix_srcfile_path="$fix_srcfile_path_F77"
20993
20994 # Set to yes if exported symbols are required.
20995 always_export_symbols=$always_export_symbols_F77
20996
20997 # The commands to list exported symbols.
20998 export_symbols_cmds=$lt_export_symbols_cmds_F77
20999
21000 # The commands to extract the exported symbol list from a shared archive.
21001 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21002
21003 # Symbols that should not be listed in the preloaded symbols.
21004 exclude_expsyms=$lt_exclude_expsyms_F77
21005
21006 # Symbols that must always be exported.
21007 include_expsyms=$lt_include_expsyms_F77
21008
21009 # ### END LIBTOOL TAG CONFIG: $tagname
21010
21011 __EOF__
21012
21013
21014 else
21015   # If there is no Makefile yet, we rely on a make rule to execute
21016   # `config.status --recheck' to rerun these tests and create the
21017   # libtool script then.
21018   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21019   if test -f "$ltmain_in"; then
21020     test -f Makefile && make "$ltmain"
21021   fi
21022 fi
21023
21024
21025 ac_ext=c
21026 ac_cpp='$CPP $CPPFLAGS'
21027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21030
21031 CC="$lt_save_CC"
21032
21033         else
21034           tagname=""
21035         fi
21036         ;;
21037
21038       GCJ)
21039         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21040           ac_ext=c
21041 ac_cpp='$CPP $CPPFLAGS'
21042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21045
21046
21047 # Source file extension for Java test sources.
21048 ac_ext=java
21049
21050 # Object file extension for compiled Java test sources.
21051 objext=o
21052 objext_GCJ=$objext
21053
21054 # Code to be used in simple compile tests
21055 lt_simple_compile_test_code="class foo {}\n"
21056
21057 # Code to be used in simple link tests
21058 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21059
21060 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21061
21062 # If no C compiler was specified, use CC.
21063 LTCC=${LTCC-"$CC"}
21064
21065 # Allow CC to be a program name with arguments.
21066 compiler=$CC
21067
21068
21069 # Allow CC to be a program name with arguments.
21070 lt_save_CC="$CC"
21071 CC=${GCJ-"gcj"}
21072 compiler=$CC
21073 compiler_GCJ=$CC
21074
21075 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21076 archive_cmds_need_lc_GCJ=no
21077
21078
21079 lt_prog_compiler_no_builtin_flag_GCJ=
21080
21081 if test "$GCC" = yes; then
21082   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21083
21084
21085 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21086 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21087 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21088   echo $ECHO_N "(cached) $ECHO_C" >&6
21089 else
21090   lt_cv_prog_compiler_rtti_exceptions=no
21091   ac_outfile=conftest.$ac_objext
21092    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21093    lt_compiler_flag="-fno-rtti -fno-exceptions"
21094    # Insert the option either (1) after the last *FLAGS variable, or
21095    # (2) before a word containing "conftest.", or (3) at the end.
21096    # Note that $ac_compile itself does not contain backslashes and begins
21097    # with a dollar sign (not a hyphen), so the echo should work correctly.
21098    # The option is referenced via a variable to avoid confusing sed.
21099    lt_compile=`echo "$ac_compile" | $SED \
21100    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21101    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21102    -e 's:$: $lt_compiler_flag:'`
21103    (eval echo "\"\$as_me:21103: $lt_compile\"" >&5)
21104    (eval "$lt_compile" 2>conftest.err)
21105    ac_status=$?
21106    cat conftest.err >&5
21107    echo "$as_me:21107: \$? = $ac_status" >&5
21108    if (exit $ac_status) && test -s "$ac_outfile"; then
21109      # The compiler can only warn and ignore the option if not recognized
21110      # So say no if there are warnings
21111      if test ! -s conftest.err; then
21112        lt_cv_prog_compiler_rtti_exceptions=yes
21113      fi
21114    fi
21115    $rm conftest*
21116
21117 fi
21118 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21119 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21120
21121 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21122     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21123 else
21124     :
21125 fi
21126
21127 fi
21128
21129 lt_prog_compiler_wl_GCJ=
21130 lt_prog_compiler_pic_GCJ=
21131 lt_prog_compiler_static_GCJ=
21132
21133 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21134 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21135
21136   if test "$GCC" = yes; then
21137     lt_prog_compiler_wl_GCJ='-Wl,'
21138     lt_prog_compiler_static_GCJ='-static'
21139
21140     case $host_os in
21141       aix*)
21142       # All AIX code is PIC.
21143       if test "$host_cpu" = ia64; then
21144         # AIX 5 now supports IA64 processor
21145         lt_prog_compiler_static_GCJ='-Bstatic'
21146       fi
21147       ;;
21148
21149     amigaos*)
21150       # FIXME: we need at least 68020 code to build shared libraries, but
21151       # adding the `-m68020' flag to GCC prevents building anything better,
21152       # like `-m68040'.
21153       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21154       ;;
21155
21156     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21157       # PIC is the default for these OSes.
21158       ;;
21159
21160     mingw* | pw32* | os2*)
21161       # This hack is so that the source file can tell whether it is being
21162       # built for inclusion in a dll (and should export symbols for example).
21163       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21164       ;;
21165
21166     darwin* | rhapsody*)
21167       # PIC is the default on this platform
21168       # Common symbols not allowed in MH_DYLIB files
21169       lt_prog_compiler_pic_GCJ='-fno-common'
21170       ;;
21171
21172     msdosdjgpp*)
21173       # Just because we use GCC doesn't mean we suddenly get shared libraries
21174       # on systems that don't support them.
21175       lt_prog_compiler_can_build_shared_GCJ=no
21176       enable_shared=no
21177       ;;
21178
21179     sysv4*MP*)
21180       if test -d /usr/nec; then
21181         lt_prog_compiler_pic_GCJ=-Kconform_pic
21182       fi
21183       ;;
21184
21185     hpux*)
21186       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21187       # not for PA HP-UX.
21188       case "$host_cpu" in
21189       hppa*64*|ia64*)
21190         # +Z the default
21191         ;;
21192       *)
21193         lt_prog_compiler_pic_GCJ='-fPIC'
21194         ;;
21195       esac
21196       ;;
21197
21198     *)
21199       lt_prog_compiler_pic_GCJ='-fPIC'
21200       ;;
21201     esac
21202   else
21203     # PORTME Check for flag to pass linker flags through the system compiler.
21204     case $host_os in
21205     aix*)
21206       lt_prog_compiler_wl_GCJ='-Wl,'
21207       if test "$host_cpu" = ia64; then
21208         # AIX 5 now supports IA64 processor
21209         lt_prog_compiler_static_GCJ='-Bstatic'
21210       else
21211         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21212       fi
21213       ;;
21214       darwin*)
21215         # PIC is the default on this platform
21216         # Common symbols not allowed in MH_DYLIB files
21217        case "$cc_basename" in
21218          xlc*)
21219          lt_prog_compiler_pic_GCJ='-qnocommon'
21220          lt_prog_compiler_wl_GCJ='-Wl,'
21221          ;;
21222        esac
21223        ;;
21224
21225     mingw* | pw32* | os2*)
21226       # This hack is so that the source file can tell whether it is being
21227       # built for inclusion in a dll (and should export symbols for example).
21228       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21229       ;;
21230
21231     hpux9* | hpux10* | hpux11*)
21232       lt_prog_compiler_wl_GCJ='-Wl,'
21233       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21234       # not for PA HP-UX.
21235       case "$host_cpu" in
21236       hppa*64*|ia64*)
21237         # +Z the default
21238         ;;
21239       *)
21240         lt_prog_compiler_pic_GCJ='+Z'
21241         ;;
21242       esac
21243       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21244       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21245       ;;
21246
21247     irix5* | irix6* | nonstopux*)
21248       lt_prog_compiler_wl_GCJ='-Wl,'
21249       # PIC (with -KPIC) is the default.
21250       lt_prog_compiler_static_GCJ='-non_shared'
21251       ;;
21252
21253     newsos6)
21254       lt_prog_compiler_pic_GCJ='-KPIC'
21255       lt_prog_compiler_static_GCJ='-Bstatic'
21256       ;;
21257
21258     linux*)
21259       case $CC in
21260       icc* | ecc*)
21261         lt_prog_compiler_wl_GCJ='-Wl,'
21262         lt_prog_compiler_pic_GCJ='-KPIC'
21263         lt_prog_compiler_static_GCJ='-static'
21264         ;;
21265       ccc*)
21266         lt_prog_compiler_wl_GCJ='-Wl,'
21267         # All Alpha code is PIC.
21268         lt_prog_compiler_static_GCJ='-non_shared'
21269         ;;
21270       esac
21271       ;;
21272
21273     osf3* | osf4* | osf5*)
21274       lt_prog_compiler_wl_GCJ='-Wl,'
21275       # All OSF/1 code is PIC.
21276       lt_prog_compiler_static_GCJ='-non_shared'
21277       ;;
21278
21279     sco3.2v5*)
21280       lt_prog_compiler_pic_GCJ='-Kpic'
21281       lt_prog_compiler_static_GCJ='-dn'
21282       ;;
21283
21284     solaris*)
21285       lt_prog_compiler_wl_GCJ='-Wl,'
21286       lt_prog_compiler_pic_GCJ='-KPIC'
21287       lt_prog_compiler_static_GCJ='-Bstatic'
21288       ;;
21289
21290     sunos4*)
21291       lt_prog_compiler_wl_GCJ='-Qoption ld '
21292       lt_prog_compiler_pic_GCJ='-PIC'
21293       lt_prog_compiler_static_GCJ='-Bstatic'
21294       ;;
21295
21296     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21297       lt_prog_compiler_wl_GCJ='-Wl,'
21298       lt_prog_compiler_pic_GCJ='-KPIC'
21299       lt_prog_compiler_static_GCJ='-Bstatic'
21300       ;;
21301
21302     sysv4*MP*)
21303       if test -d /usr/nec ;then
21304         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21305         lt_prog_compiler_static_GCJ='-Bstatic'
21306       fi
21307       ;;
21308
21309     uts4*)
21310       lt_prog_compiler_pic_GCJ='-pic'
21311       lt_prog_compiler_static_GCJ='-Bstatic'
21312       ;;
21313
21314     *)
21315       lt_prog_compiler_can_build_shared_GCJ=no
21316       ;;
21317     esac
21318   fi
21319
21320 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21321 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21322
21323 #
21324 # Check to make sure the PIC flag actually works.
21325 #
21326 if test -n "$lt_prog_compiler_pic_GCJ"; then
21327
21328 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21329 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21330 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21331   echo $ECHO_N "(cached) $ECHO_C" >&6
21332 else
21333   lt_prog_compiler_pic_works_GCJ=no
21334   ac_outfile=conftest.$ac_objext
21335    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21336    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21337    # Insert the option either (1) after the last *FLAGS variable, or
21338    # (2) before a word containing "conftest.", or (3) at the end.
21339    # Note that $ac_compile itself does not contain backslashes and begins
21340    # with a dollar sign (not a hyphen), so the echo should work correctly.
21341    # The option is referenced via a variable to avoid confusing sed.
21342    lt_compile=`echo "$ac_compile" | $SED \
21343    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21344    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21345    -e 's:$: $lt_compiler_flag:'`
21346    (eval echo "\"\$as_me:21346: $lt_compile\"" >&5)
21347    (eval "$lt_compile" 2>conftest.err)
21348    ac_status=$?
21349    cat conftest.err >&5
21350    echo "$as_me:21350: \$? = $ac_status" >&5
21351    if (exit $ac_status) && test -s "$ac_outfile"; then
21352      # The compiler can only warn and ignore the option if not recognized
21353      # So say no if there are warnings
21354      if test ! -s conftest.err; then
21355        lt_prog_compiler_pic_works_GCJ=yes
21356      fi
21357    fi
21358    $rm conftest*
21359
21360 fi
21361 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21362 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21363
21364 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21365     case $lt_prog_compiler_pic_GCJ in
21366      "" | " "*) ;;
21367      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21368      esac
21369 else
21370     lt_prog_compiler_pic_GCJ=
21371      lt_prog_compiler_can_build_shared_GCJ=no
21372 fi
21373
21374 fi
21375 case "$host_os" in
21376   # For platforms which do not support PIC, -DPIC is meaningless:
21377   *djgpp*)
21378     lt_prog_compiler_pic_GCJ=
21379     ;;
21380   *)
21381     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21382     ;;
21383 esac
21384
21385 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21386 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21387 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21388   echo $ECHO_N "(cached) $ECHO_C" >&6
21389 else
21390   lt_cv_prog_compiler_c_o_GCJ=no
21391    $rm -r conftest 2>/dev/null
21392    mkdir conftest
21393    cd conftest
21394    mkdir out
21395    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21396
21397    lt_compiler_flag="-o out/conftest2.$ac_objext"
21398    # Insert the option either (1) after the last *FLAGS variable, or
21399    # (2) before a word containing "conftest.", or (3) at the end.
21400    # Note that $ac_compile itself does not contain backslashes and begins
21401    # with a dollar sign (not a hyphen), so the echo should work correctly.
21402    lt_compile=`echo "$ac_compile" | $SED \
21403    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21404    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21405    -e 's:$: $lt_compiler_flag:'`
21406    (eval echo "\"\$as_me:21406: $lt_compile\"" >&5)
21407    (eval "$lt_compile" 2>out/conftest.err)
21408    ac_status=$?
21409    cat out/conftest.err >&5
21410    echo "$as_me:21410: \$? = $ac_status" >&5
21411    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21412    then
21413      # The compiler can only warn and ignore the option if not recognized
21414      # So say no if there are warnings
21415      if test ! -s out/conftest.err; then
21416        lt_cv_prog_compiler_c_o_GCJ=yes
21417      fi
21418    fi
21419    chmod u+w .
21420    $rm conftest*
21421    # SGI C++ compiler will create directory out/ii_files/ for
21422    # template instantiation
21423    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21424    $rm out/* && rmdir out
21425    cd ..
21426    rmdir conftest
21427    $rm conftest*
21428
21429 fi
21430 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21431 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21432
21433
21434 hard_links="nottested"
21435 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21436   # do not overwrite the value of need_locks provided by the user
21437   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21438 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21439   hard_links=yes
21440   $rm conftest*
21441   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21442   touch conftest.a
21443   ln conftest.a conftest.b 2>&5 || hard_links=no
21444   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21445   echo "$as_me:$LINENO: result: $hard_links" >&5
21446 echo "${ECHO_T}$hard_links" >&6
21447   if test "$hard_links" = no; then
21448     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21449 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21450     need_locks=warn
21451   fi
21452 else
21453   need_locks=no
21454 fi
21455
21456 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21457 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21458
21459   runpath_var=
21460   allow_undefined_flag_GCJ=
21461   enable_shared_with_static_runtimes_GCJ=no
21462   archive_cmds_GCJ=
21463   archive_expsym_cmds_GCJ=
21464   old_archive_From_new_cmds_GCJ=
21465   old_archive_from_expsyms_cmds_GCJ=
21466   export_dynamic_flag_spec_GCJ=
21467   whole_archive_flag_spec_GCJ=
21468   thread_safe_flag_spec_GCJ=
21469   hardcode_libdir_flag_spec_GCJ=
21470   hardcode_libdir_flag_spec_ld_GCJ=
21471   hardcode_libdir_separator_GCJ=
21472   hardcode_direct_GCJ=no
21473   hardcode_minus_L_GCJ=no
21474   hardcode_shlibpath_var_GCJ=unsupported
21475   link_all_deplibs_GCJ=unknown
21476   hardcode_automatic_GCJ=no
21477   module_cmds_GCJ=
21478   module_expsym_cmds_GCJ=
21479   always_export_symbols_GCJ=no
21480   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21481   # include_expsyms should be a list of space-separated symbols to be *always*
21482   # included in the symbol list
21483   include_expsyms_GCJ=
21484   # exclude_expsyms can be an extended regexp of symbols to exclude
21485   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21486   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21487   # as well as any symbol that contains `d'.
21488   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21489   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21490   # platforms (ab)use it in PIC code, but their linkers get confused if
21491   # the symbol is explicitly referenced.  Since portable code cannot
21492   # rely on this symbol name, it's probably fine to never include it in
21493   # preloaded symbol tables.
21494   extract_expsyms_cmds=
21495
21496   case $host_os in
21497   cygwin* | mingw* | pw32*)
21498     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21499     # When not using gcc, we currently assume that we are using
21500     # Microsoft Visual C++.
21501     if test "$GCC" != yes; then
21502       with_gnu_ld=no
21503     fi
21504     ;;
21505   openbsd*)
21506     with_gnu_ld=no
21507     ;;
21508   esac
21509
21510   ld_shlibs_GCJ=yes
21511   if test "$with_gnu_ld" = yes; then
21512     # If archive_cmds runs LD, not CC, wlarc should be empty
21513     wlarc='${wl}'
21514
21515     # See if GNU ld supports shared libraries.
21516     case $host_os in
21517     aix3* | aix4* | aix5*)
21518       # On AIX/PPC, the GNU linker is very broken
21519       if test "$host_cpu" != ia64; then
21520         ld_shlibs_GCJ=no
21521         cat <<EOF 1>&2
21522
21523 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21524 *** to be unable to reliably create shared libraries on AIX.
21525 *** Therefore, libtool is disabling shared libraries support.  If you
21526 *** really care for shared libraries, you may want to modify your PATH
21527 *** so that a non-GNU linker is found, and then restart.
21528
21529 EOF
21530       fi
21531       ;;
21532
21533     amigaos*)
21534       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)'
21535       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21536       hardcode_minus_L_GCJ=yes
21537
21538       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21539       # that the semantics of dynamic libraries on AmigaOS, at least up
21540       # to version 4, is to share data among multiple programs linked
21541       # with the same dynamic library.  Since this doesn't match the
21542       # behavior of shared libraries on other platforms, we can't use
21543       # them.
21544       ld_shlibs_GCJ=no
21545       ;;
21546
21547     beos*)
21548       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21549         allow_undefined_flag_GCJ=unsupported
21550         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21551         # support --undefined.  This deserves some investigation.  FIXME
21552         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21553       else
21554         ld_shlibs_GCJ=no
21555       fi
21556       ;;
21557
21558     cygwin* | mingw* | pw32*)
21559       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21560       # as there is no search path for DLLs.
21561       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21562       allow_undefined_flag_GCJ=unsupported
21563       always_export_symbols_GCJ=no
21564       enable_shared_with_static_runtimes_GCJ=yes
21565       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21566
21567       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21568         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21569         # If the export-symbols file already is a .def file (1st line
21570         # is EXPORTS), use it as is; otherwise, prepend...
21571         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21572           cp $export_symbols $output_objdir/$soname.def;
21573         else
21574           echo EXPORTS > $output_objdir/$soname.def;
21575           cat $export_symbols >> $output_objdir/$soname.def;
21576         fi~
21577         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21578       else
21579         ld_shlibs=no
21580       fi
21581       ;;
21582
21583     netbsd*)
21584       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21585         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21586         wlarc=
21587       else
21588         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21589         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21590       fi
21591       ;;
21592
21593     solaris* | sysv5*)
21594       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21595         ld_shlibs_GCJ=no
21596         cat <<EOF 1>&2
21597
21598 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21599 *** create shared libraries on Solaris systems.  Therefore, libtool
21600 *** is disabling shared libraries support.  We urge you to upgrade GNU
21601 *** binutils to release 2.9.1 or newer.  Another option is to modify
21602 *** your PATH or compiler configuration so that the native linker is
21603 *** used, and then restart.
21604
21605 EOF
21606       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21607         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21608         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21609       else
21610         ld_shlibs_GCJ=no
21611       fi
21612       ;;
21613
21614     sunos4*)
21615       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21616       wlarc=
21617       hardcode_direct_GCJ=yes
21618       hardcode_shlibpath_var_GCJ=no
21619       ;;
21620
21621   linux*)
21622     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21623         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21624         archive_cmds_GCJ="$tmp_archive_cmds"
21625       supports_anon_versioning=no
21626       case `$LD -v 2>/dev/null` in
21627         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21628         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21629         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21630         *\ 2.11.*) ;; # other 2.11 versions
21631         *) supports_anon_versioning=yes ;;
21632       esac
21633       if test $supports_anon_versioning = yes; then
21634         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21635 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21636 $echo "local: *; };" >> $output_objdir/$libname.ver~
21637         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21638       else
21639         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21640       fi
21641     else
21642       ld_shlibs_GCJ=no
21643     fi
21644     ;;
21645
21646     *)
21647       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21648         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21649         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21650       else
21651         ld_shlibs_GCJ=no
21652       fi
21653       ;;
21654     esac
21655
21656     if test "$ld_shlibs_GCJ" = yes; then
21657       runpath_var=LD_RUN_PATH
21658       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21659       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21660       # ancient GNU ld didn't support --whole-archive et. al.
21661       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21662         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21663       else
21664         whole_archive_flag_spec_GCJ=
21665       fi
21666     fi
21667   else
21668     # PORTME fill in a description of your system's linker (not GNU ld)
21669     case $host_os in
21670     aix3*)
21671       allow_undefined_flag_GCJ=unsupported
21672       always_export_symbols_GCJ=yes
21673       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'
21674       # Note: this linker hardcodes the directories in LIBPATH if there
21675       # are no directories specified by -L.
21676       hardcode_minus_L_GCJ=yes
21677       if test "$GCC" = yes && test -z "$link_static_flag"; then
21678         # Neither direct hardcoding nor static linking is supported with a
21679         # broken collect2.
21680         hardcode_direct_GCJ=unsupported
21681       fi
21682       ;;
21683
21684     aix4* | aix5*)
21685       if test "$host_cpu" = ia64; then
21686         # On IA64, the linker does run time linking by default, so we don't
21687         # have to do anything special.
21688         aix_use_runtimelinking=no
21689         exp_sym_flag='-Bexport'
21690         no_entry_flag=""
21691       else
21692         # If we're using GNU nm, then we don't want the "-C" option.
21693         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21694         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21695           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'
21696         else
21697           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'
21698         fi
21699         aix_use_runtimelinking=no
21700
21701         # Test if we are trying to use run time linking or normal
21702         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21703         # need to do runtime linking.
21704         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21705           for ld_flag in $LDFLAGS; do
21706           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21707             aix_use_runtimelinking=yes
21708             break
21709           fi
21710           done
21711         esac
21712
21713         exp_sym_flag='-bexport'
21714         no_entry_flag='-bnoentry'
21715       fi
21716
21717       # When large executables or shared objects are built, AIX ld can
21718       # have problems creating the table of contents.  If linking a library
21719       # or program results in "error TOC overflow" add -mminimal-toc to
21720       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21721       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21722
21723       archive_cmds_GCJ=''
21724       hardcode_direct_GCJ=yes
21725       hardcode_libdir_separator_GCJ=':'
21726       link_all_deplibs_GCJ=yes
21727
21728       if test "$GCC" = yes; then
21729         case $host_os in aix4.012|aix4.012.*)
21730         # We only want to do this on AIX 4.2 and lower, the check
21731         # below for broken collect2 doesn't work under 4.3+
21732           collect2name=`${CC} -print-prog-name=collect2`
21733           if test -f "$collect2name" && \
21734            strings "$collect2name" | grep resolve_lib_name >/dev/null
21735           then
21736           # We have reworked collect2
21737           hardcode_direct_GCJ=yes
21738           else
21739           # We have old collect2
21740           hardcode_direct_GCJ=unsupported
21741           # It fails to find uninstalled libraries when the uninstalled
21742           # path is not listed in the libpath.  Setting hardcode_minus_L
21743           # to unsupported forces relinking
21744           hardcode_minus_L_GCJ=yes
21745           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21746           hardcode_libdir_separator_GCJ=
21747           fi
21748         esac
21749         shared_flag='-shared'
21750       else
21751         # not using gcc
21752         if test "$host_cpu" = ia64; then
21753         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21754         # chokes on -Wl,-G. The following line is correct:
21755           shared_flag='-G'
21756         else
21757         if test "$aix_use_runtimelinking" = yes; then
21758             shared_flag='${wl}-G'
21759           else
21760             shared_flag='${wl}-bM:SRE'
21761         fi
21762         fi
21763       fi
21764
21765       # It seems that -bexpall does not export symbols beginning with
21766       # underscore (_), so it is better to generate a list of symbols to export.
21767       always_export_symbols_GCJ=yes
21768       if test "$aix_use_runtimelinking" = yes; then
21769         # Warning - without using the other runtime loading flags (-brtl),
21770         # -berok will link without error, but may produce a broken library.
21771         allow_undefined_flag_GCJ='-berok'
21772        # Determine the default libpath from the value encoded in an empty executable.
21773        cat >conftest.$ac_ext <<_ACEOF
21774 /* confdefs.h.  */
21775 _ACEOF
21776 cat confdefs.h >>conftest.$ac_ext
21777 cat >>conftest.$ac_ext <<_ACEOF
21778 /* end confdefs.h.  */
21779
21780 int
21781 main ()
21782 {
21783
21784   ;
21785   return 0;
21786 }
21787 _ACEOF
21788 rm -f conftest.$ac_objext conftest$ac_exeext
21789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21790   (eval $ac_link) 2>conftest.er1
21791   ac_status=$?
21792   grep -v '^ *+' conftest.er1 >conftest.err
21793   rm -f conftest.er1
21794   cat conftest.err >&5
21795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796   (exit $ac_status); } &&
21797          { ac_try='test -z "$ac_c_werror_flag"
21798                          || test ! -s conftest.err'
21799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21800   (eval $ac_try) 2>&5
21801   ac_status=$?
21802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803   (exit $ac_status); }; } &&
21804          { ac_try='test -s conftest$ac_exeext'
21805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21806   (eval $ac_try) 2>&5
21807   ac_status=$?
21808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809   (exit $ac_status); }; }; then
21810
21811 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21812 }'`
21813 # Check for a 64-bit object if we didn't find anything.
21814 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; }
21815 }'`; fi
21816 else
21817   echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21819
21820 fi
21821 rm -f conftest.err conftest.$ac_objext \
21822       conftest$ac_exeext conftest.$ac_ext
21823 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21824
21825        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21826         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"
21827        else
21828         if test "$host_cpu" = ia64; then
21829           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21830           allow_undefined_flag_GCJ="-z nodefs"
21831           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"
21832         else
21833          # Determine the default libpath from the value encoded in an empty executable.
21834          cat >conftest.$ac_ext <<_ACEOF
21835 /* confdefs.h.  */
21836 _ACEOF
21837 cat confdefs.h >>conftest.$ac_ext
21838 cat >>conftest.$ac_ext <<_ACEOF
21839 /* end confdefs.h.  */
21840
21841 int
21842 main ()
21843 {
21844
21845   ;
21846   return 0;
21847 }
21848 _ACEOF
21849 rm -f conftest.$ac_objext conftest$ac_exeext
21850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21851   (eval $ac_link) 2>conftest.er1
21852   ac_status=$?
21853   grep -v '^ *+' conftest.er1 >conftest.err
21854   rm -f conftest.er1
21855   cat conftest.err >&5
21856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857   (exit $ac_status); } &&
21858          { ac_try='test -z "$ac_c_werror_flag"
21859                          || test ! -s conftest.err'
21860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21861   (eval $ac_try) 2>&5
21862   ac_status=$?
21863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864   (exit $ac_status); }; } &&
21865          { ac_try='test -s conftest$ac_exeext'
21866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21867   (eval $ac_try) 2>&5
21868   ac_status=$?
21869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870   (exit $ac_status); }; }; then
21871
21872 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21873 }'`
21874 # Check for a 64-bit object if we didn't find anything.
21875 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; }
21876 }'`; fi
21877 else
21878   echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21880
21881 fi
21882 rm -f conftest.err conftest.$ac_objext \
21883       conftest$ac_exeext conftest.$ac_ext
21884 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21885
21886          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21887           # Warning - without using the other run time loading flags,
21888           # -berok will link without error, but may produce a broken library.
21889           no_undefined_flag_GCJ=' ${wl}-bernotok'
21890           allow_undefined_flag_GCJ=' ${wl}-berok'
21891           # -bexpall does not export symbols beginning with underscore (_)
21892           always_export_symbols_GCJ=yes
21893           # Exported symbols can be pulled into shared objects from archives
21894           whole_archive_flag_spec_GCJ=' '
21895           archive_cmds_need_lc_GCJ=yes
21896           # This is similar to how AIX traditionally builds it's shared libraries.
21897           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'
21898         fi
21899       fi
21900       ;;
21901
21902     amigaos*)
21903       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)'
21904       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21905       hardcode_minus_L_GCJ=yes
21906       # see comment about different semantics on the GNU ld section
21907       ld_shlibs_GCJ=no
21908       ;;
21909
21910     bsdi[45]*)
21911       export_dynamic_flag_spec_GCJ=-rdynamic
21912       ;;
21913
21914     cygwin* | mingw* | pw32*)
21915       # When not using gcc, we currently assume that we are using
21916       # Microsoft Visual C++.
21917       # hardcode_libdir_flag_spec is actually meaningless, as there is
21918       # no search path for DLLs.
21919       hardcode_libdir_flag_spec_GCJ=' '
21920       allow_undefined_flag_GCJ=unsupported
21921       # Tell ltmain to make .lib files, not .a files.
21922       libext=lib
21923       # Tell ltmain to make .dll files, not .so files.
21924       shrext_cmds=".dll"
21925       # FIXME: Setting linknames here is a bad hack.
21926       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21927       # The linker will automatically build a .lib file if we build a DLL.
21928       old_archive_From_new_cmds_GCJ='true'
21929       # FIXME: Should let the user specify the lib program.
21930       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21931       fix_srcfile_path='`cygpath -w "$srcfile"`'
21932       enable_shared_with_static_runtimes_GCJ=yes
21933       ;;
21934
21935     darwin* | rhapsody*)
21936       case "$host_os" in
21937         rhapsody* | darwin1.[012])
21938          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21939          ;;
21940        *) # Darwin 1.3 on
21941          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21942            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21943          else
21944            case ${MACOSX_DEPLOYMENT_TARGET} in
21945              10.[012])
21946                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21947                ;;
21948              10.*)
21949                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21950                ;;
21951            esac
21952          fi
21953          ;;
21954       esac
21955       archive_cmds_need_lc_GCJ=no
21956       hardcode_direct_GCJ=no
21957       hardcode_automatic_GCJ=yes
21958       hardcode_shlibpath_var_GCJ=unsupported
21959       whole_archive_flag_spec_GCJ=''
21960       link_all_deplibs_GCJ=yes
21961     if test "$GCC" = yes ; then
21962         output_verbose_link_cmd='echo'
21963         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21964       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21965       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21966       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}'
21967       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}'
21968     else
21969       case "$cc_basename" in
21970         xlc*)
21971          output_verbose_link_cmd='echo'
21972          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21973          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21974           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21975          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}'
21976           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}'
21977           ;;
21978        *)
21979          ld_shlibs_GCJ=no
21980           ;;
21981       esac
21982     fi
21983       ;;
21984
21985     dgux*)
21986       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21987       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21988       hardcode_shlibpath_var_GCJ=no
21989       ;;
21990
21991     freebsd1*)
21992       ld_shlibs_GCJ=no
21993       ;;
21994
21995     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21996     # support.  Future versions do this automatically, but an explicit c++rt0.o
21997     # does not break anything, and helps significantly (at the cost of a little
21998     # extra space).
21999     freebsd2.2*)
22000       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22001       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22002       hardcode_direct_GCJ=yes
22003       hardcode_shlibpath_var_GCJ=no
22004       ;;
22005
22006     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22007     freebsd2*)
22008       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22009       hardcode_direct_GCJ=yes
22010       hardcode_minus_L_GCJ=yes
22011       hardcode_shlibpath_var_GCJ=no
22012       ;;
22013
22014     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22015     freebsd* | kfreebsd*-gnu)
22016       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22017       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22018       hardcode_direct_GCJ=yes
22019       hardcode_shlibpath_var_GCJ=no
22020       ;;
22021
22022     hpux9*)
22023       if test "$GCC" = yes; then
22024         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'
22025       else
22026         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'
22027       fi
22028       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22029       hardcode_libdir_separator_GCJ=:
22030       hardcode_direct_GCJ=yes
22031
22032       # hardcode_minus_L: Not really in the search PATH,
22033       # but as the default location of the library.
22034       hardcode_minus_L_GCJ=yes
22035       export_dynamic_flag_spec_GCJ='${wl}-E'
22036       ;;
22037
22038     hpux10* | hpux11*)
22039       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22040         case "$host_cpu" in
22041         hppa*64*|ia64*)
22042           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22043           ;;
22044         *)
22045           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22046           ;;
22047         esac
22048       else
22049         case "$host_cpu" in
22050         hppa*64*|ia64*)
22051           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22052           ;;
22053         *)
22054           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22055           ;;
22056         esac
22057       fi
22058       if test "$with_gnu_ld" = no; then
22059         case "$host_cpu" in
22060         hppa*64*)
22061           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22062           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22063           hardcode_libdir_separator_GCJ=:
22064           hardcode_direct_GCJ=no
22065           hardcode_shlibpath_var_GCJ=no
22066           ;;
22067         ia64*)
22068           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22069           hardcode_direct_GCJ=no
22070           hardcode_shlibpath_var_GCJ=no
22071
22072           # hardcode_minus_L: Not really in the search PATH,
22073           # but as the default location of the library.
22074           hardcode_minus_L_GCJ=yes
22075           ;;
22076         *)
22077           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22078           hardcode_libdir_separator_GCJ=:
22079           hardcode_direct_GCJ=yes
22080           export_dynamic_flag_spec_GCJ='${wl}-E'
22081
22082           # hardcode_minus_L: Not really in the search PATH,
22083           # but as the default location of the library.
22084           hardcode_minus_L_GCJ=yes
22085           ;;
22086         esac
22087       fi
22088       ;;
22089
22090     irix5* | irix6* | nonstopux*)
22091       if test "$GCC" = yes; then
22092         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'
22093       else
22094         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'
22095         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22096       fi
22097       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22098       hardcode_libdir_separator_GCJ=:
22099       link_all_deplibs_GCJ=yes
22100       ;;
22101
22102     netbsd*)
22103       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22104         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22105       else
22106         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22107       fi
22108       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22109       hardcode_direct_GCJ=yes
22110       hardcode_shlibpath_var_GCJ=no
22111       ;;
22112
22113     newsos6)
22114       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22115       hardcode_direct_GCJ=yes
22116       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22117       hardcode_libdir_separator_GCJ=:
22118       hardcode_shlibpath_var_GCJ=no
22119       ;;
22120
22121     openbsd*)
22122       hardcode_direct_GCJ=yes
22123       hardcode_shlibpath_var_GCJ=no
22124       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22125         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22126         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22127         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22128         export_dynamic_flag_spec_GCJ='${wl}-E'
22129       else
22130        case $host_os in
22131          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22132            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22133            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22134            ;;
22135          *)
22136            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22137            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22138            ;;
22139        esac
22140       fi
22141       ;;
22142
22143     os2*)
22144       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22145       hardcode_minus_L_GCJ=yes
22146       allow_undefined_flag_GCJ=unsupported
22147       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'
22148       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22149       ;;
22150
22151     osf3*)
22152       if test "$GCC" = yes; then
22153         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22154         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'
22155       else
22156         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22157         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'
22158       fi
22159       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22160       hardcode_libdir_separator_GCJ=:
22161       ;;
22162
22163     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22164       if test "$GCC" = yes; then
22165         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22166         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'
22167         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22168       else
22169         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22170         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'
22171         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~
22172         $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'
22173
22174         # Both c and cxx compiler support -rpath directly
22175         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22176       fi
22177       hardcode_libdir_separator_GCJ=:
22178       ;;
22179
22180     sco3.2v5*)
22181       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22182       hardcode_shlibpath_var_GCJ=no
22183       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22184       runpath_var=LD_RUN_PATH
22185       hardcode_runpath_var=yes
22186       ;;
22187
22188     solaris*)
22189       no_undefined_flag_GCJ=' -z text'
22190       if test "$GCC" = yes; then
22191         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22192         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22193           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22194       else
22195         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22196         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22197         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22198       fi
22199       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22200       hardcode_shlibpath_var_GCJ=no
22201       case $host_os in
22202       solaris2.[0-5] | solaris2.[0-5].*) ;;
22203       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22204         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22205       esac
22206       link_all_deplibs_GCJ=yes
22207       ;;
22208
22209     sunos4*)
22210       if test "x$host_vendor" = xsequent; then
22211         # Use $CC to link under sequent, because it throws in some extra .o
22212         # files that make .init and .fini sections work.
22213         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22214       else
22215         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22216       fi
22217       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22218       hardcode_direct_GCJ=yes
22219       hardcode_minus_L_GCJ=yes
22220       hardcode_shlibpath_var_GCJ=no
22221       ;;
22222
22223     sysv4)
22224       case $host_vendor in
22225         sni)
22226           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22227           hardcode_direct_GCJ=yes # is this really true???
22228         ;;
22229         siemens)
22230           ## LD is ld it makes a PLAMLIB
22231           ## CC just makes a GrossModule.
22232           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22233           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22234           hardcode_direct_GCJ=no
22235         ;;
22236         motorola)
22237           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22238           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22239         ;;
22240       esac
22241       runpath_var='LD_RUN_PATH'
22242       hardcode_shlibpath_var_GCJ=no
22243       ;;
22244
22245     sysv4.3*)
22246       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22247       hardcode_shlibpath_var_GCJ=no
22248       export_dynamic_flag_spec_GCJ='-Bexport'
22249       ;;
22250
22251     sysv4*MP*)
22252       if test -d /usr/nec; then
22253         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22254         hardcode_shlibpath_var_GCJ=no
22255         runpath_var=LD_RUN_PATH
22256         hardcode_runpath_var=yes
22257         ld_shlibs_GCJ=yes
22258       fi
22259       ;;
22260
22261     sysv4.2uw2*)
22262       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22263       hardcode_direct_GCJ=yes
22264       hardcode_minus_L_GCJ=no
22265       hardcode_shlibpath_var_GCJ=no
22266       hardcode_runpath_var=yes
22267       runpath_var=LD_RUN_PATH
22268       ;;
22269
22270    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22271       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22272       if test "$GCC" = yes; then
22273         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22274       else
22275         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22276       fi
22277       runpath_var='LD_RUN_PATH'
22278       hardcode_shlibpath_var_GCJ=no
22279       ;;
22280
22281     sysv5*)
22282       no_undefined_flag_GCJ=' -z text'
22283       # $CC -shared without GNU ld will not create a library from C++
22284       # object files and a static libstdc++, better avoid it by now
22285       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22286       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22287                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22288       hardcode_libdir_flag_spec_GCJ=
22289       hardcode_shlibpath_var_GCJ=no
22290       runpath_var='LD_RUN_PATH'
22291       ;;
22292
22293     uts4*)
22294       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22295       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22296       hardcode_shlibpath_var_GCJ=no
22297       ;;
22298
22299     *)
22300       ld_shlibs_GCJ=no
22301       ;;
22302     esac
22303   fi
22304
22305 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22306 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22307 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22308
22309 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22310 if test "$GCC" = yes; then
22311   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22312 fi
22313
22314 #
22315 # Do we need to explicitly link libc?
22316 #
22317 case "x$archive_cmds_need_lc_GCJ" in
22318 x|xyes)
22319   # Assume -lc should be added
22320   archive_cmds_need_lc_GCJ=yes
22321
22322   if test "$enable_shared" = yes && test "$GCC" = yes; then
22323     case $archive_cmds_GCJ in
22324     *'~'*)
22325       # FIXME: we may have to deal with multi-command sequences.
22326       ;;
22327     '$CC '*)
22328       # Test whether the compiler implicitly links with -lc since on some
22329       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22330       # to ld, don't add -lc before -lgcc.
22331       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22332 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22333       $rm conftest*
22334       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22335
22336       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22337   (eval $ac_compile) 2>&5
22338   ac_status=$?
22339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340   (exit $ac_status); } 2>conftest.err; then
22341         soname=conftest
22342         lib=conftest
22343         libobjs=conftest.$ac_objext
22344         deplibs=
22345         wl=$lt_prog_compiler_wl_GCJ
22346         compiler_flags=-v
22347         linker_flags=-v
22348         verstring=
22349         output_objdir=.
22350         libname=conftest
22351         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22352         allow_undefined_flag_GCJ=
22353         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22354   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22355   ac_status=$?
22356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357   (exit $ac_status); }
22358         then
22359           archive_cmds_need_lc_GCJ=no
22360         else
22361           archive_cmds_need_lc_GCJ=yes
22362         fi
22363         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22364       else
22365         cat conftest.err 1>&5
22366       fi
22367       $rm conftest*
22368       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22369 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22370       ;;
22371     esac
22372   fi
22373   ;;
22374 esac
22375
22376 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22377 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22378 library_names_spec=
22379 libname_spec='lib$name'
22380 soname_spec=
22381 shrext_cmds=".so"
22382 postinstall_cmds=
22383 postuninstall_cmds=
22384 finish_cmds=
22385 finish_eval=
22386 shlibpath_var=
22387 shlibpath_overrides_runpath=unknown
22388 version_type=none
22389 dynamic_linker="$host_os ld.so"
22390 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22391 if test "$GCC" = yes; then
22392   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22393   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22394     # if the path contains ";" then we assume it to be the separator
22395     # otherwise default to the standard path separator (i.e. ":") - it is
22396     # assumed that no part of a normal pathname contains ";" but that should
22397     # okay in the real world where ";" in dirpaths is itself problematic.
22398     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22399   else
22400     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22401   fi
22402 else
22403   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22404 fi
22405 need_lib_prefix=unknown
22406 hardcode_into_libs=no
22407
22408 # when you set need_version to no, make sure it does not cause -set_version
22409 # flags to be left without arguments
22410 need_version=unknown
22411
22412 case $host_os in
22413 aix3*)
22414   version_type=linux
22415   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22416   shlibpath_var=LIBPATH
22417
22418   # AIX 3 has no versioning support, so we append a major version to the name.
22419   soname_spec='${libname}${release}${shared_ext}$major'
22420   ;;
22421
22422 aix4* | aix5*)
22423   version_type=linux
22424   need_lib_prefix=no
22425   need_version=no
22426   hardcode_into_libs=yes
22427   if test "$host_cpu" = ia64; then
22428     # AIX 5 supports IA64
22429     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22430     shlibpath_var=LD_LIBRARY_PATH
22431   else
22432     # With GCC up to 2.95.x, collect2 would create an import file
22433     # for dependence libraries.  The import file would start with
22434     # the line `#! .'.  This would cause the generated library to
22435     # depend on `.', always an invalid library.  This was fixed in
22436     # development snapshots of GCC prior to 3.0.
22437     case $host_os in
22438       aix4 | aix4.[01] | aix4.[01].*)
22439       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22440            echo ' yes '
22441            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22442         :
22443       else
22444         can_build_shared=no
22445       fi
22446       ;;
22447     esac
22448     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22449     # soname into executable. Probably we can add versioning support to
22450     # collect2, so additional links can be useful in future.
22451     if test "$aix_use_runtimelinking" = yes; then
22452       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22453       # instead of lib<name>.a to let people know that these are not
22454       # typical AIX shared libraries.
22455       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22456     else
22457       # We preserve .a as extension for shared libraries through AIX4.2
22458       # and later when we are not doing run time linking.
22459       library_names_spec='${libname}${release}.a $libname.a'
22460       soname_spec='${libname}${release}${shared_ext}$major'
22461     fi
22462     shlibpath_var=LIBPATH
22463   fi
22464   ;;
22465
22466 amigaos*)
22467   library_names_spec='$libname.ixlibrary $libname.a'
22468   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22469   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'
22470   ;;
22471
22472 beos*)
22473   library_names_spec='${libname}${shared_ext}'
22474   dynamic_linker="$host_os ld.so"
22475   shlibpath_var=LIBRARY_PATH
22476   ;;
22477
22478 bsdi[45]*)
22479   version_type=linux
22480   need_version=no
22481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22482   soname_spec='${libname}${release}${shared_ext}$major'
22483   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22484   shlibpath_var=LD_LIBRARY_PATH
22485   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22486   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22487   # the default ld.so.conf also contains /usr/contrib/lib and
22488   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22489   # libtool to hard-code these into programs
22490   ;;
22491
22492 cygwin* | mingw* | pw32*)
22493   version_type=windows
22494   shrext_cmds=".dll"
22495   need_version=no
22496   need_lib_prefix=no
22497
22498   case $GCC,$host_os in
22499   yes,cygwin* | yes,mingw* | yes,pw32*)
22500     library_names_spec='$libname.dll.a'
22501     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22502     postinstall_cmds='base_file=`basename \${file}`~
22503       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22504       dldir=$destdir/`dirname \$dlpath`~
22505       test -d \$dldir || mkdir -p \$dldir~
22506       $install_prog $dir/$dlname \$dldir/$dlname'
22507     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22508       dlpath=$dir/\$dldll~
22509        $rm \$dlpath'
22510     shlibpath_overrides_runpath=yes
22511
22512     case $host_os in
22513     cygwin*)
22514       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22515       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22516       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22517       ;;
22518     mingw*)
22519       # MinGW DLLs use traditional 'lib' prefix
22520       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22521       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22522       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22523         # It is most probably a Windows format PATH printed by
22524         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22525         # path with ; separators, and with drive letters. We can handle the
22526         # drive letters (cygwin fileutils understands them), so leave them,
22527         # especially as we might pass files found there to a mingw objdump,
22528         # which wouldn't understand a cygwinified path. Ahh.
22529         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22530       else
22531         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22532       fi
22533       ;;
22534     pw32*)
22535       # pw32 DLLs use 'pw' prefix rather than 'lib'
22536       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22537       ;;
22538     esac
22539     ;;
22540
22541   *)
22542     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22543     ;;
22544   esac
22545   dynamic_linker='Win32 ld.exe'
22546   # FIXME: first we should search . and the directory the executable is in
22547   shlibpath_var=PATH
22548   ;;
22549
22550 darwin* | rhapsody*)
22551   dynamic_linker="$host_os dyld"
22552   version_type=darwin
22553   need_lib_prefix=no
22554   need_version=no
22555   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22556   soname_spec='${libname}${release}${major}$shared_ext'
22557   shlibpath_overrides_runpath=yes
22558   shlibpath_var=DYLD_LIBRARY_PATH
22559   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22560   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22561   if test "$GCC" = yes; then
22562     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"`
22563   else
22564     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22565   fi
22566   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22567   ;;
22568
22569 dgux*)
22570   version_type=linux
22571   need_lib_prefix=no
22572   need_version=no
22573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22574   soname_spec='${libname}${release}${shared_ext}$major'
22575   shlibpath_var=LD_LIBRARY_PATH
22576   ;;
22577
22578 freebsd1*)
22579   dynamic_linker=no
22580   ;;
22581
22582 kfreebsd*-gnu)
22583   version_type=linux
22584   need_lib_prefix=no
22585   need_version=no
22586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22587   soname_spec='${libname}${release}${shared_ext}$major'
22588   shlibpath_var=LD_LIBRARY_PATH
22589   shlibpath_overrides_runpath=no
22590   hardcode_into_libs=yes
22591   dynamic_linker='GNU ld.so'
22592   ;;
22593
22594 freebsd*)
22595   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22596   version_type=freebsd-$objformat
22597   case $version_type in
22598     freebsd-elf*)
22599       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22600       need_version=no
22601       need_lib_prefix=no
22602       ;;
22603     freebsd-*)
22604       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22605       need_version=yes
22606       ;;
22607   esac
22608   shlibpath_var=LD_LIBRARY_PATH
22609   case $host_os in
22610   freebsd2*)
22611     shlibpath_overrides_runpath=yes
22612     ;;
22613   freebsd3.01* | freebsdelf3.01*)
22614     shlibpath_overrides_runpath=yes
22615     hardcode_into_libs=yes
22616     ;;
22617   *) # from 3.2 on
22618     shlibpath_overrides_runpath=no
22619     hardcode_into_libs=yes
22620     ;;
22621   esac
22622   ;;
22623
22624 gnu*)
22625   version_type=linux
22626   need_lib_prefix=no
22627   need_version=no
22628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22629   soname_spec='${libname}${release}${shared_ext}$major'
22630   shlibpath_var=LD_LIBRARY_PATH
22631   hardcode_into_libs=yes
22632   ;;
22633
22634 hpux9* | hpux10* | hpux11*)
22635   # Give a soname corresponding to the major version so that dld.sl refuses to
22636   # link against other versions.
22637   version_type=sunos
22638   need_lib_prefix=no
22639   need_version=no
22640   case "$host_cpu" in
22641   ia64*)
22642     shrext_cmds='.so'
22643     hardcode_into_libs=yes
22644     dynamic_linker="$host_os dld.so"
22645     shlibpath_var=LD_LIBRARY_PATH
22646     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22647     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22648     soname_spec='${libname}${release}${shared_ext}$major'
22649     if test "X$HPUX_IA64_MODE" = X32; then
22650       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22651     else
22652       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22653     fi
22654     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22655     ;;
22656    hppa*64*)
22657      shrext_cmds='.sl'
22658      hardcode_into_libs=yes
22659      dynamic_linker="$host_os dld.sl"
22660      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22661      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22662      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22663      soname_spec='${libname}${release}${shared_ext}$major'
22664      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22665      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22666      ;;
22667    *)
22668     shrext_cmds='.sl'
22669     dynamic_linker="$host_os dld.sl"
22670     shlibpath_var=SHLIB_PATH
22671     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22672     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22673     soname_spec='${libname}${release}${shared_ext}$major'
22674     ;;
22675   esac
22676   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22677   postinstall_cmds='chmod 555 $lib'
22678   ;;
22679
22680 irix5* | irix6* | nonstopux*)
22681   case $host_os in
22682     nonstopux*) version_type=nonstopux ;;
22683     *)
22684         if test "$lt_cv_prog_gnu_ld" = yes; then
22685                 version_type=linux
22686         else
22687                 version_type=irix
22688         fi ;;
22689   esac
22690   need_lib_prefix=no
22691   need_version=no
22692   soname_spec='${libname}${release}${shared_ext}$major'
22693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22694   case $host_os in
22695   irix5* | nonstopux*)
22696     libsuff= shlibsuff=
22697     ;;
22698   *)
22699     case $LD in # libtool.m4 will add one of these switches to LD
22700     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22701       libsuff= shlibsuff= libmagic=32-bit;;
22702     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22703       libsuff=32 shlibsuff=N32 libmagic=N32;;
22704     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22705       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22706     *) libsuff= shlibsuff= libmagic=never-match;;
22707     esac
22708     ;;
22709   esac
22710   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22711   shlibpath_overrides_runpath=no
22712   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22713   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22714   hardcode_into_libs=yes
22715   ;;
22716
22717 # No shared lib support for Linux oldld, aout, or coff.
22718 linux*oldld* | linux*aout* | linux*coff*)
22719   dynamic_linker=no
22720   ;;
22721
22722 # This must be Linux ELF.
22723 linux*)
22724   version_type=linux
22725   need_lib_prefix=no
22726   need_version=no
22727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22728   soname_spec='${libname}${release}${shared_ext}$major'
22729   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22730   shlibpath_var=LD_LIBRARY_PATH
22731   shlibpath_overrides_runpath=no
22732   # This implies no fast_install, which is unacceptable.
22733   # Some rework will be needed to allow for fast_install
22734   # before this can be enabled.
22735   hardcode_into_libs=yes
22736
22737   # Append ld.so.conf contents to the search path
22738   if test -f /etc/ld.so.conf; then
22739     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22740     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22741   fi
22742
22743   # We used to test for /lib/ld.so.1 and disable shared libraries on
22744   # powerpc, because MkLinux only supported shared libraries with the
22745   # GNU dynamic linker.  Since this was broken with cross compilers,
22746   # most powerpc-linux boxes support dynamic linking these days and
22747   # people can always --disable-shared, the test was removed, and we
22748   # assume the GNU/Linux dynamic linker is in use.
22749   dynamic_linker='GNU/Linux ld.so'
22750   ;;
22751
22752 knetbsd*-gnu)
22753   version_type=linux
22754   need_lib_prefix=no
22755   need_version=no
22756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22757   soname_spec='${libname}${release}${shared_ext}$major'
22758   shlibpath_var=LD_LIBRARY_PATH
22759   shlibpath_overrides_runpath=no
22760   hardcode_into_libs=yes
22761   dynamic_linker='GNU ld.so'
22762   ;;
22763
22764 netbsd*)
22765   version_type=sunos
22766   need_lib_prefix=no
22767   need_version=no
22768   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22769     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22770     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22771     dynamic_linker='NetBSD (a.out) ld.so'
22772   else
22773     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22774     soname_spec='${libname}${release}${shared_ext}$major'
22775     dynamic_linker='NetBSD ld.elf_so'
22776   fi
22777   shlibpath_var=LD_LIBRARY_PATH
22778   shlibpath_overrides_runpath=yes
22779   hardcode_into_libs=yes
22780   ;;
22781
22782 newsos6)
22783   version_type=linux
22784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22785   shlibpath_var=LD_LIBRARY_PATH
22786   shlibpath_overrides_runpath=yes
22787   ;;
22788
22789 nto-qnx*)
22790   version_type=linux
22791   need_lib_prefix=no
22792   need_version=no
22793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22794   soname_spec='${libname}${release}${shared_ext}$major'
22795   shlibpath_var=LD_LIBRARY_PATH
22796   shlibpath_overrides_runpath=yes
22797   ;;
22798
22799 openbsd*)
22800   version_type=sunos
22801   need_lib_prefix=no
22802   need_version=no
22803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22804   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22805   shlibpath_var=LD_LIBRARY_PATH
22806   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22807     case $host_os in
22808       openbsd2.[89] | openbsd2.[89].*)
22809         shlibpath_overrides_runpath=no
22810         ;;
22811       *)
22812         shlibpath_overrides_runpath=yes
22813         ;;
22814       esac
22815   else
22816     shlibpath_overrides_runpath=yes
22817   fi
22818   ;;
22819
22820 os2*)
22821   libname_spec='$name'
22822   shrext_cmds=".dll"
22823   need_lib_prefix=no
22824   library_names_spec='$libname${shared_ext} $libname.a'
22825   dynamic_linker='OS/2 ld.exe'
22826   shlibpath_var=LIBPATH
22827   ;;
22828
22829 osf3* | osf4* | osf5*)
22830   version_type=osf
22831   need_lib_prefix=no
22832   need_version=no
22833   soname_spec='${libname}${release}${shared_ext}$major'
22834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22835   shlibpath_var=LD_LIBRARY_PATH
22836   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22837   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22838   ;;
22839
22840 sco3.2v5*)
22841   version_type=osf
22842   soname_spec='${libname}${release}${shared_ext}$major'
22843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22844   shlibpath_var=LD_LIBRARY_PATH
22845   ;;
22846
22847 solaris*)
22848   version_type=linux
22849   need_lib_prefix=no
22850   need_version=no
22851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22852   soname_spec='${libname}${release}${shared_ext}$major'
22853   shlibpath_var=LD_LIBRARY_PATH
22854   shlibpath_overrides_runpath=yes
22855   hardcode_into_libs=yes
22856   # ldd complains unless libraries are executable
22857   postinstall_cmds='chmod +x $lib'
22858   ;;
22859
22860 sunos4*)
22861   version_type=sunos
22862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22863   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22864   shlibpath_var=LD_LIBRARY_PATH
22865   shlibpath_overrides_runpath=yes
22866   if test "$with_gnu_ld" = yes; then
22867     need_lib_prefix=no
22868   fi
22869   need_version=yes
22870   ;;
22871
22872 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22873   version_type=linux
22874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22875   soname_spec='${libname}${release}${shared_ext}$major'
22876   shlibpath_var=LD_LIBRARY_PATH
22877   case $host_vendor in
22878     sni)
22879       shlibpath_overrides_runpath=no
22880       need_lib_prefix=no
22881       export_dynamic_flag_spec='${wl}-Blargedynsym'
22882       runpath_var=LD_RUN_PATH
22883       ;;
22884     siemens)
22885       need_lib_prefix=no
22886       ;;
22887     motorola)
22888       need_lib_prefix=no
22889       need_version=no
22890       shlibpath_overrides_runpath=no
22891       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22892       ;;
22893   esac
22894   ;;
22895
22896 sysv4*MP*)
22897   if test -d /usr/nec ;then
22898     version_type=linux
22899     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22900     soname_spec='$libname${shared_ext}.$major'
22901     shlibpath_var=LD_LIBRARY_PATH
22902   fi
22903   ;;
22904
22905 uts4*)
22906   version_type=linux
22907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22908   soname_spec='${libname}${release}${shared_ext}$major'
22909   shlibpath_var=LD_LIBRARY_PATH
22910   ;;
22911
22912 *)
22913   dynamic_linker=no
22914   ;;
22915 esac
22916 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22917 echo "${ECHO_T}$dynamic_linker" >&6
22918 test "$dynamic_linker" = no && can_build_shared=no
22919
22920 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22921 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22922 hardcode_action_GCJ=
22923 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22924    test -n "$runpath_var_GCJ" || \
22925    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22926
22927   # We can hardcode non-existant directories.
22928   if test "$hardcode_direct_GCJ" != no &&
22929      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22930      # have to relink, otherwise we might link with an installed library
22931      # when we should be linking with a yet-to-be-installed one
22932      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22933      test "$hardcode_minus_L_GCJ" != no; then
22934     # Linking always hardcodes the temporary library directory.
22935     hardcode_action_GCJ=relink
22936   else
22937     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22938     hardcode_action_GCJ=immediate
22939   fi
22940 else
22941   # We cannot hardcode anything, or else we can only hardcode existing
22942   # directories.
22943   hardcode_action_GCJ=unsupported
22944 fi
22945 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22946 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22947
22948 if test "$hardcode_action_GCJ" = relink; then
22949   # Fast installation is not supported
22950   enable_fast_install=no
22951 elif test "$shlibpath_overrides_runpath" = yes ||
22952      test "$enable_shared" = no; then
22953   # Fast installation is not necessary
22954   enable_fast_install=needless
22955 fi
22956
22957 striplib=
22958 old_striplib=
22959 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22960 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22961 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22962   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22963   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22964   echo "$as_me:$LINENO: result: yes" >&5
22965 echo "${ECHO_T}yes" >&6
22966 else
22967 # FIXME - insert some real tests, host_os isn't really good enough
22968   case $host_os in
22969    darwin*)
22970        if test -n "$STRIP" ; then
22971          striplib="$STRIP -x"
22972          echo "$as_me:$LINENO: result: yes" >&5
22973 echo "${ECHO_T}yes" >&6
22974        else
22975   echo "$as_me:$LINENO: result: no" >&5
22976 echo "${ECHO_T}no" >&6
22977 fi
22978        ;;
22979    *)
22980   echo "$as_me:$LINENO: result: no" >&5
22981 echo "${ECHO_T}no" >&6
22982     ;;
22983   esac
22984 fi
22985
22986 if test "x$enable_dlopen" != xyes; then
22987   enable_dlopen=unknown
22988   enable_dlopen_self=unknown
22989   enable_dlopen_self_static=unknown
22990 else
22991   lt_cv_dlopen=no
22992   lt_cv_dlopen_libs=
22993
22994   case $host_os in
22995   beos*)
22996     lt_cv_dlopen="load_add_on"
22997     lt_cv_dlopen_libs=
22998     lt_cv_dlopen_self=yes
22999     ;;
23000
23001   mingw* | pw32*)
23002     lt_cv_dlopen="LoadLibrary"
23003     lt_cv_dlopen_libs=
23004    ;;
23005
23006   cygwin*)
23007     lt_cv_dlopen="dlopen"
23008     lt_cv_dlopen_libs=
23009    ;;
23010
23011   darwin*)
23012   # if libdl is installed we need to link against it
23013     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23014 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23015 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23016   echo $ECHO_N "(cached) $ECHO_C" >&6
23017 else
23018   ac_check_lib_save_LIBS=$LIBS
23019 LIBS="-ldl  $LIBS"
23020 cat >conftest.$ac_ext <<_ACEOF
23021 /* confdefs.h.  */
23022 _ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h.  */
23026
23027 /* Override any gcc2 internal prototype to avoid an error.  */
23028 #ifdef __cplusplus
23029 extern "C"
23030 #endif
23031 /* We use char because int might match the return type of a gcc2
23032    builtin and then its argument prototype would still apply.  */
23033 char dlopen ();
23034 int
23035 main ()
23036 {
23037 dlopen ();
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_lib_dl_dlopen=yes
23065 else
23066   echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23068
23069 ac_cv_lib_dl_dlopen=no
23070 fi
23071 rm -f conftest.err conftest.$ac_objext \
23072       conftest$ac_exeext conftest.$ac_ext
23073 LIBS=$ac_check_lib_save_LIBS
23074 fi
23075 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23076 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23077 if test $ac_cv_lib_dl_dlopen = yes; then
23078   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23079 else
23080
23081     lt_cv_dlopen="dyld"
23082     lt_cv_dlopen_libs=
23083     lt_cv_dlopen_self=yes
23084
23085 fi
23086
23087    ;;
23088
23089   *)
23090     echo "$as_me:$LINENO: checking for shl_load" >&5
23091 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23092 if test "${ac_cv_func_shl_load+set}" = set; then
23093   echo $ECHO_N "(cached) $ECHO_C" >&6
23094 else
23095   cat >conftest.$ac_ext <<_ACEOF
23096 /* confdefs.h.  */
23097 _ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h.  */
23101 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23103 #define shl_load innocuous_shl_load
23104
23105 /* System header to define __stub macros and hopefully few prototypes,
23106     which can conflict with char shl_load (); below.
23107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23108     <limits.h> exists even on freestanding compilers.  */
23109
23110 #ifdef __STDC__
23111 # include <limits.h>
23112 #else
23113 # include <assert.h>
23114 #endif
23115
23116 #undef shl_load
23117
23118 /* Override any gcc2 internal prototype to avoid an error.  */
23119 #ifdef __cplusplus
23120 extern "C"
23121 {
23122 #endif
23123 /* We use char because int might match the return type of a gcc2
23124    builtin and then its argument prototype would still apply.  */
23125 char shl_load ();
23126 /* The GNU C library defines this for functions which it implements
23127     to always fail with ENOSYS.  Some functions are actually named
23128     something starting with __ and the normal name is an alias.  */
23129 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23130 choke me
23131 #else
23132 char (*f) () = shl_load;
23133 #endif
23134 #ifdef __cplusplus
23135 }
23136 #endif
23137
23138 int
23139 main ()
23140 {
23141 return f != shl_load;
23142   ;
23143   return 0;
23144 }
23145 _ACEOF
23146 rm -f conftest.$ac_objext conftest$ac_exeext
23147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23148   (eval $ac_link) 2>conftest.er1
23149   ac_status=$?
23150   grep -v '^ *+' conftest.er1 >conftest.err
23151   rm -f conftest.er1
23152   cat conftest.err >&5
23153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); } &&
23155          { ac_try='test -z "$ac_c_werror_flag"
23156                          || test ! -s conftest.err'
23157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23158   (eval $ac_try) 2>&5
23159   ac_status=$?
23160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161   (exit $ac_status); }; } &&
23162          { ac_try='test -s conftest$ac_exeext'
23163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23164   (eval $ac_try) 2>&5
23165   ac_status=$?
23166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167   (exit $ac_status); }; }; then
23168   ac_cv_func_shl_load=yes
23169 else
23170   echo "$as_me: failed program was:" >&5
23171 sed 's/^/| /' conftest.$ac_ext >&5
23172
23173 ac_cv_func_shl_load=no
23174 fi
23175 rm -f conftest.err conftest.$ac_objext \
23176       conftest$ac_exeext conftest.$ac_ext
23177 fi
23178 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23179 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23180 if test $ac_cv_func_shl_load = yes; then
23181   lt_cv_dlopen="shl_load"
23182 else
23183   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23184 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23185 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23186   echo $ECHO_N "(cached) $ECHO_C" >&6
23187 else
23188   ac_check_lib_save_LIBS=$LIBS
23189 LIBS="-ldld  $LIBS"
23190 cat >conftest.$ac_ext <<_ACEOF
23191 /* confdefs.h.  */
23192 _ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h.  */
23196
23197 /* Override any gcc2 internal prototype to avoid an error.  */
23198 #ifdef __cplusplus
23199 extern "C"
23200 #endif
23201 /* We use char because int might match the return type of a gcc2
23202    builtin and then its argument prototype would still apply.  */
23203 char shl_load ();
23204 int
23205 main ()
23206 {
23207 shl_load ();
23208   ;
23209   return 0;
23210 }
23211 _ACEOF
23212 rm -f conftest.$ac_objext conftest$ac_exeext
23213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23214   (eval $ac_link) 2>conftest.er1
23215   ac_status=$?
23216   grep -v '^ *+' conftest.er1 >conftest.err
23217   rm -f conftest.er1
23218   cat conftest.err >&5
23219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220   (exit $ac_status); } &&
23221          { ac_try='test -z "$ac_c_werror_flag"
23222                          || test ! -s conftest.err'
23223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224   (eval $ac_try) 2>&5
23225   ac_status=$?
23226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227   (exit $ac_status); }; } &&
23228          { ac_try='test -s conftest$ac_exeext'
23229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230   (eval $ac_try) 2>&5
23231   ac_status=$?
23232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233   (exit $ac_status); }; }; then
23234   ac_cv_lib_dld_shl_load=yes
23235 else
23236   echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23238
23239 ac_cv_lib_dld_shl_load=no
23240 fi
23241 rm -f conftest.err conftest.$ac_objext \
23242       conftest$ac_exeext conftest.$ac_ext
23243 LIBS=$ac_check_lib_save_LIBS
23244 fi
23245 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23246 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23247 if test $ac_cv_lib_dld_shl_load = yes; then
23248   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23249 else
23250   echo "$as_me:$LINENO: checking for dlopen" >&5
23251 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23252 if test "${ac_cv_func_dlopen+set}" = set; then
23253   echo $ECHO_N "(cached) $ECHO_C" >&6
23254 else
23255   cat >conftest.$ac_ext <<_ACEOF
23256 /* confdefs.h.  */
23257 _ACEOF
23258 cat confdefs.h >>conftest.$ac_ext
23259 cat >>conftest.$ac_ext <<_ACEOF
23260 /* end confdefs.h.  */
23261 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23263 #define dlopen innocuous_dlopen
23264
23265 /* System header to define __stub macros and hopefully few prototypes,
23266     which can conflict with char dlopen (); below.
23267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23268     <limits.h> exists even on freestanding compilers.  */
23269
23270 #ifdef __STDC__
23271 # include <limits.h>
23272 #else
23273 # include <assert.h>
23274 #endif
23275
23276 #undef dlopen
23277
23278 /* Override any gcc2 internal prototype to avoid an error.  */
23279 #ifdef __cplusplus
23280 extern "C"
23281 {
23282 #endif
23283 /* We use char because int might match the return type of a gcc2
23284    builtin and then its argument prototype would still apply.  */
23285 char dlopen ();
23286 /* The GNU C library defines this for functions which it implements
23287     to always fail with ENOSYS.  Some functions are actually named
23288     something starting with __ and the normal name is an alias.  */
23289 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23290 choke me
23291 #else
23292 char (*f) () = dlopen;
23293 #endif
23294 #ifdef __cplusplus
23295 }
23296 #endif
23297
23298 int
23299 main ()
23300 {
23301 return f != dlopen;
23302   ;
23303   return 0;
23304 }
23305 _ACEOF
23306 rm -f conftest.$ac_objext conftest$ac_exeext
23307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23308   (eval $ac_link) 2>conftest.er1
23309   ac_status=$?
23310   grep -v '^ *+' conftest.er1 >conftest.err
23311   rm -f conftest.er1
23312   cat conftest.err >&5
23313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314   (exit $ac_status); } &&
23315          { ac_try='test -z "$ac_c_werror_flag"
23316                          || test ! -s conftest.err'
23317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23318   (eval $ac_try) 2>&5
23319   ac_status=$?
23320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321   (exit $ac_status); }; } &&
23322          { ac_try='test -s conftest$ac_exeext'
23323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324   (eval $ac_try) 2>&5
23325   ac_status=$?
23326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327   (exit $ac_status); }; }; then
23328   ac_cv_func_dlopen=yes
23329 else
23330   echo "$as_me: failed program was:" >&5
23331 sed 's/^/| /' conftest.$ac_ext >&5
23332
23333 ac_cv_func_dlopen=no
23334 fi
23335 rm -f conftest.err conftest.$ac_objext \
23336       conftest$ac_exeext conftest.$ac_ext
23337 fi
23338 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23339 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23340 if test $ac_cv_func_dlopen = yes; then
23341   lt_cv_dlopen="dlopen"
23342 else
23343   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23344 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23345 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23346   echo $ECHO_N "(cached) $ECHO_C" >&6
23347 else
23348   ac_check_lib_save_LIBS=$LIBS
23349 LIBS="-ldl  $LIBS"
23350 cat >conftest.$ac_ext <<_ACEOF
23351 /* confdefs.h.  */
23352 _ACEOF
23353 cat confdefs.h >>conftest.$ac_ext
23354 cat >>conftest.$ac_ext <<_ACEOF
23355 /* end confdefs.h.  */
23356
23357 /* Override any gcc2 internal prototype to avoid an error.  */
23358 #ifdef __cplusplus
23359 extern "C"
23360 #endif
23361 /* We use char because int might match the return type of a gcc2
23362    builtin and then its argument prototype would still apply.  */
23363 char dlopen ();
23364 int
23365 main ()
23366 {
23367 dlopen ();
23368   ;
23369   return 0;
23370 }
23371 _ACEOF
23372 rm -f conftest.$ac_objext conftest$ac_exeext
23373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23374   (eval $ac_link) 2>conftest.er1
23375   ac_status=$?
23376   grep -v '^ *+' conftest.er1 >conftest.err
23377   rm -f conftest.er1
23378   cat conftest.err >&5
23379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380   (exit $ac_status); } &&
23381          { ac_try='test -z "$ac_c_werror_flag"
23382                          || test ! -s conftest.err'
23383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384   (eval $ac_try) 2>&5
23385   ac_status=$?
23386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387   (exit $ac_status); }; } &&
23388          { ac_try='test -s conftest$ac_exeext'
23389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390   (eval $ac_try) 2>&5
23391   ac_status=$?
23392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393   (exit $ac_status); }; }; then
23394   ac_cv_lib_dl_dlopen=yes
23395 else
23396   echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23398
23399 ac_cv_lib_dl_dlopen=no
23400 fi
23401 rm -f conftest.err conftest.$ac_objext \
23402       conftest$ac_exeext conftest.$ac_ext
23403 LIBS=$ac_check_lib_save_LIBS
23404 fi
23405 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23406 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23407 if test $ac_cv_lib_dl_dlopen = yes; then
23408   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23409 else
23410   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23411 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23412 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23413   echo $ECHO_N "(cached) $ECHO_C" >&6
23414 else
23415   ac_check_lib_save_LIBS=$LIBS
23416 LIBS="-lsvld  $LIBS"
23417 cat >conftest.$ac_ext <<_ACEOF
23418 /* confdefs.h.  */
23419 _ACEOF
23420 cat confdefs.h >>conftest.$ac_ext
23421 cat >>conftest.$ac_ext <<_ACEOF
23422 /* end confdefs.h.  */
23423
23424 /* Override any gcc2 internal prototype to avoid an error.  */
23425 #ifdef __cplusplus
23426 extern "C"
23427 #endif
23428 /* We use char because int might match the return type of a gcc2
23429    builtin and then its argument prototype would still apply.  */
23430 char dlopen ();
23431 int
23432 main ()
23433 {
23434 dlopen ();
23435   ;
23436   return 0;
23437 }
23438 _ACEOF
23439 rm -f conftest.$ac_objext conftest$ac_exeext
23440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23441   (eval $ac_link) 2>conftest.er1
23442   ac_status=$?
23443   grep -v '^ *+' conftest.er1 >conftest.err
23444   rm -f conftest.er1
23445   cat conftest.err >&5
23446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447   (exit $ac_status); } &&
23448          { ac_try='test -z "$ac_c_werror_flag"
23449                          || test ! -s conftest.err'
23450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23451   (eval $ac_try) 2>&5
23452   ac_status=$?
23453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454   (exit $ac_status); }; } &&
23455          { ac_try='test -s conftest$ac_exeext'
23456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457   (eval $ac_try) 2>&5
23458   ac_status=$?
23459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460   (exit $ac_status); }; }; then
23461   ac_cv_lib_svld_dlopen=yes
23462 else
23463   echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23465
23466 ac_cv_lib_svld_dlopen=no
23467 fi
23468 rm -f conftest.err conftest.$ac_objext \
23469       conftest$ac_exeext conftest.$ac_ext
23470 LIBS=$ac_check_lib_save_LIBS
23471 fi
23472 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23473 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23474 if test $ac_cv_lib_svld_dlopen = yes; then
23475   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23476 else
23477   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23478 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23479 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23480   echo $ECHO_N "(cached) $ECHO_C" >&6
23481 else
23482   ac_check_lib_save_LIBS=$LIBS
23483 LIBS="-ldld  $LIBS"
23484 cat >conftest.$ac_ext <<_ACEOF
23485 /* confdefs.h.  */
23486 _ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h.  */
23490
23491 /* Override any gcc2 internal prototype to avoid an error.  */
23492 #ifdef __cplusplus
23493 extern "C"
23494 #endif
23495 /* We use char because int might match the return type of a gcc2
23496    builtin and then its argument prototype would still apply.  */
23497 char dld_link ();
23498 int
23499 main ()
23500 {
23501 dld_link ();
23502   ;
23503   return 0;
23504 }
23505 _ACEOF
23506 rm -f conftest.$ac_objext conftest$ac_exeext
23507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23508   (eval $ac_link) 2>conftest.er1
23509   ac_status=$?
23510   grep -v '^ *+' conftest.er1 >conftest.err
23511   rm -f conftest.er1
23512   cat conftest.err >&5
23513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514   (exit $ac_status); } &&
23515          { ac_try='test -z "$ac_c_werror_flag"
23516                          || test ! -s conftest.err'
23517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518   (eval $ac_try) 2>&5
23519   ac_status=$?
23520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521   (exit $ac_status); }; } &&
23522          { ac_try='test -s conftest$ac_exeext'
23523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524   (eval $ac_try) 2>&5
23525   ac_status=$?
23526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527   (exit $ac_status); }; }; then
23528   ac_cv_lib_dld_dld_link=yes
23529 else
23530   echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23532
23533 ac_cv_lib_dld_dld_link=no
23534 fi
23535 rm -f conftest.err conftest.$ac_objext \
23536       conftest$ac_exeext conftest.$ac_ext
23537 LIBS=$ac_check_lib_save_LIBS
23538 fi
23539 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23540 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23541 if test $ac_cv_lib_dld_dld_link = yes; then
23542   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23543 fi
23544
23545
23546 fi
23547
23548
23549 fi
23550
23551
23552 fi
23553
23554
23555 fi
23556
23557
23558 fi
23559
23560     ;;
23561   esac
23562
23563   if test "x$lt_cv_dlopen" != xno; then
23564     enable_dlopen=yes
23565   else
23566     enable_dlopen=no
23567   fi
23568
23569   case $lt_cv_dlopen in
23570   dlopen)
23571     save_CPPFLAGS="$CPPFLAGS"
23572     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23573
23574     save_LDFLAGS="$LDFLAGS"
23575     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23576
23577     save_LIBS="$LIBS"
23578     LIBS="$lt_cv_dlopen_libs $LIBS"
23579
23580     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23581 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23582 if test "${lt_cv_dlopen_self+set}" = set; then
23583   echo $ECHO_N "(cached) $ECHO_C" >&6
23584 else
23585           if test "$cross_compiling" = yes; then :
23586   lt_cv_dlopen_self=cross
23587 else
23588   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23589   lt_status=$lt_dlunknown
23590   cat > conftest.$ac_ext <<EOF
23591 #line 23591 "configure"
23592 #include "confdefs.h"
23593
23594 #if HAVE_DLFCN_H
23595 #include <dlfcn.h>
23596 #endif
23597
23598 #include <stdio.h>
23599
23600 #ifdef RTLD_GLOBAL
23601 #  define LT_DLGLOBAL           RTLD_GLOBAL
23602 #else
23603 #  ifdef DL_GLOBAL
23604 #    define LT_DLGLOBAL         DL_GLOBAL
23605 #  else
23606 #    define LT_DLGLOBAL         0
23607 #  endif
23608 #endif
23609
23610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23611    find out it does not work in some platform. */
23612 #ifndef LT_DLLAZY_OR_NOW
23613 #  ifdef RTLD_LAZY
23614 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23615 #  else
23616 #    ifdef DL_LAZY
23617 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23618 #    else
23619 #      ifdef RTLD_NOW
23620 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23621 #      else
23622 #        ifdef DL_NOW
23623 #          define LT_DLLAZY_OR_NOW      DL_NOW
23624 #        else
23625 #          define LT_DLLAZY_OR_NOW      0
23626 #        endif
23627 #      endif
23628 #    endif
23629 #  endif
23630 #endif
23631
23632 #ifdef __cplusplus
23633 extern "C" void exit (int);
23634 #endif
23635
23636 void fnord() { int i=42;}
23637 int main ()
23638 {
23639   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23640   int status = $lt_dlunknown;
23641
23642   if (self)
23643     {
23644       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23645       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23646       /* dlclose (self); */
23647     }
23648
23649     exit (status);
23650 }
23651 EOF
23652   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23653   (eval $ac_link) 2>&5
23654   ac_status=$?
23655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23657     (./conftest; exit; ) 2>/dev/null
23658     lt_status=$?
23659     case x$lt_status in
23660       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23661       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23662       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23663     esac
23664   else :
23665     # compilation failed
23666     lt_cv_dlopen_self=no
23667   fi
23668 fi
23669 rm -fr conftest*
23670
23671
23672 fi
23673 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23674 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23675
23676     if test "x$lt_cv_dlopen_self" = xyes; then
23677       LDFLAGS="$LDFLAGS $link_static_flag"
23678       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23679 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23680 if test "${lt_cv_dlopen_self_static+set}" = set; then
23681   echo $ECHO_N "(cached) $ECHO_C" >&6
23682 else
23683           if test "$cross_compiling" = yes; then :
23684   lt_cv_dlopen_self_static=cross
23685 else
23686   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23687   lt_status=$lt_dlunknown
23688   cat > conftest.$ac_ext <<EOF
23689 #line 23689 "configure"
23690 #include "confdefs.h"
23691
23692 #if HAVE_DLFCN_H
23693 #include <dlfcn.h>
23694 #endif
23695
23696 #include <stdio.h>
23697
23698 #ifdef RTLD_GLOBAL
23699 #  define LT_DLGLOBAL           RTLD_GLOBAL
23700 #else
23701 #  ifdef DL_GLOBAL
23702 #    define LT_DLGLOBAL         DL_GLOBAL
23703 #  else
23704 #    define LT_DLGLOBAL         0
23705 #  endif
23706 #endif
23707
23708 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23709    find out it does not work in some platform. */
23710 #ifndef LT_DLLAZY_OR_NOW
23711 #  ifdef RTLD_LAZY
23712 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23713 #  else
23714 #    ifdef DL_LAZY
23715 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23716 #    else
23717 #      ifdef RTLD_NOW
23718 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23719 #      else
23720 #        ifdef DL_NOW
23721 #          define LT_DLLAZY_OR_NOW      DL_NOW
23722 #        else
23723 #          define LT_DLLAZY_OR_NOW      0
23724 #        endif
23725 #      endif
23726 #    endif
23727 #  endif
23728 #endif
23729
23730 #ifdef __cplusplus
23731 extern "C" void exit (int);
23732 #endif
23733
23734 void fnord() { int i=42;}
23735 int main ()
23736 {
23737   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23738   int status = $lt_dlunknown;
23739
23740   if (self)
23741     {
23742       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23743       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23744       /* dlclose (self); */
23745     }
23746
23747     exit (status);
23748 }
23749 EOF
23750   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23751   (eval $ac_link) 2>&5
23752   ac_status=$?
23753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23755     (./conftest; exit; ) 2>/dev/null
23756     lt_status=$?
23757     case x$lt_status in
23758       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23759       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23760       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23761     esac
23762   else :
23763     # compilation failed
23764     lt_cv_dlopen_self_static=no
23765   fi
23766 fi
23767 rm -fr conftest*
23768
23769
23770 fi
23771 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23772 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23773     fi
23774
23775     CPPFLAGS="$save_CPPFLAGS"
23776     LDFLAGS="$save_LDFLAGS"
23777     LIBS="$save_LIBS"
23778     ;;
23779   esac
23780
23781   case $lt_cv_dlopen_self in
23782   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23783   *) enable_dlopen_self=unknown ;;
23784   esac
23785
23786   case $lt_cv_dlopen_self_static in
23787   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23788   *) enable_dlopen_self_static=unknown ;;
23789   esac
23790 fi
23791
23792
23793 # The else clause should only fire when bootstrapping the
23794 # libtool distribution, otherwise you forgot to ship ltmain.sh
23795 # with your package, and you will get complaints that there are
23796 # no rules to generate ltmain.sh.
23797 if test -f "$ltmain"; then
23798   # See if we are running on zsh, and set the options which allow our commands through
23799   # without removal of \ escapes.
23800   if test -n "${ZSH_VERSION+set}" ; then
23801     setopt NO_GLOB_SUBST
23802   fi
23803   # Now quote all the things that may contain metacharacters while being
23804   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23805   # variables and quote the copies for generation of the libtool script.
23806   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23807     SED SHELL STRIP \
23808     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23809     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23810     deplibs_check_method reload_flag reload_cmds need_locks \
23811     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23812     lt_cv_sys_global_symbol_to_c_name_address \
23813     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23814     old_postinstall_cmds old_postuninstall_cmds \
23815     compiler_GCJ \
23816     CC_GCJ \
23817     LD_GCJ \
23818     lt_prog_compiler_wl_GCJ \
23819     lt_prog_compiler_pic_GCJ \
23820     lt_prog_compiler_static_GCJ \
23821     lt_prog_compiler_no_builtin_flag_GCJ \
23822     export_dynamic_flag_spec_GCJ \
23823     thread_safe_flag_spec_GCJ \
23824     whole_archive_flag_spec_GCJ \
23825     enable_shared_with_static_runtimes_GCJ \
23826     old_archive_cmds_GCJ \
23827     old_archive_from_new_cmds_GCJ \
23828     predep_objects_GCJ \
23829     postdep_objects_GCJ \
23830     predeps_GCJ \
23831     postdeps_GCJ \
23832     compiler_lib_search_path_GCJ \
23833     archive_cmds_GCJ \
23834     archive_expsym_cmds_GCJ \
23835     postinstall_cmds_GCJ \
23836     postuninstall_cmds_GCJ \
23837     old_archive_from_expsyms_cmds_GCJ \
23838     allow_undefined_flag_GCJ \
23839     no_undefined_flag_GCJ \
23840     export_symbols_cmds_GCJ \
23841     hardcode_libdir_flag_spec_GCJ \
23842     hardcode_libdir_flag_spec_ld_GCJ \
23843     hardcode_libdir_separator_GCJ \
23844     hardcode_automatic_GCJ \
23845     module_cmds_GCJ \
23846     module_expsym_cmds_GCJ \
23847     lt_cv_prog_compiler_c_o_GCJ \
23848     exclude_expsyms_GCJ \
23849     include_expsyms_GCJ; do
23850
23851     case $var in
23852     old_archive_cmds_GCJ | \
23853     old_archive_from_new_cmds_GCJ | \
23854     archive_cmds_GCJ | \
23855     archive_expsym_cmds_GCJ | \
23856     module_cmds_GCJ | \
23857     module_expsym_cmds_GCJ | \
23858     old_archive_from_expsyms_cmds_GCJ | \
23859     export_symbols_cmds_GCJ | \
23860     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23861     postinstall_cmds | postuninstall_cmds | \
23862     old_postinstall_cmds | old_postuninstall_cmds | \
23863     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23864       # Double-quote double-evaled strings.
23865       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23866       ;;
23867     *)
23868       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23869       ;;
23870     esac
23871   done
23872
23873   case $lt_echo in
23874   *'\$0 --fallback-echo"')
23875     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23876     ;;
23877   esac
23878
23879 cfgfile="$ofile"
23880
23881   cat <<__EOF__ >> "$cfgfile"
23882 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23883
23884 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23885
23886 # Shell to use when invoking shell scripts.
23887 SHELL=$lt_SHELL
23888
23889 # Whether or not to build shared libraries.
23890 build_libtool_libs=$enable_shared
23891
23892 # Whether or not to build static libraries.
23893 build_old_libs=$enable_static
23894
23895 # Whether or not to add -lc for building shared libraries.
23896 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23897
23898 # Whether or not to disallow shared libs when runtime libs are static
23899 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23900
23901 # Whether or not to optimize for fast installation.
23902 fast_install=$enable_fast_install
23903
23904 # The host system.
23905 host_alias=$host_alias
23906 host=$host
23907
23908 # An echo program that does not interpret backslashes.
23909 echo=$lt_echo
23910
23911 # The archiver.
23912 AR=$lt_AR
23913 AR_FLAGS=$lt_AR_FLAGS
23914
23915 # A C compiler.
23916 LTCC=$lt_LTCC
23917
23918 # A language-specific compiler.
23919 CC=$lt_compiler_GCJ
23920
23921 # Is the compiler the GNU C compiler?
23922 with_gcc=$GCC_GCJ
23923
23924 # An ERE matcher.
23925 EGREP=$lt_EGREP
23926
23927 # The linker used to build libraries.
23928 LD=$lt_LD_GCJ
23929
23930 # Whether we need hard or soft links.
23931 LN_S=$lt_LN_S
23932
23933 # A BSD-compatible nm program.
23934 NM=$lt_NM
23935
23936 # A symbol stripping program
23937 STRIP=$lt_STRIP
23938
23939 # Used to examine libraries when file_magic_cmd begins "file"
23940 MAGIC_CMD=$MAGIC_CMD
23941
23942 # Used on cygwin: DLL creation program.
23943 DLLTOOL="$DLLTOOL"
23944
23945 # Used on cygwin: object dumper.
23946 OBJDUMP="$OBJDUMP"
23947
23948 # Used on cygwin: assembler.
23949 AS="$AS"
23950
23951 # The name of the directory that contains temporary libtool files.
23952 objdir=$objdir
23953
23954 # How to create reloadable object files.
23955 reload_flag=$lt_reload_flag
23956 reload_cmds=$lt_reload_cmds
23957
23958 # How to pass a linker flag through the compiler.
23959 wl=$lt_lt_prog_compiler_wl_GCJ
23960
23961 # Object file suffix (normally "o").
23962 objext="$ac_objext"
23963
23964 # Old archive suffix (normally "a").
23965 libext="$libext"
23966
23967 # Shared library suffix (normally ".so").
23968 shrext_cmds='$shrext_cmds'
23969
23970 # Executable file suffix (normally "").
23971 exeext="$exeext"
23972
23973 # Additional compiler flags for building library objects.
23974 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23975 pic_mode=$pic_mode
23976
23977 # What is the maximum length of a command?
23978 max_cmd_len=$lt_cv_sys_max_cmd_len
23979
23980 # Does compiler simultaneously support -c and -o options?
23981 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23982
23983 # Must we lock files when doing compilation ?
23984 need_locks=$lt_need_locks
23985
23986 # Do we need the lib prefix for modules?
23987 need_lib_prefix=$need_lib_prefix
23988
23989 # Do we need a version for libraries?
23990 need_version=$need_version
23991
23992 # Whether dlopen is supported.
23993 dlopen_support=$enable_dlopen
23994
23995 # Whether dlopen of programs is supported.
23996 dlopen_self=$enable_dlopen_self
23997
23998 # Whether dlopen of statically linked programs is supported.
23999 dlopen_self_static=$enable_dlopen_self_static
24000
24001 # Compiler flag to prevent dynamic linking.
24002 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24003
24004 # Compiler flag to turn off builtin functions.
24005 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24006
24007 # Compiler flag to allow reflexive dlopens.
24008 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24009
24010 # Compiler flag to generate shared objects directly from archives.
24011 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24012
24013 # Compiler flag to generate thread-safe objects.
24014 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24015
24016 # Library versioning type.
24017 version_type=$version_type
24018
24019 # Format of library name prefix.
24020 libname_spec=$lt_libname_spec
24021
24022 # List of archive names.  First name is the real one, the rest are links.
24023 # The last name is the one that the linker finds with -lNAME.
24024 library_names_spec=$lt_library_names_spec
24025
24026 # The coded name of the library, if different from the real name.
24027 soname_spec=$lt_soname_spec
24028
24029 # Commands used to build and install an old-style archive.
24030 RANLIB=$lt_RANLIB
24031 old_archive_cmds=$lt_old_archive_cmds_GCJ
24032 old_postinstall_cmds=$lt_old_postinstall_cmds
24033 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24034
24035 # Create an old-style archive from a shared archive.
24036 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24037
24038 # Create a temporary old-style archive to link instead of a shared archive.
24039 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24040
24041 # Commands used to build and install a shared archive.
24042 archive_cmds=$lt_archive_cmds_GCJ
24043 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24044 postinstall_cmds=$lt_postinstall_cmds
24045 postuninstall_cmds=$lt_postuninstall_cmds
24046
24047 # Commands used to build a loadable module (assumed same as above if empty)
24048 module_cmds=$lt_module_cmds_GCJ
24049 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24050
24051 # Commands to strip libraries.
24052 old_striplib=$lt_old_striplib
24053 striplib=$lt_striplib
24054
24055 # Dependencies to place before the objects being linked to create a
24056 # shared library.
24057 predep_objects=$lt_predep_objects_GCJ
24058
24059 # Dependencies to place after the objects being linked to create a
24060 # shared library.
24061 postdep_objects=$lt_postdep_objects_GCJ
24062
24063 # Dependencies to place before the objects being linked to create a
24064 # shared library.
24065 predeps=$lt_predeps_GCJ
24066
24067 # Dependencies to place after the objects being linked to create a
24068 # shared library.
24069 postdeps=$lt_postdeps_GCJ
24070
24071 # The library search path used internally by the compiler when linking
24072 # a shared library.
24073 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24074
24075 # Method to check whether dependent libraries are shared objects.
24076 deplibs_check_method=$lt_deplibs_check_method
24077
24078 # Command to use when deplibs_check_method == file_magic.
24079 file_magic_cmd=$lt_file_magic_cmd
24080
24081 # Flag that allows shared libraries with undefined symbols to be built.
24082 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24083
24084 # Flag that forces no undefined symbols.
24085 no_undefined_flag=$lt_no_undefined_flag_GCJ
24086
24087 # Commands used to finish a libtool library installation in a directory.
24088 finish_cmds=$lt_finish_cmds
24089
24090 # Same as above, but a single script fragment to be evaled but not shown.
24091 finish_eval=$lt_finish_eval
24092
24093 # Take the output of nm and produce a listing of raw symbols and C names.
24094 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24095
24096 # Transform the output of nm in a proper C declaration
24097 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24098
24099 # Transform the output of nm in a C name address pair
24100 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24101
24102 # This is the shared library runtime path variable.
24103 runpath_var=$runpath_var
24104
24105 # This is the shared library path variable.
24106 shlibpath_var=$shlibpath_var
24107
24108 # Is shlibpath searched before the hard-coded library search path?
24109 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24110
24111 # How to hardcode a shared library path into an executable.
24112 hardcode_action=$hardcode_action_GCJ
24113
24114 # Whether we should hardcode library paths into libraries.
24115 hardcode_into_libs=$hardcode_into_libs
24116
24117 # Flag to hardcode \$libdir into a binary during linking.
24118 # This must work even if \$libdir does not exist.
24119 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24120
24121 # If ld is used when linking, flag to hardcode \$libdir into
24122 # a binary during linking. This must work even if \$libdir does
24123 # not exist.
24124 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24125
24126 # Whether we need a single -rpath flag with a separated argument.
24127 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24128
24129 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24130 # resulting binary.
24131 hardcode_direct=$hardcode_direct_GCJ
24132
24133 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24134 # resulting binary.
24135 hardcode_minus_L=$hardcode_minus_L_GCJ
24136
24137 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24138 # the resulting binary.
24139 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24140
24141 # Set to yes if building a shared library automatically hardcodes DIR into the library
24142 # and all subsequent libraries and executables linked against it.
24143 hardcode_automatic=$hardcode_automatic_GCJ
24144
24145 # Variables whose values should be saved in libtool wrapper scripts and
24146 # restored at relink time.
24147 variables_saved_for_relink="$variables_saved_for_relink"
24148
24149 # Whether libtool must link a program against all its dependency libraries.
24150 link_all_deplibs=$link_all_deplibs_GCJ
24151
24152 # Compile-time system search path for libraries
24153 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24154
24155 # Run-time system search path for libraries
24156 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24157
24158 # Fix the shell variable \$srcfile for the compiler.
24159 fix_srcfile_path="$fix_srcfile_path_GCJ"
24160
24161 # Set to yes if exported symbols are required.
24162 always_export_symbols=$always_export_symbols_GCJ
24163
24164 # The commands to list exported symbols.
24165 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24166
24167 # The commands to extract the exported symbol list from a shared archive.
24168 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24169
24170 # Symbols that should not be listed in the preloaded symbols.
24171 exclude_expsyms=$lt_exclude_expsyms_GCJ
24172
24173 # Symbols that must always be exported.
24174 include_expsyms=$lt_include_expsyms_GCJ
24175
24176 # ### END LIBTOOL TAG CONFIG: $tagname
24177
24178 __EOF__
24179
24180
24181 else
24182   # If there is no Makefile yet, we rely on a make rule to execute
24183   # `config.status --recheck' to rerun these tests and create the
24184   # libtool script then.
24185   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24186   if test -f "$ltmain_in"; then
24187     test -f Makefile && make "$ltmain"
24188   fi
24189 fi
24190
24191
24192 ac_ext=c
24193 ac_cpp='$CPP $CPPFLAGS'
24194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24197
24198 CC="$lt_save_CC"
24199
24200         else
24201           tagname=""
24202         fi
24203         ;;
24204
24205       RC)
24206         ac_ext=c
24207 ac_cpp='$CPP $CPPFLAGS'
24208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24211
24212
24213 # Source file extension for RC test sources.
24214 ac_ext=rc
24215
24216 # Object file extension for compiled RC test sources.
24217 objext=o
24218 objext_RC=$objext
24219
24220 # Code to be used in simple compile tests
24221 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24222
24223 # Code to be used in simple link tests
24224 lt_simple_link_test_code="$lt_simple_compile_test_code"
24225
24226 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24227
24228 # If no C compiler was specified, use CC.
24229 LTCC=${LTCC-"$CC"}
24230
24231 # Allow CC to be a program name with arguments.
24232 compiler=$CC
24233
24234
24235 # Allow CC to be a program name with arguments.
24236 lt_save_CC="$CC"
24237 CC=${RC-"windres"}
24238 compiler=$CC
24239 compiler_RC=$CC
24240 lt_cv_prog_compiler_c_o_RC=yes
24241
24242 # The else clause should only fire when bootstrapping the
24243 # libtool distribution, otherwise you forgot to ship ltmain.sh
24244 # with your package, and you will get complaints that there are
24245 # no rules to generate ltmain.sh.
24246 if test -f "$ltmain"; then
24247   # See if we are running on zsh, and set the options which allow our commands through
24248   # without removal of \ escapes.
24249   if test -n "${ZSH_VERSION+set}" ; then
24250     setopt NO_GLOB_SUBST
24251   fi
24252   # Now quote all the things that may contain metacharacters while being
24253   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24254   # variables and quote the copies for generation of the libtool script.
24255   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24256     SED SHELL STRIP \
24257     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24258     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24259     deplibs_check_method reload_flag reload_cmds need_locks \
24260     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24261     lt_cv_sys_global_symbol_to_c_name_address \
24262     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24263     old_postinstall_cmds old_postuninstall_cmds \
24264     compiler_RC \
24265     CC_RC \
24266     LD_RC \
24267     lt_prog_compiler_wl_RC \
24268     lt_prog_compiler_pic_RC \
24269     lt_prog_compiler_static_RC \
24270     lt_prog_compiler_no_builtin_flag_RC \
24271     export_dynamic_flag_spec_RC \
24272     thread_safe_flag_spec_RC \
24273     whole_archive_flag_spec_RC \
24274     enable_shared_with_static_runtimes_RC \
24275     old_archive_cmds_RC \
24276     old_archive_from_new_cmds_RC \
24277     predep_objects_RC \
24278     postdep_objects_RC \
24279     predeps_RC \
24280     postdeps_RC \
24281     compiler_lib_search_path_RC \
24282     archive_cmds_RC \
24283     archive_expsym_cmds_RC \
24284     postinstall_cmds_RC \
24285     postuninstall_cmds_RC \
24286     old_archive_from_expsyms_cmds_RC \
24287     allow_undefined_flag_RC \
24288     no_undefined_flag_RC \
24289     export_symbols_cmds_RC \
24290     hardcode_libdir_flag_spec_RC \
24291     hardcode_libdir_flag_spec_ld_RC \
24292     hardcode_libdir_separator_RC \
24293     hardcode_automatic_RC \
24294     module_cmds_RC \
24295     module_expsym_cmds_RC \
24296     lt_cv_prog_compiler_c_o_RC \
24297     exclude_expsyms_RC \
24298     include_expsyms_RC; do
24299
24300     case $var in
24301     old_archive_cmds_RC | \
24302     old_archive_from_new_cmds_RC | \
24303     archive_cmds_RC | \
24304     archive_expsym_cmds_RC | \
24305     module_cmds_RC | \
24306     module_expsym_cmds_RC | \
24307     old_archive_from_expsyms_cmds_RC | \
24308     export_symbols_cmds_RC | \
24309     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24310     postinstall_cmds | postuninstall_cmds | \
24311     old_postinstall_cmds | old_postuninstall_cmds | \
24312     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24313       # Double-quote double-evaled strings.
24314       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24315       ;;
24316     *)
24317       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24318       ;;
24319     esac
24320   done
24321
24322   case $lt_echo in
24323   *'\$0 --fallback-echo"')
24324     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24325     ;;
24326   esac
24327
24328 cfgfile="$ofile"
24329
24330   cat <<__EOF__ >> "$cfgfile"
24331 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24332
24333 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24334
24335 # Shell to use when invoking shell scripts.
24336 SHELL=$lt_SHELL
24337
24338 # Whether or not to build shared libraries.
24339 build_libtool_libs=$enable_shared
24340
24341 # Whether or not to build static libraries.
24342 build_old_libs=$enable_static
24343
24344 # Whether or not to add -lc for building shared libraries.
24345 build_libtool_need_lc=$archive_cmds_need_lc_RC
24346
24347 # Whether or not to disallow shared libs when runtime libs are static
24348 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24349
24350 # Whether or not to optimize for fast installation.
24351 fast_install=$enable_fast_install
24352
24353 # The host system.
24354 host_alias=$host_alias
24355 host=$host
24356
24357 # An echo program that does not interpret backslashes.
24358 echo=$lt_echo
24359
24360 # The archiver.
24361 AR=$lt_AR
24362 AR_FLAGS=$lt_AR_FLAGS
24363
24364 # A C compiler.
24365 LTCC=$lt_LTCC
24366
24367 # A language-specific compiler.
24368 CC=$lt_compiler_RC
24369
24370 # Is the compiler the GNU C compiler?
24371 with_gcc=$GCC_RC
24372
24373 # An ERE matcher.
24374 EGREP=$lt_EGREP
24375
24376 # The linker used to build libraries.
24377 LD=$lt_LD_RC
24378
24379 # Whether we need hard or soft links.
24380 LN_S=$lt_LN_S
24381
24382 # A BSD-compatible nm program.
24383 NM=$lt_NM
24384
24385 # A symbol stripping program
24386 STRIP=$lt_STRIP
24387
24388 # Used to examine libraries when file_magic_cmd begins "file"
24389 MAGIC_CMD=$MAGIC_CMD
24390
24391 # Used on cygwin: DLL creation program.
24392 DLLTOOL="$DLLTOOL"
24393
24394 # Used on cygwin: object dumper.
24395 OBJDUMP="$OBJDUMP"
24396
24397 # Used on cygwin: assembler.
24398 AS="$AS"
24399
24400 # The name of the directory that contains temporary libtool files.
24401 objdir=$objdir
24402
24403 # How to create reloadable object files.
24404 reload_flag=$lt_reload_flag
24405 reload_cmds=$lt_reload_cmds
24406
24407 # How to pass a linker flag through the compiler.
24408 wl=$lt_lt_prog_compiler_wl_RC
24409
24410 # Object file suffix (normally "o").
24411 objext="$ac_objext"
24412
24413 # Old archive suffix (normally "a").
24414 libext="$libext"
24415
24416 # Shared library suffix (normally ".so").
24417 shrext_cmds='$shrext_cmds'
24418
24419 # Executable file suffix (normally "").
24420 exeext="$exeext"
24421
24422 # Additional compiler flags for building library objects.
24423 pic_flag=$lt_lt_prog_compiler_pic_RC
24424 pic_mode=$pic_mode
24425
24426 # What is the maximum length of a command?
24427 max_cmd_len=$lt_cv_sys_max_cmd_len
24428
24429 # Does compiler simultaneously support -c and -o options?
24430 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24431
24432 # Must we lock files when doing compilation ?
24433 need_locks=$lt_need_locks
24434
24435 # Do we need the lib prefix for modules?
24436 need_lib_prefix=$need_lib_prefix
24437
24438 # Do we need a version for libraries?
24439 need_version=$need_version
24440
24441 # Whether dlopen is supported.
24442 dlopen_support=$enable_dlopen
24443
24444 # Whether dlopen of programs is supported.
24445 dlopen_self=$enable_dlopen_self
24446
24447 # Whether dlopen of statically linked programs is supported.
24448 dlopen_self_static=$enable_dlopen_self_static
24449
24450 # Compiler flag to prevent dynamic linking.
24451 link_static_flag=$lt_lt_prog_compiler_static_RC
24452
24453 # Compiler flag to turn off builtin functions.
24454 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24455
24456 # Compiler flag to allow reflexive dlopens.
24457 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24458
24459 # Compiler flag to generate shared objects directly from archives.
24460 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24461
24462 # Compiler flag to generate thread-safe objects.
24463 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24464
24465 # Library versioning type.
24466 version_type=$version_type
24467
24468 # Format of library name prefix.
24469 libname_spec=$lt_libname_spec
24470
24471 # List of archive names.  First name is the real one, the rest are links.
24472 # The last name is the one that the linker finds with -lNAME.
24473 library_names_spec=$lt_library_names_spec
24474
24475 # The coded name of the library, if different from the real name.
24476 soname_spec=$lt_soname_spec
24477
24478 # Commands used to build and install an old-style archive.
24479 RANLIB=$lt_RANLIB
24480 old_archive_cmds=$lt_old_archive_cmds_RC
24481 old_postinstall_cmds=$lt_old_postinstall_cmds
24482 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24483
24484 # Create an old-style archive from a shared archive.
24485 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24486
24487 # Create a temporary old-style archive to link instead of a shared archive.
24488 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24489
24490 # Commands used to build and install a shared archive.
24491 archive_cmds=$lt_archive_cmds_RC
24492 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24493 postinstall_cmds=$lt_postinstall_cmds
24494 postuninstall_cmds=$lt_postuninstall_cmds
24495
24496 # Commands used to build a loadable module (assumed same as above if empty)
24497 module_cmds=$lt_module_cmds_RC
24498 module_expsym_cmds=$lt_module_expsym_cmds_RC
24499
24500 # Commands to strip libraries.
24501 old_striplib=$lt_old_striplib
24502 striplib=$lt_striplib
24503
24504 # Dependencies to place before the objects being linked to create a
24505 # shared library.
24506 predep_objects=$lt_predep_objects_RC
24507
24508 # Dependencies to place after the objects being linked to create a
24509 # shared library.
24510 postdep_objects=$lt_postdep_objects_RC
24511
24512 # Dependencies to place before the objects being linked to create a
24513 # shared library.
24514 predeps=$lt_predeps_RC
24515
24516 # Dependencies to place after the objects being linked to create a
24517 # shared library.
24518 postdeps=$lt_postdeps_RC
24519
24520 # The library search path used internally by the compiler when linking
24521 # a shared library.
24522 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24523
24524 # Method to check whether dependent libraries are shared objects.
24525 deplibs_check_method=$lt_deplibs_check_method
24526
24527 # Command to use when deplibs_check_method == file_magic.
24528 file_magic_cmd=$lt_file_magic_cmd
24529
24530 # Flag that allows shared libraries with undefined symbols to be built.
24531 allow_undefined_flag=$lt_allow_undefined_flag_RC
24532
24533 # Flag that forces no undefined symbols.
24534 no_undefined_flag=$lt_no_undefined_flag_RC
24535
24536 # Commands used to finish a libtool library installation in a directory.
24537 finish_cmds=$lt_finish_cmds
24538
24539 # Same as above, but a single script fragment to be evaled but not shown.
24540 finish_eval=$lt_finish_eval
24541
24542 # Take the output of nm and produce a listing of raw symbols and C names.
24543 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24544
24545 # Transform the output of nm in a proper C declaration
24546 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24547
24548 # Transform the output of nm in a C name address pair
24549 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24550
24551 # This is the shared library runtime path variable.
24552 runpath_var=$runpath_var
24553
24554 # This is the shared library path variable.
24555 shlibpath_var=$shlibpath_var
24556
24557 # Is shlibpath searched before the hard-coded library search path?
24558 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24559
24560 # How to hardcode a shared library path into an executable.
24561 hardcode_action=$hardcode_action_RC
24562
24563 # Whether we should hardcode library paths into libraries.
24564 hardcode_into_libs=$hardcode_into_libs
24565
24566 # Flag to hardcode \$libdir into a binary during linking.
24567 # This must work even if \$libdir does not exist.
24568 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24569
24570 # If ld is used when linking, flag to hardcode \$libdir into
24571 # a binary during linking. This must work even if \$libdir does
24572 # not exist.
24573 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24574
24575 # Whether we need a single -rpath flag with a separated argument.
24576 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24577
24578 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24579 # resulting binary.
24580 hardcode_direct=$hardcode_direct_RC
24581
24582 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24583 # resulting binary.
24584 hardcode_minus_L=$hardcode_minus_L_RC
24585
24586 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24587 # the resulting binary.
24588 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24589
24590 # Set to yes if building a shared library automatically hardcodes DIR into the library
24591 # and all subsequent libraries and executables linked against it.
24592 hardcode_automatic=$hardcode_automatic_RC
24593
24594 # Variables whose values should be saved in libtool wrapper scripts and
24595 # restored at relink time.
24596 variables_saved_for_relink="$variables_saved_for_relink"
24597
24598 # Whether libtool must link a program against all its dependency libraries.
24599 link_all_deplibs=$link_all_deplibs_RC
24600
24601 # Compile-time system search path for libraries
24602 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24603
24604 # Run-time system search path for libraries
24605 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24606
24607 # Fix the shell variable \$srcfile for the compiler.
24608 fix_srcfile_path="$fix_srcfile_path_RC"
24609
24610 # Set to yes if exported symbols are required.
24611 always_export_symbols=$always_export_symbols_RC
24612
24613 # The commands to list exported symbols.
24614 export_symbols_cmds=$lt_export_symbols_cmds_RC
24615
24616 # The commands to extract the exported symbol list from a shared archive.
24617 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24618
24619 # Symbols that should not be listed in the preloaded symbols.
24620 exclude_expsyms=$lt_exclude_expsyms_RC
24621
24622 # Symbols that must always be exported.
24623 include_expsyms=$lt_include_expsyms_RC
24624
24625 # ### END LIBTOOL TAG CONFIG: $tagname
24626
24627 __EOF__
24628
24629
24630 else
24631   # If there is no Makefile yet, we rely on a make rule to execute
24632   # `config.status --recheck' to rerun these tests and create the
24633   # libtool script then.
24634   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24635   if test -f "$ltmain_in"; then
24636     test -f Makefile && make "$ltmain"
24637   fi
24638 fi
24639
24640
24641 ac_ext=c
24642 ac_cpp='$CPP $CPPFLAGS'
24643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24646
24647 CC="$lt_save_CC"
24648
24649         ;;
24650
24651       *)
24652         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24653 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24654    { (exit 1); exit 1; }; }
24655         ;;
24656       esac
24657
24658       # Append the new tag name to the list of available tags.
24659       if test -n "$tagname" ; then
24660       available_tags="$available_tags $tagname"
24661     fi
24662     fi
24663   done
24664   IFS="$lt_save_ifs"
24665
24666   # Now substitute the updated list of available tags.
24667   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24668     mv "${ofile}T" "$ofile"
24669     chmod +x "$ofile"
24670   else
24671     rm -f "${ofile}T"
24672     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24673 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24674    { (exit 1); exit 1; }; }
24675   fi
24676 fi
24677
24678
24679
24680 # This can be used to rebuild libtool when needed
24681 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24682
24683 # Always use our own libtool.
24684 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24685
24686 # Prevent multiple expansion
24687
24688
24689
24690
24691
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706
24707
24708 if test "$lt_cv_dlopen_self" = "yes" ; then
24709
24710 cat >>confdefs.h <<\_ACEOF
24711 #define CAN_DLOPEN_SELF 1
24712 _ACEOF
24713
24714 fi
24715
24716 etags_version=`$ETAGS --version 2>&1`
24717 case "$etags_version" in
24718         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24719         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24720         *) ETAGSFLAGS="" ;;
24721 esac
24722 ETAGSFLAGS=$ETAGSFLAGS
24723
24724
24725 if test "$WITH_LLVMGCCDIR" = "default" ; then
24726   LLVMGCC="llvm-gcc${EXEEXT}"
24727   LLVMGXX="llvm-g++${EXEEXT}"
24728   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24729 set dummy $LLVMGCC; ac_word=$2
24730 echo "$as_me:$LINENO: checking for $ac_word" >&5
24731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24732 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24733   echo $ECHO_N "(cached) $ECHO_C" >&6
24734 else
24735   case $LLVMGCC in
24736   [\\/]* | ?:[\\/]*)
24737   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24738   ;;
24739   *)
24740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24741 for as_dir in $PATH
24742 do
24743   IFS=$as_save_IFS
24744   test -z "$as_dir" && as_dir=.
24745   for ac_exec_ext in '' $ac_executable_extensions; do
24746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24747     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24749     break 2
24750   fi
24751 done
24752 done
24753
24754   ;;
24755 esac
24756 fi
24757 LLVMGCC=$ac_cv_path_LLVMGCC
24758
24759 if test -n "$LLVMGCC"; then
24760   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24761 echo "${ECHO_T}$LLVMGCC" >&6
24762 else
24763   echo "$as_me:$LINENO: result: no" >&5
24764 echo "${ECHO_T}no" >&6
24765 fi
24766
24767   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24768 set dummy $LLVMGXX; ac_word=$2
24769 echo "$as_me:$LINENO: checking for $ac_word" >&5
24770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24771 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24772   echo $ECHO_N "(cached) $ECHO_C" >&6
24773 else
24774   case $LLVMGXX in
24775   [\\/]* | ?:[\\/]*)
24776   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24777   ;;
24778   *)
24779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24780 for as_dir in $PATH
24781 do
24782   IFS=$as_save_IFS
24783   test -z "$as_dir" && as_dir=.
24784   for ac_exec_ext in '' $ac_executable_extensions; do
24785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24786     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24788     break 2
24789   fi
24790 done
24791 done
24792
24793   ;;
24794 esac
24795 fi
24796 LLVMGXX=$ac_cv_path_LLVMGXX
24797
24798 if test -n "$LLVMGXX"; then
24799   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24800 echo "${ECHO_T}$LLVMGXX" >&6
24801 else
24802   echo "$as_me:$LINENO: result: no" >&5
24803 echo "${ECHO_T}no" >&6
24804 fi
24805
24806 else
24807   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24808   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24809   LLVMGCC=$LLVMGCC
24810
24811   LLVMGXX=$LLVMGXX
24812
24813 fi
24814
24815 echo "$as_me:$LINENO: checking tool compatibility" >&5
24816 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24817
24818 ICC=no
24819 IXX=no
24820 case $CC in
24821   icc*|icpc*)
24822     ICC=yes
24823     IXX=yes
24824     ;;
24825    *)
24826     ;;
24827 esac
24828
24829 if test "$GCC" != "yes" && test "$ICC" != "yes"
24830 then
24831   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24832 echo "$as_me: error: gcc|icc required but not found" >&2;}
24833    { (exit 1); exit 1; }; }
24834 fi
24835
24836 if test "$GXX" != "yes" && test "$IXX" != "yes"
24837 then
24838   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24839 echo "$as_me: error: g++|icc required but not found" >&2;}
24840    { (exit 1); exit 1; }; }
24841 fi
24842
24843 if test "$GCC" = "yes"
24844 then
24845   gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24846   if test "$gccmajor" -lt "3"
24847   then
24848     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24849 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24850    { (exit 1); exit 1; }; }
24851   fi
24852 fi
24853
24854 if test -z "$llvm_cv_gnu_make_command"
24855 then
24856   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24857 echo "$as_me: error: GNU Make required but not found" >&2;}
24858    { (exit 1); exit 1; }; }
24859 fi
24860
24861 echo "$as_me:$LINENO: result: ok" >&5
24862 echo "${ECHO_T}ok" >&6
24863
24864
24865
24866 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24867 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24868 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24869   echo $ECHO_N "(cached) $ECHO_C" >&6
24870 else
24871   ac_check_lib_save_LIBS=$LIBS
24872 LIBS="-lelf  $LIBS"
24873 cat >conftest.$ac_ext <<_ACEOF
24874 /* confdefs.h.  */
24875 _ACEOF
24876 cat confdefs.h >>conftest.$ac_ext
24877 cat >>conftest.$ac_ext <<_ACEOF
24878 /* end confdefs.h.  */
24879
24880 /* Override any gcc2 internal prototype to avoid an error.  */
24881 #ifdef __cplusplus
24882 extern "C"
24883 #endif
24884 /* We use char because int might match the return type of a gcc2
24885    builtin and then its argument prototype would still apply.  */
24886 char elf_begin ();
24887 int
24888 main ()
24889 {
24890 elf_begin ();
24891   ;
24892   return 0;
24893 }
24894 _ACEOF
24895 rm -f conftest.$ac_objext conftest$ac_exeext
24896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24897   (eval $ac_link) 2>conftest.er1
24898   ac_status=$?
24899   grep -v '^ *+' conftest.er1 >conftest.err
24900   rm -f conftest.er1
24901   cat conftest.err >&5
24902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903   (exit $ac_status); } &&
24904          { ac_try='test -z "$ac_c_werror_flag"
24905                          || test ! -s conftest.err'
24906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24907   (eval $ac_try) 2>&5
24908   ac_status=$?
24909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910   (exit $ac_status); }; } &&
24911          { ac_try='test -s conftest$ac_exeext'
24912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24913   (eval $ac_try) 2>&5
24914   ac_status=$?
24915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916   (exit $ac_status); }; }; then
24917   ac_cv_lib_elf_elf_begin=yes
24918 else
24919   echo "$as_me: failed program was:" >&5
24920 sed 's/^/| /' conftest.$ac_ext >&5
24921
24922 ac_cv_lib_elf_elf_begin=no
24923 fi
24924 rm -f conftest.err conftest.$ac_objext \
24925       conftest$ac_exeext conftest.$ac_ext
24926 LIBS=$ac_check_lib_save_LIBS
24927 fi
24928 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24929 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24930 if test $ac_cv_lib_elf_elf_begin = yes; then
24931   cat >>confdefs.h <<_ACEOF
24932 #define HAVE_LIBELF 1
24933 _ACEOF
24934
24935   LIBS="-lelf $LIBS"
24936
24937 fi
24938
24939
24940
24941 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24942 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24943 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24944   echo $ECHO_N "(cached) $ECHO_C" >&6
24945 else
24946   ac_func_search_save_LIBS=$LIBS
24947 ac_cv_search_lt_dlopen=no
24948 cat >conftest.$ac_ext <<_ACEOF
24949 /* confdefs.h.  */
24950 _ACEOF
24951 cat confdefs.h >>conftest.$ac_ext
24952 cat >>conftest.$ac_ext <<_ACEOF
24953 /* end confdefs.h.  */
24954
24955 /* Override any gcc2 internal prototype to avoid an error.  */
24956 #ifdef __cplusplus
24957 extern "C"
24958 #endif
24959 /* We use char because int might match the return type of a gcc2
24960    builtin and then its argument prototype would still apply.  */
24961 char lt_dlopen ();
24962 int
24963 main ()
24964 {
24965 lt_dlopen ();
24966   ;
24967   return 0;
24968 }
24969 _ACEOF
24970 rm -f conftest.$ac_objext conftest$ac_exeext
24971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24972   (eval $ac_link) 2>conftest.er1
24973   ac_status=$?
24974   grep -v '^ *+' conftest.er1 >conftest.err
24975   rm -f conftest.er1
24976   cat conftest.err >&5
24977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978   (exit $ac_status); } &&
24979          { ac_try='test -z "$ac_c_werror_flag"
24980                          || test ! -s conftest.err'
24981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24982   (eval $ac_try) 2>&5
24983   ac_status=$?
24984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985   (exit $ac_status); }; } &&
24986          { ac_try='test -s conftest$ac_exeext'
24987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24988   (eval $ac_try) 2>&5
24989   ac_status=$?
24990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991   (exit $ac_status); }; }; then
24992   ac_cv_search_lt_dlopen="none required"
24993 else
24994   echo "$as_me: failed program was:" >&5
24995 sed 's/^/| /' conftest.$ac_ext >&5
24996
24997 fi
24998 rm -f conftest.err conftest.$ac_objext \
24999       conftest$ac_exeext conftest.$ac_ext
25000 if test "$ac_cv_search_lt_dlopen" = no; then
25001   for ac_lib in ltdl; do
25002     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25003     cat >conftest.$ac_ext <<_ACEOF
25004 /* confdefs.h.  */
25005 _ACEOF
25006 cat confdefs.h >>conftest.$ac_ext
25007 cat >>conftest.$ac_ext <<_ACEOF
25008 /* end confdefs.h.  */
25009
25010 /* Override any gcc2 internal prototype to avoid an error.  */
25011 #ifdef __cplusplus
25012 extern "C"
25013 #endif
25014 /* We use char because int might match the return type of a gcc2
25015    builtin and then its argument prototype would still apply.  */
25016 char lt_dlopen ();
25017 int
25018 main ()
25019 {
25020 lt_dlopen ();
25021   ;
25022   return 0;
25023 }
25024 _ACEOF
25025 rm -f conftest.$ac_objext conftest$ac_exeext
25026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25027   (eval $ac_link) 2>conftest.er1
25028   ac_status=$?
25029   grep -v '^ *+' conftest.er1 >conftest.err
25030   rm -f conftest.er1
25031   cat conftest.err >&5
25032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033   (exit $ac_status); } &&
25034          { ac_try='test -z "$ac_c_werror_flag"
25035                          || test ! -s conftest.err'
25036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25037   (eval $ac_try) 2>&5
25038   ac_status=$?
25039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040   (exit $ac_status); }; } &&
25041          { ac_try='test -s conftest$ac_exeext'
25042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25043   (eval $ac_try) 2>&5
25044   ac_status=$?
25045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046   (exit $ac_status); }; }; then
25047   ac_cv_search_lt_dlopen="-l$ac_lib"
25048 break
25049 else
25050   echo "$as_me: failed program was:" >&5
25051 sed 's/^/| /' conftest.$ac_ext >&5
25052
25053 fi
25054 rm -f conftest.err conftest.$ac_objext \
25055       conftest$ac_exeext conftest.$ac_ext
25056   done
25057 fi
25058 LIBS=$ac_func_search_save_LIBS
25059 fi
25060 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25061 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25062 if test "$ac_cv_search_lt_dlopen" != no; then
25063   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25064
25065 cat >>confdefs.h <<\_ACEOF
25066 #define HAVE_LT_DLOPEN 1
25067 _ACEOF
25068
25069 else
25070   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25071                            not be available" >&5
25072 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25073                            not be available" >&2;}
25074 fi
25075
25076
25077 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25078 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25079 if test "${ac_cv_search_dlopen+set}" = set; then
25080   echo $ECHO_N "(cached) $ECHO_C" >&6
25081 else
25082   ac_func_search_save_LIBS=$LIBS
25083 ac_cv_search_dlopen=no
25084 cat >conftest.$ac_ext <<_ACEOF
25085 /* confdefs.h.  */
25086 _ACEOF
25087 cat confdefs.h >>conftest.$ac_ext
25088 cat >>conftest.$ac_ext <<_ACEOF
25089 /* end confdefs.h.  */
25090
25091 /* Override any gcc2 internal prototype to avoid an error.  */
25092 #ifdef __cplusplus
25093 extern "C"
25094 #endif
25095 /* We use char because int might match the return type of a gcc2
25096    builtin and then its argument prototype would still apply.  */
25097 char dlopen ();
25098 int
25099 main ()
25100 {
25101 dlopen ();
25102   ;
25103   return 0;
25104 }
25105 _ACEOF
25106 rm -f conftest.$ac_objext conftest$ac_exeext
25107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25108   (eval $ac_link) 2>conftest.er1
25109   ac_status=$?
25110   grep -v '^ *+' conftest.er1 >conftest.err
25111   rm -f conftest.er1
25112   cat conftest.err >&5
25113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25114   (exit $ac_status); } &&
25115          { ac_try='test -z "$ac_c_werror_flag"
25116                          || test ! -s conftest.err'
25117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25118   (eval $ac_try) 2>&5
25119   ac_status=$?
25120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121   (exit $ac_status); }; } &&
25122          { ac_try='test -s conftest$ac_exeext'
25123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25124   (eval $ac_try) 2>&5
25125   ac_status=$?
25126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127   (exit $ac_status); }; }; then
25128   ac_cv_search_dlopen="none required"
25129 else
25130   echo "$as_me: failed program was:" >&5
25131 sed 's/^/| /' conftest.$ac_ext >&5
25132
25133 fi
25134 rm -f conftest.err conftest.$ac_objext \
25135       conftest$ac_exeext conftest.$ac_ext
25136 if test "$ac_cv_search_dlopen" = no; then
25137   for ac_lib in dl; do
25138     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25139     cat >conftest.$ac_ext <<_ACEOF
25140 /* confdefs.h.  */
25141 _ACEOF
25142 cat confdefs.h >>conftest.$ac_ext
25143 cat >>conftest.$ac_ext <<_ACEOF
25144 /* end confdefs.h.  */
25145
25146 /* Override any gcc2 internal prototype to avoid an error.  */
25147 #ifdef __cplusplus
25148 extern "C"
25149 #endif
25150 /* We use char because int might match the return type of a gcc2
25151    builtin and then its argument prototype would still apply.  */
25152 char dlopen ();
25153 int
25154 main ()
25155 {
25156 dlopen ();
25157   ;
25158   return 0;
25159 }
25160 _ACEOF
25161 rm -f conftest.$ac_objext conftest$ac_exeext
25162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25163   (eval $ac_link) 2>conftest.er1
25164   ac_status=$?
25165   grep -v '^ *+' conftest.er1 >conftest.err
25166   rm -f conftest.er1
25167   cat conftest.err >&5
25168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169   (exit $ac_status); } &&
25170          { ac_try='test -z "$ac_c_werror_flag"
25171                          || test ! -s conftest.err'
25172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25173   (eval $ac_try) 2>&5
25174   ac_status=$?
25175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176   (exit $ac_status); }; } &&
25177          { ac_try='test -s conftest$ac_exeext'
25178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25179   (eval $ac_try) 2>&5
25180   ac_status=$?
25181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182   (exit $ac_status); }; }; then
25183   ac_cv_search_dlopen="-l$ac_lib"
25184 break
25185 else
25186   echo "$as_me: failed program was:" >&5
25187 sed 's/^/| /' conftest.$ac_ext >&5
25188
25189 fi
25190 rm -f conftest.err conftest.$ac_objext \
25191       conftest$ac_exeext conftest.$ac_ext
25192   done
25193 fi
25194 LIBS=$ac_func_search_save_LIBS
25195 fi
25196 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25197 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25198 if test "$ac_cv_search_dlopen" != no; then
25199   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25200
25201 cat >>confdefs.h <<\_ACEOF
25202 #define HAVE_DLOPEN 1
25203 _ACEOF
25204
25205 else
25206   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25207 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25208 fi
25209
25210
25211 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25212 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25213 if test "${ac_cv_search_mallinfo+set}" = set; then
25214   echo $ECHO_N "(cached) $ECHO_C" >&6
25215 else
25216   ac_func_search_save_LIBS=$LIBS
25217 ac_cv_search_mallinfo=no
25218 cat >conftest.$ac_ext <<_ACEOF
25219 /* confdefs.h.  */
25220 _ACEOF
25221 cat confdefs.h >>conftest.$ac_ext
25222 cat >>conftest.$ac_ext <<_ACEOF
25223 /* end confdefs.h.  */
25224
25225 /* Override any gcc2 internal prototype to avoid an error.  */
25226 #ifdef __cplusplus
25227 extern "C"
25228 #endif
25229 /* We use char because int might match the return type of a gcc2
25230    builtin and then its argument prototype would still apply.  */
25231 char mallinfo ();
25232 int
25233 main ()
25234 {
25235 mallinfo ();
25236   ;
25237   return 0;
25238 }
25239 _ACEOF
25240 rm -f conftest.$ac_objext conftest$ac_exeext
25241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25242   (eval $ac_link) 2>conftest.er1
25243   ac_status=$?
25244   grep -v '^ *+' conftest.er1 >conftest.err
25245   rm -f conftest.er1
25246   cat conftest.err >&5
25247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248   (exit $ac_status); } &&
25249          { ac_try='test -z "$ac_c_werror_flag"
25250                          || test ! -s conftest.err'
25251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25252   (eval $ac_try) 2>&5
25253   ac_status=$?
25254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255   (exit $ac_status); }; } &&
25256          { ac_try='test -s conftest$ac_exeext'
25257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25258   (eval $ac_try) 2>&5
25259   ac_status=$?
25260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261   (exit $ac_status); }; }; then
25262   ac_cv_search_mallinfo="none required"
25263 else
25264   echo "$as_me: failed program was:" >&5
25265 sed 's/^/| /' conftest.$ac_ext >&5
25266
25267 fi
25268 rm -f conftest.err conftest.$ac_objext \
25269       conftest$ac_exeext conftest.$ac_ext
25270 if test "$ac_cv_search_mallinfo" = no; then
25271   for ac_lib in malloc; do
25272     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25273     cat >conftest.$ac_ext <<_ACEOF
25274 /* confdefs.h.  */
25275 _ACEOF
25276 cat confdefs.h >>conftest.$ac_ext
25277 cat >>conftest.$ac_ext <<_ACEOF
25278 /* end confdefs.h.  */
25279
25280 /* Override any gcc2 internal prototype to avoid an error.  */
25281 #ifdef __cplusplus
25282 extern "C"
25283 #endif
25284 /* We use char because int might match the return type of a gcc2
25285    builtin and then its argument prototype would still apply.  */
25286 char mallinfo ();
25287 int
25288 main ()
25289 {
25290 mallinfo ();
25291   ;
25292   return 0;
25293 }
25294 _ACEOF
25295 rm -f conftest.$ac_objext conftest$ac_exeext
25296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25297   (eval $ac_link) 2>conftest.er1
25298   ac_status=$?
25299   grep -v '^ *+' conftest.er1 >conftest.err
25300   rm -f conftest.er1
25301   cat conftest.err >&5
25302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303   (exit $ac_status); } &&
25304          { ac_try='test -z "$ac_c_werror_flag"
25305                          || test ! -s conftest.err'
25306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25307   (eval $ac_try) 2>&5
25308   ac_status=$?
25309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25310   (exit $ac_status); }; } &&
25311          { ac_try='test -s conftest$ac_exeext'
25312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25313   (eval $ac_try) 2>&5
25314   ac_status=$?
25315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316   (exit $ac_status); }; }; then
25317   ac_cv_search_mallinfo="-l$ac_lib"
25318 break
25319 else
25320   echo "$as_me: failed program was:" >&5
25321 sed 's/^/| /' conftest.$ac_ext >&5
25322
25323 fi
25324 rm -f conftest.err conftest.$ac_objext \
25325       conftest$ac_exeext conftest.$ac_ext
25326   done
25327 fi
25328 LIBS=$ac_func_search_save_LIBS
25329 fi
25330 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25331 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25332 if test "$ac_cv_search_mallinfo" != no; then
25333   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25334
25335 cat >>confdefs.h <<\_ACEOF
25336 #define HAVE_MALLINFO 1
25337 _ACEOF
25338
25339 fi
25340
25341
25342
25343 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25344 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25345 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25346   echo $ECHO_N "(cached) $ECHO_C" >&6
25347 else
25348   ac_check_lib_save_LIBS=$LIBS
25349 LIBS="-lpthread  $LIBS"
25350 cat >conftest.$ac_ext <<_ACEOF
25351 /* confdefs.h.  */
25352 _ACEOF
25353 cat confdefs.h >>conftest.$ac_ext
25354 cat >>conftest.$ac_ext <<_ACEOF
25355 /* end confdefs.h.  */
25356
25357 /* Override any gcc2 internal prototype to avoid an error.  */
25358 #ifdef __cplusplus
25359 extern "C"
25360 #endif
25361 /* We use char because int might match the return type of a gcc2
25362    builtin and then its argument prototype would still apply.  */
25363 char pthread_mutex_init ();
25364 int
25365 main ()
25366 {
25367 pthread_mutex_init ();
25368   ;
25369   return 0;
25370 }
25371 _ACEOF
25372 rm -f conftest.$ac_objext conftest$ac_exeext
25373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25374   (eval $ac_link) 2>conftest.er1
25375   ac_status=$?
25376   grep -v '^ *+' conftest.er1 >conftest.err
25377   rm -f conftest.er1
25378   cat conftest.err >&5
25379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25380   (exit $ac_status); } &&
25381          { ac_try='test -z "$ac_c_werror_flag"
25382                          || test ! -s conftest.err'
25383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25384   (eval $ac_try) 2>&5
25385   ac_status=$?
25386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387   (exit $ac_status); }; } &&
25388          { ac_try='test -s conftest$ac_exeext'
25389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25390   (eval $ac_try) 2>&5
25391   ac_status=$?
25392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25393   (exit $ac_status); }; }; then
25394   ac_cv_lib_pthread_pthread_mutex_init=yes
25395 else
25396   echo "$as_me: failed program was:" >&5
25397 sed 's/^/| /' conftest.$ac_ext >&5
25398
25399 ac_cv_lib_pthread_pthread_mutex_init=no
25400 fi
25401 rm -f conftest.err conftest.$ac_objext \
25402       conftest$ac_exeext conftest.$ac_ext
25403 LIBS=$ac_check_lib_save_LIBS
25404 fi
25405 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25406 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25407 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25408   cat >>confdefs.h <<_ACEOF
25409 #define HAVE_LIBPTHREAD 1
25410 _ACEOF
25411
25412   LIBS="-lpthread $LIBS"
25413
25414 fi
25415
25416 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25417 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25418 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25419   echo $ECHO_N "(cached) $ECHO_C" >&6
25420 else
25421   ac_func_search_save_LIBS=$LIBS
25422 ac_cv_search_pthread_mutex_lock=no
25423 cat >conftest.$ac_ext <<_ACEOF
25424 /* confdefs.h.  */
25425 _ACEOF
25426 cat confdefs.h >>conftest.$ac_ext
25427 cat >>conftest.$ac_ext <<_ACEOF
25428 /* end confdefs.h.  */
25429
25430 /* Override any gcc2 internal prototype to avoid an error.  */
25431 #ifdef __cplusplus
25432 extern "C"
25433 #endif
25434 /* We use char because int might match the return type of a gcc2
25435    builtin and then its argument prototype would still apply.  */
25436 char pthread_mutex_lock ();
25437 int
25438 main ()
25439 {
25440 pthread_mutex_lock ();
25441   ;
25442   return 0;
25443 }
25444 _ACEOF
25445 rm -f conftest.$ac_objext conftest$ac_exeext
25446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25447   (eval $ac_link) 2>conftest.er1
25448   ac_status=$?
25449   grep -v '^ *+' conftest.er1 >conftest.err
25450   rm -f conftest.er1
25451   cat conftest.err >&5
25452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453   (exit $ac_status); } &&
25454          { ac_try='test -z "$ac_c_werror_flag"
25455                          || test ! -s conftest.err'
25456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457   (eval $ac_try) 2>&5
25458   ac_status=$?
25459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460   (exit $ac_status); }; } &&
25461          { ac_try='test -s conftest$ac_exeext'
25462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463   (eval $ac_try) 2>&5
25464   ac_status=$?
25465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466   (exit $ac_status); }; }; then
25467   ac_cv_search_pthread_mutex_lock="none required"
25468 else
25469   echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25471
25472 fi
25473 rm -f conftest.err conftest.$ac_objext \
25474       conftest$ac_exeext conftest.$ac_ext
25475 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25476   for ac_lib in pthread; do
25477     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25478     cat >conftest.$ac_ext <<_ACEOF
25479 /* confdefs.h.  */
25480 _ACEOF
25481 cat confdefs.h >>conftest.$ac_ext
25482 cat >>conftest.$ac_ext <<_ACEOF
25483 /* end confdefs.h.  */
25484
25485 /* Override any gcc2 internal prototype to avoid an error.  */
25486 #ifdef __cplusplus
25487 extern "C"
25488 #endif
25489 /* We use char because int might match the return type of a gcc2
25490    builtin and then its argument prototype would still apply.  */
25491 char pthread_mutex_lock ();
25492 int
25493 main ()
25494 {
25495 pthread_mutex_lock ();
25496   ;
25497   return 0;
25498 }
25499 _ACEOF
25500 rm -f conftest.$ac_objext conftest$ac_exeext
25501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25502   (eval $ac_link) 2>conftest.er1
25503   ac_status=$?
25504   grep -v '^ *+' conftest.er1 >conftest.err
25505   rm -f conftest.er1
25506   cat conftest.err >&5
25507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508   (exit $ac_status); } &&
25509          { ac_try='test -z "$ac_c_werror_flag"
25510                          || test ! -s conftest.err'
25511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25512   (eval $ac_try) 2>&5
25513   ac_status=$?
25514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515   (exit $ac_status); }; } &&
25516          { ac_try='test -s conftest$ac_exeext'
25517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518   (eval $ac_try) 2>&5
25519   ac_status=$?
25520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521   (exit $ac_status); }; }; then
25522   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25523 break
25524 else
25525   echo "$as_me: failed program was:" >&5
25526 sed 's/^/| /' conftest.$ac_ext >&5
25527
25528 fi
25529 rm -f conftest.err conftest.$ac_objext \
25530       conftest$ac_exeext conftest.$ac_ext
25531   done
25532 fi
25533 LIBS=$ac_func_search_save_LIBS
25534 fi
25535 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25536 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25537 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25538   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25539
25540 cat >>confdefs.h <<\_ACEOF
25541 #define HAVE_PTHREAD_MUTEX_LOCK 1
25542 _ACEOF
25543
25544 fi
25545
25546
25547
25548
25549
25550
25551
25552
25553 ac_header_dirent=no
25554 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25555   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25556 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25557 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25559   echo $ECHO_N "(cached) $ECHO_C" >&6
25560 else
25561   cat >conftest.$ac_ext <<_ACEOF
25562 /* confdefs.h.  */
25563 _ACEOF
25564 cat confdefs.h >>conftest.$ac_ext
25565 cat >>conftest.$ac_ext <<_ACEOF
25566 /* end confdefs.h.  */
25567 #include <sys/types.h>
25568 #include <$ac_hdr>
25569
25570 int
25571 main ()
25572 {
25573 if ((DIR *) 0)
25574 return 0;
25575   ;
25576   return 0;
25577 }
25578 _ACEOF
25579 rm -f conftest.$ac_objext
25580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25581   (eval $ac_compile) 2>conftest.er1
25582   ac_status=$?
25583   grep -v '^ *+' conftest.er1 >conftest.err
25584   rm -f conftest.er1
25585   cat conftest.err >&5
25586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587   (exit $ac_status); } &&
25588          { ac_try='test -z "$ac_c_werror_flag"
25589                          || test ! -s conftest.err'
25590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25591   (eval $ac_try) 2>&5
25592   ac_status=$?
25593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594   (exit $ac_status); }; } &&
25595          { ac_try='test -s conftest.$ac_objext'
25596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25597   (eval $ac_try) 2>&5
25598   ac_status=$?
25599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600   (exit $ac_status); }; }; then
25601   eval "$as_ac_Header=yes"
25602 else
25603   echo "$as_me: failed program was:" >&5
25604 sed 's/^/| /' conftest.$ac_ext >&5
25605
25606 eval "$as_ac_Header=no"
25607 fi
25608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25609 fi
25610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25613   cat >>confdefs.h <<_ACEOF
25614 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25615 _ACEOF
25616
25617 ac_header_dirent=$ac_hdr; break
25618 fi
25619
25620 done
25621 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25622 if test $ac_header_dirent = dirent.h; then
25623   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25624 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25625 if test "${ac_cv_search_opendir+set}" = set; then
25626   echo $ECHO_N "(cached) $ECHO_C" >&6
25627 else
25628   ac_func_search_save_LIBS=$LIBS
25629 ac_cv_search_opendir=no
25630 cat >conftest.$ac_ext <<_ACEOF
25631 /* confdefs.h.  */
25632 _ACEOF
25633 cat confdefs.h >>conftest.$ac_ext
25634 cat >>conftest.$ac_ext <<_ACEOF
25635 /* end confdefs.h.  */
25636
25637 /* Override any gcc2 internal prototype to avoid an error.  */
25638 #ifdef __cplusplus
25639 extern "C"
25640 #endif
25641 /* We use char because int might match the return type of a gcc2
25642    builtin and then its argument prototype would still apply.  */
25643 char opendir ();
25644 int
25645 main ()
25646 {
25647 opendir ();
25648   ;
25649   return 0;
25650 }
25651 _ACEOF
25652 rm -f conftest.$ac_objext conftest$ac_exeext
25653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25654   (eval $ac_link) 2>conftest.er1
25655   ac_status=$?
25656   grep -v '^ *+' conftest.er1 >conftest.err
25657   rm -f conftest.er1
25658   cat conftest.err >&5
25659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660   (exit $ac_status); } &&
25661          { ac_try='test -z "$ac_c_werror_flag"
25662                          || test ! -s conftest.err'
25663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25664   (eval $ac_try) 2>&5
25665   ac_status=$?
25666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667   (exit $ac_status); }; } &&
25668          { ac_try='test -s conftest$ac_exeext'
25669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25670   (eval $ac_try) 2>&5
25671   ac_status=$?
25672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673   (exit $ac_status); }; }; then
25674   ac_cv_search_opendir="none required"
25675 else
25676   echo "$as_me: failed program was:" >&5
25677 sed 's/^/| /' conftest.$ac_ext >&5
25678
25679 fi
25680 rm -f conftest.err conftest.$ac_objext \
25681       conftest$ac_exeext conftest.$ac_ext
25682 if test "$ac_cv_search_opendir" = no; then
25683   for ac_lib in dir; do
25684     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25685     cat >conftest.$ac_ext <<_ACEOF
25686 /* confdefs.h.  */
25687 _ACEOF
25688 cat confdefs.h >>conftest.$ac_ext
25689 cat >>conftest.$ac_ext <<_ACEOF
25690 /* end confdefs.h.  */
25691
25692 /* Override any gcc2 internal prototype to avoid an error.  */
25693 #ifdef __cplusplus
25694 extern "C"
25695 #endif
25696 /* We use char because int might match the return type of a gcc2
25697    builtin and then its argument prototype would still apply.  */
25698 char opendir ();
25699 int
25700 main ()
25701 {
25702 opendir ();
25703   ;
25704   return 0;
25705 }
25706 _ACEOF
25707 rm -f conftest.$ac_objext conftest$ac_exeext
25708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25709   (eval $ac_link) 2>conftest.er1
25710   ac_status=$?
25711   grep -v '^ *+' conftest.er1 >conftest.err
25712   rm -f conftest.er1
25713   cat conftest.err >&5
25714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715   (exit $ac_status); } &&
25716          { ac_try='test -z "$ac_c_werror_flag"
25717                          || test ! -s conftest.err'
25718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25719   (eval $ac_try) 2>&5
25720   ac_status=$?
25721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722   (exit $ac_status); }; } &&
25723          { ac_try='test -s conftest$ac_exeext'
25724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25725   (eval $ac_try) 2>&5
25726   ac_status=$?
25727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728   (exit $ac_status); }; }; then
25729   ac_cv_search_opendir="-l$ac_lib"
25730 break
25731 else
25732   echo "$as_me: failed program was:" >&5
25733 sed 's/^/| /' conftest.$ac_ext >&5
25734
25735 fi
25736 rm -f conftest.err conftest.$ac_objext \
25737       conftest$ac_exeext conftest.$ac_ext
25738   done
25739 fi
25740 LIBS=$ac_func_search_save_LIBS
25741 fi
25742 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25743 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25744 if test "$ac_cv_search_opendir" != no; then
25745   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25746
25747 fi
25748
25749 else
25750   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25751 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25752 if test "${ac_cv_search_opendir+set}" = set; then
25753   echo $ECHO_N "(cached) $ECHO_C" >&6
25754 else
25755   ac_func_search_save_LIBS=$LIBS
25756 ac_cv_search_opendir=no
25757 cat >conftest.$ac_ext <<_ACEOF
25758 /* confdefs.h.  */
25759 _ACEOF
25760 cat confdefs.h >>conftest.$ac_ext
25761 cat >>conftest.$ac_ext <<_ACEOF
25762 /* end confdefs.h.  */
25763
25764 /* Override any gcc2 internal prototype to avoid an error.  */
25765 #ifdef __cplusplus
25766 extern "C"
25767 #endif
25768 /* We use char because int might match the return type of a gcc2
25769    builtin and then its argument prototype would still apply.  */
25770 char opendir ();
25771 int
25772 main ()
25773 {
25774 opendir ();
25775   ;
25776   return 0;
25777 }
25778 _ACEOF
25779 rm -f conftest.$ac_objext conftest$ac_exeext
25780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25781   (eval $ac_link) 2>conftest.er1
25782   ac_status=$?
25783   grep -v '^ *+' conftest.er1 >conftest.err
25784   rm -f conftest.er1
25785   cat conftest.err >&5
25786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787   (exit $ac_status); } &&
25788          { ac_try='test -z "$ac_c_werror_flag"
25789                          || test ! -s conftest.err'
25790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25791   (eval $ac_try) 2>&5
25792   ac_status=$?
25793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794   (exit $ac_status); }; } &&
25795          { ac_try='test -s conftest$ac_exeext'
25796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25797   (eval $ac_try) 2>&5
25798   ac_status=$?
25799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25800   (exit $ac_status); }; }; then
25801   ac_cv_search_opendir="none required"
25802 else
25803   echo "$as_me: failed program was:" >&5
25804 sed 's/^/| /' conftest.$ac_ext >&5
25805
25806 fi
25807 rm -f conftest.err conftest.$ac_objext \
25808       conftest$ac_exeext conftest.$ac_ext
25809 if test "$ac_cv_search_opendir" = no; then
25810   for ac_lib in x; do
25811     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25812     cat >conftest.$ac_ext <<_ACEOF
25813 /* confdefs.h.  */
25814 _ACEOF
25815 cat confdefs.h >>conftest.$ac_ext
25816 cat >>conftest.$ac_ext <<_ACEOF
25817 /* end confdefs.h.  */
25818
25819 /* Override any gcc2 internal prototype to avoid an error.  */
25820 #ifdef __cplusplus
25821 extern "C"
25822 #endif
25823 /* We use char because int might match the return type of a gcc2
25824    builtin and then its argument prototype would still apply.  */
25825 char opendir ();
25826 int
25827 main ()
25828 {
25829 opendir ();
25830   ;
25831   return 0;
25832 }
25833 _ACEOF
25834 rm -f conftest.$ac_objext conftest$ac_exeext
25835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25836   (eval $ac_link) 2>conftest.er1
25837   ac_status=$?
25838   grep -v '^ *+' conftest.er1 >conftest.err
25839   rm -f conftest.er1
25840   cat conftest.err >&5
25841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842   (exit $ac_status); } &&
25843          { ac_try='test -z "$ac_c_werror_flag"
25844                          || test ! -s conftest.err'
25845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25846   (eval $ac_try) 2>&5
25847   ac_status=$?
25848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849   (exit $ac_status); }; } &&
25850          { ac_try='test -s conftest$ac_exeext'
25851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25852   (eval $ac_try) 2>&5
25853   ac_status=$?
25854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855   (exit $ac_status); }; }; then
25856   ac_cv_search_opendir="-l$ac_lib"
25857 break
25858 else
25859   echo "$as_me: failed program was:" >&5
25860 sed 's/^/| /' conftest.$ac_ext >&5
25861
25862 fi
25863 rm -f conftest.err conftest.$ac_objext \
25864       conftest$ac_exeext conftest.$ac_ext
25865   done
25866 fi
25867 LIBS=$ac_func_search_save_LIBS
25868 fi
25869 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25870 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25871 if test "$ac_cv_search_opendir" != no; then
25872   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25873
25874 fi
25875
25876 fi
25877
25878 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25879 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25880 if test "${ac_cv_header_mmap_anon+set}" = set; then
25881   echo $ECHO_N "(cached) $ECHO_C" >&6
25882 else
25883    ac_ext=c
25884 ac_cpp='$CPP $CPPFLAGS'
25885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25888
25889   cat >conftest.$ac_ext <<_ACEOF
25890 /* confdefs.h.  */
25891 _ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h.  */
25895 #include <sys/mman.h>
25896 #include <unistd.h>
25897 #include <fcntl.h>
25898 int
25899 main ()
25900 {
25901 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25902   ;
25903   return 0;
25904 }
25905 _ACEOF
25906 rm -f conftest.$ac_objext
25907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25908   (eval $ac_compile) 2>conftest.er1
25909   ac_status=$?
25910   grep -v '^ *+' conftest.er1 >conftest.err
25911   rm -f conftest.er1
25912   cat conftest.err >&5
25913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914   (exit $ac_status); } &&
25915          { ac_try='test -z "$ac_c_werror_flag"
25916                          || test ! -s conftest.err'
25917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25918   (eval $ac_try) 2>&5
25919   ac_status=$?
25920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921   (exit $ac_status); }; } &&
25922          { ac_try='test -s conftest.$ac_objext'
25923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25924   (eval $ac_try) 2>&5
25925   ac_status=$?
25926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927   (exit $ac_status); }; }; then
25928   ac_cv_header_mmap_anon=yes
25929 else
25930   echo "$as_me: failed program was:" >&5
25931 sed 's/^/| /' conftest.$ac_ext >&5
25932
25933 ac_cv_header_mmap_anon=no
25934 fi
25935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25936   ac_ext=c
25937 ac_cpp='$CPP $CPPFLAGS'
25938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25941
25942
25943 fi
25944 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25945 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25946 if test "$ac_cv_header_mmap_anon" = yes; then
25947
25948 cat >>confdefs.h <<\_ACEOF
25949 #define HAVE_MMAP_ANONYMOUS 1
25950 _ACEOF
25951
25952 fi
25953
25954 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25955 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25956 if test "${ac_cv_header_stat_broken+set}" = set; then
25957   echo $ECHO_N "(cached) $ECHO_C" >&6
25958 else
25959   cat >conftest.$ac_ext <<_ACEOF
25960 /* confdefs.h.  */
25961 _ACEOF
25962 cat confdefs.h >>conftest.$ac_ext
25963 cat >>conftest.$ac_ext <<_ACEOF
25964 /* end confdefs.h.  */
25965 #include <sys/types.h>
25966 #include <sys/stat.h>
25967
25968 #if defined(S_ISBLK) && defined(S_IFDIR)
25969 # if S_ISBLK (S_IFDIR)
25970 You lose.
25971 # endif
25972 #endif
25973
25974 #if defined(S_ISBLK) && defined(S_IFCHR)
25975 # if S_ISBLK (S_IFCHR)
25976 You lose.
25977 # endif
25978 #endif
25979
25980 #if defined(S_ISLNK) && defined(S_IFREG)
25981 # if S_ISLNK (S_IFREG)
25982 You lose.
25983 # endif
25984 #endif
25985
25986 #if defined(S_ISSOCK) && defined(S_IFREG)
25987 # if S_ISSOCK (S_IFREG)
25988 You lose.
25989 # endif
25990 #endif
25991
25992 _ACEOF
25993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25994   $EGREP "You lose" >/dev/null 2>&1; then
25995   ac_cv_header_stat_broken=yes
25996 else
25997   ac_cv_header_stat_broken=no
25998 fi
25999 rm -f conftest*
26000
26001 fi
26002 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26003 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26004 if test $ac_cv_header_stat_broken = yes; then
26005
26006 cat >>confdefs.h <<\_ACEOF
26007 #define STAT_MACROS_BROKEN 1
26008 _ACEOF
26009
26010 fi
26011
26012 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26013 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26014 if test "${ac_cv_header_stdc+set}" = set; then
26015   echo $ECHO_N "(cached) $ECHO_C" >&6
26016 else
26017   cat >conftest.$ac_ext <<_ACEOF
26018 /* confdefs.h.  */
26019 _ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h.  */
26023 #include <stdlib.h>
26024 #include <stdarg.h>
26025 #include <string.h>
26026 #include <float.h>
26027
26028 int
26029 main ()
26030 {
26031
26032   ;
26033   return 0;
26034 }
26035 _ACEOF
26036 rm -f conftest.$ac_objext
26037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26038   (eval $ac_compile) 2>conftest.er1
26039   ac_status=$?
26040   grep -v '^ *+' conftest.er1 >conftest.err
26041   rm -f conftest.er1
26042   cat conftest.err >&5
26043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044   (exit $ac_status); } &&
26045          { ac_try='test -z "$ac_c_werror_flag"
26046                          || test ! -s conftest.err'
26047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26048   (eval $ac_try) 2>&5
26049   ac_status=$?
26050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051   (exit $ac_status); }; } &&
26052          { ac_try='test -s conftest.$ac_objext'
26053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26054   (eval $ac_try) 2>&5
26055   ac_status=$?
26056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057   (exit $ac_status); }; }; then
26058   ac_cv_header_stdc=yes
26059 else
26060   echo "$as_me: failed program was:" >&5
26061 sed 's/^/| /' conftest.$ac_ext >&5
26062
26063 ac_cv_header_stdc=no
26064 fi
26065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26066
26067 if test $ac_cv_header_stdc = yes; then
26068   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26069   cat >conftest.$ac_ext <<_ACEOF
26070 /* confdefs.h.  */
26071 _ACEOF
26072 cat confdefs.h >>conftest.$ac_ext
26073 cat >>conftest.$ac_ext <<_ACEOF
26074 /* end confdefs.h.  */
26075 #include <string.h>
26076
26077 _ACEOF
26078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26079   $EGREP "memchr" >/dev/null 2>&1; then
26080   :
26081 else
26082   ac_cv_header_stdc=no
26083 fi
26084 rm -f conftest*
26085
26086 fi
26087
26088 if test $ac_cv_header_stdc = yes; then
26089   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26090   cat >conftest.$ac_ext <<_ACEOF
26091 /* confdefs.h.  */
26092 _ACEOF
26093 cat confdefs.h >>conftest.$ac_ext
26094 cat >>conftest.$ac_ext <<_ACEOF
26095 /* end confdefs.h.  */
26096 #include <stdlib.h>
26097
26098 _ACEOF
26099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26100   $EGREP "free" >/dev/null 2>&1; then
26101   :
26102 else
26103   ac_cv_header_stdc=no
26104 fi
26105 rm -f conftest*
26106
26107 fi
26108
26109 if test $ac_cv_header_stdc = yes; then
26110   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26111   if test "$cross_compiling" = yes; then
26112   :
26113 else
26114   cat >conftest.$ac_ext <<_ACEOF
26115 /* confdefs.h.  */
26116 _ACEOF
26117 cat confdefs.h >>conftest.$ac_ext
26118 cat >>conftest.$ac_ext <<_ACEOF
26119 /* end confdefs.h.  */
26120 #include <ctype.h>
26121 #if ((' ' & 0x0FF) == 0x020)
26122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26124 #else
26125 # define ISLOWER(c) \
26126                    (('a' <= (c) && (c) <= 'i') \
26127                      || ('j' <= (c) && (c) <= 'r') \
26128                      || ('s' <= (c) && (c) <= 'z'))
26129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26130 #endif
26131
26132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26133 int
26134 main ()
26135 {
26136   int i;
26137   for (i = 0; i < 256; i++)
26138     if (XOR (islower (i), ISLOWER (i))
26139         || toupper (i) != TOUPPER (i))
26140       exit(2);
26141   exit (0);
26142 }
26143 _ACEOF
26144 rm -f conftest$ac_exeext
26145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26146   (eval $ac_link) 2>&5
26147   ac_status=$?
26148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26151   (eval $ac_try) 2>&5
26152   ac_status=$?
26153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154   (exit $ac_status); }; }; then
26155   :
26156 else
26157   echo "$as_me: program exited with status $ac_status" >&5
26158 echo "$as_me: failed program was:" >&5
26159 sed 's/^/| /' conftest.$ac_ext >&5
26160
26161 ( exit $ac_status )
26162 ac_cv_header_stdc=no
26163 fi
26164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26165 fi
26166 fi
26167 fi
26168 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26169 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26170 if test $ac_cv_header_stdc = yes; then
26171
26172 cat >>confdefs.h <<\_ACEOF
26173 #define STDC_HEADERS 1
26174 _ACEOF
26175
26176 fi
26177
26178 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26179 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26180 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26181   echo $ECHO_N "(cached) $ECHO_C" >&6
26182 else
26183   cat >conftest.$ac_ext <<_ACEOF
26184 /* confdefs.h.  */
26185 _ACEOF
26186 cat confdefs.h >>conftest.$ac_ext
26187 cat >>conftest.$ac_ext <<_ACEOF
26188 /* end confdefs.h.  */
26189 #include <sys/types.h>
26190 #include <sys/wait.h>
26191 #ifndef WEXITSTATUS
26192 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26193 #endif
26194 #ifndef WIFEXITED
26195 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26196 #endif
26197
26198 int
26199 main ()
26200 {
26201   int s;
26202   wait (&s);
26203   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26204   ;
26205   return 0;
26206 }
26207 _ACEOF
26208 rm -f conftest.$ac_objext
26209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26210   (eval $ac_compile) 2>conftest.er1
26211   ac_status=$?
26212   grep -v '^ *+' conftest.er1 >conftest.err
26213   rm -f conftest.er1
26214   cat conftest.err >&5
26215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26216   (exit $ac_status); } &&
26217          { ac_try='test -z "$ac_c_werror_flag"
26218                          || test ! -s conftest.err'
26219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26220   (eval $ac_try) 2>&5
26221   ac_status=$?
26222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26223   (exit $ac_status); }; } &&
26224          { ac_try='test -s conftest.$ac_objext'
26225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26226   (eval $ac_try) 2>&5
26227   ac_status=$?
26228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229   (exit $ac_status); }; }; then
26230   ac_cv_header_sys_wait_h=yes
26231 else
26232   echo "$as_me: failed program was:" >&5
26233 sed 's/^/| /' conftest.$ac_ext >&5
26234
26235 ac_cv_header_sys_wait_h=no
26236 fi
26237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26238 fi
26239 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26240 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26241 if test $ac_cv_header_sys_wait_h = yes; then
26242
26243 cat >>confdefs.h <<\_ACEOF
26244 #define HAVE_SYS_WAIT_H 1
26245 _ACEOF
26246
26247 fi
26248
26249 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26250 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26251 if test "${ac_cv_header_time+set}" = set; then
26252   echo $ECHO_N "(cached) $ECHO_C" >&6
26253 else
26254   cat >conftest.$ac_ext <<_ACEOF
26255 /* confdefs.h.  */
26256 _ACEOF
26257 cat confdefs.h >>conftest.$ac_ext
26258 cat >>conftest.$ac_ext <<_ACEOF
26259 /* end confdefs.h.  */
26260 #include <sys/types.h>
26261 #include <sys/time.h>
26262 #include <time.h>
26263
26264 int
26265 main ()
26266 {
26267 if ((struct tm *) 0)
26268 return 0;
26269   ;
26270   return 0;
26271 }
26272 _ACEOF
26273 rm -f conftest.$ac_objext
26274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26275   (eval $ac_compile) 2>conftest.er1
26276   ac_status=$?
26277   grep -v '^ *+' conftest.er1 >conftest.err
26278   rm -f conftest.er1
26279   cat conftest.err >&5
26280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281   (exit $ac_status); } &&
26282          { ac_try='test -z "$ac_c_werror_flag"
26283                          || test ! -s conftest.err'
26284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26285   (eval $ac_try) 2>&5
26286   ac_status=$?
26287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288   (exit $ac_status); }; } &&
26289          { ac_try='test -s conftest.$ac_objext'
26290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26291   (eval $ac_try) 2>&5
26292   ac_status=$?
26293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294   (exit $ac_status); }; }; then
26295   ac_cv_header_time=yes
26296 else
26297   echo "$as_me: failed program was:" >&5
26298 sed 's/^/| /' conftest.$ac_ext >&5
26299
26300 ac_cv_header_time=no
26301 fi
26302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26303 fi
26304 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26305 echo "${ECHO_T}$ac_cv_header_time" >&6
26306 if test $ac_cv_header_time = yes; then
26307
26308 cat >>confdefs.h <<\_ACEOF
26309 #define TIME_WITH_SYS_TIME 1
26310 _ACEOF
26311
26312 fi
26313
26314
26315
26316
26317
26318
26319
26320
26321 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26322 do
26323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26325   echo "$as_me:$LINENO: checking for $ac_header" >&5
26326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26328   echo $ECHO_N "(cached) $ECHO_C" >&6
26329 fi
26330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26332 else
26333   # Is the header compilable?
26334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26336 cat >conftest.$ac_ext <<_ACEOF
26337 /* confdefs.h.  */
26338 _ACEOF
26339 cat confdefs.h >>conftest.$ac_ext
26340 cat >>conftest.$ac_ext <<_ACEOF
26341 /* end confdefs.h.  */
26342 $ac_includes_default
26343 #include <$ac_header>
26344 _ACEOF
26345 rm -f conftest.$ac_objext
26346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26347   (eval $ac_compile) 2>conftest.er1
26348   ac_status=$?
26349   grep -v '^ *+' conftest.er1 >conftest.err
26350   rm -f conftest.er1
26351   cat conftest.err >&5
26352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353   (exit $ac_status); } &&
26354          { ac_try='test -z "$ac_c_werror_flag"
26355                          || test ! -s conftest.err'
26356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26357   (eval $ac_try) 2>&5
26358   ac_status=$?
26359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360   (exit $ac_status); }; } &&
26361          { ac_try='test -s conftest.$ac_objext'
26362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26363   (eval $ac_try) 2>&5
26364   ac_status=$?
26365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366   (exit $ac_status); }; }; then
26367   ac_header_compiler=yes
26368 else
26369   echo "$as_me: failed program was:" >&5
26370 sed 's/^/| /' conftest.$ac_ext >&5
26371
26372 ac_header_compiler=no
26373 fi
26374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26376 echo "${ECHO_T}$ac_header_compiler" >&6
26377
26378 # Is the header present?
26379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26381 cat >conftest.$ac_ext <<_ACEOF
26382 /* confdefs.h.  */
26383 _ACEOF
26384 cat confdefs.h >>conftest.$ac_ext
26385 cat >>conftest.$ac_ext <<_ACEOF
26386 /* end confdefs.h.  */
26387 #include <$ac_header>
26388 _ACEOF
26389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26390   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26391   ac_status=$?
26392   grep -v '^ *+' conftest.er1 >conftest.err
26393   rm -f conftest.er1
26394   cat conftest.err >&5
26395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396   (exit $ac_status); } >/dev/null; then
26397   if test -s conftest.err; then
26398     ac_cpp_err=$ac_c_preproc_warn_flag
26399     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26400   else
26401     ac_cpp_err=
26402   fi
26403 else
26404   ac_cpp_err=yes
26405 fi
26406 if test -z "$ac_cpp_err"; then
26407   ac_header_preproc=yes
26408 else
26409   echo "$as_me: failed program was:" >&5
26410 sed 's/^/| /' conftest.$ac_ext >&5
26411
26412   ac_header_preproc=no
26413 fi
26414 rm -f conftest.err conftest.$ac_ext
26415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26416 echo "${ECHO_T}$ac_header_preproc" >&6
26417
26418 # So?  What about this header?
26419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26420   yes:no: )
26421     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26425     ac_header_preproc=yes
26426     ;;
26427   no:yes:* )
26428     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26430     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26431 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26432     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26434     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26435 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26436     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26438     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26440     (
26441       cat <<\_ASBOX
26442 ## ----------------------------------- ##
26443 ## Report this to llvmbugs@cs.uiuc.edu ##
26444 ## ----------------------------------- ##
26445 _ASBOX
26446     ) |
26447       sed "s/^/$as_me: WARNING:     /" >&2
26448     ;;
26449 esac
26450 echo "$as_me:$LINENO: checking for $ac_header" >&5
26451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26453   echo $ECHO_N "(cached) $ECHO_C" >&6
26454 else
26455   eval "$as_ac_Header=\$ac_header_preproc"
26456 fi
26457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26459
26460 fi
26461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26462   cat >>confdefs.h <<_ACEOF
26463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26464 _ACEOF
26465
26466 fi
26467
26468 done
26469
26470
26471
26472
26473
26474
26475
26476 for ac_header in malloc.h pthread.h signal.h stdint.h unistd.h utime.h
26477 do
26478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26480   echo "$as_me:$LINENO: checking for $ac_header" >&5
26481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26483   echo $ECHO_N "(cached) $ECHO_C" >&6
26484 fi
26485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26487 else
26488   # Is the header compilable?
26489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26491 cat >conftest.$ac_ext <<_ACEOF
26492 /* confdefs.h.  */
26493 _ACEOF
26494 cat confdefs.h >>conftest.$ac_ext
26495 cat >>conftest.$ac_ext <<_ACEOF
26496 /* end confdefs.h.  */
26497 $ac_includes_default
26498 #include <$ac_header>
26499 _ACEOF
26500 rm -f conftest.$ac_objext
26501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26502   (eval $ac_compile) 2>conftest.er1
26503   ac_status=$?
26504   grep -v '^ *+' conftest.er1 >conftest.err
26505   rm -f conftest.er1
26506   cat conftest.err >&5
26507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508   (exit $ac_status); } &&
26509          { ac_try='test -z "$ac_c_werror_flag"
26510                          || test ! -s conftest.err'
26511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26512   (eval $ac_try) 2>&5
26513   ac_status=$?
26514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515   (exit $ac_status); }; } &&
26516          { ac_try='test -s conftest.$ac_objext'
26517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518   (eval $ac_try) 2>&5
26519   ac_status=$?
26520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521   (exit $ac_status); }; }; then
26522   ac_header_compiler=yes
26523 else
26524   echo "$as_me: failed program was:" >&5
26525 sed 's/^/| /' conftest.$ac_ext >&5
26526
26527 ac_header_compiler=no
26528 fi
26529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26531 echo "${ECHO_T}$ac_header_compiler" >&6
26532
26533 # Is the header present?
26534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26536 cat >conftest.$ac_ext <<_ACEOF
26537 /* confdefs.h.  */
26538 _ACEOF
26539 cat confdefs.h >>conftest.$ac_ext
26540 cat >>conftest.$ac_ext <<_ACEOF
26541 /* end confdefs.h.  */
26542 #include <$ac_header>
26543 _ACEOF
26544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26545   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26546   ac_status=$?
26547   grep -v '^ *+' conftest.er1 >conftest.err
26548   rm -f conftest.er1
26549   cat conftest.err >&5
26550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551   (exit $ac_status); } >/dev/null; then
26552   if test -s conftest.err; then
26553     ac_cpp_err=$ac_c_preproc_warn_flag
26554     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26555   else
26556     ac_cpp_err=
26557   fi
26558 else
26559   ac_cpp_err=yes
26560 fi
26561 if test -z "$ac_cpp_err"; then
26562   ac_header_preproc=yes
26563 else
26564   echo "$as_me: failed program was:" >&5
26565 sed 's/^/| /' conftest.$ac_ext >&5
26566
26567   ac_header_preproc=no
26568 fi
26569 rm -f conftest.err conftest.$ac_ext
26570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26571 echo "${ECHO_T}$ac_header_preproc" >&6
26572
26573 # So?  What about this header?
26574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26575   yes:no: )
26576     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26580     ac_header_preproc=yes
26581     ;;
26582   no:yes:* )
26583     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26585     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26586 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26587     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26589     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26590 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26593     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26595     (
26596       cat <<\_ASBOX
26597 ## ----------------------------------- ##
26598 ## Report this to llvmbugs@cs.uiuc.edu ##
26599 ## ----------------------------------- ##
26600 _ASBOX
26601     ) |
26602       sed "s/^/$as_me: WARNING:     /" >&2
26603     ;;
26604 esac
26605 echo "$as_me:$LINENO: checking for $ac_header" >&5
26606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26608   echo $ECHO_N "(cached) $ECHO_C" >&6
26609 else
26610   eval "$as_ac_Header=\$ac_header_preproc"
26611 fi
26612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26614
26615 fi
26616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26617   cat >>confdefs.h <<_ACEOF
26618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26619 _ACEOF
26620
26621 fi
26622
26623 done
26624
26625
26626 for ac_header in windows.h
26627 do
26628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26630   echo "$as_me:$LINENO: checking for $ac_header" >&5
26631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26633   echo $ECHO_N "(cached) $ECHO_C" >&6
26634 fi
26635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26637 else
26638   # Is the header compilable?
26639 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26640 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26641 cat >conftest.$ac_ext <<_ACEOF
26642 /* confdefs.h.  */
26643 _ACEOF
26644 cat confdefs.h >>conftest.$ac_ext
26645 cat >>conftest.$ac_ext <<_ACEOF
26646 /* end confdefs.h.  */
26647 $ac_includes_default
26648 #include <$ac_header>
26649 _ACEOF
26650 rm -f conftest.$ac_objext
26651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26652   (eval $ac_compile) 2>conftest.er1
26653   ac_status=$?
26654   grep -v '^ *+' conftest.er1 >conftest.err
26655   rm -f conftest.er1
26656   cat conftest.err >&5
26657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658   (exit $ac_status); } &&
26659          { ac_try='test -z "$ac_c_werror_flag"
26660                          || test ! -s conftest.err'
26661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662   (eval $ac_try) 2>&5
26663   ac_status=$?
26664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665   (exit $ac_status); }; } &&
26666          { ac_try='test -s conftest.$ac_objext'
26667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26668   (eval $ac_try) 2>&5
26669   ac_status=$?
26670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671   (exit $ac_status); }; }; then
26672   ac_header_compiler=yes
26673 else
26674   echo "$as_me: failed program was:" >&5
26675 sed 's/^/| /' conftest.$ac_ext >&5
26676
26677 ac_header_compiler=no
26678 fi
26679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26681 echo "${ECHO_T}$ac_header_compiler" >&6
26682
26683 # Is the header present?
26684 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26686 cat >conftest.$ac_ext <<_ACEOF
26687 /* confdefs.h.  */
26688 _ACEOF
26689 cat confdefs.h >>conftest.$ac_ext
26690 cat >>conftest.$ac_ext <<_ACEOF
26691 /* end confdefs.h.  */
26692 #include <$ac_header>
26693 _ACEOF
26694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26695   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26696   ac_status=$?
26697   grep -v '^ *+' conftest.er1 >conftest.err
26698   rm -f conftest.er1
26699   cat conftest.err >&5
26700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701   (exit $ac_status); } >/dev/null; then
26702   if test -s conftest.err; then
26703     ac_cpp_err=$ac_c_preproc_warn_flag
26704     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26705   else
26706     ac_cpp_err=
26707   fi
26708 else
26709   ac_cpp_err=yes
26710 fi
26711 if test -z "$ac_cpp_err"; then
26712   ac_header_preproc=yes
26713 else
26714   echo "$as_me: failed program was:" >&5
26715 sed 's/^/| /' conftest.$ac_ext >&5
26716
26717   ac_header_preproc=no
26718 fi
26719 rm -f conftest.err conftest.$ac_ext
26720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26721 echo "${ECHO_T}$ac_header_preproc" >&6
26722
26723 # So?  What about this header?
26724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26725   yes:no: )
26726     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26730     ac_header_preproc=yes
26731     ;;
26732   no:yes:* )
26733     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26735     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26736 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26737     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26739     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26740 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26741     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26743     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26745     (
26746       cat <<\_ASBOX
26747 ## ----------------------------------- ##
26748 ## Report this to llvmbugs@cs.uiuc.edu ##
26749 ## ----------------------------------- ##
26750 _ASBOX
26751     ) |
26752       sed "s/^/$as_me: WARNING:     /" >&2
26753     ;;
26754 esac
26755 echo "$as_me:$LINENO: checking for $ac_header" >&5
26756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26758   echo $ECHO_N "(cached) $ECHO_C" >&6
26759 else
26760   eval "$as_ac_Header=\$ac_header_preproc"
26761 fi
26762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26764
26765 fi
26766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26767   cat >>confdefs.h <<_ACEOF
26768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26769 _ACEOF
26770
26771 fi
26772
26773 done
26774
26775
26776
26777
26778
26779
26780 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26781 do
26782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26784   echo "$as_me:$LINENO: checking for $ac_header" >&5
26785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26787   echo $ECHO_N "(cached) $ECHO_C" >&6
26788 fi
26789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26791 else
26792   # Is the header compilable?
26793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26795 cat >conftest.$ac_ext <<_ACEOF
26796 /* confdefs.h.  */
26797 _ACEOF
26798 cat confdefs.h >>conftest.$ac_ext
26799 cat >>conftest.$ac_ext <<_ACEOF
26800 /* end confdefs.h.  */
26801 $ac_includes_default
26802 #include <$ac_header>
26803 _ACEOF
26804 rm -f conftest.$ac_objext
26805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26806   (eval $ac_compile) 2>conftest.er1
26807   ac_status=$?
26808   grep -v '^ *+' conftest.er1 >conftest.err
26809   rm -f conftest.er1
26810   cat conftest.err >&5
26811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812   (exit $ac_status); } &&
26813          { ac_try='test -z "$ac_c_werror_flag"
26814                          || test ! -s conftest.err'
26815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26816   (eval $ac_try) 2>&5
26817   ac_status=$?
26818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819   (exit $ac_status); }; } &&
26820          { ac_try='test -s conftest.$ac_objext'
26821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26822   (eval $ac_try) 2>&5
26823   ac_status=$?
26824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825   (exit $ac_status); }; }; then
26826   ac_header_compiler=yes
26827 else
26828   echo "$as_me: failed program was:" >&5
26829 sed 's/^/| /' conftest.$ac_ext >&5
26830
26831 ac_header_compiler=no
26832 fi
26833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26835 echo "${ECHO_T}$ac_header_compiler" >&6
26836
26837 # Is the header present?
26838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26840 cat >conftest.$ac_ext <<_ACEOF
26841 /* confdefs.h.  */
26842 _ACEOF
26843 cat confdefs.h >>conftest.$ac_ext
26844 cat >>conftest.$ac_ext <<_ACEOF
26845 /* end confdefs.h.  */
26846 #include <$ac_header>
26847 _ACEOF
26848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26849   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26850   ac_status=$?
26851   grep -v '^ *+' conftest.er1 >conftest.err
26852   rm -f conftest.er1
26853   cat conftest.err >&5
26854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855   (exit $ac_status); } >/dev/null; then
26856   if test -s conftest.err; then
26857     ac_cpp_err=$ac_c_preproc_warn_flag
26858     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26859   else
26860     ac_cpp_err=
26861   fi
26862 else
26863   ac_cpp_err=yes
26864 fi
26865 if test -z "$ac_cpp_err"; then
26866   ac_header_preproc=yes
26867 else
26868   echo "$as_me: failed program was:" >&5
26869 sed 's/^/| /' conftest.$ac_ext >&5
26870
26871   ac_header_preproc=no
26872 fi
26873 rm -f conftest.err conftest.$ac_ext
26874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26875 echo "${ECHO_T}$ac_header_preproc" >&6
26876
26877 # So?  What about this header?
26878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26879   yes:no: )
26880     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26884     ac_header_preproc=yes
26885     ;;
26886   no:yes:* )
26887     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26889     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26890 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26891     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26893     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26894 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26897     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26899     (
26900       cat <<\_ASBOX
26901 ## ----------------------------------- ##
26902 ## Report this to llvmbugs@cs.uiuc.edu ##
26903 ## ----------------------------------- ##
26904 _ASBOX
26905     ) |
26906       sed "s/^/$as_me: WARNING:     /" >&2
26907     ;;
26908 esac
26909 echo "$as_me:$LINENO: checking for $ac_header" >&5
26910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26912   echo $ECHO_N "(cached) $ECHO_C" >&6
26913 else
26914   eval "$as_ac_Header=\$ac_header_preproc"
26915 fi
26916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26918
26919 fi
26920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26921   cat >>confdefs.h <<_ACEOF
26922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26923 _ACEOF
26924
26925 fi
26926
26927 done
26928
26929
26930
26931 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26932 do
26933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26935   echo "$as_me:$LINENO: checking for $ac_header" >&5
26936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26938   echo $ECHO_N "(cached) $ECHO_C" >&6
26939 fi
26940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26942 else
26943   # Is the header compilable?
26944 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26946 cat >conftest.$ac_ext <<_ACEOF
26947 /* confdefs.h.  */
26948 _ACEOF
26949 cat confdefs.h >>conftest.$ac_ext
26950 cat >>conftest.$ac_ext <<_ACEOF
26951 /* end confdefs.h.  */
26952 $ac_includes_default
26953 #include <$ac_header>
26954 _ACEOF
26955 rm -f conftest.$ac_objext
26956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26957   (eval $ac_compile) 2>conftest.er1
26958   ac_status=$?
26959   grep -v '^ *+' conftest.er1 >conftest.err
26960   rm -f conftest.er1
26961   cat conftest.err >&5
26962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963   (exit $ac_status); } &&
26964          { ac_try='test -z "$ac_c_werror_flag"
26965                          || test ! -s conftest.err'
26966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26967   (eval $ac_try) 2>&5
26968   ac_status=$?
26969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970   (exit $ac_status); }; } &&
26971          { ac_try='test -s conftest.$ac_objext'
26972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26973   (eval $ac_try) 2>&5
26974   ac_status=$?
26975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976   (exit $ac_status); }; }; then
26977   ac_header_compiler=yes
26978 else
26979   echo "$as_me: failed program was:" >&5
26980 sed 's/^/| /' conftest.$ac_ext >&5
26981
26982 ac_header_compiler=no
26983 fi
26984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26985 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26986 echo "${ECHO_T}$ac_header_compiler" >&6
26987
26988 # Is the header present?
26989 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26991 cat >conftest.$ac_ext <<_ACEOF
26992 /* confdefs.h.  */
26993 _ACEOF
26994 cat confdefs.h >>conftest.$ac_ext
26995 cat >>conftest.$ac_ext <<_ACEOF
26996 /* end confdefs.h.  */
26997 #include <$ac_header>
26998 _ACEOF
26999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27000   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27001   ac_status=$?
27002   grep -v '^ *+' conftest.er1 >conftest.err
27003   rm -f conftest.er1
27004   cat conftest.err >&5
27005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006   (exit $ac_status); } >/dev/null; then
27007   if test -s conftest.err; then
27008     ac_cpp_err=$ac_c_preproc_warn_flag
27009     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27010   else
27011     ac_cpp_err=
27012   fi
27013 else
27014   ac_cpp_err=yes
27015 fi
27016 if test -z "$ac_cpp_err"; then
27017   ac_header_preproc=yes
27018 else
27019   echo "$as_me: failed program was:" >&5
27020 sed 's/^/| /' conftest.$ac_ext >&5
27021
27022   ac_header_preproc=no
27023 fi
27024 rm -f conftest.err conftest.$ac_ext
27025 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27026 echo "${ECHO_T}$ac_header_preproc" >&6
27027
27028 # So?  What about this header?
27029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27030   yes:no: )
27031     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27035     ac_header_preproc=yes
27036     ;;
27037   no:yes:* )
27038     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27040     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27041 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27042     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27044     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27045 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27048     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27050     (
27051       cat <<\_ASBOX
27052 ## ----------------------------------- ##
27053 ## Report this to llvmbugs@cs.uiuc.edu ##
27054 ## ----------------------------------- ##
27055 _ASBOX
27056     ) |
27057       sed "s/^/$as_me: WARNING:     /" >&2
27058     ;;
27059 esac
27060 echo "$as_me:$LINENO: checking for $ac_header" >&5
27061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27063   echo $ECHO_N "(cached) $ECHO_C" >&6
27064 else
27065   eval "$as_ac_Header=\$ac_header_preproc"
27066 fi
27067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27069
27070 fi
27071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27072   cat >>confdefs.h <<_ACEOF
27073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27074 _ACEOF
27075
27076 fi
27077
27078 done
27079
27080
27081
27082 echo "$as_me:$LINENO: checking for pid_t" >&5
27083 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27084 if test "${ac_cv_type_pid_t+set}" = set; then
27085   echo $ECHO_N "(cached) $ECHO_C" >&6
27086 else
27087   cat >conftest.$ac_ext <<_ACEOF
27088 /* confdefs.h.  */
27089 _ACEOF
27090 cat confdefs.h >>conftest.$ac_ext
27091 cat >>conftest.$ac_ext <<_ACEOF
27092 /* end confdefs.h.  */
27093 $ac_includes_default
27094 int
27095 main ()
27096 {
27097 if ((pid_t *) 0)
27098   return 0;
27099 if (sizeof (pid_t))
27100   return 0;
27101   ;
27102   return 0;
27103 }
27104 _ACEOF
27105 rm -f conftest.$ac_objext
27106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27107   (eval $ac_compile) 2>conftest.er1
27108   ac_status=$?
27109   grep -v '^ *+' conftest.er1 >conftest.err
27110   rm -f conftest.er1
27111   cat conftest.err >&5
27112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113   (exit $ac_status); } &&
27114          { ac_try='test -z "$ac_c_werror_flag"
27115                          || test ! -s conftest.err'
27116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27117   (eval $ac_try) 2>&5
27118   ac_status=$?
27119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120   (exit $ac_status); }; } &&
27121          { ac_try='test -s conftest.$ac_objext'
27122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27123   (eval $ac_try) 2>&5
27124   ac_status=$?
27125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126   (exit $ac_status); }; }; then
27127   ac_cv_type_pid_t=yes
27128 else
27129   echo "$as_me: failed program was:" >&5
27130 sed 's/^/| /' conftest.$ac_ext >&5
27131
27132 ac_cv_type_pid_t=no
27133 fi
27134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27135 fi
27136 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27137 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27138 if test $ac_cv_type_pid_t = yes; then
27139   :
27140 else
27141
27142 cat >>confdefs.h <<_ACEOF
27143 #define pid_t int
27144 _ACEOF
27145
27146 fi
27147
27148 echo "$as_me:$LINENO: checking for size_t" >&5
27149 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27150 if test "${ac_cv_type_size_t+set}" = set; then
27151   echo $ECHO_N "(cached) $ECHO_C" >&6
27152 else
27153   cat >conftest.$ac_ext <<_ACEOF
27154 /* confdefs.h.  */
27155 _ACEOF
27156 cat confdefs.h >>conftest.$ac_ext
27157 cat >>conftest.$ac_ext <<_ACEOF
27158 /* end confdefs.h.  */
27159 $ac_includes_default
27160 int
27161 main ()
27162 {
27163 if ((size_t *) 0)
27164   return 0;
27165 if (sizeof (size_t))
27166   return 0;
27167   ;
27168   return 0;
27169 }
27170 _ACEOF
27171 rm -f conftest.$ac_objext
27172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27173   (eval $ac_compile) 2>conftest.er1
27174   ac_status=$?
27175   grep -v '^ *+' conftest.er1 >conftest.err
27176   rm -f conftest.er1
27177   cat conftest.err >&5
27178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179   (exit $ac_status); } &&
27180          { ac_try='test -z "$ac_c_werror_flag"
27181                          || test ! -s conftest.err'
27182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27183   (eval $ac_try) 2>&5
27184   ac_status=$?
27185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186   (exit $ac_status); }; } &&
27187          { ac_try='test -s conftest.$ac_objext'
27188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27189   (eval $ac_try) 2>&5
27190   ac_status=$?
27191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192   (exit $ac_status); }; }; then
27193   ac_cv_type_size_t=yes
27194 else
27195   echo "$as_me: failed program was:" >&5
27196 sed 's/^/| /' conftest.$ac_ext >&5
27197
27198 ac_cv_type_size_t=no
27199 fi
27200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27201 fi
27202 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27203 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27204 if test $ac_cv_type_size_t = yes; then
27205   :
27206 else
27207
27208 cat >>confdefs.h <<_ACEOF
27209 #define size_t unsigned
27210 _ACEOF
27211
27212 fi
27213
27214 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27215 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27216 if test "${ac_cv_type_signal+set}" = set; then
27217   echo $ECHO_N "(cached) $ECHO_C" >&6
27218 else
27219   cat >conftest.$ac_ext <<_ACEOF
27220 /* confdefs.h.  */
27221 _ACEOF
27222 cat confdefs.h >>conftest.$ac_ext
27223 cat >>conftest.$ac_ext <<_ACEOF
27224 /* end confdefs.h.  */
27225 #include <sys/types.h>
27226 #include <signal.h>
27227 #ifdef signal
27228 # undef signal
27229 #endif
27230 #ifdef __cplusplus
27231 extern "C" void (*signal (int, void (*)(int)))(int);
27232 #else
27233 void (*signal ()) ();
27234 #endif
27235
27236 int
27237 main ()
27238 {
27239 int i;
27240   ;
27241   return 0;
27242 }
27243 _ACEOF
27244 rm -f conftest.$ac_objext
27245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27246   (eval $ac_compile) 2>conftest.er1
27247   ac_status=$?
27248   grep -v '^ *+' conftest.er1 >conftest.err
27249   rm -f conftest.er1
27250   cat conftest.err >&5
27251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252   (exit $ac_status); } &&
27253          { ac_try='test -z "$ac_c_werror_flag"
27254                          || test ! -s conftest.err'
27255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27256   (eval $ac_try) 2>&5
27257   ac_status=$?
27258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259   (exit $ac_status); }; } &&
27260          { ac_try='test -s conftest.$ac_objext'
27261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27262   (eval $ac_try) 2>&5
27263   ac_status=$?
27264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265   (exit $ac_status); }; }; then
27266   ac_cv_type_signal=void
27267 else
27268   echo "$as_me: failed program was:" >&5
27269 sed 's/^/| /' conftest.$ac_ext >&5
27270
27271 ac_cv_type_signal=int
27272 fi
27273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27274 fi
27275 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27276 echo "${ECHO_T}$ac_cv_type_signal" >&6
27277
27278 cat >>confdefs.h <<_ACEOF
27279 #define RETSIGTYPE $ac_cv_type_signal
27280 _ACEOF
27281
27282
27283 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27284 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27285 if test "${ac_cv_struct_tm+set}" = set; then
27286   echo $ECHO_N "(cached) $ECHO_C" >&6
27287 else
27288   cat >conftest.$ac_ext <<_ACEOF
27289 /* confdefs.h.  */
27290 _ACEOF
27291 cat confdefs.h >>conftest.$ac_ext
27292 cat >>conftest.$ac_ext <<_ACEOF
27293 /* end confdefs.h.  */
27294 #include <sys/types.h>
27295 #include <time.h>
27296
27297 int
27298 main ()
27299 {
27300 struct tm *tp; tp->tm_sec;
27301   ;
27302   return 0;
27303 }
27304 _ACEOF
27305 rm -f conftest.$ac_objext
27306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27307   (eval $ac_compile) 2>conftest.er1
27308   ac_status=$?
27309   grep -v '^ *+' conftest.er1 >conftest.err
27310   rm -f conftest.er1
27311   cat conftest.err >&5
27312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313   (exit $ac_status); } &&
27314          { ac_try='test -z "$ac_c_werror_flag"
27315                          || test ! -s conftest.err'
27316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27317   (eval $ac_try) 2>&5
27318   ac_status=$?
27319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320   (exit $ac_status); }; } &&
27321          { ac_try='test -s conftest.$ac_objext'
27322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27323   (eval $ac_try) 2>&5
27324   ac_status=$?
27325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326   (exit $ac_status); }; }; then
27327   ac_cv_struct_tm=time.h
27328 else
27329   echo "$as_me: failed program was:" >&5
27330 sed 's/^/| /' conftest.$ac_ext >&5
27331
27332 ac_cv_struct_tm=sys/time.h
27333 fi
27334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27335 fi
27336 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27337 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27338 if test $ac_cv_struct_tm = sys/time.h; then
27339
27340 cat >>confdefs.h <<\_ACEOF
27341 #define TM_IN_SYS_TIME 1
27342 _ACEOF
27343
27344 fi
27345
27346 echo "$as_me:$LINENO: checking for int64_t" >&5
27347 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27348 if test "${ac_cv_type_int64_t+set}" = set; then
27349   echo $ECHO_N "(cached) $ECHO_C" >&6
27350 else
27351   cat >conftest.$ac_ext <<_ACEOF
27352 /* confdefs.h.  */
27353 _ACEOF
27354 cat confdefs.h >>conftest.$ac_ext
27355 cat >>conftest.$ac_ext <<_ACEOF
27356 /* end confdefs.h.  */
27357 $ac_includes_default
27358 int
27359 main ()
27360 {
27361 if ((int64_t *) 0)
27362   return 0;
27363 if (sizeof (int64_t))
27364   return 0;
27365   ;
27366   return 0;
27367 }
27368 _ACEOF
27369 rm -f conftest.$ac_objext
27370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27371   (eval $ac_compile) 2>conftest.er1
27372   ac_status=$?
27373   grep -v '^ *+' conftest.er1 >conftest.err
27374   rm -f conftest.er1
27375   cat conftest.err >&5
27376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377   (exit $ac_status); } &&
27378          { ac_try='test -z "$ac_c_werror_flag"
27379                          || test ! -s conftest.err'
27380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27381   (eval $ac_try) 2>&5
27382   ac_status=$?
27383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384   (exit $ac_status); }; } &&
27385          { ac_try='test -s conftest.$ac_objext'
27386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27387   (eval $ac_try) 2>&5
27388   ac_status=$?
27389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390   (exit $ac_status); }; }; then
27391   ac_cv_type_int64_t=yes
27392 else
27393   echo "$as_me: failed program was:" >&5
27394 sed 's/^/| /' conftest.$ac_ext >&5
27395
27396 ac_cv_type_int64_t=no
27397 fi
27398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27399 fi
27400 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27401 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27402 if test $ac_cv_type_int64_t = yes; then
27403
27404 cat >>confdefs.h <<_ACEOF
27405 #define HAVE_INT64_T 1
27406 _ACEOF
27407
27408
27409 else
27410   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27411 echo "$as_me: error: Type int64_t required but not found" >&2;}
27412    { (exit 1); exit 1; }; }
27413 fi
27414
27415 echo "$as_me:$LINENO: checking for uint64_t" >&5
27416 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27417 if test "${ac_cv_type_uint64_t+set}" = set; then
27418   echo $ECHO_N "(cached) $ECHO_C" >&6
27419 else
27420   cat >conftest.$ac_ext <<_ACEOF
27421 /* confdefs.h.  */
27422 _ACEOF
27423 cat confdefs.h >>conftest.$ac_ext
27424 cat >>conftest.$ac_ext <<_ACEOF
27425 /* end confdefs.h.  */
27426 $ac_includes_default
27427 int
27428 main ()
27429 {
27430 if ((uint64_t *) 0)
27431   return 0;
27432 if (sizeof (uint64_t))
27433   return 0;
27434   ;
27435   return 0;
27436 }
27437 _ACEOF
27438 rm -f conftest.$ac_objext
27439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27440   (eval $ac_compile) 2>conftest.er1
27441   ac_status=$?
27442   grep -v '^ *+' conftest.er1 >conftest.err
27443   rm -f conftest.er1
27444   cat conftest.err >&5
27445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446   (exit $ac_status); } &&
27447          { ac_try='test -z "$ac_c_werror_flag"
27448                          || test ! -s conftest.err'
27449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27450   (eval $ac_try) 2>&5
27451   ac_status=$?
27452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453   (exit $ac_status); }; } &&
27454          { ac_try='test -s conftest.$ac_objext'
27455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27456   (eval $ac_try) 2>&5
27457   ac_status=$?
27458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459   (exit $ac_status); }; }; then
27460   ac_cv_type_uint64_t=yes
27461 else
27462   echo "$as_me: failed program was:" >&5
27463 sed 's/^/| /' conftest.$ac_ext >&5
27464
27465 ac_cv_type_uint64_t=no
27466 fi
27467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27468 fi
27469 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27470 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27471 if test $ac_cv_type_uint64_t = yes; then
27472
27473 cat >>confdefs.h <<_ACEOF
27474 #define HAVE_UINT64_T 1
27475 _ACEOF
27476
27477
27478 else
27479   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27480 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27481 if test "${ac_cv_type_u_int64_t+set}" = set; then
27482   echo $ECHO_N "(cached) $ECHO_C" >&6
27483 else
27484   cat >conftest.$ac_ext <<_ACEOF
27485 /* confdefs.h.  */
27486 _ACEOF
27487 cat confdefs.h >>conftest.$ac_ext
27488 cat >>conftest.$ac_ext <<_ACEOF
27489 /* end confdefs.h.  */
27490 $ac_includes_default
27491 int
27492 main ()
27493 {
27494 if ((u_int64_t *) 0)
27495   return 0;
27496 if (sizeof (u_int64_t))
27497   return 0;
27498   ;
27499   return 0;
27500 }
27501 _ACEOF
27502 rm -f conftest.$ac_objext
27503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27504   (eval $ac_compile) 2>conftest.er1
27505   ac_status=$?
27506   grep -v '^ *+' conftest.er1 >conftest.err
27507   rm -f conftest.er1
27508   cat conftest.err >&5
27509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510   (exit $ac_status); } &&
27511          { ac_try='test -z "$ac_c_werror_flag"
27512                          || test ! -s conftest.err'
27513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27514   (eval $ac_try) 2>&5
27515   ac_status=$?
27516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27517   (exit $ac_status); }; } &&
27518          { ac_try='test -s conftest.$ac_objext'
27519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27520   (eval $ac_try) 2>&5
27521   ac_status=$?
27522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523   (exit $ac_status); }; }; then
27524   ac_cv_type_u_int64_t=yes
27525 else
27526   echo "$as_me: failed program was:" >&5
27527 sed 's/^/| /' conftest.$ac_ext >&5
27528
27529 ac_cv_type_u_int64_t=no
27530 fi
27531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27532 fi
27533 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27534 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27535 if test $ac_cv_type_u_int64_t = yes; then
27536
27537 cat >>confdefs.h <<_ACEOF
27538 #define HAVE_U_INT64_T 1
27539 _ACEOF
27540
27541
27542 else
27543   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27544 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27545    { (exit 1); exit 1; }; }
27546 fi
27547
27548 fi
27549
27550
27551
27552
27553
27554
27555
27556
27557 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday
27558 do
27559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27560 echo "$as_me:$LINENO: checking for $ac_func" >&5
27561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27562 if eval "test \"\${$as_ac_var+set}\" = set"; then
27563   echo $ECHO_N "(cached) $ECHO_C" >&6
27564 else
27565   cat >conftest.$ac_ext <<_ACEOF
27566 /* confdefs.h.  */
27567 _ACEOF
27568 cat confdefs.h >>conftest.$ac_ext
27569 cat >>conftest.$ac_ext <<_ACEOF
27570 /* end confdefs.h.  */
27571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27573 #define $ac_func innocuous_$ac_func
27574
27575 /* System header to define __stub macros and hopefully few prototypes,
27576     which can conflict with char $ac_func (); below.
27577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27578     <limits.h> exists even on freestanding compilers.  */
27579
27580 #ifdef __STDC__
27581 # include <limits.h>
27582 #else
27583 # include <assert.h>
27584 #endif
27585
27586 #undef $ac_func
27587
27588 /* Override any gcc2 internal prototype to avoid an error.  */
27589 #ifdef __cplusplus
27590 extern "C"
27591 {
27592 #endif
27593 /* We use char because int might match the return type of a gcc2
27594    builtin and then its argument prototype would still apply.  */
27595 char $ac_func ();
27596 /* The GNU C library defines this for functions which it implements
27597     to always fail with ENOSYS.  Some functions are actually named
27598     something starting with __ and the normal name is an alias.  */
27599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27600 choke me
27601 #else
27602 char (*f) () = $ac_func;
27603 #endif
27604 #ifdef __cplusplus
27605 }
27606 #endif
27607
27608 int
27609 main ()
27610 {
27611 return f != $ac_func;
27612   ;
27613   return 0;
27614 }
27615 _ACEOF
27616 rm -f conftest.$ac_objext conftest$ac_exeext
27617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27618   (eval $ac_link) 2>conftest.er1
27619   ac_status=$?
27620   grep -v '^ *+' conftest.er1 >conftest.err
27621   rm -f conftest.er1
27622   cat conftest.err >&5
27623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624   (exit $ac_status); } &&
27625          { ac_try='test -z "$ac_c_werror_flag"
27626                          || test ! -s conftest.err'
27627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27628   (eval $ac_try) 2>&5
27629   ac_status=$?
27630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631   (exit $ac_status); }; } &&
27632          { ac_try='test -s conftest$ac_exeext'
27633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27634   (eval $ac_try) 2>&5
27635   ac_status=$?
27636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27637   (exit $ac_status); }; }; then
27638   eval "$as_ac_var=yes"
27639 else
27640   echo "$as_me: failed program was:" >&5
27641 sed 's/^/| /' conftest.$ac_ext >&5
27642
27643 eval "$as_ac_var=no"
27644 fi
27645 rm -f conftest.err conftest.$ac_objext \
27646       conftest$ac_exeext conftest.$ac_ext
27647 fi
27648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27650 if test `eval echo '${'$as_ac_var'}'` = yes; then
27651   cat >>confdefs.h <<_ACEOF
27652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27653 _ACEOF
27654
27655 fi
27656 done
27657
27658
27659
27660
27661
27662 for ac_func in isatty mkdtemp mkstemp mktemp
27663 do
27664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27665 echo "$as_me:$LINENO: checking for $ac_func" >&5
27666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27667 if eval "test \"\${$as_ac_var+set}\" = set"; then
27668   echo $ECHO_N "(cached) $ECHO_C" >&6
27669 else
27670   cat >conftest.$ac_ext <<_ACEOF
27671 /* confdefs.h.  */
27672 _ACEOF
27673 cat confdefs.h >>conftest.$ac_ext
27674 cat >>conftest.$ac_ext <<_ACEOF
27675 /* end confdefs.h.  */
27676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27677    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27678 #define $ac_func innocuous_$ac_func
27679
27680 /* System header to define __stub macros and hopefully few prototypes,
27681     which can conflict with char $ac_func (); below.
27682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27683     <limits.h> exists even on freestanding compilers.  */
27684
27685 #ifdef __STDC__
27686 # include <limits.h>
27687 #else
27688 # include <assert.h>
27689 #endif
27690
27691 #undef $ac_func
27692
27693 /* Override any gcc2 internal prototype to avoid an error.  */
27694 #ifdef __cplusplus
27695 extern "C"
27696 {
27697 #endif
27698 /* We use char because int might match the return type of a gcc2
27699    builtin and then its argument prototype would still apply.  */
27700 char $ac_func ();
27701 /* The GNU C library defines this for functions which it implements
27702     to always fail with ENOSYS.  Some functions are actually named
27703     something starting with __ and the normal name is an alias.  */
27704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27705 choke me
27706 #else
27707 char (*f) () = $ac_func;
27708 #endif
27709 #ifdef __cplusplus
27710 }
27711 #endif
27712
27713 int
27714 main ()
27715 {
27716 return f != $ac_func;
27717   ;
27718   return 0;
27719 }
27720 _ACEOF
27721 rm -f conftest.$ac_objext conftest$ac_exeext
27722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27723   (eval $ac_link) 2>conftest.er1
27724   ac_status=$?
27725   grep -v '^ *+' conftest.er1 >conftest.err
27726   rm -f conftest.er1
27727   cat conftest.err >&5
27728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729   (exit $ac_status); } &&
27730          { ac_try='test -z "$ac_c_werror_flag"
27731                          || test ! -s conftest.err'
27732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27733   (eval $ac_try) 2>&5
27734   ac_status=$?
27735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736   (exit $ac_status); }; } &&
27737          { ac_try='test -s conftest$ac_exeext'
27738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27739   (eval $ac_try) 2>&5
27740   ac_status=$?
27741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742   (exit $ac_status); }; }; then
27743   eval "$as_ac_var=yes"
27744 else
27745   echo "$as_me: failed program was:" >&5
27746 sed 's/^/| /' conftest.$ac_ext >&5
27747
27748 eval "$as_ac_var=no"
27749 fi
27750 rm -f conftest.err conftest.$ac_objext \
27751       conftest$ac_exeext conftest.$ac_ext
27752 fi
27753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27755 if test `eval echo '${'$as_ac_var'}'` = yes; then
27756   cat >>confdefs.h <<_ACEOF
27757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27758 _ACEOF
27759
27760 fi
27761 done
27762
27763
27764
27765
27766
27767
27768
27769 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
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
27871
27872
27873 for ac_func in strtoll strtoq sysconf
27874 do
27875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27876 echo "$as_me:$LINENO: checking for $ac_func" >&5
27877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27878 if eval "test \"\${$as_ac_var+set}\" = set"; then
27879   echo $ECHO_N "(cached) $ECHO_C" >&6
27880 else
27881   cat >conftest.$ac_ext <<_ACEOF
27882 /* confdefs.h.  */
27883 _ACEOF
27884 cat confdefs.h >>conftest.$ac_ext
27885 cat >>conftest.$ac_ext <<_ACEOF
27886 /* end confdefs.h.  */
27887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27889 #define $ac_func innocuous_$ac_func
27890
27891 /* System header to define __stub macros and hopefully few prototypes,
27892     which can conflict with char $ac_func (); below.
27893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27894     <limits.h> exists even on freestanding compilers.  */
27895
27896 #ifdef __STDC__
27897 # include <limits.h>
27898 #else
27899 # include <assert.h>
27900 #endif
27901
27902 #undef $ac_func
27903
27904 /* Override any gcc2 internal prototype to avoid an error.  */
27905 #ifdef __cplusplus
27906 extern "C"
27907 {
27908 #endif
27909 /* We use char because int might match the return type of a gcc2
27910    builtin and then its argument prototype would still apply.  */
27911 char $ac_func ();
27912 /* The GNU C library defines this for functions which it implements
27913     to always fail with ENOSYS.  Some functions are actually named
27914     something starting with __ and the normal name is an alias.  */
27915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27916 choke me
27917 #else
27918 char (*f) () = $ac_func;
27919 #endif
27920 #ifdef __cplusplus
27921 }
27922 #endif
27923
27924 int
27925 main ()
27926 {
27927 return f != $ac_func;
27928   ;
27929   return 0;
27930 }
27931 _ACEOF
27932 rm -f conftest.$ac_objext conftest$ac_exeext
27933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27934   (eval $ac_link) 2>conftest.er1
27935   ac_status=$?
27936   grep -v '^ *+' conftest.er1 >conftest.err
27937   rm -f conftest.er1
27938   cat conftest.err >&5
27939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940   (exit $ac_status); } &&
27941          { ac_try='test -z "$ac_c_werror_flag"
27942                          || test ! -s conftest.err'
27943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27944   (eval $ac_try) 2>&5
27945   ac_status=$?
27946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947   (exit $ac_status); }; } &&
27948          { ac_try='test -s conftest$ac_exeext'
27949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27950   (eval $ac_try) 2>&5
27951   ac_status=$?
27952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953   (exit $ac_status); }; }; then
27954   eval "$as_ac_var=yes"
27955 else
27956   echo "$as_me: failed program was:" >&5
27957 sed 's/^/| /' conftest.$ac_ext >&5
27958
27959 eval "$as_ac_var=no"
27960 fi
27961 rm -f conftest.err conftest.$ac_objext \
27962       conftest$ac_exeext conftest.$ac_ext
27963 fi
27964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27966 if test `eval echo '${'$as_ac_var'}'` = yes; then
27967   cat >>confdefs.h <<_ACEOF
27968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27969 _ACEOF
27970
27971 fi
27972 done
27973
27974 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27975 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27976 if test "${llvm_cv_c_printf_a+set}" = set; then
27977   echo $ECHO_N "(cached) $ECHO_C" >&6
27978 else
27979   ac_ext=c
27980 ac_cpp='$CPP $CPPFLAGS'
27981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27984
27985  if test "$cross_compiling" = yes; then
27986   llvmac_cv_c_printf_a=no
27987 else
27988   cat >conftest.$ac_ext <<_ACEOF
27989
27990   /* confdefs.h.  */
27991 _ACEOF
27992 cat confdefs.h >>conftest.$ac_ext
27993 cat >>conftest.$ac_ext <<_ACEOF
27994 /* end confdefs.h.  */
27995
27996 #include <stdio.h>
27997 #include <stdlib.h>
27998
27999 int
28000 main ()
28001 {
28002
28003 volatile double A, B;
28004 char Buffer[100];
28005 A = 1;
28006 A /= 10.0;
28007 sprintf(Buffer, "%a", A);
28008 B = atof(Buffer);
28009 if (A != B)
28010   return (1);
28011 if (A != 0x1.999999999999ap-4)
28012   return (1);
28013 return (0);
28014   ;
28015   return 0;
28016 }
28017 _ACEOF
28018 rm -f conftest$ac_exeext
28019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28020   (eval $ac_link) 2>&5
28021   ac_status=$?
28022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28025   (eval $ac_try) 2>&5
28026   ac_status=$?
28027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028   (exit $ac_status); }; }; then
28029   llvm_cv_c_printf_a=yes
28030 else
28031   echo "$as_me: program exited with status $ac_status" >&5
28032 echo "$as_me: failed program was:" >&5
28033 sed 's/^/| /' conftest.$ac_ext >&5
28034
28035 ( exit $ac_status )
28036 llvmac_cv_c_printf_a=no
28037 fi
28038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28039 fi
28040  ac_ext=c
28041 ac_cpp='$CPP $CPPFLAGS'
28042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28045
28046 fi
28047 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28048 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28049  if test "$llvm_cv_c_printf_a" = "yes"; then
28050
28051 cat >>confdefs.h <<\_ACEOF
28052 #define HAVE_PRINTF_A 1
28053 _ACEOF
28054
28055  fi
28056
28057 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28058 # for constant arguments.  Useless!
28059 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28060 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28061 if test "${ac_cv_working_alloca_h+set}" = set; then
28062   echo $ECHO_N "(cached) $ECHO_C" >&6
28063 else
28064   cat >conftest.$ac_ext <<_ACEOF
28065 /* confdefs.h.  */
28066 _ACEOF
28067 cat confdefs.h >>conftest.$ac_ext
28068 cat >>conftest.$ac_ext <<_ACEOF
28069 /* end confdefs.h.  */
28070 #include <alloca.h>
28071 int
28072 main ()
28073 {
28074 char *p = (char *) alloca (2 * sizeof (int));
28075   ;
28076   return 0;
28077 }
28078 _ACEOF
28079 rm -f conftest.$ac_objext conftest$ac_exeext
28080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28081   (eval $ac_link) 2>conftest.er1
28082   ac_status=$?
28083   grep -v '^ *+' conftest.er1 >conftest.err
28084   rm -f conftest.er1
28085   cat conftest.err >&5
28086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087   (exit $ac_status); } &&
28088          { ac_try='test -z "$ac_c_werror_flag"
28089                          || test ! -s conftest.err'
28090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28091   (eval $ac_try) 2>&5
28092   ac_status=$?
28093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094   (exit $ac_status); }; } &&
28095          { ac_try='test -s conftest$ac_exeext'
28096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28097   (eval $ac_try) 2>&5
28098   ac_status=$?
28099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100   (exit $ac_status); }; }; then
28101   ac_cv_working_alloca_h=yes
28102 else
28103   echo "$as_me: failed program was:" >&5
28104 sed 's/^/| /' conftest.$ac_ext >&5
28105
28106 ac_cv_working_alloca_h=no
28107 fi
28108 rm -f conftest.err conftest.$ac_objext \
28109       conftest$ac_exeext conftest.$ac_ext
28110 fi
28111 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28112 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28113 if test $ac_cv_working_alloca_h = yes; then
28114
28115 cat >>confdefs.h <<\_ACEOF
28116 #define HAVE_ALLOCA_H 1
28117 _ACEOF
28118
28119 fi
28120
28121 echo "$as_me:$LINENO: checking for alloca" >&5
28122 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28123 if test "${ac_cv_func_alloca_works+set}" = set; then
28124   echo $ECHO_N "(cached) $ECHO_C" >&6
28125 else
28126   cat >conftest.$ac_ext <<_ACEOF
28127 /* confdefs.h.  */
28128 _ACEOF
28129 cat confdefs.h >>conftest.$ac_ext
28130 cat >>conftest.$ac_ext <<_ACEOF
28131 /* end confdefs.h.  */
28132 #ifdef __GNUC__
28133 # define alloca __builtin_alloca
28134 #else
28135 # ifdef _MSC_VER
28136 #  include <malloc.h>
28137 #  define alloca _alloca
28138 # else
28139 #  if HAVE_ALLOCA_H
28140 #   include <alloca.h>
28141 #  else
28142 #   ifdef _AIX
28143  #pragma alloca
28144 #   else
28145 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28146 char *alloca ();
28147 #    endif
28148 #   endif
28149 #  endif
28150 # endif
28151 #endif
28152
28153 int
28154 main ()
28155 {
28156 char *p = (char *) alloca (1);
28157   ;
28158   return 0;
28159 }
28160 _ACEOF
28161 rm -f conftest.$ac_objext conftest$ac_exeext
28162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28163   (eval $ac_link) 2>conftest.er1
28164   ac_status=$?
28165   grep -v '^ *+' conftest.er1 >conftest.err
28166   rm -f conftest.er1
28167   cat conftest.err >&5
28168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169   (exit $ac_status); } &&
28170          { ac_try='test -z "$ac_c_werror_flag"
28171                          || test ! -s conftest.err'
28172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28173   (eval $ac_try) 2>&5
28174   ac_status=$?
28175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176   (exit $ac_status); }; } &&
28177          { ac_try='test -s conftest$ac_exeext'
28178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28179   (eval $ac_try) 2>&5
28180   ac_status=$?
28181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182   (exit $ac_status); }; }; then
28183   ac_cv_func_alloca_works=yes
28184 else
28185   echo "$as_me: failed program was:" >&5
28186 sed 's/^/| /' conftest.$ac_ext >&5
28187
28188 ac_cv_func_alloca_works=no
28189 fi
28190 rm -f conftest.err conftest.$ac_objext \
28191       conftest$ac_exeext conftest.$ac_ext
28192 fi
28193 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28194 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28195
28196 if test $ac_cv_func_alloca_works = yes; then
28197
28198 cat >>confdefs.h <<\_ACEOF
28199 #define HAVE_ALLOCA 1
28200 _ACEOF
28201
28202 else
28203   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28204 # that cause trouble.  Some versions do not even contain alloca or
28205 # contain a buggy version.  If you still want to use their alloca,
28206 # use ar to extract alloca.o from them instead of compiling alloca.c.
28207
28208 ALLOCA=alloca.$ac_objext
28209
28210 cat >>confdefs.h <<\_ACEOF
28211 #define C_ALLOCA 1
28212 _ACEOF
28213
28214
28215 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28216 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28217 if test "${ac_cv_os_cray+set}" = set; then
28218   echo $ECHO_N "(cached) $ECHO_C" >&6
28219 else
28220   cat >conftest.$ac_ext <<_ACEOF
28221 /* confdefs.h.  */
28222 _ACEOF
28223 cat confdefs.h >>conftest.$ac_ext
28224 cat >>conftest.$ac_ext <<_ACEOF
28225 /* end confdefs.h.  */
28226 #if defined(CRAY) && ! defined(CRAY2)
28227 webecray
28228 #else
28229 wenotbecray
28230 #endif
28231
28232 _ACEOF
28233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28234   $EGREP "webecray" >/dev/null 2>&1; then
28235   ac_cv_os_cray=yes
28236 else
28237   ac_cv_os_cray=no
28238 fi
28239 rm -f conftest*
28240
28241 fi
28242 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28243 echo "${ECHO_T}$ac_cv_os_cray" >&6
28244 if test $ac_cv_os_cray = yes; then
28245   for ac_func in _getb67 GETB67 getb67; do
28246     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28247 echo "$as_me:$LINENO: checking for $ac_func" >&5
28248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28249 if eval "test \"\${$as_ac_var+set}\" = set"; then
28250   echo $ECHO_N "(cached) $ECHO_C" >&6
28251 else
28252   cat >conftest.$ac_ext <<_ACEOF
28253 /* confdefs.h.  */
28254 _ACEOF
28255 cat confdefs.h >>conftest.$ac_ext
28256 cat >>conftest.$ac_ext <<_ACEOF
28257 /* end confdefs.h.  */
28258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28260 #define $ac_func innocuous_$ac_func
28261
28262 /* System header to define __stub macros and hopefully few prototypes,
28263     which can conflict with char $ac_func (); below.
28264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28265     <limits.h> exists even on freestanding compilers.  */
28266
28267 #ifdef __STDC__
28268 # include <limits.h>
28269 #else
28270 # include <assert.h>
28271 #endif
28272
28273 #undef $ac_func
28274
28275 /* Override any gcc2 internal prototype to avoid an error.  */
28276 #ifdef __cplusplus
28277 extern "C"
28278 {
28279 #endif
28280 /* We use char because int might match the return type of a gcc2
28281    builtin and then its argument prototype would still apply.  */
28282 char $ac_func ();
28283 /* The GNU C library defines this for functions which it implements
28284     to always fail with ENOSYS.  Some functions are actually named
28285     something starting with __ and the normal name is an alias.  */
28286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28287 choke me
28288 #else
28289 char (*f) () = $ac_func;
28290 #endif
28291 #ifdef __cplusplus
28292 }
28293 #endif
28294
28295 int
28296 main ()
28297 {
28298 return f != $ac_func;
28299   ;
28300   return 0;
28301 }
28302 _ACEOF
28303 rm -f conftest.$ac_objext conftest$ac_exeext
28304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28305   (eval $ac_link) 2>conftest.er1
28306   ac_status=$?
28307   grep -v '^ *+' conftest.er1 >conftest.err
28308   rm -f conftest.er1
28309   cat conftest.err >&5
28310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311   (exit $ac_status); } &&
28312          { ac_try='test -z "$ac_c_werror_flag"
28313                          || test ! -s conftest.err'
28314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28315   (eval $ac_try) 2>&5
28316   ac_status=$?
28317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318   (exit $ac_status); }; } &&
28319          { ac_try='test -s conftest$ac_exeext'
28320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28321   (eval $ac_try) 2>&5
28322   ac_status=$?
28323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28324   (exit $ac_status); }; }; then
28325   eval "$as_ac_var=yes"
28326 else
28327   echo "$as_me: failed program was:" >&5
28328 sed 's/^/| /' conftest.$ac_ext >&5
28329
28330 eval "$as_ac_var=no"
28331 fi
28332 rm -f conftest.err conftest.$ac_objext \
28333       conftest$ac_exeext conftest.$ac_ext
28334 fi
28335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28337 if test `eval echo '${'$as_ac_var'}'` = yes; then
28338
28339 cat >>confdefs.h <<_ACEOF
28340 #define CRAY_STACKSEG_END $ac_func
28341 _ACEOF
28342
28343     break
28344 fi
28345
28346   done
28347 fi
28348
28349 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28350 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28351 if test "${ac_cv_c_stack_direction+set}" = set; then
28352   echo $ECHO_N "(cached) $ECHO_C" >&6
28353 else
28354   if test "$cross_compiling" = yes; then
28355   ac_cv_c_stack_direction=0
28356 else
28357   cat >conftest.$ac_ext <<_ACEOF
28358 /* confdefs.h.  */
28359 _ACEOF
28360 cat confdefs.h >>conftest.$ac_ext
28361 cat >>conftest.$ac_ext <<_ACEOF
28362 /* end confdefs.h.  */
28363 int
28364 find_stack_direction ()
28365 {
28366   static char *addr = 0;
28367   auto char dummy;
28368   if (addr == 0)
28369     {
28370       addr = &dummy;
28371       return find_stack_direction ();
28372     }
28373   else
28374     return (&dummy > addr) ? 1 : -1;
28375 }
28376
28377 int
28378 main ()
28379 {
28380   exit (find_stack_direction () < 0);
28381 }
28382 _ACEOF
28383 rm -f conftest$ac_exeext
28384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28385   (eval $ac_link) 2>&5
28386   ac_status=$?
28387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28390   (eval $ac_try) 2>&5
28391   ac_status=$?
28392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393   (exit $ac_status); }; }; then
28394   ac_cv_c_stack_direction=1
28395 else
28396   echo "$as_me: program exited with status $ac_status" >&5
28397 echo "$as_me: failed program was:" >&5
28398 sed 's/^/| /' conftest.$ac_ext >&5
28399
28400 ( exit $ac_status )
28401 ac_cv_c_stack_direction=-1
28402 fi
28403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28404 fi
28405 fi
28406 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28407 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28408
28409 cat >>confdefs.h <<_ACEOF
28410 #define STACK_DIRECTION $ac_cv_c_stack_direction
28411 _ACEOF
28412
28413
28414 fi
28415
28416
28417 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28418 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28419 if test "${ac_cv_func_rand48+set}" = set; then
28420   echo $ECHO_N "(cached) $ECHO_C" >&6
28421 else
28422   ac_ext=cc
28423 ac_cpp='$CXXCPP $CPPFLAGS'
28424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28427
28428    cat >conftest.$ac_ext <<_ACEOF
28429 /* confdefs.h.  */
28430 _ACEOF
28431 cat confdefs.h >>conftest.$ac_ext
28432 cat >>conftest.$ac_ext <<_ACEOF
28433 /* end confdefs.h.  */
28434 #include <stdlib.h>
28435 int
28436 main ()
28437 {
28438 srand48(0);lrand48();drand48();
28439   ;
28440   return 0;
28441 }
28442 _ACEOF
28443 rm -f conftest.$ac_objext
28444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28445   (eval $ac_compile) 2>conftest.er1
28446   ac_status=$?
28447   grep -v '^ *+' conftest.er1 >conftest.err
28448   rm -f conftest.er1
28449   cat conftest.err >&5
28450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451   (exit $ac_status); } &&
28452          { ac_try='test -z "$ac_cxx_werror_flag"
28453                          || test ! -s conftest.err'
28454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28455   (eval $ac_try) 2>&5
28456   ac_status=$?
28457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458   (exit $ac_status); }; } &&
28459          { ac_try='test -s conftest.$ac_objext'
28460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28461   (eval $ac_try) 2>&5
28462   ac_status=$?
28463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464   (exit $ac_status); }; }; then
28465   ac_cv_func_rand48=yes
28466 else
28467   echo "$as_me: failed program was:" >&5
28468 sed 's/^/| /' conftest.$ac_ext >&5
28469
28470 ac_cv_func_rand48=no
28471 fi
28472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28473   ac_ext=c
28474 ac_cpp='$CPP $CPPFLAGS'
28475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28478
28479 fi
28480 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28481 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28482
28483 if test "$ac_cv_func_rand48" = "yes" ; then
28484
28485 cat >>confdefs.h <<\_ACEOF
28486 #define HAVE_RAND48 1
28487 _ACEOF
28488
28489 fi
28490
28491
28492 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28493 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28494 if test "${ac_cv_cxx_namespaces+set}" = set; then
28495   echo $ECHO_N "(cached) $ECHO_C" >&6
28496 else
28497   ac_ext=cc
28498 ac_cpp='$CXXCPP $CPPFLAGS'
28499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28502
28503  cat >conftest.$ac_ext <<_ACEOF
28504 /* confdefs.h.  */
28505 _ACEOF
28506 cat confdefs.h >>conftest.$ac_ext
28507 cat >>conftest.$ac_ext <<_ACEOF
28508 /* end confdefs.h.  */
28509 namespace Outer { namespace Inner { int i = 0; }}
28510 int
28511 main ()
28512 {
28513 using namespace Outer::Inner; return i;
28514   ;
28515   return 0;
28516 }
28517 _ACEOF
28518 rm -f conftest.$ac_objext
28519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28520   (eval $ac_compile) 2>conftest.er1
28521   ac_status=$?
28522   grep -v '^ *+' conftest.er1 >conftest.err
28523   rm -f conftest.er1
28524   cat conftest.err >&5
28525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526   (exit $ac_status); } &&
28527          { ac_try='test -z "$ac_cxx_werror_flag"
28528                          || test ! -s conftest.err'
28529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28530   (eval $ac_try) 2>&5
28531   ac_status=$?
28532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533   (exit $ac_status); }; } &&
28534          { ac_try='test -s conftest.$ac_objext'
28535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28536   (eval $ac_try) 2>&5
28537   ac_status=$?
28538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539   (exit $ac_status); }; }; then
28540   ac_cv_cxx_namespaces=yes
28541 else
28542   echo "$as_me: failed program was:" >&5
28543 sed 's/^/| /' conftest.$ac_ext >&5
28544
28545 ac_cv_cxx_namespaces=no
28546 fi
28547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28548  ac_ext=c
28549 ac_cpp='$CPP $CPPFLAGS'
28550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28553
28554
28555 fi
28556 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28557 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28558 if test "$ac_cv_cxx_namespaces" = yes; then
28559
28560 cat >>confdefs.h <<\_ACEOF
28561 #define HAVE_NAMESPACES
28562 _ACEOF
28563
28564 fi
28565
28566 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28567 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28568 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28569   echo $ECHO_N "(cached) $ECHO_C" >&6
28570 else
28571
28572   ac_ext=cc
28573 ac_cpp='$CXXCPP $CPPFLAGS'
28574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28577
28578   cat >conftest.$ac_ext <<_ACEOF
28579 /* confdefs.h.  */
28580 _ACEOF
28581 cat confdefs.h >>conftest.$ac_ext
28582 cat >>conftest.$ac_ext <<_ACEOF
28583 /* end confdefs.h.  */
28584 #include <ext/hash_map>
28585 #ifdef HAVE_NAMESPACES
28586 using namespace std;
28587 #endif
28588 int
28589 main ()
28590 {
28591 hash_map<int, int> t;
28592   ;
28593   return 0;
28594 }
28595 _ACEOF
28596 rm -f conftest.$ac_objext
28597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28598   (eval $ac_compile) 2>conftest.er1
28599   ac_status=$?
28600   grep -v '^ *+' conftest.er1 >conftest.err
28601   rm -f conftest.er1
28602   cat conftest.err >&5
28603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604   (exit $ac_status); } &&
28605          { ac_try='test -z "$ac_cxx_werror_flag"
28606                          || test ! -s conftest.err'
28607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28608   (eval $ac_try) 2>&5
28609   ac_status=$?
28610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611   (exit $ac_status); }; } &&
28612          { ac_try='test -s conftest.$ac_objext'
28613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28614   (eval $ac_try) 2>&5
28615   ac_status=$?
28616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617   (exit $ac_status); }; }; then
28618   ac_cv_cxx_have_std_ext_hash_map=yes
28619 else
28620   echo "$as_me: failed program was:" >&5
28621 sed 's/^/| /' conftest.$ac_ext >&5
28622
28623 ac_cv_cxx_have_std_ext_hash_map=no
28624 fi
28625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28626   ac_ext=c
28627 ac_cpp='$CPP $CPPFLAGS'
28628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28631
28632 fi
28633 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28634 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28635  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28636  then
28637
28638 cat >>confdefs.h <<\_ACEOF
28639 #define HAVE_STD_EXT_HASH_MAP 1
28640 _ACEOF
28641
28642  else
28643
28644 cat >>confdefs.h <<\_ACEOF
28645 #define HAVE_STD_EXT_HASH_MAP 0
28646 _ACEOF
28647
28648  fi
28649
28650  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28651 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28652 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28653   echo $ECHO_N "(cached) $ECHO_C" >&6
28654 else
28655
28656   ac_ext=cc
28657 ac_cpp='$CXXCPP $CPPFLAGS'
28658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28661
28662   cat >conftest.$ac_ext <<_ACEOF
28663 /* confdefs.h.  */
28664 _ACEOF
28665 cat confdefs.h >>conftest.$ac_ext
28666 cat >>conftest.$ac_ext <<_ACEOF
28667 /* end confdefs.h.  */
28668 #include <ext/hash_map>
28669 #ifdef HAVE_NAMESPACES
28670 using namespace __gnu_cxx;
28671 #endif
28672 int
28673 main ()
28674 {
28675 hash_map<int,int> t;
28676   ;
28677   return 0;
28678 }
28679 _ACEOF
28680 rm -f conftest.$ac_objext
28681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28682   (eval $ac_compile) 2>conftest.er1
28683   ac_status=$?
28684   grep -v '^ *+' conftest.er1 >conftest.err
28685   rm -f conftest.er1
28686   cat conftest.err >&5
28687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688   (exit $ac_status); } &&
28689          { ac_try='test -z "$ac_cxx_werror_flag"
28690                          || test ! -s conftest.err'
28691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28692   (eval $ac_try) 2>&5
28693   ac_status=$?
28694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695   (exit $ac_status); }; } &&
28696          { ac_try='test -s conftest.$ac_objext'
28697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28698   (eval $ac_try) 2>&5
28699   ac_status=$?
28700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701   (exit $ac_status); }; }; then
28702   ac_cv_cxx_have_gnu_ext_hash_map=yes
28703 else
28704   echo "$as_me: failed program was:" >&5
28705 sed 's/^/| /' conftest.$ac_ext >&5
28706
28707 ac_cv_cxx_have_gnu_ext_hash_map=no
28708 fi
28709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28710   ac_ext=c
28711 ac_cpp='$CPP $CPPFLAGS'
28712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28715
28716 fi
28717 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28718 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28719  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28720  then
28721
28722 cat >>confdefs.h <<\_ACEOF
28723 #define HAVE_GNU_EXT_HASH_MAP 1
28724 _ACEOF
28725
28726  else
28727
28728 cat >>confdefs.h <<\_ACEOF
28729 #define HAVE_GNU_EXT_HASH_MAP 0
28730 _ACEOF
28731
28732  fi
28733
28734  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28735 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28736 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28737   echo $ECHO_N "(cached) $ECHO_C" >&6
28738 else
28739
28740   ac_ext=cc
28741 ac_cpp='$CXXCPP $CPPFLAGS'
28742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28745
28746   cat >conftest.$ac_ext <<_ACEOF
28747 /* confdefs.h.  */
28748 _ACEOF
28749 cat confdefs.h >>conftest.$ac_ext
28750 cat >>conftest.$ac_ext <<_ACEOF
28751 /* end confdefs.h.  */
28752 #include <hash_map>
28753 int
28754 main ()
28755 {
28756 hash_map<int,int> t;
28757   ;
28758   return 0;
28759 }
28760 _ACEOF
28761 rm -f conftest.$ac_objext
28762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28763   (eval $ac_compile) 2>conftest.er1
28764   ac_status=$?
28765   grep -v '^ *+' conftest.er1 >conftest.err
28766   rm -f conftest.er1
28767   cat conftest.err >&5
28768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769   (exit $ac_status); } &&
28770          { ac_try='test -z "$ac_cxx_werror_flag"
28771                          || test ! -s conftest.err'
28772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28773   (eval $ac_try) 2>&5
28774   ac_status=$?
28775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776   (exit $ac_status); }; } &&
28777          { ac_try='test -s conftest.$ac_objext'
28778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28779   (eval $ac_try) 2>&5
28780   ac_status=$?
28781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782   (exit $ac_status); }; }; then
28783   ac_cv_cxx_have_global_hash_map=yes
28784 else
28785   echo "$as_me: failed program was:" >&5
28786 sed 's/^/| /' conftest.$ac_ext >&5
28787
28788 ac_cv_cxx_have_global_hash_map=no
28789 fi
28790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28791   ac_ext=c
28792 ac_cpp='$CPP $CPPFLAGS'
28793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28796
28797 fi
28798 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28799 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28800  if test "$ac_cv_cxx_have_global_hash_map" = yes
28801  then
28802
28803 cat >>confdefs.h <<\_ACEOF
28804 #define HAVE_GLOBAL_HASH_MAP 1
28805 _ACEOF
28806
28807  else
28808
28809 cat >>confdefs.h <<\_ACEOF
28810 #define HAVE_GLOBAL_HASH_MAP 0
28811 _ACEOF
28812
28813  fi
28814
28815 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28816 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28817 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28818   echo $ECHO_N "(cached) $ECHO_C" >&6
28819 else
28820
28821   ac_ext=cc
28822 ac_cpp='$CXXCPP $CPPFLAGS'
28823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28826
28827   cat >conftest.$ac_ext <<_ACEOF
28828 /* confdefs.h.  */
28829 _ACEOF
28830 cat confdefs.h >>conftest.$ac_ext
28831 cat >>conftest.$ac_ext <<_ACEOF
28832 /* end confdefs.h.  */
28833 #include <ext/hash_set>
28834 #ifdef HAVE_NAMESPACES
28835 using namespace std;
28836 #endif
28837 int
28838 main ()
28839 {
28840 hash_set<int> t;
28841   ;
28842   return 0;
28843 }
28844 _ACEOF
28845 rm -f conftest.$ac_objext
28846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28847   (eval $ac_compile) 2>conftest.er1
28848   ac_status=$?
28849   grep -v '^ *+' conftest.er1 >conftest.err
28850   rm -f conftest.er1
28851   cat conftest.err >&5
28852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853   (exit $ac_status); } &&
28854          { ac_try='test -z "$ac_cxx_werror_flag"
28855                          || test ! -s conftest.err'
28856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28857   (eval $ac_try) 2>&5
28858   ac_status=$?
28859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860   (exit $ac_status); }; } &&
28861          { ac_try='test -s conftest.$ac_objext'
28862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28863   (eval $ac_try) 2>&5
28864   ac_status=$?
28865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866   (exit $ac_status); }; }; then
28867   ac_cv_cxx_have_std_ext_hash_set=yes
28868 else
28869   echo "$as_me: failed program was:" >&5
28870 sed 's/^/| /' conftest.$ac_ext >&5
28871
28872 ac_cv_cxx_have_std_ext_hash_set=no
28873 fi
28874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28875   ac_ext=c
28876 ac_cpp='$CPP $CPPFLAGS'
28877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28880
28881 fi
28882 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28883 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28884  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28885  then
28886
28887 cat >>confdefs.h <<\_ACEOF
28888 #define HAVE_STD_EXT_HASH_SET 1
28889 _ACEOF
28890
28891  else
28892
28893 cat >>confdefs.h <<\_ACEOF
28894 #define HAVE_STD_EXT_HASH_SET 0
28895 _ACEOF
28896
28897  fi
28898
28899  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28900 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28901 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28902   echo $ECHO_N "(cached) $ECHO_C" >&6
28903 else
28904
28905   ac_ext=cc
28906 ac_cpp='$CXXCPP $CPPFLAGS'
28907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28910
28911   cat >conftest.$ac_ext <<_ACEOF
28912 /* confdefs.h.  */
28913 _ACEOF
28914 cat confdefs.h >>conftest.$ac_ext
28915 cat >>conftest.$ac_ext <<_ACEOF
28916 /* end confdefs.h.  */
28917 #include <ext/hash_set>
28918 #ifdef HAVE_NAMESPACES
28919 using namespace __gnu_cxx;
28920 #endif
28921 int
28922 main ()
28923 {
28924 hash_set<int> t;
28925   ;
28926   return 0;
28927 }
28928 _ACEOF
28929 rm -f conftest.$ac_objext
28930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28931   (eval $ac_compile) 2>conftest.er1
28932   ac_status=$?
28933   grep -v '^ *+' conftest.er1 >conftest.err
28934   rm -f conftest.er1
28935   cat conftest.err >&5
28936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937   (exit $ac_status); } &&
28938          { ac_try='test -z "$ac_cxx_werror_flag"
28939                          || test ! -s conftest.err'
28940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28941   (eval $ac_try) 2>&5
28942   ac_status=$?
28943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944   (exit $ac_status); }; } &&
28945          { ac_try='test -s conftest.$ac_objext'
28946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28947   (eval $ac_try) 2>&5
28948   ac_status=$?
28949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950   (exit $ac_status); }; }; then
28951   ac_cv_cxx_have_gnu_ext_hash_set=yes
28952 else
28953   echo "$as_me: failed program was:" >&5
28954 sed 's/^/| /' conftest.$ac_ext >&5
28955
28956 ac_cv_cxx_have_gnu_ext_hash_set=no
28957 fi
28958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28959   ac_ext=c
28960 ac_cpp='$CPP $CPPFLAGS'
28961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28964
28965 fi
28966 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28967 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28968  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28969  then
28970
28971 cat >>confdefs.h <<\_ACEOF
28972 #define HAVE_GNU_EXT_HASH_SET 1
28973 _ACEOF
28974
28975  else
28976
28977 cat >>confdefs.h <<\_ACEOF
28978 #define HAVE_GNU_EXT_HASH_SET 0
28979 _ACEOF
28980
28981  fi
28982
28983  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28984 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28985 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28986   echo $ECHO_N "(cached) $ECHO_C" >&6
28987 else
28988
28989   ac_ext=cc
28990 ac_cpp='$CXXCPP $CPPFLAGS'
28991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28994
28995   cat >conftest.$ac_ext <<_ACEOF
28996 /* confdefs.h.  */
28997 _ACEOF
28998 cat confdefs.h >>conftest.$ac_ext
28999 cat >>conftest.$ac_ext <<_ACEOF
29000 /* end confdefs.h.  */
29001 #include <hash_set>
29002 int
29003 main ()
29004 {
29005 hash_set<int> t; return 0;
29006   ;
29007   return 0;
29008 }
29009 _ACEOF
29010 rm -f conftest.$ac_objext
29011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29012   (eval $ac_compile) 2>conftest.er1
29013   ac_status=$?
29014   grep -v '^ *+' conftest.er1 >conftest.err
29015   rm -f conftest.er1
29016   cat conftest.err >&5
29017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018   (exit $ac_status); } &&
29019          { ac_try='test -z "$ac_cxx_werror_flag"
29020                          || test ! -s conftest.err'
29021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022   (eval $ac_try) 2>&5
29023   ac_status=$?
29024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025   (exit $ac_status); }; } &&
29026          { ac_try='test -s conftest.$ac_objext'
29027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29028   (eval $ac_try) 2>&5
29029   ac_status=$?
29030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031   (exit $ac_status); }; }; then
29032   ac_cv_cxx_have_global_hash_set=yes
29033 else
29034   echo "$as_me: failed program was:" >&5
29035 sed 's/^/| /' conftest.$ac_ext >&5
29036
29037 ac_cv_cxx_have_global_hash_set=no
29038 fi
29039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29040   ac_ext=c
29041 ac_cpp='$CPP $CPPFLAGS'
29042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29045
29046 fi
29047 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29048 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29049  if test "$ac_cv_cxx_have_global_hash_set" = yes
29050  then
29051
29052 cat >>confdefs.h <<\_ACEOF
29053 #define HAVE_GLOBAL_HASH_SET 1
29054 _ACEOF
29055
29056  else
29057
29058 cat >>confdefs.h <<\_ACEOF
29059 #define HAVE_GLOBAL_HASH_SET 0
29060 _ACEOF
29061
29062  fi
29063
29064 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29065 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29066 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29067   echo $ECHO_N "(cached) $ECHO_C" >&6
29068 else
29069
29070   ac_ext=cc
29071 ac_cpp='$CXXCPP $CPPFLAGS'
29072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29075
29076   cat >conftest.$ac_ext <<_ACEOF
29077 /* confdefs.h.  */
29078 _ACEOF
29079 cat confdefs.h >>conftest.$ac_ext
29080 cat >>conftest.$ac_ext <<_ACEOF
29081 /* end confdefs.h.  */
29082 #include <iterator>
29083 #ifdef HAVE_NAMESPACES
29084 using namespace std;
29085 #endif
29086 int
29087 main ()
29088 {
29089 iterator<int,int,int> t; return 0;
29090   ;
29091   return 0;
29092 }
29093 _ACEOF
29094 rm -f conftest.$ac_objext
29095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29096   (eval $ac_compile) 2>conftest.er1
29097   ac_status=$?
29098   grep -v '^ *+' conftest.er1 >conftest.err
29099   rm -f conftest.er1
29100   cat conftest.err >&5
29101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102   (exit $ac_status); } &&
29103          { ac_try='test -z "$ac_cxx_werror_flag"
29104                          || test ! -s conftest.err'
29105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29106   (eval $ac_try) 2>&5
29107   ac_status=$?
29108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29109   (exit $ac_status); }; } &&
29110          { ac_try='test -s conftest.$ac_objext'
29111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29112   (eval $ac_try) 2>&5
29113   ac_status=$?
29114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115   (exit $ac_status); }; }; then
29116   ac_cv_cxx_have_std_iterator=yes
29117 else
29118   echo "$as_me: failed program was:" >&5
29119 sed 's/^/| /' conftest.$ac_ext >&5
29120
29121 ac_cv_cxx_have_std_iterator=no
29122 fi
29123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29124   ac_ext=c
29125 ac_cpp='$CPP $CPPFLAGS'
29126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29129
29130
29131 fi
29132 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29133 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29134 if test "$ac_cv_cxx_have_std_iterator" = yes
29135 then
29136
29137 cat >>confdefs.h <<\_ACEOF
29138 #define HAVE_STD_ITERATOR 1
29139 _ACEOF
29140
29141 else
29142
29143 cat >>confdefs.h <<\_ACEOF
29144 #define HAVE_STD_ITERATOR 0
29145 _ACEOF
29146
29147 fi
29148
29149 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29150 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29151 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29152   echo $ECHO_N "(cached) $ECHO_C" >&6
29153 else
29154
29155   ac_ext=cc
29156 ac_cpp='$CXXCPP $CPPFLAGS'
29157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29160
29161   cat >conftest.$ac_ext <<_ACEOF
29162 /* confdefs.h.  */
29163 _ACEOF
29164 cat confdefs.h >>conftest.$ac_ext
29165 cat >>conftest.$ac_ext <<_ACEOF
29166 /* end confdefs.h.  */
29167 #include <iterator>
29168 #ifdef HAVE_NAMESPACES
29169 using namespace std;
29170 #endif
29171 int
29172 main ()
29173 {
29174 bidirectional_iterator<int,int> t; return 0;
29175   ;
29176   return 0;
29177 }
29178 _ACEOF
29179 rm -f conftest.$ac_objext
29180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29181   (eval $ac_compile) 2>conftest.er1
29182   ac_status=$?
29183   grep -v '^ *+' conftest.er1 >conftest.err
29184   rm -f conftest.er1
29185   cat conftest.err >&5
29186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187   (exit $ac_status); } &&
29188          { ac_try='test -z "$ac_cxx_werror_flag"
29189                          || test ! -s conftest.err'
29190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29191   (eval $ac_try) 2>&5
29192   ac_status=$?
29193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194   (exit $ac_status); }; } &&
29195          { ac_try='test -s conftest.$ac_objext'
29196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29197   (eval $ac_try) 2>&5
29198   ac_status=$?
29199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200   (exit $ac_status); }; }; then
29201   ac_cv_cxx_have_bi_iterator=yes
29202 else
29203   echo "$as_me: failed program was:" >&5
29204 sed 's/^/| /' conftest.$ac_ext >&5
29205
29206 ac_cv_cxx_have_bi_iterator=no
29207 fi
29208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29209   ac_ext=c
29210 ac_cpp='$CPP $CPPFLAGS'
29211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29214
29215
29216 fi
29217 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29218 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29219 if test "$ac_cv_cxx_have_bi_iterator" = yes
29220 then
29221
29222 cat >>confdefs.h <<\_ACEOF
29223 #define HAVE_BI_ITERATOR 1
29224 _ACEOF
29225
29226 else
29227
29228 cat >>confdefs.h <<\_ACEOF
29229 #define HAVE_BI_ITERATOR 0
29230 _ACEOF
29231
29232 fi
29233
29234 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29235 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29236 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29237   echo $ECHO_N "(cached) $ECHO_C" >&6
29238 else
29239
29240   ac_ext=cc
29241 ac_cpp='$CXXCPP $CPPFLAGS'
29242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29245
29246   cat >conftest.$ac_ext <<_ACEOF
29247 /* confdefs.h.  */
29248 _ACEOF
29249 cat confdefs.h >>conftest.$ac_ext
29250 cat >>conftest.$ac_ext <<_ACEOF
29251 /* end confdefs.h.  */
29252 #include <iterator>
29253 #ifdef HAVE_NAMESPACES
29254 using namespace std;
29255 #endif
29256 int
29257 main ()
29258 {
29259 forward_iterator<int,int> t; return 0;
29260   ;
29261   return 0;
29262 }
29263 _ACEOF
29264 rm -f conftest.$ac_objext
29265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29266   (eval $ac_compile) 2>conftest.er1
29267   ac_status=$?
29268   grep -v '^ *+' conftest.er1 >conftest.err
29269   rm -f conftest.er1
29270   cat conftest.err >&5
29271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272   (exit $ac_status); } &&
29273          { ac_try='test -z "$ac_cxx_werror_flag"
29274                          || test ! -s conftest.err'
29275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29276   (eval $ac_try) 2>&5
29277   ac_status=$?
29278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279   (exit $ac_status); }; } &&
29280          { ac_try='test -s conftest.$ac_objext'
29281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29282   (eval $ac_try) 2>&5
29283   ac_status=$?
29284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285   (exit $ac_status); }; }; then
29286   ac_cv_cxx_have_fwd_iterator=yes
29287 else
29288   echo "$as_me: failed program was:" >&5
29289 sed 's/^/| /' conftest.$ac_ext >&5
29290
29291 ac_cv_cxx_have_fwd_iterator=no
29292 fi
29293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29294   ac_ext=c
29295 ac_cpp='$CPP $CPPFLAGS'
29296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29299
29300
29301 fi
29302 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29303 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29304 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29305 then
29306
29307 cat >>confdefs.h <<\_ACEOF
29308 #define HAVE_FWD_ITERATOR 1
29309 _ACEOF
29310
29311 else
29312
29313 cat >>confdefs.h <<\_ACEOF
29314 #define HAVE_FWD_ITERATOR 0
29315 _ACEOF
29316
29317 fi
29318
29319
29320 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29321 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29322 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29323   echo $ECHO_N "(cached) $ECHO_C" >&6
29324 else
29325   ac_ext=cc
29326 ac_cpp='$CXXCPP $CPPFLAGS'
29327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29330
29331    cat >conftest.$ac_ext <<_ACEOF
29332 /* confdefs.h.  */
29333 _ACEOF
29334 cat confdefs.h >>conftest.$ac_ext
29335 cat >>conftest.$ac_ext <<_ACEOF
29336 /* end confdefs.h.  */
29337 #include <math.h>
29338 int
29339 main ()
29340 {
29341 float f; isnan(f);
29342   ;
29343   return 0;
29344 }
29345 _ACEOF
29346 rm -f conftest.$ac_objext
29347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29348   (eval $ac_compile) 2>conftest.er1
29349   ac_status=$?
29350   grep -v '^ *+' conftest.er1 >conftest.err
29351   rm -f conftest.er1
29352   cat conftest.err >&5
29353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354   (exit $ac_status); } &&
29355          { ac_try='test -z "$ac_cxx_werror_flag"
29356                          || test ! -s conftest.err'
29357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29358   (eval $ac_try) 2>&5
29359   ac_status=$?
29360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361   (exit $ac_status); }; } &&
29362          { ac_try='test -s conftest.$ac_objext'
29363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29364   (eval $ac_try) 2>&5
29365   ac_status=$?
29366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367   (exit $ac_status); }; }; then
29368   ac_cv_func_isnan_in_math_h=yes
29369 else
29370   echo "$as_me: failed program was:" >&5
29371 sed 's/^/| /' conftest.$ac_ext >&5
29372
29373 ac_cv_func_isnan_in_math_h=no
29374 fi
29375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29376   ac_ext=c
29377 ac_cpp='$CPP $CPPFLAGS'
29378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29381
29382 fi
29383 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29384 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29385
29386
29387 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29388
29389 cat >>confdefs.h <<\_ACEOF
29390 #define HAVE_ISNAN_IN_MATH_H 1
29391 _ACEOF
29392
29393 fi
29394
29395 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29396 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29397 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29398   echo $ECHO_N "(cached) $ECHO_C" >&6
29399 else
29400   ac_ext=cc
29401 ac_cpp='$CXXCPP $CPPFLAGS'
29402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29405
29406    cat >conftest.$ac_ext <<_ACEOF
29407 /* confdefs.h.  */
29408 _ACEOF
29409 cat confdefs.h >>conftest.$ac_ext
29410 cat >>conftest.$ac_ext <<_ACEOF
29411 /* end confdefs.h.  */
29412 #include <cmath>
29413 int
29414 main ()
29415 {
29416 float f; isnan(f);
29417   ;
29418   return 0;
29419 }
29420 _ACEOF
29421 rm -f conftest.$ac_objext
29422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29423   (eval $ac_compile) 2>conftest.er1
29424   ac_status=$?
29425   grep -v '^ *+' conftest.er1 >conftest.err
29426   rm -f conftest.er1
29427   cat conftest.err >&5
29428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429   (exit $ac_status); } &&
29430          { ac_try='test -z "$ac_cxx_werror_flag"
29431                          || test ! -s conftest.err'
29432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29433   (eval $ac_try) 2>&5
29434   ac_status=$?
29435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436   (exit $ac_status); }; } &&
29437          { ac_try='test -s conftest.$ac_objext'
29438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29439   (eval $ac_try) 2>&5
29440   ac_status=$?
29441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442   (exit $ac_status); }; }; then
29443   ac_cv_func_isnan_in_cmath=yes
29444 else
29445   echo "$as_me: failed program was:" >&5
29446 sed 's/^/| /' conftest.$ac_ext >&5
29447
29448 ac_cv_func_isnan_in_cmath=no
29449 fi
29450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29451   ac_ext=c
29452 ac_cpp='$CPP $CPPFLAGS'
29453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29456
29457 fi
29458 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29459 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29460
29461 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29462
29463 cat >>confdefs.h <<\_ACEOF
29464 #define HAVE_ISNAN_IN_CMATH 1
29465 _ACEOF
29466
29467 fi
29468
29469 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29470 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29471 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29472   echo $ECHO_N "(cached) $ECHO_C" >&6
29473 else
29474   ac_ext=cc
29475 ac_cpp='$CXXCPP $CPPFLAGS'
29476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29479
29480    cat >conftest.$ac_ext <<_ACEOF
29481 /* confdefs.h.  */
29482 _ACEOF
29483 cat confdefs.h >>conftest.$ac_ext
29484 cat >>conftest.$ac_ext <<_ACEOF
29485 /* end confdefs.h.  */
29486 #include <cmath>
29487 int
29488 main ()
29489 {
29490 float f; std::isnan(f);
29491   ;
29492   return 0;
29493 }
29494 _ACEOF
29495 rm -f conftest.$ac_objext
29496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29497   (eval $ac_compile) 2>conftest.er1
29498   ac_status=$?
29499   grep -v '^ *+' conftest.er1 >conftest.err
29500   rm -f conftest.er1
29501   cat conftest.err >&5
29502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503   (exit $ac_status); } &&
29504          { ac_try='test -z "$ac_cxx_werror_flag"
29505                          || test ! -s conftest.err'
29506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29507   (eval $ac_try) 2>&5
29508   ac_status=$?
29509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510   (exit $ac_status); }; } &&
29511          { ac_try='test -s conftest.$ac_objext'
29512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29513   (eval $ac_try) 2>&5
29514   ac_status=$?
29515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516   (exit $ac_status); }; }; then
29517   ac_cv_func_std_isnan_in_cmath=yes
29518 else
29519   echo "$as_me: failed program was:" >&5
29520 sed 's/^/| /' conftest.$ac_ext >&5
29521
29522 ac_cv_func_std_isnan_in_cmath=no
29523 fi
29524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29525   ac_ext=c
29526 ac_cpp='$CPP $CPPFLAGS'
29527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29530
29531 fi
29532 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29533 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29534
29535 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29536
29537 cat >>confdefs.h <<\_ACEOF
29538 #define HAVE_STD_ISNAN_IN_CMATH 1
29539 _ACEOF
29540
29541 fi
29542
29543
29544 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29545 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29546 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29547   echo $ECHO_N "(cached) $ECHO_C" >&6
29548 else
29549   ac_ext=cc
29550 ac_cpp='$CXXCPP $CPPFLAGS'
29551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29554
29555    cat >conftest.$ac_ext <<_ACEOF
29556 /* confdefs.h.  */
29557 _ACEOF
29558 cat confdefs.h >>conftest.$ac_ext
29559 cat >>conftest.$ac_ext <<_ACEOF
29560 /* end confdefs.h.  */
29561 #include <math.h>
29562 int
29563 main ()
29564 {
29565 float f; isinf(f);
29566   ;
29567   return 0;
29568 }
29569 _ACEOF
29570 rm -f conftest.$ac_objext
29571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29572   (eval $ac_compile) 2>conftest.er1
29573   ac_status=$?
29574   grep -v '^ *+' conftest.er1 >conftest.err
29575   rm -f conftest.er1
29576   cat conftest.err >&5
29577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578   (exit $ac_status); } &&
29579          { ac_try='test -z "$ac_cxx_werror_flag"
29580                          || test ! -s conftest.err'
29581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29582   (eval $ac_try) 2>&5
29583   ac_status=$?
29584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29585   (exit $ac_status); }; } &&
29586          { ac_try='test -s conftest.$ac_objext'
29587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29588   (eval $ac_try) 2>&5
29589   ac_status=$?
29590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29591   (exit $ac_status); }; }; then
29592   ac_cv_func_isinf_in_math_h=yes
29593 else
29594   echo "$as_me: failed program was:" >&5
29595 sed 's/^/| /' conftest.$ac_ext >&5
29596
29597 ac_cv_func_isinf_in_math_h=no
29598 fi
29599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29600   ac_ext=c
29601 ac_cpp='$CPP $CPPFLAGS'
29602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29605
29606 fi
29607 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29608 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29609
29610 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29611
29612 cat >>confdefs.h <<\_ACEOF
29613 #define HAVE_ISINF_IN_MATH_H 1
29614 _ACEOF
29615
29616 fi
29617
29618 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29619 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29620 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29621   echo $ECHO_N "(cached) $ECHO_C" >&6
29622 else
29623   ac_ext=cc
29624 ac_cpp='$CXXCPP $CPPFLAGS'
29625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29628
29629    cat >conftest.$ac_ext <<_ACEOF
29630 /* confdefs.h.  */
29631 _ACEOF
29632 cat confdefs.h >>conftest.$ac_ext
29633 cat >>conftest.$ac_ext <<_ACEOF
29634 /* end confdefs.h.  */
29635 #include <cmath>
29636 int
29637 main ()
29638 {
29639 float f; isinf(f);
29640   ;
29641   return 0;
29642 }
29643 _ACEOF
29644 rm -f conftest.$ac_objext
29645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29646   (eval $ac_compile) 2>conftest.er1
29647   ac_status=$?
29648   grep -v '^ *+' conftest.er1 >conftest.err
29649   rm -f conftest.er1
29650   cat conftest.err >&5
29651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652   (exit $ac_status); } &&
29653          { ac_try='test -z "$ac_cxx_werror_flag"
29654                          || test ! -s conftest.err'
29655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29656   (eval $ac_try) 2>&5
29657   ac_status=$?
29658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659   (exit $ac_status); }; } &&
29660          { ac_try='test -s conftest.$ac_objext'
29661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29662   (eval $ac_try) 2>&5
29663   ac_status=$?
29664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29665   (exit $ac_status); }; }; then
29666   ac_cv_func_isinf_in_cmath=yes
29667 else
29668   echo "$as_me: failed program was:" >&5
29669 sed 's/^/| /' conftest.$ac_ext >&5
29670
29671 ac_cv_func_isinf_in_cmath=no
29672 fi
29673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29674   ac_ext=c
29675 ac_cpp='$CPP $CPPFLAGS'
29676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29679
29680 fi
29681 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29682 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29683
29684 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29685
29686 cat >>confdefs.h <<\_ACEOF
29687 #define HAVE_ISINF_IN_CMATH 1
29688 _ACEOF
29689
29690 fi
29691
29692 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29693 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29694 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29695   echo $ECHO_N "(cached) $ECHO_C" >&6
29696 else
29697   ac_ext=cc
29698 ac_cpp='$CXXCPP $CPPFLAGS'
29699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29702
29703    cat >conftest.$ac_ext <<_ACEOF
29704 /* confdefs.h.  */
29705 _ACEOF
29706 cat confdefs.h >>conftest.$ac_ext
29707 cat >>conftest.$ac_ext <<_ACEOF
29708 /* end confdefs.h.  */
29709 #include <cmath>
29710 int
29711 main ()
29712 {
29713 float f; std::isinf(f)}
29714   ;
29715   return 0;
29716 }
29717 _ACEOF
29718 rm -f conftest.$ac_objext
29719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29720   (eval $ac_compile) 2>conftest.er1
29721   ac_status=$?
29722   grep -v '^ *+' conftest.er1 >conftest.err
29723   rm -f conftest.er1
29724   cat conftest.err >&5
29725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726   (exit $ac_status); } &&
29727          { ac_try='test -z "$ac_cxx_werror_flag"
29728                          || test ! -s conftest.err'
29729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29730   (eval $ac_try) 2>&5
29731   ac_status=$?
29732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733   (exit $ac_status); }; } &&
29734          { ac_try='test -s conftest.$ac_objext'
29735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29736   (eval $ac_try) 2>&5
29737   ac_status=$?
29738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739   (exit $ac_status); }; }; then
29740   ac_cv_func_std_isinf_in_cmath=yes
29741 else
29742   echo "$as_me: failed program was:" >&5
29743 sed 's/^/| /' conftest.$ac_ext >&5
29744
29745 ac_cv_func_std_isinf_in_cmath=no
29746 fi
29747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29748   ac_ext=c
29749 ac_cpp='$CPP $CPPFLAGS'
29750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29753
29754 fi
29755 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29756 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29757
29758 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29759
29760 cat >>confdefs.h <<\_ACEOF
29761 #define HAVE_STD_ISINF_IN_CMATH 1
29762 _ACEOF
29763
29764 fi
29765
29766 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29767 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29768 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29769   echo $ECHO_N "(cached) $ECHO_C" >&6
29770 else
29771   ac_ext=cc
29772 ac_cpp='$CXXCPP $CPPFLAGS'
29773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29776
29777    cat >conftest.$ac_ext <<_ACEOF
29778 /* confdefs.h.  */
29779 _ACEOF
29780 cat confdefs.h >>conftest.$ac_ext
29781 cat >>conftest.$ac_ext <<_ACEOF
29782 /* end confdefs.h.  */
29783 #include <ieeefp.h>
29784 int
29785 main ()
29786 {
29787 float f; finite(f);
29788   ;
29789   return 0;
29790 }
29791 _ACEOF
29792 rm -f conftest.$ac_objext
29793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29794   (eval $ac_compile) 2>conftest.er1
29795   ac_status=$?
29796   grep -v '^ *+' conftest.er1 >conftest.err
29797   rm -f conftest.er1
29798   cat conftest.err >&5
29799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800   (exit $ac_status); } &&
29801          { ac_try='test -z "$ac_cxx_werror_flag"
29802                          || test ! -s conftest.err'
29803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29804   (eval $ac_try) 2>&5
29805   ac_status=$?
29806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807   (exit $ac_status); }; } &&
29808          { ac_try='test -s conftest.$ac_objext'
29809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29810   (eval $ac_try) 2>&5
29811   ac_status=$?
29812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29813   (exit $ac_status); }; }; then
29814   ac_cv_func_finite_in_ieeefp_h=yes
29815 else
29816   echo "$as_me: failed program was:" >&5
29817 sed 's/^/| /' conftest.$ac_ext >&5
29818
29819 ac_cv_func_finite_in_ieeefp_h=no
29820 fi
29821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29822   ac_ext=c
29823 ac_cpp='$CPP $CPPFLAGS'
29824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29827
29828 fi
29829 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29830 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29831
29832 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29833
29834 cat >>confdefs.h <<\_ACEOF
29835 #define HAVE_FINITE_IN_IEEEFP_H 1
29836 _ACEOF
29837
29838 fi
29839
29840
29841
29842
29843
29844 for ac_header in stdlib.h unistd.h
29845 do
29846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29848   echo "$as_me:$LINENO: checking for $ac_header" >&5
29849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29851   echo $ECHO_N "(cached) $ECHO_C" >&6
29852 fi
29853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29855 else
29856   # Is the header compilable?
29857 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29859 cat >conftest.$ac_ext <<_ACEOF
29860 /* confdefs.h.  */
29861 _ACEOF
29862 cat confdefs.h >>conftest.$ac_ext
29863 cat >>conftest.$ac_ext <<_ACEOF
29864 /* end confdefs.h.  */
29865 $ac_includes_default
29866 #include <$ac_header>
29867 _ACEOF
29868 rm -f conftest.$ac_objext
29869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29870   (eval $ac_compile) 2>conftest.er1
29871   ac_status=$?
29872   grep -v '^ *+' conftest.er1 >conftest.err
29873   rm -f conftest.er1
29874   cat conftest.err >&5
29875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29876   (exit $ac_status); } &&
29877          { ac_try='test -z "$ac_c_werror_flag"
29878                          || test ! -s conftest.err'
29879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29880   (eval $ac_try) 2>&5
29881   ac_status=$?
29882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883   (exit $ac_status); }; } &&
29884          { ac_try='test -s conftest.$ac_objext'
29885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29886   (eval $ac_try) 2>&5
29887   ac_status=$?
29888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889   (exit $ac_status); }; }; then
29890   ac_header_compiler=yes
29891 else
29892   echo "$as_me: failed program was:" >&5
29893 sed 's/^/| /' conftest.$ac_ext >&5
29894
29895 ac_header_compiler=no
29896 fi
29897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29898 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29899 echo "${ECHO_T}$ac_header_compiler" >&6
29900
29901 # Is the header present?
29902 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29904 cat >conftest.$ac_ext <<_ACEOF
29905 /* confdefs.h.  */
29906 _ACEOF
29907 cat confdefs.h >>conftest.$ac_ext
29908 cat >>conftest.$ac_ext <<_ACEOF
29909 /* end confdefs.h.  */
29910 #include <$ac_header>
29911 _ACEOF
29912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29913   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29914   ac_status=$?
29915   grep -v '^ *+' conftest.er1 >conftest.err
29916   rm -f conftest.er1
29917   cat conftest.err >&5
29918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919   (exit $ac_status); } >/dev/null; then
29920   if test -s conftest.err; then
29921     ac_cpp_err=$ac_c_preproc_warn_flag
29922     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29923   else
29924     ac_cpp_err=
29925   fi
29926 else
29927   ac_cpp_err=yes
29928 fi
29929 if test -z "$ac_cpp_err"; then
29930   ac_header_preproc=yes
29931 else
29932   echo "$as_me: failed program was:" >&5
29933 sed 's/^/| /' conftest.$ac_ext >&5
29934
29935   ac_header_preproc=no
29936 fi
29937 rm -f conftest.err conftest.$ac_ext
29938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29939 echo "${ECHO_T}$ac_header_preproc" >&6
29940
29941 # So?  What about this header?
29942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29943   yes:no: )
29944     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29948     ac_header_preproc=yes
29949     ;;
29950   no:yes:* )
29951     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29953     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29954 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29955     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29957     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29958 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29959     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29961     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29963     (
29964       cat <<\_ASBOX
29965 ## ----------------------------------- ##
29966 ## Report this to llvmbugs@cs.uiuc.edu ##
29967 ## ----------------------------------- ##
29968 _ASBOX
29969     ) |
29970       sed "s/^/$as_me: WARNING:     /" >&2
29971     ;;
29972 esac
29973 echo "$as_me:$LINENO: checking for $ac_header" >&5
29974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29976   echo $ECHO_N "(cached) $ECHO_C" >&6
29977 else
29978   eval "$as_ac_Header=\$ac_header_preproc"
29979 fi
29980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29982
29983 fi
29984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29985   cat >>confdefs.h <<_ACEOF
29986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29987 _ACEOF
29988
29989 fi
29990
29991 done
29992
29993
29994 for ac_func in getpagesize
29995 do
29996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29997 echo "$as_me:$LINENO: checking for $ac_func" >&5
29998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29999 if eval "test \"\${$as_ac_var+set}\" = set"; then
30000   echo $ECHO_N "(cached) $ECHO_C" >&6
30001 else
30002   cat >conftest.$ac_ext <<_ACEOF
30003 /* confdefs.h.  */
30004 _ACEOF
30005 cat confdefs.h >>conftest.$ac_ext
30006 cat >>conftest.$ac_ext <<_ACEOF
30007 /* end confdefs.h.  */
30008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30010 #define $ac_func innocuous_$ac_func
30011
30012 /* System header to define __stub macros and hopefully few prototypes,
30013     which can conflict with char $ac_func (); below.
30014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30015     <limits.h> exists even on freestanding compilers.  */
30016
30017 #ifdef __STDC__
30018 # include <limits.h>
30019 #else
30020 # include <assert.h>
30021 #endif
30022
30023 #undef $ac_func
30024
30025 /* Override any gcc2 internal prototype to avoid an error.  */
30026 #ifdef __cplusplus
30027 extern "C"
30028 {
30029 #endif
30030 /* We use char because int might match the return type of a gcc2
30031    builtin and then its argument prototype would still apply.  */
30032 char $ac_func ();
30033 /* The GNU C library defines this for functions which it implements
30034     to always fail with ENOSYS.  Some functions are actually named
30035     something starting with __ and the normal name is an alias.  */
30036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30037 choke me
30038 #else
30039 char (*f) () = $ac_func;
30040 #endif
30041 #ifdef __cplusplus
30042 }
30043 #endif
30044
30045 int
30046 main ()
30047 {
30048 return f != $ac_func;
30049   ;
30050   return 0;
30051 }
30052 _ACEOF
30053 rm -f conftest.$ac_objext conftest$ac_exeext
30054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30055   (eval $ac_link) 2>conftest.er1
30056   ac_status=$?
30057   grep -v '^ *+' conftest.er1 >conftest.err
30058   rm -f conftest.er1
30059   cat conftest.err >&5
30060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061   (exit $ac_status); } &&
30062          { ac_try='test -z "$ac_c_werror_flag"
30063                          || test ! -s conftest.err'
30064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30065   (eval $ac_try) 2>&5
30066   ac_status=$?
30067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068   (exit $ac_status); }; } &&
30069          { ac_try='test -s conftest$ac_exeext'
30070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30071   (eval $ac_try) 2>&5
30072   ac_status=$?
30073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074   (exit $ac_status); }; }; then
30075   eval "$as_ac_var=yes"
30076 else
30077   echo "$as_me: failed program was:" >&5
30078 sed 's/^/| /' conftest.$ac_ext >&5
30079
30080 eval "$as_ac_var=no"
30081 fi
30082 rm -f conftest.err conftest.$ac_objext \
30083       conftest$ac_exeext conftest.$ac_ext
30084 fi
30085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30087 if test `eval echo '${'$as_ac_var'}'` = yes; then
30088   cat >>confdefs.h <<_ACEOF
30089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30090 _ACEOF
30091
30092 fi
30093 done
30094
30095 echo "$as_me:$LINENO: checking for working mmap" >&5
30096 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30097 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30098   echo $ECHO_N "(cached) $ECHO_C" >&6
30099 else
30100   if test "$cross_compiling" = yes; then
30101   ac_cv_func_mmap_fixed_mapped=no
30102 else
30103   cat >conftest.$ac_ext <<_ACEOF
30104 /* confdefs.h.  */
30105 _ACEOF
30106 cat confdefs.h >>conftest.$ac_ext
30107 cat >>conftest.$ac_ext <<_ACEOF
30108 /* end confdefs.h.  */
30109 $ac_includes_default
30110 /* malloc might have been renamed as rpl_malloc. */
30111 #undef malloc
30112
30113 /* Thanks to Mike Haertel and Jim Avera for this test.
30114    Here is a matrix of mmap possibilities:
30115         mmap private not fixed
30116         mmap private fixed at somewhere currently unmapped
30117         mmap private fixed at somewhere already mapped
30118         mmap shared not fixed
30119         mmap shared fixed at somewhere currently unmapped
30120         mmap shared fixed at somewhere already mapped
30121    For private mappings, we should verify that changes cannot be read()
30122    back from the file, nor mmap's back from the file at a different
30123    address.  (There have been systems where private was not correctly
30124    implemented like the infamous i386 svr4.0, and systems where the
30125    VM page cache was not coherent with the file system buffer cache
30126    like early versions of FreeBSD and possibly contemporary NetBSD.)
30127    For shared mappings, we should conversely verify that changes get
30128    propagated back to all the places they're supposed to be.
30129
30130    Grep wants private fixed already mapped.
30131    The main things grep needs to know about mmap are:
30132    * does it exist and is it safe to write into the mmap'd area
30133    * how to use it (BSD variants)  */
30134
30135 #include <fcntl.h>
30136 #include <sys/mman.h>
30137
30138 #if !STDC_HEADERS && !HAVE_STDLIB_H
30139 char *malloc ();
30140 #endif
30141
30142 /* This mess was copied from the GNU getpagesize.h.  */
30143 #if !HAVE_GETPAGESIZE
30144 /* Assume that all systems that can run configure have sys/param.h.  */
30145 # if !HAVE_SYS_PARAM_H
30146 #  define HAVE_SYS_PARAM_H 1
30147 # endif
30148
30149 # ifdef _SC_PAGESIZE
30150 #  define getpagesize() sysconf(_SC_PAGESIZE)
30151 # else /* no _SC_PAGESIZE */
30152 #  if HAVE_SYS_PARAM_H
30153 #   include <sys/param.h>
30154 #   ifdef EXEC_PAGESIZE
30155 #    define getpagesize() EXEC_PAGESIZE
30156 #   else /* no EXEC_PAGESIZE */
30157 #    ifdef NBPG
30158 #     define getpagesize() NBPG * CLSIZE
30159 #     ifndef CLSIZE
30160 #      define CLSIZE 1
30161 #     endif /* no CLSIZE */
30162 #    else /* no NBPG */
30163 #     ifdef NBPC
30164 #      define getpagesize() NBPC
30165 #     else /* no NBPC */
30166 #      ifdef PAGESIZE
30167 #       define getpagesize() PAGESIZE
30168 #      endif /* PAGESIZE */
30169 #     endif /* no NBPC */
30170 #    endif /* no NBPG */
30171 #   endif /* no EXEC_PAGESIZE */
30172 #  else /* no HAVE_SYS_PARAM_H */
30173 #   define getpagesize() 8192   /* punt totally */
30174 #  endif /* no HAVE_SYS_PARAM_H */
30175 # endif /* no _SC_PAGESIZE */
30176
30177 #endif /* no HAVE_GETPAGESIZE */
30178
30179 int
30180 main ()
30181 {
30182   char *data, *data2, *data3;
30183   int i, pagesize;
30184   int fd;
30185
30186   pagesize = getpagesize ();
30187
30188   /* First, make a file with some known garbage in it. */
30189   data = (char *) malloc (pagesize);
30190   if (!data)
30191     exit (1);
30192   for (i = 0; i < pagesize; ++i)
30193     *(data + i) = rand ();
30194   umask (0);
30195   fd = creat ("conftest.mmap", 0600);
30196   if (fd < 0)
30197     exit (1);
30198   if (write (fd, data, pagesize) != pagesize)
30199     exit (1);
30200   close (fd);
30201
30202   /* Next, try to mmap the file at a fixed address which already has
30203      something else allocated at it.  If we can, also make sure that
30204      we see the same garbage.  */
30205   fd = open ("conftest.mmap", O_RDWR);
30206   if (fd < 0)
30207     exit (1);
30208   data2 = (char *) malloc (2 * pagesize);
30209   if (!data2)
30210     exit (1);
30211   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30212   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30213                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
30214     exit (1);
30215   for (i = 0; i < pagesize; ++i)
30216     if (*(data + i) != *(data2 + i))
30217       exit (1);
30218
30219   /* Finally, make sure that changes to the mapped area do not
30220      percolate back to the file as seen by read().  (This is a bug on
30221      some variants of i386 svr4.0.)  */
30222   for (i = 0; i < pagesize; ++i)
30223     *(data2 + i) = *(data2 + i) + 1;
30224   data3 = (char *) malloc (pagesize);
30225   if (!data3)
30226     exit (1);
30227   if (read (fd, data3, pagesize) != pagesize)
30228     exit (1);
30229   for (i = 0; i < pagesize; ++i)
30230     if (*(data + i) != *(data3 + i))
30231       exit (1);
30232   close (fd);
30233   exit (0);
30234 }
30235 _ACEOF
30236 rm -f conftest$ac_exeext
30237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30238   (eval $ac_link) 2>&5
30239   ac_status=$?
30240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30243   (eval $ac_try) 2>&5
30244   ac_status=$?
30245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30246   (exit $ac_status); }; }; then
30247   ac_cv_func_mmap_fixed_mapped=yes
30248 else
30249   echo "$as_me: program exited with status $ac_status" >&5
30250 echo "$as_me: failed program was:" >&5
30251 sed 's/^/| /' conftest.$ac_ext >&5
30252
30253 ( exit $ac_status )
30254 ac_cv_func_mmap_fixed_mapped=no
30255 fi
30256 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30257 fi
30258 fi
30259 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30260 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30261 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30262
30263 cat >>confdefs.h <<\_ACEOF
30264 #define HAVE_MMAP 1
30265 _ACEOF
30266
30267 fi
30268 rm -f conftest.mmap
30269
30270 echo "$as_me:$LINENO: checking for mmap of files" >&5
30271 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30272 if test "${ac_cv_func_mmap_file+set}" = set; then
30273   echo $ECHO_N "(cached) $ECHO_C" >&6
30274 else
30275    ac_ext=c
30276 ac_cpp='$CPP $CPPFLAGS'
30277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30280
30281   if test "$cross_compiling" = yes; then
30282   ac_cv_func_mmap_file=no
30283 else
30284   cat >conftest.$ac_ext <<_ACEOF
30285
30286     /* confdefs.h.  */
30287 _ACEOF
30288 cat confdefs.h >>conftest.$ac_ext
30289 cat >>conftest.$ac_ext <<_ACEOF
30290 /* end confdefs.h.  */
30291
30292 #include <sys/types.h>
30293 #include <sys/mman.h>
30294 #include <fcntl.h>
30295
30296 int
30297 main ()
30298 {
30299
30300   int fd;
30301   fd = creat ("foo",0777);
30302   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30303   unlink ("foo");
30304   return (fd != (int) MAP_FAILED);
30305   ;
30306   return 0;
30307 }
30308 _ACEOF
30309 rm -f conftest$ac_exeext
30310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30311   (eval $ac_link) 2>&5
30312   ac_status=$?
30313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30316   (eval $ac_try) 2>&5
30317   ac_status=$?
30318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319   (exit $ac_status); }; }; then
30320   ac_cv_func_mmap_file=yes
30321 else
30322   echo "$as_me: program exited with status $ac_status" >&5
30323 echo "$as_me: failed program was:" >&5
30324 sed 's/^/| /' conftest.$ac_ext >&5
30325
30326 ( exit $ac_status )
30327 ac_cv_func_mmap_file=no
30328 fi
30329 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30330 fi
30331   ac_ext=c
30332 ac_cpp='$CPP $CPPFLAGS'
30333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30336
30337
30338 fi
30339 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30340 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30341 if test "$ac_cv_func_mmap_file" = yes; then
30342
30343 cat >>confdefs.h <<\_ACEOF
30344 #define HAVE_MMAP_FILE
30345 _ACEOF
30346
30347    MMAP_FILE=yes
30348
30349 fi
30350
30351 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30352 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30353 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30354   echo $ECHO_N "(cached) $ECHO_C" >&6
30355 else
30356   if test "$llvm_cv_os_type" = "Interix" ; then
30357    ac_cv_need_dev_zero_for_mmap=yes
30358  else
30359    ac_cv_need_dev_zero_for_mmap=no
30360  fi
30361
30362 fi
30363 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30364 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30365 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30366
30367 cat >>confdefs.h <<\_ACEOF
30368 #define NEED_DEV_ZERO_FOR_MMAP 1
30369 _ACEOF
30370
30371 fi
30372 echo "$as_me:$LINENO: checking for mprotect" >&5
30373 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30374 if test "${ac_cv_func_mprotect+set}" = set; then
30375   echo $ECHO_N "(cached) $ECHO_C" >&6
30376 else
30377   cat >conftest.$ac_ext <<_ACEOF
30378 /* confdefs.h.  */
30379 _ACEOF
30380 cat confdefs.h >>conftest.$ac_ext
30381 cat >>conftest.$ac_ext <<_ACEOF
30382 /* end confdefs.h.  */
30383 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30385 #define mprotect innocuous_mprotect
30386
30387 /* System header to define __stub macros and hopefully few prototypes,
30388     which can conflict with char mprotect (); below.
30389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30390     <limits.h> exists even on freestanding compilers.  */
30391
30392 #ifdef __STDC__
30393 # include <limits.h>
30394 #else
30395 # include <assert.h>
30396 #endif
30397
30398 #undef mprotect
30399
30400 /* Override any gcc2 internal prototype to avoid an error.  */
30401 #ifdef __cplusplus
30402 extern "C"
30403 {
30404 #endif
30405 /* We use char because int might match the return type of a gcc2
30406    builtin and then its argument prototype would still apply.  */
30407 char mprotect ();
30408 /* The GNU C library defines this for functions which it implements
30409     to always fail with ENOSYS.  Some functions are actually named
30410     something starting with __ and the normal name is an alias.  */
30411 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30412 choke me
30413 #else
30414 char (*f) () = mprotect;
30415 #endif
30416 #ifdef __cplusplus
30417 }
30418 #endif
30419
30420 int
30421 main ()
30422 {
30423 return f != mprotect;
30424   ;
30425   return 0;
30426 }
30427 _ACEOF
30428 rm -f conftest.$ac_objext conftest$ac_exeext
30429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30430   (eval $ac_link) 2>conftest.er1
30431   ac_status=$?
30432   grep -v '^ *+' conftest.er1 >conftest.err
30433   rm -f conftest.er1
30434   cat conftest.err >&5
30435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436   (exit $ac_status); } &&
30437          { ac_try='test -z "$ac_c_werror_flag"
30438                          || test ! -s conftest.err'
30439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30440   (eval $ac_try) 2>&5
30441   ac_status=$?
30442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443   (exit $ac_status); }; } &&
30444          { ac_try='test -s conftest$ac_exeext'
30445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30446   (eval $ac_try) 2>&5
30447   ac_status=$?
30448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449   (exit $ac_status); }; }; then
30450   ac_cv_func_mprotect=yes
30451 else
30452   echo "$as_me: failed program was:" >&5
30453 sed 's/^/| /' conftest.$ac_ext >&5
30454
30455 ac_cv_func_mprotect=no
30456 fi
30457 rm -f conftest.err conftest.$ac_objext \
30458       conftest$ac_exeext conftest.$ac_ext
30459 fi
30460 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30461 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30462 if test $ac_cv_func_mprotect = yes; then
30463   :
30464 else
30465   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30466 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30467    { (exit 1); exit 1; }; }
30468 fi
30469
30470
30471 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30472 then
30473   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30474 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30475 fi
30476 if test "$ac_cv_func_mmap_file" = "no"
30477 then
30478   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30479 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30480 fi
30481
30482
30483 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30484 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30485 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30486   echo $ECHO_N "(cached) $ECHO_C" >&6
30487 else
30488   llvm_cv_llvmgcc_sanity="no"
30489 if test -x "$LLVMGCC" ; then
30490   cp /dev/null conftest.c
30491   "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30492   if test $? -eq 0 ; then
30493     llvm_cv_llvmgcc_sanity="yes"
30494   fi
30495   rm conftest.c
30496 fi
30497 fi
30498 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30499 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30500
30501 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30502   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30503   LLVMCC1=$llvmcc1path
30504
30505   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30506   LLVMCC1PLUS=$llvmcc1pluspath
30507
30508   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30509   LLVMGCCDIR=$llvmgccdir
30510
30511 fi
30512
30513 SHLIBEXT=$libltdl_cv_shlibext
30514
30515
30516 # Translate the various configuration directories and other basic
30517 # information into substitutions that will end up in Makefile.config.in
30518 # that these configured values can be used by the makefiles
30519 eval LLVM_PREFIX="${prefix}";
30520 eval LLVM_BINDIR="${prefix}/bin";
30521 eval LLVM_LIBDIR="${prefix}/lib";
30522 eval LLVM_DATADIR="${prefix}/share/llvm";
30523 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30524 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30525 eval LLVM_INCLUDEDIR="${prefix}/include";
30526 eval LLVM_INFODIR="${prefix}/info";
30527 eval LLVM_MANDIR="${prefix}/man";
30528 LLVM_CONFIGTIME=`date`
30529
30530
30531
30532
30533
30534
30535
30536
30537
30538
30539
30540 # Place the various directores into the config.h file as #defines so that we
30541 # can know about the installation paths within LLVM.
30542
30543 cat >>confdefs.h <<_ACEOF
30544 #define LLVM_PREFIX "$LLVM_PREFIX"
30545 _ACEOF
30546
30547
30548 cat >>confdefs.h <<_ACEOF
30549 #define LLVM_BINDIR "$LLVM_BINDIR"
30550 _ACEOF
30551
30552
30553 cat >>confdefs.h <<_ACEOF
30554 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30555 _ACEOF
30556
30557
30558 cat >>confdefs.h <<_ACEOF
30559 #define LLVM_DATADIR "$LLVM_DATADIR"
30560 _ACEOF
30561
30562
30563 cat >>confdefs.h <<_ACEOF
30564 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30565 _ACEOF
30566
30567
30568 cat >>confdefs.h <<_ACEOF
30569 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30570 _ACEOF
30571
30572
30573 cat >>confdefs.h <<_ACEOF
30574 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30575 _ACEOF
30576
30577
30578 cat >>confdefs.h <<_ACEOF
30579 #define LLVM_INFODIR "$LLVM_INFODIR"
30580 _ACEOF
30581
30582
30583 cat >>confdefs.h <<_ACEOF
30584 #define LLVM_MANDIR "$LLVM_MANDIR"
30585 _ACEOF
30586
30587
30588 cat >>confdefs.h <<_ACEOF
30589 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30590 _ACEOF
30591
30592
30593
30594           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30595
30596           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30597
30598           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30599
30600           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30601
30602           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30603
30604
30605           ac_config_files="$ac_config_files Makefile.config"
30606
30607
30608           ac_config_files="$ac_config_files docs/doxygen.cfg"
30609
30610
30611           ac_config_commands="$ac_config_commands setup"
30612
30613           ac_config_commands="$ac_config_commands Makefile"
30614
30615
30616           ac_config_commands="$ac_config_commands Makefile.common"
30617
30618
30619           ac_config_commands="$ac_config_commands examples/Makefile"
30620
30621
30622           ac_config_commands="$ac_config_commands lib/Makefile"
30623
30624
30625           ac_config_commands="$ac_config_commands runtime/Makefile"
30626
30627
30628           ac_config_commands="$ac_config_commands test/Makefile"
30629
30630
30631           ac_config_commands="$ac_config_commands test/Makefile.tests"
30632
30633
30634           ac_config_commands="$ac_config_commands tools/Makefile"
30635
30636
30637           ac_config_commands="$ac_config_commands utils/Makefile"
30638
30639
30640           ac_config_commands="$ac_config_commands projects/Makefile"
30641
30642
30643
30644 cat >confcache <<\_ACEOF
30645 # This file is a shell script that caches the results of configure
30646 # tests run on this system so they can be shared between configure
30647 # scripts and configure runs, see configure's option --config-cache.
30648 # It is not useful on other systems.  If it contains results you don't
30649 # want to keep, you may remove or edit it.
30650 #
30651 # config.status only pays attention to the cache file if you give it
30652 # the --recheck option to rerun configure.
30653 #
30654 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30655 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30656 # following values.
30657
30658 _ACEOF
30659
30660 # The following way of writing the cache mishandles newlines in values,
30661 # but we know of no workaround that is simple, portable, and efficient.
30662 # So, don't put newlines in cache variables' values.
30663 # Ultrix sh set writes to stderr and can't be redirected directly,
30664 # and sets the high bit in the cache file unless we assign to the vars.
30665 {
30666   (set) 2>&1 |
30667     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30668     *ac_space=\ *)
30669       # `set' does not quote correctly, so add quotes (double-quote
30670       # substitution turns \\\\ into \\, and sed turns \\ into \).
30671       sed -n \
30672         "s/'/'\\\\''/g;
30673           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30674       ;;
30675     *)
30676       # `set' quotes correctly as required by POSIX, so do not add quotes.
30677       sed -n \
30678         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30679       ;;
30680     esac;
30681 } |
30682   sed '
30683      t clear
30684      : clear
30685      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30686      t end
30687      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30688      : end' >>confcache
30689 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30690   if test -w $cache_file; then
30691     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30692     cat confcache >$cache_file
30693   else
30694     echo "not updating unwritable cache $cache_file"
30695   fi
30696 fi
30697 rm -f confcache
30698
30699 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30700 # Let make expand exec_prefix.
30701 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30702
30703 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30704 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30705 # trailing colons and then remove the whole line if VPATH becomes empty
30706 # (actually we leave an empty line to preserve line numbers).
30707 if test "x$srcdir" = x.; then
30708   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30709 s/:*\$(srcdir):*/:/;
30710 s/:*\${srcdir}:*/:/;
30711 s/:*@srcdir@:*/:/;
30712 s/^\([^=]*=[     ]*\):*/\1/;
30713 s/:*$//;
30714 s/^[^=]*=[       ]*$//;
30715 }'
30716 fi
30717
30718 DEFS=-DHAVE_CONFIG_H
30719
30720 ac_libobjs=
30721 ac_ltlibobjs=
30722 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30723   # 1. Remove the extension, and $U if already installed.
30724   ac_i=`echo "$ac_i" |
30725          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30726   # 2. Add them.
30727   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30728   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30729 done
30730 LIBOBJS=$ac_libobjs
30731
30732 LTLIBOBJS=$ac_ltlibobjs
30733
30734
30735 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30736   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30737 Usually this means the macro was only invoked conditionally." >&5
30738 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30739 Usually this means the macro was only invoked conditionally." >&2;}
30740    { (exit 1); exit 1; }; }
30741 fi
30742 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30743   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30744 Usually this means the macro was only invoked conditionally." >&5
30745 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30746 Usually this means the macro was only invoked conditionally." >&2;}
30747    { (exit 1); exit 1; }; }
30748 fi
30749
30750 : ${CONFIG_STATUS=./config.status}
30751 ac_clean_files_save=$ac_clean_files
30752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30753 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30754 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30755 cat >$CONFIG_STATUS <<_ACEOF
30756 #! $SHELL
30757 # Generated by $as_me.
30758 # Run this file to recreate the current configuration.
30759 # Compiler output produced by configure, useful for debugging
30760 # configure, is in config.log if it exists.
30761
30762 debug=false
30763 ac_cs_recheck=false
30764 ac_cs_silent=false
30765 SHELL=\${CONFIG_SHELL-$SHELL}
30766 _ACEOF
30767
30768 cat >>$CONFIG_STATUS <<\_ACEOF
30769 ## --------------------- ##
30770 ## M4sh Initialization.  ##
30771 ## --------------------- ##
30772
30773 # Be Bourne compatible
30774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30775   emulate sh
30776   NULLCMD=:
30777   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30778   # is contrary to our usage.  Disable this feature.
30779   alias -g '${1+"$@"}'='"$@"'
30780 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30781   set -o posix
30782 fi
30783 DUALCASE=1; export DUALCASE # for MKS sh
30784
30785 # Support unset when possible.
30786 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30787   as_unset=unset
30788 else
30789   as_unset=false
30790 fi
30791
30792
30793 # Work around bugs in pre-3.0 UWIN ksh.
30794 $as_unset ENV MAIL MAILPATH
30795 PS1='$ '
30796 PS2='> '
30797 PS4='+ '
30798
30799 # NLS nuisances.
30800 for as_var in \
30801   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30802   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30803   LC_TELEPHONE LC_TIME
30804 do
30805   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30806     eval $as_var=C; export $as_var
30807   else
30808     $as_unset $as_var
30809   fi
30810 done
30811
30812 # Required to use basename.
30813 if expr a : '\(a\)' >/dev/null 2>&1; then
30814   as_expr=expr
30815 else
30816   as_expr=false
30817 fi
30818
30819 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30820   as_basename=basename
30821 else
30822   as_basename=false
30823 fi
30824
30825
30826 # Name of the executable.
30827 as_me=`$as_basename "$0" ||
30828 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30829          X"$0" : 'X\(//\)$' \| \
30830          X"$0" : 'X\(/\)$' \| \
30831          .     : '\(.\)' 2>/dev/null ||
30832 echo X/"$0" |
30833     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30834           /^X\/\(\/\/\)$/{ s//\1/; q; }
30835           /^X\/\(\/\).*/{ s//\1/; q; }
30836           s/.*/./; q'`
30837
30838
30839 # PATH needs CR, and LINENO needs CR and PATH.
30840 # Avoid depending upon Character Ranges.
30841 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30842 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30843 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30844 as_cr_digits='0123456789'
30845 as_cr_alnum=$as_cr_Letters$as_cr_digits
30846
30847 # The user is always right.
30848 if test "${PATH_SEPARATOR+set}" != set; then
30849   echo "#! /bin/sh" >conf$$.sh
30850   echo  "exit 0"   >>conf$$.sh
30851   chmod +x conf$$.sh
30852   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30853     PATH_SEPARATOR=';'
30854   else
30855     PATH_SEPARATOR=:
30856   fi
30857   rm -f conf$$.sh
30858 fi
30859
30860
30861   as_lineno_1=$LINENO
30862   as_lineno_2=$LINENO
30863   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30864   test "x$as_lineno_1" != "x$as_lineno_2" &&
30865   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30866   # Find who we are.  Look in the path if we contain no path at all
30867   # relative or not.
30868   case $0 in
30869     *[\\/]* ) as_myself=$0 ;;
30870     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30871 for as_dir in $PATH
30872 do
30873   IFS=$as_save_IFS
30874   test -z "$as_dir" && as_dir=.
30875   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30876 done
30877
30878        ;;
30879   esac
30880   # We did not find ourselves, most probably we were run as `sh COMMAND'
30881   # in which case we are not to be found in the path.
30882   if test "x$as_myself" = x; then
30883     as_myself=$0
30884   fi
30885   if test ! -f "$as_myself"; then
30886     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30887 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30888    { (exit 1); exit 1; }; }
30889   fi
30890   case $CONFIG_SHELL in
30891   '')
30892     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30893 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30894 do
30895   IFS=$as_save_IFS
30896   test -z "$as_dir" && as_dir=.
30897   for as_base in sh bash ksh sh5; do
30898          case $as_dir in
30899          /*)
30900            if ("$as_dir/$as_base" -c '
30901   as_lineno_1=$LINENO
30902   as_lineno_2=$LINENO
30903   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30904   test "x$as_lineno_1" != "x$as_lineno_2" &&
30905   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30906              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30907              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30908              CONFIG_SHELL=$as_dir/$as_base
30909              export CONFIG_SHELL
30910              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30911            fi;;
30912          esac
30913        done
30914 done
30915 ;;
30916   esac
30917
30918   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30919   # uniformly replaced by the line number.  The first 'sed' inserts a
30920   # line-number line before each line; the second 'sed' does the real
30921   # work.  The second script uses 'N' to pair each line-number line
30922   # with the numbered line, and appends trailing '-' during
30923   # substitution so that $LINENO is not a special case at line end.
30924   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30925   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30926   sed '=' <$as_myself |
30927     sed '
30928       N
30929       s,$,-,
30930       : loop
30931       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30932       t loop
30933       s,-$,,
30934       s,^['$as_cr_digits']*\n,,
30935     ' >$as_me.lineno &&
30936   chmod +x $as_me.lineno ||
30937     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30938 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30939    { (exit 1); exit 1; }; }
30940
30941   # Don't try to exec as it changes $[0], causing all sort of problems
30942   # (the dirname of $[0] is not the place where we might find the
30943   # original and so on.  Autoconf is especially sensible to this).
30944   . ./$as_me.lineno
30945   # Exit status is that of the last command.
30946   exit
30947 }
30948
30949
30950 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30951   *c*,-n*) ECHO_N= ECHO_C='
30952 ' ECHO_T='      ' ;;
30953   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30954   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30955 esac
30956
30957 if expr a : '\(a\)' >/dev/null 2>&1; then
30958   as_expr=expr
30959 else
30960   as_expr=false
30961 fi
30962
30963 rm -f conf$$ conf$$.exe conf$$.file
30964 echo >conf$$.file
30965 if ln -s conf$$.file conf$$ 2>/dev/null; then
30966   # We could just check for DJGPP; but this test a) works b) is more generic
30967   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30968   if test -f conf$$.exe; then
30969     # Don't use ln at all; we don't have any links
30970     as_ln_s='cp -p'
30971   else
30972     as_ln_s='ln -s'
30973   fi
30974 elif ln conf$$.file conf$$ 2>/dev/null; then
30975   as_ln_s=ln
30976 else
30977   as_ln_s='cp -p'
30978 fi
30979 rm -f conf$$ conf$$.exe conf$$.file
30980
30981 if mkdir -p . 2>/dev/null; then
30982   as_mkdir_p=:
30983 else
30984   test -d ./-p && rmdir ./-p
30985   as_mkdir_p=false
30986 fi
30987
30988 as_executable_p="test -f"
30989
30990 # Sed expression to map a string onto a valid CPP name.
30991 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30992
30993 # Sed expression to map a string onto a valid variable name.
30994 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30995
30996
30997 # IFS
30998 # We need space, tab and new line, in precisely that order.
30999 as_nl='
31000 '
31001 IFS="   $as_nl"
31002
31003 # CDPATH.
31004 $as_unset CDPATH
31005
31006 exec 6>&1
31007
31008 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31009 # report actual input values of CONFIG_FILES etc. instead of their
31010 # values after options handling.  Logging --version etc. is OK.
31011 exec 5>>config.log
31012 {
31013   echo
31014   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31015 ## Running $as_me. ##
31016 _ASBOX
31017 } >&5
31018 cat >&5 <<_CSEOF
31019
31020 This file was extended by llvm $as_me 1.6cvs, which was
31021 generated by GNU Autoconf 2.59.  Invocation command line was
31022
31023   CONFIG_FILES    = $CONFIG_FILES
31024   CONFIG_HEADERS  = $CONFIG_HEADERS
31025   CONFIG_LINKS    = $CONFIG_LINKS
31026   CONFIG_COMMANDS = $CONFIG_COMMANDS
31027   $ $0 $@
31028
31029 _CSEOF
31030 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31031 echo >&5
31032 _ACEOF
31033
31034 # Files that config.status was made for.
31035 if test -n "$ac_config_files"; then
31036   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31037 fi
31038
31039 if test -n "$ac_config_headers"; then
31040   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31041 fi
31042
31043 if test -n "$ac_config_links"; then
31044   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31045 fi
31046
31047 if test -n "$ac_config_commands"; then
31048   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31049 fi
31050
31051 cat >>$CONFIG_STATUS <<\_ACEOF
31052
31053 ac_cs_usage="\
31054 \`$as_me' instantiates files from templates according to the
31055 current configuration.
31056
31057 Usage: $0 [OPTIONS] [FILE]...
31058
31059   -h, --help       print this help, then exit
31060   -V, --version    print version number, then exit
31061   -q, --quiet      do not print progress messages
31062   -d, --debug      don't remove temporary files
31063       --recheck    update $as_me by reconfiguring in the same conditions
31064   --file=FILE[:TEMPLATE]
31065                    instantiate the configuration file FILE
31066   --header=FILE[:TEMPLATE]
31067                    instantiate the configuration header FILE
31068
31069 Configuration files:
31070 $config_files
31071
31072 Configuration headers:
31073 $config_headers
31074
31075 Configuration commands:
31076 $config_commands
31077
31078 Report bugs to <bug-autoconf@gnu.org>."
31079 _ACEOF
31080
31081 cat >>$CONFIG_STATUS <<_ACEOF
31082 ac_cs_version="\\
31083 llvm config.status 1.6cvs
31084 configured by $0, generated by GNU Autoconf 2.59,
31085   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31086
31087 Copyright (C) 2003 Free Software Foundation, Inc.
31088 This config.status script is free software; the Free Software Foundation
31089 gives unlimited permission to copy, distribute and modify it."
31090 srcdir=$srcdir
31091 INSTALL="$INSTALL"
31092 _ACEOF
31093
31094 cat >>$CONFIG_STATUS <<\_ACEOF
31095 # If no file are specified by the user, then we need to provide default
31096 # value.  By we need to know if files were specified by the user.
31097 ac_need_defaults=:
31098 while test $# != 0
31099 do
31100   case $1 in
31101   --*=*)
31102     ac_option=`expr "x$1" : 'x\([^=]*\)='`
31103     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31104     ac_shift=:
31105     ;;
31106   -*)
31107     ac_option=$1
31108     ac_optarg=$2
31109     ac_shift=shift
31110     ;;
31111   *) # This is not an option, so the user has probably given explicit
31112      # arguments.
31113      ac_option=$1
31114      ac_need_defaults=false;;
31115   esac
31116
31117   case $ac_option in
31118   # Handling of the options.
31119 _ACEOF
31120 cat >>$CONFIG_STATUS <<\_ACEOF
31121   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31122     ac_cs_recheck=: ;;
31123   --version | --vers* | -V )
31124     echo "$ac_cs_version"; exit 0 ;;
31125   --he | --h)
31126     # Conflict between --help and --header
31127     { { echo "$as_me:$LINENO: error: ambiguous option: $1
31128 Try \`$0 --help' for more information." >&5
31129 echo "$as_me: error: ambiguous option: $1
31130 Try \`$0 --help' for more information." >&2;}
31131    { (exit 1); exit 1; }; };;
31132   --help | --hel | -h )
31133     echo "$ac_cs_usage"; exit 0 ;;
31134   --debug | --d* | -d )
31135     debug=: ;;
31136   --file | --fil | --fi | --f )
31137     $ac_shift
31138     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31139     ac_need_defaults=false;;
31140   --header | --heade | --head | --hea )
31141     $ac_shift
31142     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31143     ac_need_defaults=false;;
31144   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31145   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31146     ac_cs_silent=: ;;
31147
31148   # This is an error.
31149   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31150 Try \`$0 --help' for more information." >&5
31151 echo "$as_me: error: unrecognized option: $1
31152 Try \`$0 --help' for more information." >&2;}
31153    { (exit 1); exit 1; }; } ;;
31154
31155   *) ac_config_targets="$ac_config_targets $1" ;;
31156
31157   esac
31158   shift
31159 done
31160
31161 ac_configure_extra_args=
31162
31163 if $ac_cs_silent; then
31164   exec 6>/dev/null
31165   ac_configure_extra_args="$ac_configure_extra_args --silent"
31166 fi
31167
31168 _ACEOF
31169 cat >>$CONFIG_STATUS <<_ACEOF
31170 if \$ac_cs_recheck; then
31171   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31172   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31173 fi
31174
31175 _ACEOF
31176
31177 cat >>$CONFIG_STATUS <<_ACEOF
31178 #
31179 # INIT-COMMANDS section.
31180 #
31181
31182 llvm_src="${srcdir}"
31183
31184 _ACEOF
31185
31186
31187
31188 cat >>$CONFIG_STATUS <<\_ACEOF
31189 for ac_config_target in $ac_config_targets
31190 do
31191   case "$ac_config_target" in
31192   # Handling of arguments.
31193   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31194   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31195   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31196   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31197   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31198   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31199   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31200   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31201   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31202   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31203   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31204   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31205   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31206   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31207   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31208   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31209   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31210   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31211   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31212 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31213    { (exit 1); exit 1; }; };;
31214   esac
31215 done
31216
31217 # If the user did not use the arguments to specify the items to instantiate,
31218 # then the envvar interface is used.  Set only those that are not.
31219 # We use the long form for the default assignment because of an extremely
31220 # bizarre bug on SunOS 4.1.3.
31221 if $ac_need_defaults; then
31222   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31223   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31224   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31225 fi
31226
31227 # Have a temporary directory for convenience.  Make it in the build tree
31228 # simply because there is no reason to put it here, and in addition,
31229 # creating and moving files from /tmp can sometimes cause problems.
31230 # Create a temporary directory, and hook for its removal unless debugging.
31231 $debug ||
31232 {
31233   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31234   trap '{ (exit 1); exit 1; }' 1 2 13 15
31235 }
31236
31237 # Create a (secure) tmp directory for tmp files.
31238
31239 {
31240   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31241   test -n "$tmp" && test -d "$tmp"
31242 }  ||
31243 {
31244   tmp=./confstat$$-$RANDOM
31245   (umask 077 && mkdir $tmp)
31246 } ||
31247 {
31248    echo "$me: cannot create a temporary directory in ." >&2
31249    { (exit 1); exit 1; }
31250 }
31251
31252 _ACEOF
31253
31254 cat >>$CONFIG_STATUS <<_ACEOF
31255
31256 #
31257 # CONFIG_FILES section.
31258 #
31259
31260 # No need to generate the scripts if there are no CONFIG_FILES.
31261 # This happens for instance when ./config.status config.h
31262 if test -n "\$CONFIG_FILES"; then
31263   # Protect against being on the right side of a sed subst in config.status.
31264   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31265    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31266 s,@SHELL@,$SHELL,;t t
31267 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31268 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31269 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31270 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31271 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31272 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31273 s,@exec_prefix@,$exec_prefix,;t t
31274 s,@prefix@,$prefix,;t t
31275 s,@program_transform_name@,$program_transform_name,;t t
31276 s,@bindir@,$bindir,;t t
31277 s,@sbindir@,$sbindir,;t t
31278 s,@libexecdir@,$libexecdir,;t t
31279 s,@datadir@,$datadir,;t t
31280 s,@sysconfdir@,$sysconfdir,;t t
31281 s,@sharedstatedir@,$sharedstatedir,;t t
31282 s,@localstatedir@,$localstatedir,;t t
31283 s,@libdir@,$libdir,;t t
31284 s,@includedir@,$includedir,;t t
31285 s,@oldincludedir@,$oldincludedir,;t t
31286 s,@infodir@,$infodir,;t t
31287 s,@mandir@,$mandir,;t t
31288 s,@build_alias@,$build_alias,;t t
31289 s,@host_alias@,$host_alias,;t t
31290 s,@target_alias@,$target_alias,;t t
31291 s,@DEFS@,$DEFS,;t t
31292 s,@ECHO_C@,$ECHO_C,;t t
31293 s,@ECHO_N@,$ECHO_N,;t t
31294 s,@ECHO_T@,$ECHO_T,;t t
31295 s,@LIBS@,$LIBS,;t t
31296 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31297 s,@subdirs@,$subdirs,;t t
31298 s,@build@,$build,;t t
31299 s,@build_cpu@,$build_cpu,;t t
31300 s,@build_vendor@,$build_vendor,;t t
31301 s,@build_os@,$build_os,;t t
31302 s,@host@,$host,;t t
31303 s,@host_cpu@,$host_cpu,;t t
31304 s,@host_vendor@,$host_vendor,;t t
31305 s,@host_os@,$host_os,;t t
31306 s,@target@,$target,;t t
31307 s,@target_cpu@,$target_cpu,;t t
31308 s,@target_vendor@,$target_vendor,;t t
31309 s,@target_os@,$target_os,;t t
31310 s,@OS@,$OS,;t t
31311 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31312 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31313 s,@ARCH@,$ARCH,;t t
31314 s,@ENDIAN@,$ENDIAN,;t t
31315 s,@CC@,$CC,;t t
31316 s,@CFLAGS@,$CFLAGS,;t t
31317 s,@LDFLAGS@,$LDFLAGS,;t t
31318 s,@CPPFLAGS@,$CPPFLAGS,;t t
31319 s,@ac_ct_CC@,$ac_ct_CC,;t t
31320 s,@EXEEXT@,$EXEEXT,;t t
31321 s,@OBJEXT@,$OBJEXT,;t t
31322 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31323 s,@JIT@,$JIT,;t t
31324 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31325 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31326 s,@CPP@,$CPP,;t t
31327 s,@CXX@,$CXX,;t t
31328 s,@CXXFLAGS@,$CXXFLAGS,;t t
31329 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31330 s,@LEX@,$LEX,;t t
31331 s,@LEXLIB@,$LEXLIB,;t t
31332 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31333 s,@FLEX@,$FLEX,;t t
31334 s,@YACC@,$YACC,;t t
31335 s,@BISON@,$BISON,;t t
31336 s,@ifGNUmake@,$ifGNUmake,;t t
31337 s,@LN_S@,$LN_S,;t t
31338 s,@CMP@,$CMP,;t t
31339 s,@CP@,$CP,;t t
31340 s,@DATE@,$DATE,;t t
31341 s,@FIND@,$FIND,;t t
31342 s,@GREP@,$GREP,;t t
31343 s,@MKDIR@,$MKDIR,;t t
31344 s,@MV@,$MV,;t t
31345 s,@RANLIB@,$RANLIB,;t t
31346 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31347 s,@RM@,$RM,;t t
31348 s,@SED@,$SED,;t t
31349 s,@TAR@,$TAR,;t t
31350 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31351 s,@GV@,$GV,;t t
31352 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31353 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31354 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31355 s,@BZIP2@,$BZIP2,;t t
31356 s,@DOT@,$DOT,;t t
31357 s,@DOXYGEN@,$DOXYGEN,;t t
31358 s,@ETAGS@,$ETAGS,;t t
31359 s,@GROFF@,$GROFF,;t t
31360 s,@GZIP@,$GZIP,;t t
31361 s,@POD2HTML@,$POD2HTML,;t t
31362 s,@POD2MAN@,$POD2MAN,;t t
31363 s,@RUNTEST@,$RUNTEST,;t t
31364 s,@TCLSH@,$TCLSH,;t t
31365 s,@ZIP@,$ZIP,;t t
31366 s,@EGREP@,$EGREP,;t t
31367 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31368 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31369 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31370 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31371 s,@LIBADD_DL@,$LIBADD_DL,;t t
31372 s,@ECHO@,$ECHO,;t t
31373 s,@AR@,$AR,;t t
31374 s,@ac_ct_AR@,$ac_ct_AR,;t t
31375 s,@STRIP@,$STRIP,;t t
31376 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31377 s,@CXXCPP@,$CXXCPP,;t t
31378 s,@F77@,$F77,;t t
31379 s,@FFLAGS@,$FFLAGS,;t t
31380 s,@ac_ct_F77@,$ac_ct_F77,;t t
31381 s,@LIBTOOL@,$LIBTOOL,;t t
31382 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31383 s,@LLVMGCC@,$LLVMGCC,;t t
31384 s,@LLVMGXX@,$LLVMGXX,;t t
31385 s,@ALLOCA@,$ALLOCA,;t t
31386 s,@MMAP_FILE@,$MMAP_FILE,;t t
31387 s,@LLVMCC1@,$LLVMCC1,;t t
31388 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31389 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31390 s,@SHLIBEXT@,$SHLIBEXT,;t t
31391 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31392 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31393 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31394 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31395 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31396 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31397 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31398 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31399 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31400 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31401 s,@LIBOBJS@,$LIBOBJS,;t t
31402 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31403 CEOF
31404
31405 _ACEOF
31406
31407   cat >>$CONFIG_STATUS <<\_ACEOF
31408   # Split the substitutions into bite-sized pieces for seds with
31409   # small command number limits, like on Digital OSF/1 and HP-UX.
31410   ac_max_sed_lines=48
31411   ac_sed_frag=1 # Number of current file.
31412   ac_beg=1 # First line for current file.
31413   ac_end=$ac_max_sed_lines # Line after last line for current file.
31414   ac_more_lines=:
31415   ac_sed_cmds=
31416   while $ac_more_lines; do
31417     if test $ac_beg -gt 1; then
31418       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31419     else
31420       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31421     fi
31422     if test ! -s $tmp/subs.frag; then
31423       ac_more_lines=false
31424     else
31425       # The purpose of the label and of the branching condition is to
31426       # speed up the sed processing (if there are no `@' at all, there
31427       # is no need to browse any of the substitutions).
31428       # These are the two extra sed commands mentioned above.
31429       (echo ':t
31430   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31431       if test -z "$ac_sed_cmds"; then
31432         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31433       else
31434         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31435       fi
31436       ac_sed_frag=`expr $ac_sed_frag + 1`
31437       ac_beg=$ac_end
31438       ac_end=`expr $ac_end + $ac_max_sed_lines`
31439     fi
31440   done
31441   if test -z "$ac_sed_cmds"; then
31442     ac_sed_cmds=cat
31443   fi
31444 fi # test -n "$CONFIG_FILES"
31445
31446 _ACEOF
31447 cat >>$CONFIG_STATUS <<\_ACEOF
31448 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31449   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31450   case $ac_file in
31451   - | *:- | *:-:* ) # input from stdin
31452         cat >$tmp/stdin
31453         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31454         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31455   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31456         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31457   * )   ac_file_in=$ac_file.in ;;
31458   esac
31459
31460   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31461   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31462 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31463          X"$ac_file" : 'X\(//\)[^/]' \| \
31464          X"$ac_file" : 'X\(//\)$' \| \
31465          X"$ac_file" : 'X\(/\)' \| \
31466          .     : '\(.\)' 2>/dev/null ||
31467 echo X"$ac_file" |
31468     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31469           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31470           /^X\(\/\/\)$/{ s//\1/; q; }
31471           /^X\(\/\).*/{ s//\1/; q; }
31472           s/.*/./; q'`
31473   { if $as_mkdir_p; then
31474     mkdir -p "$ac_dir"
31475   else
31476     as_dir="$ac_dir"
31477     as_dirs=
31478     while test ! -d "$as_dir"; do
31479       as_dirs="$as_dir $as_dirs"
31480       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31481 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31482          X"$as_dir" : 'X\(//\)[^/]' \| \
31483          X"$as_dir" : 'X\(//\)$' \| \
31484          X"$as_dir" : 'X\(/\)' \| \
31485          .     : '\(.\)' 2>/dev/null ||
31486 echo X"$as_dir" |
31487     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31488           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31489           /^X\(\/\/\)$/{ s//\1/; q; }
31490           /^X\(\/\).*/{ s//\1/; q; }
31491           s/.*/./; q'`
31492     done
31493     test ! -n "$as_dirs" || mkdir $as_dirs
31494   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31495 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31496    { (exit 1); exit 1; }; }; }
31497
31498   ac_builddir=.
31499
31500 if test "$ac_dir" != .; then
31501   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31502   # A "../" for each directory in $ac_dir_suffix.
31503   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31504 else
31505   ac_dir_suffix= ac_top_builddir=
31506 fi
31507
31508 case $srcdir in
31509   .)  # No --srcdir option.  We are building in place.
31510     ac_srcdir=.
31511     if test -z "$ac_top_builddir"; then
31512        ac_top_srcdir=.
31513     else
31514        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31515     fi ;;
31516   [\\/]* | ?:[\\/]* )  # Absolute path.
31517     ac_srcdir=$srcdir$ac_dir_suffix;
31518     ac_top_srcdir=$srcdir ;;
31519   *) # Relative path.
31520     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31521     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31522 esac
31523
31524 # Do not use `cd foo && pwd` to compute absolute paths, because
31525 # the directories may not exist.
31526 case `pwd` in
31527 .) ac_abs_builddir="$ac_dir";;
31528 *)
31529   case "$ac_dir" in
31530   .) ac_abs_builddir=`pwd`;;
31531   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31532   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31533   esac;;
31534 esac
31535 case $ac_abs_builddir in
31536 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31537 *)
31538   case ${ac_top_builddir}. in
31539   .) ac_abs_top_builddir=$ac_abs_builddir;;
31540   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31541   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31542   esac;;
31543 esac
31544 case $ac_abs_builddir in
31545 .) ac_abs_srcdir=$ac_srcdir;;
31546 *)
31547   case $ac_srcdir in
31548   .) ac_abs_srcdir=$ac_abs_builddir;;
31549   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31550   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31551   esac;;
31552 esac
31553 case $ac_abs_builddir in
31554 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31555 *)
31556   case $ac_top_srcdir in
31557   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31558   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31559   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31560   esac;;
31561 esac
31562
31563
31564   case $INSTALL in
31565   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31566   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31567   esac
31568
31569   if test x"$ac_file" != x-; then
31570     { echo "$as_me:$LINENO: creating $ac_file" >&5
31571 echo "$as_me: creating $ac_file" >&6;}
31572     rm -f "$ac_file"
31573   fi
31574   # Let's still pretend it is `configure' which instantiates (i.e., don't
31575   # use $as_me), people would be surprised to read:
31576   #    /* config.h.  Generated by config.status.  */
31577   if test x"$ac_file" = x-; then
31578     configure_input=
31579   else
31580     configure_input="$ac_file.  "
31581   fi
31582   configure_input=$configure_input"Generated from `echo $ac_file_in |
31583                                      sed 's,.*/,,'` by configure."
31584
31585   # First look for the input files in the build tree, otherwise in the
31586   # src tree.
31587   ac_file_inputs=`IFS=:
31588     for f in $ac_file_in; do
31589       case $f in
31590       -) echo $tmp/stdin ;;
31591       [\\/$]*)
31592          # Absolute (can't be DOS-style, as IFS=:)
31593          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31594 echo "$as_me: error: cannot find input file: $f" >&2;}
31595    { (exit 1); exit 1; }; }
31596          echo "$f";;
31597       *) # Relative
31598          if test -f "$f"; then
31599            # Build tree
31600            echo "$f"
31601          elif test -f "$srcdir/$f"; then
31602            # Source tree
31603            echo "$srcdir/$f"
31604          else
31605            # /dev/null tree
31606            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31607 echo "$as_me: error: cannot find input file: $f" >&2;}
31608    { (exit 1); exit 1; }; }
31609          fi;;
31610       esac
31611     done` || { (exit 1); exit 1; }
31612 _ACEOF
31613 cat >>$CONFIG_STATUS <<_ACEOF
31614   sed "$ac_vpsub
31615 $extrasub
31616 _ACEOF
31617 cat >>$CONFIG_STATUS <<\_ACEOF
31618 :t
31619 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31620 s,@configure_input@,$configure_input,;t t
31621 s,@srcdir@,$ac_srcdir,;t t
31622 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31623 s,@top_srcdir@,$ac_top_srcdir,;t t
31624 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31625 s,@builddir@,$ac_builddir,;t t
31626 s,@abs_builddir@,$ac_abs_builddir,;t t
31627 s,@top_builddir@,$ac_top_builddir,;t t
31628 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31629 s,@INSTALL@,$ac_INSTALL,;t t
31630 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31631   rm -f $tmp/stdin
31632   if test x"$ac_file" != x-; then
31633     mv $tmp/out $ac_file
31634   else
31635     cat $tmp/out
31636     rm -f $tmp/out
31637   fi
31638
31639 done
31640 _ACEOF
31641 cat >>$CONFIG_STATUS <<\_ACEOF
31642
31643 #
31644 # CONFIG_HEADER section.
31645 #
31646
31647 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31648 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31649 #
31650 # ac_d sets the value in "#define NAME VALUE" lines.
31651 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31652 ac_dB='[         ].*$,\1#\2'
31653 ac_dC=' '
31654 ac_dD=',;t'
31655 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31656 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31657 ac_uB='$,\1#\2define\3'
31658 ac_uC=' '
31659 ac_uD=',;t'
31660
31661 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31662   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31663   case $ac_file in
31664   - | *:- | *:-:* ) # input from stdin
31665         cat >$tmp/stdin
31666         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31667         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31668   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31669         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31670   * )   ac_file_in=$ac_file.in ;;
31671   esac
31672
31673   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31674 echo "$as_me: creating $ac_file" >&6;}
31675
31676   # First look for the input files in the build tree, otherwise in the
31677   # src tree.
31678   ac_file_inputs=`IFS=:
31679     for f in $ac_file_in; do
31680       case $f in
31681       -) echo $tmp/stdin ;;
31682       [\\/$]*)
31683          # Absolute (can't be DOS-style, as IFS=:)
31684          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31685 echo "$as_me: error: cannot find input file: $f" >&2;}
31686    { (exit 1); exit 1; }; }
31687          # Do quote $f, to prevent DOS paths from being IFS'd.
31688          echo "$f";;
31689       *) # Relative
31690          if test -f "$f"; then
31691            # Build tree
31692            echo "$f"
31693          elif test -f "$srcdir/$f"; then
31694            # Source tree
31695            echo "$srcdir/$f"
31696          else
31697            # /dev/null tree
31698            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31699 echo "$as_me: error: cannot find input file: $f" >&2;}
31700    { (exit 1); exit 1; }; }
31701          fi;;
31702       esac
31703     done` || { (exit 1); exit 1; }
31704   # Remove the trailing spaces.
31705   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31706
31707 _ACEOF
31708
31709 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31710 # `conftest.undefs', that substitutes the proper values into
31711 # config.h.in to produce config.h.  The first handles `#define'
31712 # templates, and the second `#undef' templates.
31713 # And first: Protect against being on the right side of a sed subst in
31714 # config.status.  Protect against being in an unquoted here document
31715 # in config.status.
31716 rm -f conftest.defines conftest.undefs
31717 # Using a here document instead of a string reduces the quoting nightmare.
31718 # Putting comments in sed scripts is not portable.
31719 #
31720 # `end' is used to avoid that the second main sed command (meant for
31721 # 0-ary CPP macros) applies to n-ary macro definitions.
31722 # See the Autoconf documentation for `clear'.
31723 cat >confdef2sed.sed <<\_ACEOF
31724 s/[\\&,]/\\&/g
31725 s,[\\$`],\\&,g
31726 t clear
31727 : clear
31728 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31729 t end
31730 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31731 : end
31732 _ACEOF
31733 # If some macros were called several times there might be several times
31734 # the same #defines, which is useless.  Nevertheless, we may not want to
31735 # sort them, since we want the *last* AC-DEFINE to be honored.
31736 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31737 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31738 rm -f confdef2sed.sed
31739
31740 # This sed command replaces #undef with comments.  This is necessary, for
31741 # example, in the case of _POSIX_SOURCE, which is predefined and required
31742 # on some systems where configure will not decide to define it.
31743 cat >>conftest.undefs <<\_ACEOF
31744 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31745 _ACEOF
31746
31747 # Break up conftest.defines because some shells have a limit on the size
31748 # of here documents, and old seds have small limits too (100 cmds).
31749 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31750 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31751 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31752 echo '  :' >>$CONFIG_STATUS
31753 rm -f conftest.tail
31754 while grep . conftest.defines >/dev/null
31755 do
31756   # Write a limited-size here document to $tmp/defines.sed.
31757   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31758   # Speed up: don't consider the non `#define' lines.
31759   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31760   # Work around the forget-to-reset-the-flag bug.
31761   echo 't clr' >>$CONFIG_STATUS
31762   echo ': clr' >>$CONFIG_STATUS
31763   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31764   echo 'CEOF
31765   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31766   rm -f $tmp/in
31767   mv $tmp/out $tmp/in
31768 ' >>$CONFIG_STATUS
31769   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31770   rm -f conftest.defines
31771   mv conftest.tail conftest.defines
31772 done
31773 rm -f conftest.defines
31774 echo '  fi # grep' >>$CONFIG_STATUS
31775 echo >>$CONFIG_STATUS
31776
31777 # Break up conftest.undefs because some shells have a limit on the size
31778 # of here documents, and old seds have small limits too (100 cmds).
31779 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31780 rm -f conftest.tail
31781 while grep . conftest.undefs >/dev/null
31782 do
31783   # Write a limited-size here document to $tmp/undefs.sed.
31784   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31785   # Speed up: don't consider the non `#undef'
31786   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31787   # Work around the forget-to-reset-the-flag bug.
31788   echo 't clr' >>$CONFIG_STATUS
31789   echo ': clr' >>$CONFIG_STATUS
31790   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31791   echo 'CEOF
31792   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31793   rm -f $tmp/in
31794   mv $tmp/out $tmp/in
31795 ' >>$CONFIG_STATUS
31796   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31797   rm -f conftest.undefs
31798   mv conftest.tail conftest.undefs
31799 done
31800 rm -f conftest.undefs
31801
31802 cat >>$CONFIG_STATUS <<\_ACEOF
31803   # Let's still pretend it is `configure' which instantiates (i.e., don't
31804   # use $as_me), people would be surprised to read:
31805   #    /* config.h.  Generated by config.status.  */
31806   if test x"$ac_file" = x-; then
31807     echo "/* Generated by configure.  */" >$tmp/config.h
31808   else
31809     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31810   fi
31811   cat $tmp/in >>$tmp/config.h
31812   rm -f $tmp/in
31813   if test x"$ac_file" != x-; then
31814     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31815       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31816 echo "$as_me: $ac_file is unchanged" >&6;}
31817     else
31818       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31819 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31820          X"$ac_file" : 'X\(//\)[^/]' \| \
31821          X"$ac_file" : 'X\(//\)$' \| \
31822          X"$ac_file" : 'X\(/\)' \| \
31823          .     : '\(.\)' 2>/dev/null ||
31824 echo X"$ac_file" |
31825     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31826           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31827           /^X\(\/\/\)$/{ s//\1/; q; }
31828           /^X\(\/\).*/{ s//\1/; q; }
31829           s/.*/./; q'`
31830       { if $as_mkdir_p; then
31831     mkdir -p "$ac_dir"
31832   else
31833     as_dir="$ac_dir"
31834     as_dirs=
31835     while test ! -d "$as_dir"; do
31836       as_dirs="$as_dir $as_dirs"
31837       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31839          X"$as_dir" : 'X\(//\)[^/]' \| \
31840          X"$as_dir" : 'X\(//\)$' \| \
31841          X"$as_dir" : 'X\(/\)' \| \
31842          .     : '\(.\)' 2>/dev/null ||
31843 echo X"$as_dir" |
31844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31845           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31846           /^X\(\/\/\)$/{ s//\1/; q; }
31847           /^X\(\/\).*/{ s//\1/; q; }
31848           s/.*/./; q'`
31849     done
31850     test ! -n "$as_dirs" || mkdir $as_dirs
31851   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31852 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31853    { (exit 1); exit 1; }; }; }
31854
31855       rm -f $ac_file
31856       mv $tmp/config.h $ac_file
31857     fi
31858   else
31859     cat $tmp/config.h
31860     rm -f $tmp/config.h
31861   fi
31862 done
31863 _ACEOF
31864 cat >>$CONFIG_STATUS <<\_ACEOF
31865
31866 #
31867 # CONFIG_COMMANDS section.
31868 #
31869 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31870   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31871   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31872   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31873 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31874          X"$ac_dest" : 'X\(//\)[^/]' \| \
31875          X"$ac_dest" : 'X\(//\)$' \| \
31876          X"$ac_dest" : 'X\(/\)' \| \
31877          .     : '\(.\)' 2>/dev/null ||
31878 echo X"$ac_dest" |
31879     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31880           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31881           /^X\(\/\/\)$/{ s//\1/; q; }
31882           /^X\(\/\).*/{ s//\1/; q; }
31883           s/.*/./; q'`
31884   { if $as_mkdir_p; then
31885     mkdir -p "$ac_dir"
31886   else
31887     as_dir="$ac_dir"
31888     as_dirs=
31889     while test ! -d "$as_dir"; do
31890       as_dirs="$as_dir $as_dirs"
31891       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31892 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31893          X"$as_dir" : 'X\(//\)[^/]' \| \
31894          X"$as_dir" : 'X\(//\)$' \| \
31895          X"$as_dir" : 'X\(/\)' \| \
31896          .     : '\(.\)' 2>/dev/null ||
31897 echo X"$as_dir" |
31898     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31899           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31900           /^X\(\/\/\)$/{ s//\1/; q; }
31901           /^X\(\/\).*/{ s//\1/; q; }
31902           s/.*/./; q'`
31903     done
31904     test ! -n "$as_dirs" || mkdir $as_dirs
31905   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31906 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31907    { (exit 1); exit 1; }; }; }
31908
31909   ac_builddir=.
31910
31911 if test "$ac_dir" != .; then
31912   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31913   # A "../" for each directory in $ac_dir_suffix.
31914   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31915 else
31916   ac_dir_suffix= ac_top_builddir=
31917 fi
31918
31919 case $srcdir in
31920   .)  # No --srcdir option.  We are building in place.
31921     ac_srcdir=.
31922     if test -z "$ac_top_builddir"; then
31923        ac_top_srcdir=.
31924     else
31925        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31926     fi ;;
31927   [\\/]* | ?:[\\/]* )  # Absolute path.
31928     ac_srcdir=$srcdir$ac_dir_suffix;
31929     ac_top_srcdir=$srcdir ;;
31930   *) # Relative path.
31931     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31932     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31933 esac
31934
31935 # Do not use `cd foo && pwd` to compute absolute paths, because
31936 # the directories may not exist.
31937 case `pwd` in
31938 .) ac_abs_builddir="$ac_dir";;
31939 *)
31940   case "$ac_dir" in
31941   .) ac_abs_builddir=`pwd`;;
31942   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31943   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31944   esac;;
31945 esac
31946 case $ac_abs_builddir in
31947 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31948 *)
31949   case ${ac_top_builddir}. in
31950   .) ac_abs_top_builddir=$ac_abs_builddir;;
31951   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31952   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31953   esac;;
31954 esac
31955 case $ac_abs_builddir in
31956 .) ac_abs_srcdir=$ac_srcdir;;
31957 *)
31958   case $ac_srcdir in
31959   .) ac_abs_srcdir=$ac_abs_builddir;;
31960   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31961   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31962   esac;;
31963 esac
31964 case $ac_abs_builddir in
31965 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31966 *)
31967   case $ac_top_srcdir in
31968   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31969   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31970   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31971   esac;;
31972 esac
31973
31974
31975   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31976 echo "$as_me: executing $ac_dest commands" >&6;}
31977   case $ac_dest in
31978     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31979    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31980     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31981    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31982     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31983    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31984     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31985    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31986     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31987    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31988     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31989    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31990     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31991    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31992     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31993    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31994     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31995    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31996     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31997    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31998   esac
31999 done
32000 _ACEOF
32001
32002 cat >>$CONFIG_STATUS <<\_ACEOF
32003
32004 { (exit 0); exit 0; }
32005 _ACEOF
32006 chmod +x $CONFIG_STATUS
32007 ac_clean_files=$ac_clean_files_save
32008
32009
32010 # configure is writing to config.log, and then calls config.status.
32011 # config.status does its own redirection, appending to config.log.
32012 # Unfortunately, on DOS this fails, as config.log is still kept open
32013 # by configure, so config.status won't be able to write to it; its
32014 # output is simply discarded.  So we exec the FD to /dev/null,
32015 # effectively closing config.log, so it can be properly (re)opened and
32016 # appended to by config.status.  When coming back to configure, we
32017 # need to make the FD available again.
32018 if test "$no_create" != yes; then
32019   ac_cs_success=:
32020   ac_config_status_args=
32021   test "$silent" = yes &&
32022     ac_config_status_args="$ac_config_status_args --quiet"
32023   exec 5>/dev/null
32024   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32025   exec 5>>config.log
32026   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32027   # would make configure fail if this is the last instruction.
32028   $ac_cs_success || { (exit 1); exit 1; }
32029 fi
32030
32031 #
32032 # CONFIG_SUBDIRS section.
32033 #
32034 if test "$no_recursion" != yes; then
32035
32036   # Remove --cache-file and --srcdir arguments so they do not pile up.
32037   ac_sub_configure_args=
32038   ac_prev=
32039   for ac_arg in $ac_configure_args; do
32040     if test -n "$ac_prev"; then
32041       ac_prev=
32042       continue
32043     fi
32044     case $ac_arg in
32045     -cache-file | --cache-file | --cache-fil | --cache-fi \
32046     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32047       ac_prev=cache_file ;;
32048     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32049     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32050     | --c=*)
32051       ;;
32052     --config-cache | -C)
32053       ;;
32054     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32055       ac_prev=srcdir ;;
32056     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32057       ;;
32058     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32059       ac_prev=prefix ;;
32060     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32061       ;;
32062     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32063     esac
32064   done
32065
32066   # Always prepend --prefix to ensure using the same prefix
32067   # in subdir configurations.
32068   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32069
32070   ac_popdir=`pwd`
32071   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32072
32073     # Do not complain, so a configure script can configure whichever
32074     # parts of a large source tree are present.
32075     test -d $srcdir/$ac_dir || continue
32076
32077     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32078 echo "$as_me: configuring in $ac_dir" >&6;}
32079     { if $as_mkdir_p; then
32080     mkdir -p "$ac_dir"
32081   else
32082     as_dir="$ac_dir"
32083     as_dirs=
32084     while test ! -d "$as_dir"; do
32085       as_dirs="$as_dir $as_dirs"
32086       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32088          X"$as_dir" : 'X\(//\)[^/]' \| \
32089          X"$as_dir" : 'X\(//\)$' \| \
32090          X"$as_dir" : 'X\(/\)' \| \
32091          .     : '\(.\)' 2>/dev/null ||
32092 echo X"$as_dir" |
32093     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32094           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32095           /^X\(\/\/\)$/{ s//\1/; q; }
32096           /^X\(\/\).*/{ s//\1/; q; }
32097           s/.*/./; q'`
32098     done
32099     test ! -n "$as_dirs" || mkdir $as_dirs
32100   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32101 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32102    { (exit 1); exit 1; }; }; }
32103
32104     ac_builddir=.
32105
32106 if test "$ac_dir" != .; then
32107   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32108   # A "../" for each directory in $ac_dir_suffix.
32109   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32110 else
32111   ac_dir_suffix= ac_top_builddir=
32112 fi
32113
32114 case $srcdir in
32115   .)  # No --srcdir option.  We are building in place.
32116     ac_srcdir=.
32117     if test -z "$ac_top_builddir"; then
32118        ac_top_srcdir=.
32119     else
32120        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32121     fi ;;
32122   [\\/]* | ?:[\\/]* )  # Absolute path.
32123     ac_srcdir=$srcdir$ac_dir_suffix;
32124     ac_top_srcdir=$srcdir ;;
32125   *) # Relative path.
32126     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32127     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32128 esac
32129
32130 # Do not use `cd foo && pwd` to compute absolute paths, because
32131 # the directories may not exist.
32132 case `pwd` in
32133 .) ac_abs_builddir="$ac_dir";;
32134 *)
32135   case "$ac_dir" in
32136   .) ac_abs_builddir=`pwd`;;
32137   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32138   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32139   esac;;
32140 esac
32141 case $ac_abs_builddir in
32142 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32143 *)
32144   case ${ac_top_builddir}. in
32145   .) ac_abs_top_builddir=$ac_abs_builddir;;
32146   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32147   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32148   esac;;
32149 esac
32150 case $ac_abs_builddir in
32151 .) ac_abs_srcdir=$ac_srcdir;;
32152 *)
32153   case $ac_srcdir in
32154   .) ac_abs_srcdir=$ac_abs_builddir;;
32155   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32156   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32157   esac;;
32158 esac
32159 case $ac_abs_builddir in
32160 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32161 *)
32162   case $ac_top_srcdir in
32163   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32164   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32165   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32166   esac;;
32167 esac
32168
32169
32170     cd $ac_dir
32171
32172     # Check for guested configure; otherwise get Cygnus style configure.
32173     if test -f $ac_srcdir/configure.gnu; then
32174       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32175     elif test -f $ac_srcdir/configure; then
32176       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32177     elif test -f $ac_srcdir/configure.in; then
32178       ac_sub_configure=$ac_configure
32179     else
32180       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32181 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32182       ac_sub_configure=
32183     fi
32184
32185     # The recursion is here.
32186     if test -n "$ac_sub_configure"; then
32187       # Make the cache file name correct relative to the subdirectory.
32188       case $cache_file in
32189       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32190       *) # Relative path.
32191         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32192       esac
32193
32194       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32195 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32196       # The eval makes quoting arguments work.
32197       eval $ac_sub_configure $ac_sub_configure_args \
32198            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32199         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32200 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32201    { (exit 1); exit 1; }; }
32202     fi
32203
32204     cd $ac_popdir
32205   done
32206 fi
32207
32208
32209 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32210  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32211 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32212  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32213 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32214  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32215 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32216  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32217 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32218  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32219 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32220 fi