Provide support for detecting if the Win32 imaghlp and psapi libraries
[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.8cvs.
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 # Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
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.8cvs'
429 PACKAGE_STRING='llvm 1.8cvs'
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 ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
444 #include <stdio.h>
445 #if HAVE_SYS_TYPES_H
446 # include <sys/types.h>
447 #endif
448 #if HAVE_SYS_STAT_H
449 # include <sys/stat.h>
450 #endif
451 #if STDC_HEADERS
452 # include <stdlib.h>
453 # include <stddef.h>
454 #else
455 # if HAVE_STDLIB_H
456 #  include <stdlib.h>
457 # endif
458 #endif
459 #if HAVE_STRING_H
460 # if !STDC_HEADERS && HAVE_MEMORY_H
461 #  include <memory.h>
462 # endif
463 # include <string.h>
464 #endif
465 #if HAVE_STRINGS_H
466 # include <strings.h>
467 #endif
468 #if HAVE_INTTYPES_H
469 # include <inttypes.h>
470 #else
471 # if HAVE_STDINT_H
472 #  include <stdint.h>
473 # endif
474 #endif
475 #if HAVE_UNISTD_H
476 # include <unistd.h>
477 #endif"
478
479 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 CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS 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 PERL HAVE_PERL 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 LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
480 ac_subst_files=''
481
482 # Initialize some variables set by options.
483 ac_init_help=
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
487 cache_file=/dev/null
488 exec_prefix=NONE
489 no_create=
490 no_recursion=
491 prefix=NONE
492 program_prefix=NONE
493 program_suffix=NONE
494 program_transform_name=s,x,x,
495 silent=
496 site=
497 srcdir=
498 verbose=
499 x_includes=NONE
500 x_libraries=NONE
501
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
519
520 ac_prev=
521 for ac_option
522 do
523   # If the previous option needs an argument, assign it.
524   if test -n "$ac_prev"; then
525     eval "$ac_prev=\$ac_option"
526     ac_prev=
527     continue
528   fi
529
530   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532   # Accept the important Cygnus configure options, so we can diagnose typos.
533
534   case $ac_option in
535
536   -bindir | --bindir | --bindi | --bind | --bin | --bi)
537     ac_prev=bindir ;;
538   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539     bindir=$ac_optarg ;;
540
541   -build | --build | --buil | --bui | --bu)
542     ac_prev=build_alias ;;
543   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544     build_alias=$ac_optarg ;;
545
546   -cache-file | --cache-file | --cache-fil | --cache-fi \
547   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548     ac_prev=cache_file ;;
549   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551     cache_file=$ac_optarg ;;
552
553   --config-cache | -C)
554     cache_file=config.cache ;;
555
556   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557     ac_prev=datadir ;;
558   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559   | --da=*)
560     datadir=$ac_optarg ;;
561
562   -disable-* | --disable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     eval "enable_$ac_feature=no" ;;
570
571   -enable-* | --enable-*)
572     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576    { (exit 1); exit 1; }; }
577     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "enable_$ac_feature='$ac_optarg'" ;;
583
584   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586   | --exec | --exe | --ex)
587     ac_prev=exec_prefix ;;
588   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590   | --exec=* | --exe=* | --ex=*)
591     exec_prefix=$ac_optarg ;;
592
593   -gas | --gas | --ga | --g)
594     # Obsolete; use --with-gas.
595     with_gas=yes ;;
596
597   -help | --help | --hel | --he | -h)
598     ac_init_help=long ;;
599   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600     ac_init_help=recursive ;;
601   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602     ac_init_help=short ;;
603
604   -host | --host | --hos | --ho)
605     ac_prev=host_alias ;;
606   -host=* | --host=* | --hos=* | --ho=*)
607     host_alias=$ac_optarg ;;
608
609   -includedir | --includedir | --includedi | --included | --include \
610   | --includ | --inclu | --incl | --inc)
611     ac_prev=includedir ;;
612   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613   | --includ=* | --inclu=* | --incl=* | --inc=*)
614     includedir=$ac_optarg ;;
615
616   -infodir | --infodir | --infodi | --infod | --info | --inf)
617     ac_prev=infodir ;;
618   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619     infodir=$ac_optarg ;;
620
621   -libdir | --libdir | --libdi | --libd)
622     ac_prev=libdir ;;
623   -libdir=* | --libdir=* | --libdi=* | --libd=*)
624     libdir=$ac_optarg ;;
625
626   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627   | --libexe | --libex | --libe)
628     ac_prev=libexecdir ;;
629   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630   | --libexe=* | --libex=* | --libe=*)
631     libexecdir=$ac_optarg ;;
632
633   -localstatedir | --localstatedir | --localstatedi | --localstated \
634   | --localstate | --localstat | --localsta | --localst \
635   | --locals | --local | --loca | --loc | --lo)
636     ac_prev=localstatedir ;;
637   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640     localstatedir=$ac_optarg ;;
641
642   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643     ac_prev=mandir ;;
644   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645     mandir=$ac_optarg ;;
646
647   -nfp | --nfp | --nf)
648     # Obsolete; use --without-fp.
649     with_fp=no ;;
650
651   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652   | --no-cr | --no-c | -n)
653     no_create=yes ;;
654
655   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657     no_recursion=yes ;;
658
659   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661   | --oldin | --oldi | --old | --ol | --o)
662     ac_prev=oldincludedir ;;
663   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666     oldincludedir=$ac_optarg ;;
667
668   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669     ac_prev=prefix ;;
670   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671     prefix=$ac_optarg ;;
672
673   -program-prefix | --program-prefix | --program-prefi | --program-pref \
674   | --program-pre | --program-pr | --program-p)
675     ac_prev=program_prefix ;;
676   -program-prefix=* | --program-prefix=* | --program-prefi=* \
677   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678     program_prefix=$ac_optarg ;;
679
680   -program-suffix | --program-suffix | --program-suffi | --program-suff \
681   | --program-suf | --program-su | --program-s)
682     ac_prev=program_suffix ;;
683   -program-suffix=* | --program-suffix=* | --program-suffi=* \
684   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685     program_suffix=$ac_optarg ;;
686
687   -program-transform-name | --program-transform-name \
688   | --program-transform-nam | --program-transform-na \
689   | --program-transform-n | --program-transform- \
690   | --program-transform | --program-transfor \
691   | --program-transfo | --program-transf \
692   | --program-trans | --program-tran \
693   | --progr-tra | --program-tr | --program-t)
694     ac_prev=program_transform_name ;;
695   -program-transform-name=* | --program-transform-name=* \
696   | --program-transform-nam=* | --program-transform-na=* \
697   | --program-transform-n=* | --program-transform-=* \
698   | --program-transform=* | --program-transfor=* \
699   | --program-transfo=* | --program-transf=* \
700   | --program-trans=* | --program-tran=* \
701   | --progr-tra=* | --program-tr=* | --program-t=*)
702     program_transform_name=$ac_optarg ;;
703
704   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705   | -silent | --silent | --silen | --sile | --sil)
706     silent=yes ;;
707
708   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709     ac_prev=sbindir ;;
710   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711   | --sbi=* | --sb=*)
712     sbindir=$ac_optarg ;;
713
714   -sharedstatedir | --sharedstatedir | --sharedstatedi \
715   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716   | --sharedst | --shareds | --shared | --share | --shar \
717   | --sha | --sh)
718     ac_prev=sharedstatedir ;;
719   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722   | --sha=* | --sh=*)
723     sharedstatedir=$ac_optarg ;;
724
725   -site | --site | --sit)
726     ac_prev=site ;;
727   -site=* | --site=* | --sit=*)
728     site=$ac_optarg ;;
729
730   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731     ac_prev=srcdir ;;
732   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733     srcdir=$ac_optarg ;;
734
735   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736   | --syscon | --sysco | --sysc | --sys | --sy)
737     ac_prev=sysconfdir ;;
738   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740     sysconfdir=$ac_optarg ;;
741
742   -target | --target | --targe | --targ | --tar | --ta | --t)
743     ac_prev=target_alias ;;
744   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745     target_alias=$ac_optarg ;;
746
747   -v | -verbose | --verbose | --verbos | --verbo | --verb)
748     verbose=yes ;;
749
750   -version | --version | --versio | --versi | --vers | -V)
751     ac_init_version=: ;;
752
753   -with-* | --with-*)
754     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package| sed 's/-/_/g'`
760     case $ac_option in
761       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762       *) ac_optarg=yes ;;
763     esac
764     eval "with_$ac_package='$ac_optarg'" ;;
765
766   -without-* | --without-*)
767     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768     # Reject names that are not valid shell variable names.
769     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770       { echo "$as_me: error: invalid package name: $ac_package" >&2
771    { (exit 1); exit 1; }; }
772     ac_package=`echo $ac_package | sed 's/-/_/g'`
773     eval "with_$ac_package=no" ;;
774
775   --x)
776     # Obsolete; use --with-x.
777     with_x=yes ;;
778
779   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780   | --x-incl | --x-inc | --x-in | --x-i)
781     ac_prev=x_includes ;;
782   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784     x_includes=$ac_optarg ;;
785
786   -x-libraries | --x-libraries | --x-librarie | --x-librari \
787   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788     ac_prev=x_libraries ;;
789   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791     x_libraries=$ac_optarg ;;
792
793   -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795    { (exit 1); exit 1; }; }
796     ;;
797
798   *=*)
799     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800     # Reject names that are not valid shell variable names.
801     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803    { (exit 1); exit 1; }; }
804     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805     eval "$ac_envvar='$ac_optarg'"
806     export $ac_envvar ;;
807
808   *)
809     # FIXME: should be removed in autoconf 3.0.
810     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814     ;;
815
816   esac
817 done
818
819 if test -n "$ac_prev"; then
820   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821   { echo "$as_me: error: missing argument to $ac_option" >&2
822    { (exit 1); exit 1; }; }
823 fi
824
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838               localstatedir libdir includedir oldincludedir infodir mandir
839 do
840   eval ac_val=$`echo $ac_var`
841   case $ac_val in
842     [\\/$]* | ?:[\\/]* ) ;;
843     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844    { (exit 1); exit 1; }; };;
845   esac
846 done
847
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
851 build=$build_alias
852 host=$host_alias
853 target=$target_alias
854
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857   if test "x$build_alias" = x; then
858     cross_compiling=maybe
859     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860     If a cross compiler is detected then cross compile mode will be used." >&2
861   elif test "x$build_alias" != "x$host_alias"; then
862     cross_compiling=yes
863   fi
864 fi
865
866 ac_tool_prefix=
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869 test "$silent" = yes && exec 6>/dev/null
870
871
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874   ac_srcdir_defaulted=yes
875   # Try the directory containing this script, then its parent.
876   ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878          X"$0" : 'X\(//\)[^/]' \| \
879          X"$0" : 'X\(//\)$' \| \
880          X"$0" : 'X\(/\)' \| \
881          .     : '\(.\)' 2>/dev/null ||
882 echo X"$0" |
883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885           /^X\(\/\/\)$/{ s//\1/; q; }
886           /^X\(\/\).*/{ s//\1/; q; }
887           s/.*/./; q'`
888   srcdir=$ac_confdir
889   if test ! -r $srcdir/$ac_unique_file; then
890     srcdir=..
891   fi
892 else
893   ac_srcdir_defaulted=no
894 fi
895 if test ! -r $srcdir/$ac_unique_file; then
896   if test "$ac_srcdir_defaulted" = yes; then
897     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898    { (exit 1); exit 1; }; }
899   else
900     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901    { (exit 1); exit 1; }; }
902   fi
903 fi
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906    { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
921 ac_env_CC_value=$CC
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
960
961 #
962 # Report the --help message.
963 #
964 if test "$ac_init_help" = "long"; then
965   # Omit some internal or obsolete options to make the list less imposing.
966   # This message is too long to be a string in the A/UX 3.1 sh.
967   cat <<_ACEOF
968 \`configure' configures llvm 1.8cvs to adapt to many kinds of systems.
969
970 Usage: $0 [OPTION]... [VAR=VALUE]...
971
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE.  See below for descriptions of some of the useful variables.
974
975 Defaults for the options are specified in brackets.
976
977 Configuration:
978   -h, --help              display this help and exit
979       --help=short        display options specific to this package
980       --help=recursive    display the short help of all the included packages
981   -V, --version           display version information and exit
982   -q, --quiet, --silent   do not print \`checking...' messages
983       --cache-file=FILE   cache test results in FILE [disabled]
984   -C, --config-cache      alias for \`--cache-file=config.cache'
985   -n, --no-create         do not create output files
986       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
987
988 _ACEOF
989
990   cat <<_ACEOF
991 Installation directories:
992   --prefix=PREFIX         install architecture-independent files in PREFIX
993                           [$ac_default_prefix]
994   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
995                           [PREFIX]
996
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1001
1002 For better control, use the options below.
1003
1004 Fine tuning of the installation directories:
1005   --bindir=DIR           user executables [EPREFIX/bin]
1006   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1007   --libexecdir=DIR       program executables [EPREFIX/libexec]
1008   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1009   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1010   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1011   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1012   --libdir=DIR           object code libraries [EPREFIX/lib]
1013   --includedir=DIR       C header files [PREFIX/include]
1014   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1015   --infodir=DIR          info documentation [PREFIX/info]
1016   --mandir=DIR           man documentation [PREFIX/man]
1017 _ACEOF
1018
1019   cat <<\_ACEOF
1020
1021 System types:
1022   --build=BUILD     configure for building on BUILD [guessed]
1023   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1024   --target=TARGET   configure for building compilers for TARGET [HOST]
1025 _ACEOF
1026 fi
1027
1028 if test -n "$ac_init_help"; then
1029   case $ac_init_help in
1030      short | recursive ) echo "Configuration of llvm 1.8cvs:";;
1031    esac
1032   cat <<\_ACEOF
1033
1034 Optional Features:
1035   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1036   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1037   --enable-optimized
1038   --enable-assertions
1039   --enable-debug-runtime
1040   --enable-jit            Enable Just In Time Compiling (default is YES)
1041   --enable-doxygen        Build doxygen documentation (default is NO)
1042   --enable-threads        Use threads if available (default is YES)
1043   --enable-target         Build specific host targets:
1044                           all,host-only,{target-name} (default=all)
1045   --enable-ltdl-install   install libltdl
1046   --enable-shared[=PKGS]
1047                           build shared libraries [default=yes]
1048   --enable-static[=PKGS]
1049                           build static libraries [default=yes]
1050   --enable-fast-install[=PKGS]
1051                           optimize for fast installation [default=yes]
1052   --disable-libtool-lock  avoid locking (might break parallel builds)
1053
1054 Optional Packages:
1055   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1056   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1057   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1058                           searches PATH)
1059   --with-tclinclude       directory where tcl headers are
1060   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1061   --with-pic              try to use only PIC/non-PIC objects [default=use
1062                           both]
1063   --with-tags[=TAGS]
1064                           include additional configurations [automatic]
1065
1066 Some influential environment variables:
1067   CC          C compiler command
1068   CFLAGS      C compiler flags
1069   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1070               nonstandard directory <lib dir>
1071   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072               headers in a nonstandard directory <include dir>
1073   CPP         C preprocessor
1074   CXX         C++ compiler command
1075   CXXFLAGS    C++ compiler flags
1076   CXXCPP      C++ preprocessor
1077   F77         Fortran 77 compiler command
1078   FFLAGS      Fortran 77 compiler flags
1079
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1082
1083 Report bugs to <llvmbugs@cs.uiuc.edu>.
1084 _ACEOF
1085 fi
1086
1087 if test "$ac_init_help" = "recursive"; then
1088   # If there are subdirs, report their specific --help.
1089   ac_popdir=`pwd`
1090   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091     test -d $ac_dir || continue
1092     ac_builddir=.
1093
1094 if test "$ac_dir" != .; then
1095   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096   # A "../" for each directory in $ac_dir_suffix.
1097   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1098 else
1099   ac_dir_suffix= ac_top_builddir=
1100 fi
1101
1102 case $srcdir in
1103   .)  # No --srcdir option.  We are building in place.
1104     ac_srcdir=.
1105     if test -z "$ac_top_builddir"; then
1106        ac_top_srcdir=.
1107     else
1108        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109     fi ;;
1110   [\\/]* | ?:[\\/]* )  # Absolute path.
1111     ac_srcdir=$srcdir$ac_dir_suffix;
1112     ac_top_srcdir=$srcdir ;;
1113   *) # Relative path.
1114     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1116 esac
1117
1118 # Do not use `cd foo && pwd` to compute absolute paths, because
1119 # the directories may not exist.
1120 case `pwd` in
1121 .) ac_abs_builddir="$ac_dir";;
1122 *)
1123   case "$ac_dir" in
1124   .) ac_abs_builddir=`pwd`;;
1125   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1127   esac;;
1128 esac
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *)
1132   case ${ac_top_builddir}. in
1133   .) ac_abs_top_builddir=$ac_abs_builddir;;
1134   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1136   esac;;
1137 esac
1138 case $ac_abs_builddir in
1139 .) ac_abs_srcdir=$ac_srcdir;;
1140 *)
1141   case $ac_srcdir in
1142   .) ac_abs_srcdir=$ac_abs_builddir;;
1143   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1145   esac;;
1146 esac
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *)
1150   case $ac_top_srcdir in
1151   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154   esac;;
1155 esac
1156
1157     cd $ac_dir
1158     # Check for guested configure; otherwise get Cygnus style configure.
1159     if test -f $ac_srcdir/configure.gnu; then
1160       echo
1161       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1162     elif test -f $ac_srcdir/configure; then
1163       echo
1164       $SHELL $ac_srcdir/configure  --help=recursive
1165     elif test -f $ac_srcdir/configure.ac ||
1166            test -f $ac_srcdir/configure.in; then
1167       echo
1168       $ac_configure --help
1169     else
1170       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171     fi
1172     cd $ac_popdir
1173   done
1174 fi
1175
1176 test -n "$ac_init_help" && exit 0
1177 if $ac_init_version; then
1178   cat <<\_ACEOF
1179 llvm configure 1.8cvs
1180 generated by GNU Autoconf 2.59
1181
1182 Copyright (C) 2003 Free Software Foundation, Inc.
1183 This configure script is free software; the Free Software Foundation
1184 gives unlimited permission to copy, distribute and modify it.
1185
1186 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1187 _ACEOF
1188   exit 0
1189 fi
1190 exec 5>config.log
1191 cat >&5 <<_ACEOF
1192 This file contains any messages produced by compilers while
1193 running configure, to aid debugging if configure makes a mistake.
1194
1195 It was created by llvm $as_me 1.8cvs, which was
1196 generated by GNU Autoconf 2.59.  Invocation command line was
1197
1198   $ $0 $@
1199
1200 _ACEOF
1201 {
1202 cat <<_ASUNAME
1203 ## --------- ##
1204 ## Platform. ##
1205 ## --------- ##
1206
1207 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1212
1213 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1215
1216 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1217 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1220 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1221 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1222 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1223
1224 _ASUNAME
1225
1226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1227 for as_dir in $PATH
1228 do
1229   IFS=$as_save_IFS
1230   test -z "$as_dir" && as_dir=.
1231   echo "PATH: $as_dir"
1232 done
1233
1234 } >&5
1235
1236 cat >&5 <<_ACEOF
1237
1238
1239 ## ----------- ##
1240 ## Core tests. ##
1241 ## ----------- ##
1242
1243 _ACEOF
1244
1245
1246 # Keep a trace of the command line.
1247 # Strip out --no-create and --no-recursion so they do not pile up.
1248 # Strip out --silent because we don't want to record it for future runs.
1249 # Also quote any args containing shell meta-characters.
1250 # Make two passes to allow for proper duplicate-argument suppression.
1251 ac_configure_args=
1252 ac_configure_args0=
1253 ac_configure_args1=
1254 ac_sep=
1255 ac_must_keep_next=false
1256 for ac_pass in 1 2
1257 do
1258   for ac_arg
1259   do
1260     case $ac_arg in
1261     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263     | -silent | --silent | --silen | --sile | --sil)
1264       continue ;;
1265     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267     esac
1268     case $ac_pass in
1269     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1270     2)
1271       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272       if test $ac_must_keep_next = true; then
1273         ac_must_keep_next=false # Got value, back to normal.
1274       else
1275         case $ac_arg in
1276           *=* | --config-cache | -C | -disable-* | --disable-* \
1277           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279           | -with-* | --with-* | -without-* | --without-* | --x)
1280             case "$ac_configure_args0 " in
1281               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282             esac
1283             ;;
1284           -* ) ac_must_keep_next=true ;;
1285         esac
1286       fi
1287       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288       # Get rid of the leading space.
1289       ac_sep=" "
1290       ;;
1291     esac
1292   done
1293 done
1294 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1296
1297 # When interrupted or exit'd, cleanup temporary files, and complete
1298 # config.log.  We remove comments because anyway the quotes in there
1299 # would cause problems or look ugly.
1300 # WARNING: Be sure not to use single quotes in there, as some shells,
1301 # such as our DU 5.0 friend, will then `close' the trap.
1302 trap 'exit_status=$?
1303   # Save into config.log some information that might help in debugging.
1304   {
1305     echo
1306
1307     cat <<\_ASBOX
1308 ## ---------------- ##
1309 ## Cache variables. ##
1310 ## ---------------- ##
1311 _ASBOX
1312     echo
1313     # The following way of writing the cache mishandles newlines in values,
1314 {
1315   (set) 2>&1 |
1316     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317     *ac_space=\ *)
1318       sed -n \
1319         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1321       ;;
1322     *)
1323       sed -n \
1324         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1325       ;;
1326     esac;
1327 }
1328     echo
1329
1330     cat <<\_ASBOX
1331 ## ----------------- ##
1332 ## Output variables. ##
1333 ## ----------------- ##
1334 _ASBOX
1335     echo
1336     for ac_var in $ac_subst_vars
1337     do
1338       eval ac_val=$`echo $ac_var`
1339       echo "$ac_var='"'"'$ac_val'"'"'"
1340     done | sort
1341     echo
1342
1343     if test -n "$ac_subst_files"; then
1344       cat <<\_ASBOX
1345 ## ------------- ##
1346 ## Output files. ##
1347 ## ------------- ##
1348 _ASBOX
1349       echo
1350       for ac_var in $ac_subst_files
1351       do
1352         eval ac_val=$`echo $ac_var`
1353         echo "$ac_var='"'"'$ac_val'"'"'"
1354       done | sort
1355       echo
1356     fi
1357
1358     if test -s confdefs.h; then
1359       cat <<\_ASBOX
1360 ## ----------- ##
1361 ## confdefs.h. ##
1362 ## ----------- ##
1363 _ASBOX
1364       echo
1365       sed "/^$/d" confdefs.h | sort
1366       echo
1367     fi
1368     test "$ac_signal" != 0 &&
1369       echo "$as_me: caught signal $ac_signal"
1370     echo "$as_me: exit $exit_status"
1371   } >&5
1372   rm -f core *.core &&
1373   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374     exit $exit_status
1375      ' 0
1376 for ac_signal in 1 2 13 15; do
1377   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1378 done
1379 ac_signal=0
1380
1381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1382 rm -rf conftest* confdefs.h
1383 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384 echo >confdefs.h
1385
1386 # Predefined preprocessor variables.
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_NAME "$PACKAGE_NAME"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_STRING "$PACKAGE_STRING"
1405 _ACEOF
1406
1407
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1410 _ACEOF
1411
1412
1413 # Let the site file select an alternate cache file if it wants to.
1414 # Prefer explicitly selected file to automatically selected ones.
1415 if test -z "$CONFIG_SITE"; then
1416   if test "x$prefix" != xNONE; then
1417     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1418   else
1419     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420   fi
1421 fi
1422 for ac_site_file in $CONFIG_SITE; do
1423   if test -r "$ac_site_file"; then
1424     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425 echo "$as_me: loading site script $ac_site_file" >&6;}
1426     sed 's/^/| /' "$ac_site_file" >&5
1427     . "$ac_site_file"
1428   fi
1429 done
1430
1431 if test -r "$cache_file"; then
1432   # Some versions of bash will fail to source /dev/null (special
1433   # files actually), so we avoid doing that.
1434   if test -f "$cache_file"; then
1435     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436 echo "$as_me: loading cache $cache_file" >&6;}
1437     case $cache_file in
1438       [\\/]* | ?:[\\/]* ) . $cache_file;;
1439       *)                      . ./$cache_file;;
1440     esac
1441   fi
1442 else
1443   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444 echo "$as_me: creating cache $cache_file" >&6;}
1445   >$cache_file
1446 fi
1447
1448 # Check that the precious variables saved in the cache have kept the same
1449 # value.
1450 ac_cache_corrupted=false
1451 for ac_var in `(set) 2>&1 |
1452                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1453   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454   eval ac_new_set=\$ac_env_${ac_var}_set
1455   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456   eval ac_new_val="\$ac_env_${ac_var}_value"
1457   case $ac_old_set,$ac_new_set in
1458     set,)
1459       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461       ac_cache_corrupted=: ;;
1462     ,set)
1463       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465       ac_cache_corrupted=: ;;
1466     ,);;
1467     *)
1468       if test "x$ac_old_val" != "x$ac_new_val"; then
1469         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1470 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1471         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1472 echo "$as_me:   former value:  $ac_old_val" >&2;}
1473         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1474 echo "$as_me:   current value: $ac_new_val" >&2;}
1475         ac_cache_corrupted=:
1476       fi;;
1477   esac
1478   # Pass precious variables to config.status.
1479   if test "$ac_new_set" = set; then
1480     case $ac_new_val in
1481     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483     *) ac_arg=$ac_var=$ac_new_val ;;
1484     esac
1485     case " $ac_configure_args " in
1486       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1487       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1488     esac
1489   fi
1490 done
1491 if $ac_cache_corrupted; then
1492   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496    { (exit 1); exit 1; }; }
1497 fi
1498
1499 ac_ext=c
1500 ac_cpp='$CPP $CPPFLAGS'
1501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1529
1530
1531
1532 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1533
1534
1535
1536
1537
1538
1539
1540 ac_aux_dir=
1541 for ac_dir in autoconf $srcdir/autoconf; do
1542   if 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/install.sh; then
1547     ac_aux_dir=$ac_dir
1548     ac_install_sh="$ac_aux_dir/install.sh -c"
1549     break
1550   elif test -f $ac_dir/shtool; then
1551     ac_aux_dir=$ac_dir
1552     ac_install_sh="$ac_aux_dir/shtool install -c"
1553     break
1554   fi
1555 done
1556 if test -z "$ac_aux_dir"; then
1557   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1558 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1559    { (exit 1); exit 1; }; }
1560 fi
1561 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1564
1565
1566 if test ${srcdir} != "." ; then
1567   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1568     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1569 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1570    { (exit 1); exit 1; }; }
1571   fi
1572 fi
1573
1574 for i in `ls ${srcdir}/projects`
1575 do
1576   if test -d ${srcdir}/projects/${i} ; then
1577     case ${i} in
1578       "CVS") ;;
1579       "sample")
1580
1581 subdirs="$subdirs projects/sample"
1582     ;;
1583       "Stacker")
1584
1585 subdirs="$subdirs projects/Stacker"
1586    ;;
1587       "llvm-test")
1588
1589 subdirs="$subdirs projects/llvm-test"
1590  ;;
1591       "llvm-reopt")
1592
1593 subdirs="$subdirs projects/llvm-reopt"
1594 ;;
1595       "llvm-gcc")
1596
1597 subdirs="$subdirs projects/llvm-gcc"
1598   ;;
1599       "llvm-java")
1600
1601 subdirs="$subdirs projects/llvm-java"
1602  ;;
1603       "llvm-tv")
1604
1605 subdirs="$subdirs projects/llvm-tv"
1606    ;;
1607       "llvm-poolalloc")
1608
1609 subdirs="$subdirs projects/llvm-poolalloc"
1610  ;;
1611       "llvm-kernel")
1612
1613 subdirs="$subdirs projects/llvm-kernel"
1614  ;;
1615       *)
1616         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1617 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1618         ;;
1619     esac
1620   fi
1621 done
1622
1623
1624 # Make sure we can run config.sub.
1625 $ac_config_sub sun4 >/dev/null 2>&1 ||
1626   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1627 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1628    { (exit 1); exit 1; }; }
1629
1630 echo "$as_me:$LINENO: checking build system type" >&5
1631 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1632 if test "${ac_cv_build+set}" = set; then
1633   echo $ECHO_N "(cached) $ECHO_C" >&6
1634 else
1635   ac_cv_build_alias=$build_alias
1636 test -z "$ac_cv_build_alias" &&
1637   ac_cv_build_alias=`$ac_config_guess`
1638 test -z "$ac_cv_build_alias" &&
1639   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1640 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1641    { (exit 1); exit 1; }; }
1642 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1643   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1644 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1645    { (exit 1); exit 1; }; }
1646
1647 fi
1648 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1649 echo "${ECHO_T}$ac_cv_build" >&6
1650 build=$ac_cv_build
1651 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1652 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1653 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1654
1655
1656 echo "$as_me:$LINENO: checking host system type" >&5
1657 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1658 if test "${ac_cv_host+set}" = set; then
1659   echo $ECHO_N "(cached) $ECHO_C" >&6
1660 else
1661   ac_cv_host_alias=$host_alias
1662 test -z "$ac_cv_host_alias" &&
1663   ac_cv_host_alias=$ac_cv_build_alias
1664 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1665   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1666 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1667    { (exit 1); exit 1; }; }
1668
1669 fi
1670 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1671 echo "${ECHO_T}$ac_cv_host" >&6
1672 host=$ac_cv_host
1673 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1674 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1675 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1676
1677
1678 echo "$as_me:$LINENO: checking target system type" >&5
1679 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1680 if test "${ac_cv_target+set}" = set; then
1681   echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683   ac_cv_target_alias=$target_alias
1684 test "x$ac_cv_target_alias" = "x" &&
1685   ac_cv_target_alias=$ac_cv_host_alias
1686 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1687   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1688 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1689    { (exit 1); exit 1; }; }
1690
1691 fi
1692 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1693 echo "${ECHO_T}$ac_cv_target" >&6
1694 target=$ac_cv_target
1695 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1696 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1697 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1698
1699
1700 # The aliases save the names the user supplied, while $host etc.
1701 # will get canonicalized.
1702 test -n "$target_alias" &&
1703   test "$program_prefix$program_suffix$program_transform_name" = \
1704     NONENONEs,x,x, &&
1705   program_prefix=${target_alias}-
1706
1707 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1708 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1709 if test "${llvm_cv_os_type+set}" = set; then
1710   echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712   case $build in
1713   *-*-aix*)
1714     llvm_cv_os_type="AIX"
1715     llvm_cv_platform_type="Unix" ;;
1716   *-*-cygwin*)
1717     llvm_cv_os_type="Cygwin"
1718     llvm_cv_platform_type="Unix" ;;
1719   *-*-darwin*)
1720     llvm_cv_os_type="Darwin"
1721     llvm_cv_platform_type="Unix" ;;
1722   *-*-freebsd*)
1723     llvm_cv_os_type="FreeBSD"
1724     llvm_cv_platform_type="Unix" ;;
1725   *-*-openbsd*)
1726     llvm_cv_os_type="OpenBSD"
1727     llvm_cv_platform_type="Unix" ;;
1728   *-*-hpux*)
1729     llvm_cv_os_type="HP-UX"
1730     llvm_cv_platform_type="Unix" ;;
1731   *-*-interix*)
1732     llvm_cv_os_type="Interix"
1733     llvm_cv_platform_type="Unix" ;;
1734   *-*-linux*)
1735     llvm_cv_os_type="Linux"
1736     llvm_cv_platform_type="Unix" ;;
1737   *-*-solaris*)
1738     llvm_cv_os_type="SunOS"
1739     llvm_cv_platform_type="Unix" ;;
1740   *-*-win32*)
1741     llvm_cv_os_type="Win32"
1742     llvm_cv_platform_type="Win32" ;;
1743   *-*-mingw*)
1744     llvm_cv_os_type="MingW"
1745     llvm_cv_platform_type="Win32" ;;
1746   *)
1747     llvm_cv_os_type="Unknown"
1748     llvm_cv_platform_type="Unknown" ;;
1749 esac
1750 fi
1751 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1752 echo "${ECHO_T}$llvm_cv_os_type" >&6
1753
1754 if test "$llvm_cv_os_type" = "Unknown" ; then
1755   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1756 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1757    { (exit 1); exit 1; }; }
1758 fi
1759
1760 OS=$llvm_cv_os_type
1761
1762
1763 case $llvm_cv_platform_type in
1764   Unix)
1765
1766 cat >>confdefs.h <<\_ACEOF
1767 #define LLVM_ON_UNIX 1
1768 _ACEOF
1769
1770     LLVM_ON_UNIX=1
1771
1772     LLVM_ON_WIN32=0
1773
1774     ;;
1775   Win32)
1776
1777 cat >>confdefs.h <<\_ACEOF
1778 #define LLVM_ON_WIN32 1
1779 _ACEOF
1780
1781     LLVM_ON_UNIX=0
1782
1783     LLVM_ON_WIN32=1
1784
1785     ;;
1786 esac
1787
1788 echo "$as_me:$LINENO: checking target architecture" >&5
1789 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1790 if test "${llvm_cv_target_arch+set}" = set; then
1791   echo $ECHO_N "(cached) $ECHO_C" >&6
1792 else
1793   case $target in
1794   i?86-*)                 llvm_cv_target_arch="x86" ;;
1795   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1796   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1797   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1798   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1799   ia64-*)                 llvm_cv_target_arch="IA64" ;;
1800   *)                      llvm_cv_target_arch="Unknown" ;;
1801 esac
1802 fi
1803 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1804 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1805
1806 if test "$llvm_cv_target_arch" = "Unknown" ; then
1807   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1808 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1809 fi
1810
1811 ARCH=$llvm_cv_target_arch
1812
1813
1814 ac_ext=c
1815 ac_cpp='$CPP $CPPFLAGS'
1816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1819 if test -n "$ac_tool_prefix"; then
1820   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1821 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_CC+set}" = set; then
1825   echo $ECHO_N "(cached) $ECHO_C" >&6
1826 else
1827   if test -n "$CC"; then
1828   ac_cv_prog_CC="$CC" # Let the user override the test.
1829 else
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 for as_dir in $PATH
1832 do
1833   IFS=$as_save_IFS
1834   test -z "$as_dir" && as_dir=.
1835   for ac_exec_ext in '' $ac_executable_extensions; do
1836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839     break 2
1840   fi
1841 done
1842 done
1843
1844 fi
1845 fi
1846 CC=$ac_cv_prog_CC
1847 if test -n "$CC"; then
1848   echo "$as_me:$LINENO: result: $CC" >&5
1849 echo "${ECHO_T}$CC" >&6
1850 else
1851   echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1853 fi
1854
1855 fi
1856 if test -z "$ac_cv_prog_CC"; then
1857   ac_ct_CC=$CC
1858   # Extract the first word of "gcc", so it can be a program name with args.
1859 set dummy gcc; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863   echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865   if test -n "$ac_ct_CC"; then
1866   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1870 do
1871   IFS=$as_save_IFS
1872   test -z "$as_dir" && as_dir=.
1873   for ac_exec_ext in '' $ac_executable_extensions; do
1874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875     ac_cv_prog_ac_ct_CC="gcc"
1876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877     break 2
1878   fi
1879 done
1880 done
1881
1882 fi
1883 fi
1884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885 if test -n "$ac_ct_CC"; then
1886   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887 echo "${ECHO_T}$ac_ct_CC" >&6
1888 else
1889   echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1891 fi
1892
1893   CC=$ac_ct_CC
1894 else
1895   CC="$ac_cv_prog_CC"
1896 fi
1897
1898 if test -z "$CC"; then
1899   if test -n "$ac_tool_prefix"; then
1900   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1901 set dummy ${ac_tool_prefix}cc; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_CC+set}" = set; then
1905   echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907   if test -n "$CC"; then
1908   ac_cv_prog_CC="$CC" # Let the user override the test.
1909 else
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 for as_dir in $PATH
1912 do
1913   IFS=$as_save_IFS
1914   test -z "$as_dir" && as_dir=.
1915   for ac_exec_ext in '' $ac_executable_extensions; do
1916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917     ac_cv_prog_CC="${ac_tool_prefix}cc"
1918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919     break 2
1920   fi
1921 done
1922 done
1923
1924 fi
1925 fi
1926 CC=$ac_cv_prog_CC
1927 if test -n "$CC"; then
1928   echo "$as_me:$LINENO: result: $CC" >&5
1929 echo "${ECHO_T}$CC" >&6
1930 else
1931   echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1933 fi
1934
1935 fi
1936 if test -z "$ac_cv_prog_CC"; then
1937   ac_ct_CC=$CC
1938   # Extract the first word of "cc", so it can be a program name with args.
1939 set dummy cc; ac_word=$2
1940 echo "$as_me:$LINENO: checking for $ac_word" >&5
1941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1942 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1943   echo $ECHO_N "(cached) $ECHO_C" >&6
1944 else
1945   if test -n "$ac_ct_CC"; then
1946   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1947 else
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 for as_dir in $PATH
1950 do
1951   IFS=$as_save_IFS
1952   test -z "$as_dir" && as_dir=.
1953   for ac_exec_ext in '' $ac_executable_extensions; do
1954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955     ac_cv_prog_ac_ct_CC="cc"
1956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957     break 2
1958   fi
1959 done
1960 done
1961
1962 fi
1963 fi
1964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1965 if test -n "$ac_ct_CC"; then
1966   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1967 echo "${ECHO_T}$ac_ct_CC" >&6
1968 else
1969   echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1971 fi
1972
1973   CC=$ac_ct_CC
1974 else
1975   CC="$ac_cv_prog_CC"
1976 fi
1977
1978 fi
1979 if test -z "$CC"; then
1980   # Extract the first word of "cc", so it can be a program name with args.
1981 set dummy cc; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_CC+set}" = set; then
1985   echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987   if test -n "$CC"; then
1988   ac_cv_prog_CC="$CC" # Let the user override the test.
1989 else
1990   ac_prog_rejected=no
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1993 do
1994   IFS=$as_save_IFS
1995   test -z "$as_dir" && as_dir=.
1996   for ac_exec_ext in '' $ac_executable_extensions; do
1997   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1999        ac_prog_rejected=yes
2000        continue
2001      fi
2002     ac_cv_prog_CC="cc"
2003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004     break 2
2005   fi
2006 done
2007 done
2008
2009 if test $ac_prog_rejected = yes; then
2010   # We found a bogon in the path, so make sure we never use it.
2011   set dummy $ac_cv_prog_CC
2012   shift
2013   if test $# != 0; then
2014     # We chose a different compiler from the bogus one.
2015     # However, it has the same basename, so the bogon will be chosen
2016     # first if we set CC to just the basename; use the full file name.
2017     shift
2018     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2019   fi
2020 fi
2021 fi
2022 fi
2023 CC=$ac_cv_prog_CC
2024 if test -n "$CC"; then
2025   echo "$as_me:$LINENO: result: $CC" >&5
2026 echo "${ECHO_T}$CC" >&6
2027 else
2028   echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6
2030 fi
2031
2032 fi
2033 if test -z "$CC"; then
2034   if test -n "$ac_tool_prefix"; then
2035   for ac_prog in cl
2036   do
2037     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2038 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2039 echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041 if test "${ac_cv_prog_CC+set}" = set; then
2042   echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044   if test -n "$CC"; then
2045   ac_cv_prog_CC="$CC" # Let the user override the test.
2046 else
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2049 do
2050   IFS=$as_save_IFS
2051   test -z "$as_dir" && as_dir=.
2052   for ac_exec_ext in '' $ac_executable_extensions; do
2053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056     break 2
2057   fi
2058 done
2059 done
2060
2061 fi
2062 fi
2063 CC=$ac_cv_prog_CC
2064 if test -n "$CC"; then
2065   echo "$as_me:$LINENO: result: $CC" >&5
2066 echo "${ECHO_T}$CC" >&6
2067 else
2068   echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6
2070 fi
2071
2072     test -n "$CC" && break
2073   done
2074 fi
2075 if test -z "$CC"; then
2076   ac_ct_CC=$CC
2077   for ac_prog in cl
2078 do
2079   # Extract the first word of "$ac_prog", so it can be a program name with args.
2080 set dummy $ac_prog; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2084   echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086   if test -n "$ac_ct_CC"; then
2087   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2088 else
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2091 do
2092   IFS=$as_save_IFS
2093   test -z "$as_dir" && as_dir=.
2094   for ac_exec_ext in '' $ac_executable_extensions; do
2095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096     ac_cv_prog_ac_ct_CC="$ac_prog"
2097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098     break 2
2099   fi
2100 done
2101 done
2102
2103 fi
2104 fi
2105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106 if test -n "$ac_ct_CC"; then
2107   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108 echo "${ECHO_T}$ac_ct_CC" >&6
2109 else
2110   echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2112 fi
2113
2114   test -n "$ac_ct_CC" && break
2115 done
2116
2117   CC=$ac_ct_CC
2118 fi
2119
2120 fi
2121
2122
2123 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&5
2125 echo "$as_me: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&2;}
2127    { (exit 1); exit 1; }; }
2128
2129 # Provide some information about the compiler.
2130 echo "$as_me:$LINENO:" \
2131      "checking for C compiler version" >&5
2132 ac_compiler=`set X $ac_compile; echo $2`
2133 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2134   (eval $ac_compiler --version </dev/null >&5) 2>&5
2135   ac_status=$?
2136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137   (exit $ac_status); }
2138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2139   (eval $ac_compiler -v </dev/null >&5) 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }
2143 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2144   (eval $ac_compiler -V </dev/null >&5) 2>&5
2145   ac_status=$?
2146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147   (exit $ac_status); }
2148
2149 cat >conftest.$ac_ext <<_ACEOF
2150 /* confdefs.h.  */
2151 _ACEOF
2152 cat confdefs.h >>conftest.$ac_ext
2153 cat >>conftest.$ac_ext <<_ACEOF
2154 /* end confdefs.h.  */
2155
2156 int
2157 main ()
2158 {
2159
2160   ;
2161   return 0;
2162 }
2163 _ACEOF
2164 ac_clean_files_save=$ac_clean_files
2165 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2166 # Try to create an executable without -o first, disregard a.out.
2167 # It will help us diagnose broken compilers, and finding out an intuition
2168 # of exeext.
2169 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2170 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2171 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2172 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2173   (eval $ac_link_default) 2>&5
2174   ac_status=$?
2175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176   (exit $ac_status); }; then
2177   # Find the output, starting from the most likely.  This scheme is
2178 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2179 # resort.
2180
2181 # Be careful to initialize this variable, since it used to be cached.
2182 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2183 ac_cv_exeext=
2184 # b.out is created by i960 compilers.
2185 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2186 do
2187   test -f "$ac_file" || continue
2188   case $ac_file in
2189     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2190         ;;
2191     conftest.$ac_ext )
2192         # This is the source file.
2193         ;;
2194     [ab].out )
2195         # We found the default executable, but exeext='' is most
2196         # certainly right.
2197         break;;
2198     *.* )
2199         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200         # FIXME: I believe we export ac_cv_exeext for Libtool,
2201         # but it would be cool to find out if it's true.  Does anybody
2202         # maintain Libtool? --akim.
2203         export ac_cv_exeext
2204         break;;
2205     * )
2206         break;;
2207   esac
2208 done
2209 else
2210   echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2212
2213 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&5
2215 echo "$as_me: error: C compiler cannot create executables
2216 See \`config.log' for more details." >&2;}
2217    { (exit 77); exit 77; }; }
2218 fi
2219
2220 ac_exeext=$ac_cv_exeext
2221 echo "$as_me:$LINENO: result: $ac_file" >&5
2222 echo "${ECHO_T}$ac_file" >&6
2223
2224 # Check the compiler produces executables we can run.  If not, either
2225 # the compiler is broken, or we cross compile.
2226 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2227 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2228 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2229 # If not cross compiling, check that we can run a simple program.
2230 if test "$cross_compiling" != yes; then
2231   if { ac_try='./$ac_file'
2232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233   (eval $ac_try) 2>&5
2234   ac_status=$?
2235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236   (exit $ac_status); }; }; then
2237     cross_compiling=no
2238   else
2239     if test "$cross_compiling" = maybe; then
2240         cross_compiling=yes
2241     else
2242         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2243 If you meant to cross compile, use \`--host'.
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&2;}
2248    { (exit 1); exit 1; }; }
2249     fi
2250   fi
2251 fi
2252 echo "$as_me:$LINENO: result: yes" >&5
2253 echo "${ECHO_T}yes" >&6
2254
2255 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2256 ac_clean_files=$ac_clean_files_save
2257 # Check the compiler produces executables we can run.  If not, either
2258 # the compiler is broken, or we cross compile.
2259 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2260 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2261 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2262 echo "${ECHO_T}$cross_compiling" >&6
2263
2264 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2265 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2267   (eval $ac_link) 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); }; then
2271   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2273 # work properly (i.e., refer to `conftest.exe'), while it won't with
2274 # `rm'.
2275 for ac_file in conftest.exe conftest conftest.*; do
2276   test -f "$ac_file" || continue
2277   case $ac_file in
2278     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2279     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280           export ac_cv_exeext
2281           break;;
2282     * ) break;;
2283   esac
2284 done
2285 else
2286   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&2;}
2290    { (exit 1); exit 1; }; }
2291 fi
2292
2293 rm -f conftest$ac_cv_exeext
2294 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2295 echo "${ECHO_T}$ac_cv_exeext" >&6
2296
2297 rm -f conftest.$ac_ext
2298 EXEEXT=$ac_cv_exeext
2299 ac_exeext=$EXEEXT
2300 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2301 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2302 if test "${ac_cv_objext+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   cat >conftest.$ac_ext <<_ACEOF
2306 /* confdefs.h.  */
2307 _ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h.  */
2311
2312 int
2313 main ()
2314 {
2315
2316   ;
2317   return 0;
2318 }
2319 _ACEOF
2320 rm -f conftest.o conftest.obj
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322   (eval $ac_compile) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; then
2326   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2327   case $ac_file in
2328     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2329     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2330        break;;
2331   esac
2332 done
2333 else
2334   echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2336
2337 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&2;}
2341    { (exit 1); exit 1; }; }
2342 fi
2343
2344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2345 fi
2346 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347 echo "${ECHO_T}$ac_cv_objext" >&6
2348 OBJEXT=$ac_cv_objext
2349 ac_objext=$OBJEXT
2350 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2352 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   cat >conftest.$ac_ext <<_ACEOF
2356 /* confdefs.h.  */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h.  */
2361
2362 int
2363 main ()
2364 {
2365 #ifndef __GNUC__
2366        choke me
2367 #endif
2368
2369   ;
2370   return 0;
2371 }
2372 _ACEOF
2373 rm -f conftest.$ac_objext
2374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375   (eval $ac_compile) 2>conftest.er1
2376   ac_status=$?
2377   grep -v '^ *+' conftest.er1 >conftest.err
2378   rm -f conftest.er1
2379   cat conftest.err >&5
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); } &&
2382          { ac_try='test -z "$ac_c_werror_flag"
2383                          || test ! -s conftest.err'
2384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385   (eval $ac_try) 2>&5
2386   ac_status=$?
2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388   (exit $ac_status); }; } &&
2389          { ac_try='test -s conftest.$ac_objext'
2390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391   (eval $ac_try) 2>&5
2392   ac_status=$?
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); }; }; then
2395   ac_compiler_gnu=yes
2396 else
2397   echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2399
2400 ac_compiler_gnu=no
2401 fi
2402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2403 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2404
2405 fi
2406 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2407 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2408 GCC=`test $ac_compiler_gnu = yes && echo yes`
2409 ac_test_CFLAGS=${CFLAGS+set}
2410 ac_save_CFLAGS=$CFLAGS
2411 CFLAGS="-g"
2412 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2413 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2414 if test "${ac_cv_prog_cc_g+set}" = set; then
2415   echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417   cat >conftest.$ac_ext <<_ACEOF
2418 /* confdefs.h.  */
2419 _ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h.  */
2423
2424 int
2425 main ()
2426 {
2427
2428   ;
2429   return 0;
2430 }
2431 _ACEOF
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434   (eval $ac_compile) 2>conftest.er1
2435   ac_status=$?
2436   grep -v '^ *+' conftest.er1 >conftest.err
2437   rm -f conftest.er1
2438   cat conftest.err >&5
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); } &&
2441          { ac_try='test -z "$ac_c_werror_flag"
2442                          || test ! -s conftest.err'
2443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444   (eval $ac_try) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }; } &&
2448          { ac_try='test -s conftest.$ac_objext'
2449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450   (eval $ac_try) 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }; }; then
2454   ac_cv_prog_cc_g=yes
2455 else
2456   echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2458
2459 ac_cv_prog_cc_g=no
2460 fi
2461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2462 fi
2463 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2464 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2465 if test "$ac_test_CFLAGS" = set; then
2466   CFLAGS=$ac_save_CFLAGS
2467 elif test $ac_cv_prog_cc_g = yes; then
2468   if test "$GCC" = yes; then
2469     CFLAGS="-g -O2"
2470   else
2471     CFLAGS="-g"
2472   fi
2473 else
2474   if test "$GCC" = yes; then
2475     CFLAGS="-O2"
2476   else
2477     CFLAGS=
2478   fi
2479 fi
2480 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2481 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2482 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   ac_cv_prog_cc_stdc=no
2486 ac_save_CC=$CC
2487 cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h.  */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h.  */
2493 #include <stdarg.h>
2494 #include <stdio.h>
2495 #include <sys/types.h>
2496 #include <sys/stat.h>
2497 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2498 struct buf { int x; };
2499 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2500 static char *e (p, i)
2501      char **p;
2502      int i;
2503 {
2504   return p[i];
2505 }
2506 static char *f (char * (*g) (char **, int), char **p, ...)
2507 {
2508   char *s;
2509   va_list v;
2510   va_start (v,p);
2511   s = g (p, va_arg (v,int));
2512   va_end (v);
2513   return s;
2514 }
2515
2516 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2517    function prototypes and stuff, but not '\xHH' hex character constants.
2518    These don't provoke an error unfortunately, instead are silently treated
2519    as 'x'.  The following induces an error, until -std1 is added to get
2520    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2521    array size at least.  It's necessary to write '\x00'==0 to get something
2522    that's true only with -std1.  */
2523 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2524
2525 int test (int i, double x);
2526 struct s1 {int (*f) (int a);};
2527 struct s2 {int (*f) (double a);};
2528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2529 int argc;
2530 char **argv;
2531 int
2532 main ()
2533 {
2534 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2535   ;
2536   return 0;
2537 }
2538 _ACEOF
2539 # Don't try gcc -ansi; that turns off useful extensions and
2540 # breaks some systems' header files.
2541 # AIX                   -qlanglvl=ansi
2542 # Ultrix and OSF/1      -std1
2543 # HP-UX 10.20 and later -Ae
2544 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2545 # SVR4                  -Xc -D__EXTENSIONS__
2546 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2547 do
2548   CC="$ac_save_CC $ac_arg"
2549   rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551   (eval $ac_compile) 2>conftest.er1
2552   ac_status=$?
2553   grep -v '^ *+' conftest.er1 >conftest.err
2554   rm -f conftest.er1
2555   cat conftest.err >&5
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); } &&
2558          { ac_try='test -z "$ac_c_werror_flag"
2559                          || test ! -s conftest.err'
2560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561   (eval $ac_try) 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }; } &&
2565          { ac_try='test -s conftest.$ac_objext'
2566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567   (eval $ac_try) 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }; }; then
2571   ac_cv_prog_cc_stdc=$ac_arg
2572 break
2573 else
2574   echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2576
2577 fi
2578 rm -f conftest.err conftest.$ac_objext
2579 done
2580 rm -f conftest.$ac_ext conftest.$ac_objext
2581 CC=$ac_save_CC
2582
2583 fi
2584
2585 case "x$ac_cv_prog_cc_stdc" in
2586   x|xno)
2587     echo "$as_me:$LINENO: result: none needed" >&5
2588 echo "${ECHO_T}none needed" >&6 ;;
2589   *)
2590     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2591 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2592     CC="$CC $ac_cv_prog_cc_stdc" ;;
2593 esac
2594
2595 # Some people use a C++ compiler to compile C.  Since we use `exit',
2596 # in C++ we need to declare it.  In case someone uses the same compiler
2597 # for both compiling C and C++ we need to have the C++ compiler decide
2598 # the declaration of exit, since it's the most demanding environment.
2599 cat >conftest.$ac_ext <<_ACEOF
2600 #ifndef __cplusplus
2601   choke me
2602 #endif
2603 _ACEOF
2604 rm -f conftest.$ac_objext
2605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606   (eval $ac_compile) 2>conftest.er1
2607   ac_status=$?
2608   grep -v '^ *+' conftest.er1 >conftest.err
2609   rm -f conftest.er1
2610   cat conftest.err >&5
2611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612   (exit $ac_status); } &&
2613          { ac_try='test -z "$ac_c_werror_flag"
2614                          || test ! -s conftest.err'
2615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616   (eval $ac_try) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; } &&
2620          { ac_try='test -s conftest.$ac_objext'
2621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622   (eval $ac_try) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; }; then
2626   for ac_declaration in \
2627    '' \
2628    'extern "C" void std::exit (int) throw (); using std::exit;' \
2629    'extern "C" void std::exit (int); using std::exit;' \
2630    'extern "C" void exit (int) throw ();' \
2631    'extern "C" void exit (int);' \
2632    'void exit (int);'
2633 do
2634   cat >conftest.$ac_ext <<_ACEOF
2635 /* confdefs.h.  */
2636 _ACEOF
2637 cat confdefs.h >>conftest.$ac_ext
2638 cat >>conftest.$ac_ext <<_ACEOF
2639 /* end confdefs.h.  */
2640 $ac_declaration
2641 #include <stdlib.h>
2642 int
2643 main ()
2644 {
2645 exit (42);
2646   ;
2647   return 0;
2648 }
2649 _ACEOF
2650 rm -f conftest.$ac_objext
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652   (eval $ac_compile) 2>conftest.er1
2653   ac_status=$?
2654   grep -v '^ *+' conftest.er1 >conftest.err
2655   rm -f conftest.er1
2656   cat conftest.err >&5
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); } &&
2659          { ac_try='test -z "$ac_c_werror_flag"
2660                          || test ! -s conftest.err'
2661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662   (eval $ac_try) 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }; } &&
2666          { ac_try='test -s conftest.$ac_objext'
2667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668   (eval $ac_try) 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }; }; then
2672   :
2673 else
2674   echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2676
2677 continue
2678 fi
2679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680   cat >conftest.$ac_ext <<_ACEOF
2681 /* confdefs.h.  */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h.  */
2686 $ac_declaration
2687 int
2688 main ()
2689 {
2690 exit (42);
2691   ;
2692   return 0;
2693 }
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697   (eval $ac_compile) 2>conftest.er1
2698   ac_status=$?
2699   grep -v '^ *+' conftest.er1 >conftest.err
2700   rm -f conftest.er1
2701   cat conftest.err >&5
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); } &&
2704          { ac_try='test -z "$ac_c_werror_flag"
2705                          || test ! -s conftest.err'
2706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707   (eval $ac_try) 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); }; } &&
2711          { ac_try='test -s conftest.$ac_objext'
2712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713   (eval $ac_try) 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }; }; then
2717   break
2718 else
2719   echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722 fi
2723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724 done
2725 rm -f conftest*
2726 if test -n "$ac_declaration"; then
2727   echo '#ifdef __cplusplus' >>confdefs.h
2728   echo $ac_declaration      >>confdefs.h
2729   echo '#endif'             >>confdefs.h
2730 fi
2731
2732 else
2733   echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2735
2736 fi
2737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738 ac_ext=c
2739 ac_cpp='$CPP $CPPFLAGS'
2740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743
2744
2745 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2746 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2747 if test "${ac_cv_c_bigendian+set}" = set; then
2748   echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750   # See if sys/param.h defines the BYTE_ORDER macro.
2751 cat >conftest.$ac_ext <<_ACEOF
2752 /* confdefs.h.  */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h.  */
2757 #include <sys/types.h>
2758 #include <sys/param.h>
2759
2760 int
2761 main ()
2762 {
2763 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2764  bogus endian macros
2765 #endif
2766
2767   ;
2768   return 0;
2769 }
2770 _ACEOF
2771 rm -f conftest.$ac_objext
2772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2773   (eval $ac_compile) 2>conftest.er1
2774   ac_status=$?
2775   grep -v '^ *+' conftest.er1 >conftest.err
2776   rm -f conftest.er1
2777   cat conftest.err >&5
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); } &&
2780          { ac_try='test -z "$ac_c_werror_flag"
2781                          || test ! -s conftest.err'
2782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }; } &&
2787          { ac_try='test -s conftest.$ac_objext'
2788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789   (eval $ac_try) 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); }; }; then
2793   # It does; now see whether it defined to BIG_ENDIAN or not.
2794 cat >conftest.$ac_ext <<_ACEOF
2795 /* confdefs.h.  */
2796 _ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h.  */
2800 #include <sys/types.h>
2801 #include <sys/param.h>
2802
2803 int
2804 main ()
2805 {
2806 #if BYTE_ORDER != BIG_ENDIAN
2807  not big endian
2808 #endif
2809
2810   ;
2811   return 0;
2812 }
2813 _ACEOF
2814 rm -f conftest.$ac_objext
2815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2816   (eval $ac_compile) 2>conftest.er1
2817   ac_status=$?
2818   grep -v '^ *+' conftest.er1 >conftest.err
2819   rm -f conftest.er1
2820   cat conftest.err >&5
2821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822   (exit $ac_status); } &&
2823          { ac_try='test -z "$ac_c_werror_flag"
2824                          || test ! -s conftest.err'
2825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826   (eval $ac_try) 2>&5
2827   ac_status=$?
2828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829   (exit $ac_status); }; } &&
2830          { ac_try='test -s conftest.$ac_objext'
2831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832   (eval $ac_try) 2>&5
2833   ac_status=$?
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); }; }; then
2836   ac_cv_c_bigendian=yes
2837 else
2838   echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2840
2841 ac_cv_c_bigendian=no
2842 fi
2843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2844 else
2845   echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2847
2848 # It does not; compile a test program.
2849 if test "$cross_compiling" = yes; then
2850   # try to guess the endianness by grepping values into an object file
2851   ac_cv_c_bigendian=unknown
2852   cat >conftest.$ac_ext <<_ACEOF
2853 /* confdefs.h.  */
2854 _ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h.  */
2858 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2859 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2860 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2861 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2862 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2863 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2864 int
2865 main ()
2866 {
2867  _ascii (); _ebcdic ();
2868   ;
2869   return 0;
2870 }
2871 _ACEOF
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874   (eval $ac_compile) 2>conftest.er1
2875   ac_status=$?
2876   grep -v '^ *+' conftest.er1 >conftest.err
2877   rm -f conftest.er1
2878   cat conftest.err >&5
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); } &&
2881          { ac_try='test -z "$ac_c_werror_flag"
2882                          || test ! -s conftest.err'
2883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884   (eval $ac_try) 2>&5
2885   ac_status=$?
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); }; } &&
2888          { ac_try='test -s conftest.$ac_objext'
2889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890   (eval $ac_try) 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }; }; then
2894   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2895   ac_cv_c_bigendian=yes
2896 fi
2897 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2898   if test "$ac_cv_c_bigendian" = unknown; then
2899     ac_cv_c_bigendian=no
2900   else
2901     # finding both strings is unlikely to happen, but who knows?
2902     ac_cv_c_bigendian=unknown
2903   fi
2904 fi
2905 else
2906   echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2908
2909 fi
2910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2911 else
2912   cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h.  */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h.  */
2918 int
2919 main ()
2920 {
2921   /* Are we little or big endian?  From Harbison&Steele.  */
2922   union
2923   {
2924     long l;
2925     char c[sizeof (long)];
2926   } u;
2927   u.l = 1;
2928   exit (u.c[sizeof (long) - 1] == 1);
2929 }
2930 _ACEOF
2931 rm -f conftest$ac_exeext
2932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2933   (eval $ac_link) 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938   (eval $ac_try) 2>&5
2939   ac_status=$?
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); }; }; then
2942   ac_cv_c_bigendian=no
2943 else
2944   echo "$as_me: program exited with status $ac_status" >&5
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2947
2948 ( exit $ac_status )
2949 ac_cv_c_bigendian=yes
2950 fi
2951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2952 fi
2953 fi
2954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2955 fi
2956 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2957 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2958 case $ac_cv_c_bigendian in
2959   yes)
2960     ENDIAN=big
2961  ;;
2962   no)
2963     ENDIAN=little
2964  ;;
2965   *)
2966     { { echo "$as_me:$LINENO: error: unknown endianness
2967 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2968 echo "$as_me: error: unknown endianness
2969 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2970    { (exit 1); exit 1; }; } ;;
2971 esac
2972
2973
2974 if test -d "CVS" -o -d "${srcdir}/CVS"; then
2975   cvsbuild="yes"
2976   optimize="no"
2977   CVSBUILD=CVSBUILD=1
2978
2979 else
2980   cvsbuild="no"
2981   optimize="yes"
2982 fi
2983
2984
2985 # Check whether --enable-optimized or --disable-optimized was given.
2986 if test "${enable_optimized+set}" = set; then
2987   enableval="$enable_optimized"
2988
2989 else
2990   enableval=$optimize
2991 fi;
2992 if test ${enableval} = "no" ; then
2993   ENABLE_OPTIMIZED=
2994
2995 else
2996   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2997
2998 fi
2999
3000 # Check whether --enable-assertions or --disable-assertions was given.
3001 if test "${enable_assertions+set}" = set; then
3002   enableval="$enable_assertions"
3003
3004 else
3005   enableval="yes"
3006 fi;
3007 if test ${enableval} = "yes" ; then
3008   DISABLE_ASSERTIONS=
3009
3010 else
3011   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
3012
3013 fi
3014
3015 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3016 if test "${enable_debug_runtime+set}" = set; then
3017   enableval="$enable_debug_runtime"
3018
3019 else
3020   enableval=no
3021 fi;
3022 if test ${enableval} = "no" ; then
3023   DEBUG_RUNTIME=
3024
3025 else
3026   DEBUG_RUNTIME=DEBUG_RUNTIME=1
3027
3028 fi
3029
3030 # Check whether --enable-jit or --disable-jit was given.
3031 if test "${enable_jit+set}" = set; then
3032   enableval="$enable_jit"
3033
3034 else
3035   enableval=default
3036 fi;
3037 if test ${enableval} = "no"
3038 then
3039   JIT=
3040
3041 else
3042   case "$llvm_cv_target_arch" in
3043     x86)     TARGET_HAS_JIT=1
3044  ;;
3045     Sparc)   TARGET_HAS_JIT=1
3046  ;;
3047     PowerPC) TARGET_HAS_JIT=1
3048  ;;
3049     x86_64)  TARGET_HAS_JIT=0
3050  ;;
3051     Alpha)   TARGET_HAS_JIT=1
3052  ;;
3053     IA64)    TARGET_HAS_JIT=0
3054  ;;
3055     *)       TARGET_HAS_JIT=0
3056  ;;
3057   esac
3058 fi
3059
3060 # Check whether --enable-doxygen or --disable-doxygen was given.
3061 if test "${enable_doxygen+set}" = set; then
3062   enableval="$enable_doxygen"
3063
3064 else
3065   enableval=default
3066 fi;
3067 case "$enableval" in
3068   yes) ENABLE_DOXYGEN=1
3069  ;;
3070   no)  ENABLE_DOXYGEN=0
3071  ;;
3072   default) ENABLE_DOXYGEN=0
3073  ;;
3074   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3075 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3076    { (exit 1); exit 1; }; } ;;
3077 esac
3078
3079 # Check whether --enable-threads or --disable-threads was given.
3080 if test "${enable_threads+set}" = set; then
3081   enableval="$enable_threads"
3082
3083 else
3084   enableval=yes
3085 fi;
3086 case "$enableval" in
3087   yes) ENABLE_THREADS=1
3088  ;;
3089   no)  ENABLE_THREADS=0
3090  ;;
3091   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3092 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3093    { (exit 1); exit 1; }; } ;;
3094 esac
3095
3096 cat >>confdefs.h <<_ACEOF
3097 #define ENABLE_THREADS $ENABLE_THREADS
3098 _ACEOF
3099
3100
3101 TARGETS_TO_BUILD=""
3102 # Check whether --enable-targets or --disable-targets was given.
3103 if test "${enable_targets+set}" = set; then
3104   enableval="$enable_targets"
3105
3106 else
3107   enableval=all
3108 fi;
3109 case "$enableval" in
3110   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
3111   host-only)
3112     case "$llvm_cv_target_arch" in
3113       x86)     TARGETS_TO_BUILD="X86" ;;
3114       x86_64)  TARGETS_TO_BUILD="X86" ;;
3115       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
3116       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3117       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3118       IA64)    TARGETS_TO_BUILD="IA64" ;;
3119       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3120 echo "$as_me: error: Can not set target to build" >&2;}
3121    { (exit 1); exit 1; }; } ;;
3122     esac
3123     ;;
3124   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3125       case "$a_target" in
3126         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3127         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3128         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
3129         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3130         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3131         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3132         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3133 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3134    { (exit 1); exit 1; }; } ;;
3135       esac
3136   done
3137   ;;
3138 esac
3139 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3140 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3141
3142
3143
3144 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3145 if test "${with_llvmgccdir+set}" = set; then
3146   withval="$with_llvmgccdir"
3147
3148 else
3149   withval=default
3150 fi;
3151 case "$withval" in
3152   default) WITH_LLVMGCCDIR=default ;;
3153   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
3154   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3155 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3156    { (exit 1); exit 1; }; } ;;
3157 esac
3158
3159
3160
3161 ac_ext=c
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3167 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3168 # On Suns, sometimes $CPP names a directory.
3169 if test -n "$CPP" && test -d "$CPP"; then
3170   CPP=
3171 fi
3172 if test -z "$CPP"; then
3173   if test "${ac_cv_prog_CPP+set}" = set; then
3174   echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176       # Double quotes because CPP needs to be expanded
3177     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3178     do
3179       ac_preproc_ok=false
3180 for ac_c_preproc_warn_flag in '' yes
3181 do
3182   # Use a header file that comes with gcc, so configuring glibc
3183   # with a fresh cross-compiler works.
3184   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3185   # <limits.h> exists even on freestanding compilers.
3186   # On the NeXT, cc -E runs the code through the compiler's parser,
3187   # not just through cpp. "Syntax error" is here to catch this case.
3188   cat >conftest.$ac_ext <<_ACEOF
3189 /* confdefs.h.  */
3190 _ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h.  */
3194 #ifdef __STDC__
3195 # include <limits.h>
3196 #else
3197 # include <assert.h>
3198 #endif
3199                      Syntax error
3200 _ACEOF
3201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3202   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3203   ac_status=$?
3204   grep -v '^ *+' conftest.er1 >conftest.err
3205   rm -f conftest.er1
3206   cat conftest.err >&5
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); } >/dev/null; then
3209   if test -s conftest.err; then
3210     ac_cpp_err=$ac_c_preproc_warn_flag
3211     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3212   else
3213     ac_cpp_err=
3214   fi
3215 else
3216   ac_cpp_err=yes
3217 fi
3218 if test -z "$ac_cpp_err"; then
3219   :
3220 else
3221   echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224   # Broken: fails on valid input.
3225 continue
3226 fi
3227 rm -f conftest.err conftest.$ac_ext
3228
3229   # OK, works on sane cases.  Now check whether non-existent headers
3230   # can be detected and how.
3231   cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h.  */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h.  */
3237 #include <ac_nonexistent.h>
3238 _ACEOF
3239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3241   ac_status=$?
3242   grep -v '^ *+' conftest.er1 >conftest.err
3243   rm -f conftest.er1
3244   cat conftest.err >&5
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); } >/dev/null; then
3247   if test -s conftest.err; then
3248     ac_cpp_err=$ac_c_preproc_warn_flag
3249     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3250   else
3251     ac_cpp_err=
3252   fi
3253 else
3254   ac_cpp_err=yes
3255 fi
3256 if test -z "$ac_cpp_err"; then
3257   # Broken: success on invalid input.
3258 continue
3259 else
3260   echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263   # Passes both tests.
3264 ac_preproc_ok=:
3265 break
3266 fi
3267 rm -f conftest.err conftest.$ac_ext
3268
3269 done
3270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3271 rm -f conftest.err conftest.$ac_ext
3272 if $ac_preproc_ok; then
3273   break
3274 fi
3275
3276     done
3277     ac_cv_prog_CPP=$CPP
3278
3279 fi
3280   CPP=$ac_cv_prog_CPP
3281 else
3282   ac_cv_prog_CPP=$CPP
3283 fi
3284 echo "$as_me:$LINENO: result: $CPP" >&5
3285 echo "${ECHO_T}$CPP" >&6
3286 ac_preproc_ok=false
3287 for ac_c_preproc_warn_flag in '' yes
3288 do
3289   # Use a header file that comes with gcc, so configuring glibc
3290   # with a fresh cross-compiler works.
3291   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3292   # <limits.h> exists even on freestanding compilers.
3293   # On the NeXT, cc -E runs the code through the compiler's parser,
3294   # not just through cpp. "Syntax error" is here to catch this case.
3295   cat >conftest.$ac_ext <<_ACEOF
3296 /* confdefs.h.  */
3297 _ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h.  */
3301 #ifdef __STDC__
3302 # include <limits.h>
3303 #else
3304 # include <assert.h>
3305 #endif
3306                      Syntax error
3307 _ACEOF
3308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3309   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3310   ac_status=$?
3311   grep -v '^ *+' conftest.er1 >conftest.err
3312   rm -f conftest.er1
3313   cat conftest.err >&5
3314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315   (exit $ac_status); } >/dev/null; then
3316   if test -s conftest.err; then
3317     ac_cpp_err=$ac_c_preproc_warn_flag
3318     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3319   else
3320     ac_cpp_err=
3321   fi
3322 else
3323   ac_cpp_err=yes
3324 fi
3325 if test -z "$ac_cpp_err"; then
3326   :
3327 else
3328   echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3330
3331   # Broken: fails on valid input.
3332 continue
3333 fi
3334 rm -f conftest.err conftest.$ac_ext
3335
3336   # OK, works on sane cases.  Now check whether non-existent headers
3337   # can be detected and how.
3338   cat >conftest.$ac_ext <<_ACEOF
3339 /* confdefs.h.  */
3340 _ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h.  */
3344 #include <ac_nonexistent.h>
3345 _ACEOF
3346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3347   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3348   ac_status=$?
3349   grep -v '^ *+' conftest.er1 >conftest.err
3350   rm -f conftest.er1
3351   cat conftest.err >&5
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); } >/dev/null; then
3354   if test -s conftest.err; then
3355     ac_cpp_err=$ac_c_preproc_warn_flag
3356     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3357   else
3358     ac_cpp_err=
3359   fi
3360 else
3361   ac_cpp_err=yes
3362 fi
3363 if test -z "$ac_cpp_err"; then
3364   # Broken: success on invalid input.
3365 continue
3366 else
3367   echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3369
3370   # Passes both tests.
3371 ac_preproc_ok=:
3372 break
3373 fi
3374 rm -f conftest.err conftest.$ac_ext
3375
3376 done
3377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3378 rm -f conftest.err conftest.$ac_ext
3379 if $ac_preproc_ok; then
3380   :
3381 else
3382   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3383 See \`config.log' for more details." >&5
3384 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3385 See \`config.log' for more details." >&2;}
3386    { (exit 1); exit 1; }; }
3387 fi
3388
3389 ac_ext=c
3390 ac_cpp='$CPP $CPPFLAGS'
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3394
3395 ac_ext=c
3396 ac_cpp='$CPP $CPPFLAGS'
3397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400 if test -n "$ac_tool_prefix"; then
3401   for ac_prog in gcc
3402   do
3403     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3405 echo "$as_me:$LINENO: checking for $ac_word" >&5
3406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3407 if test "${ac_cv_prog_CC+set}" = set; then
3408   echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410   if test -n "$CC"; then
3411   ac_cv_prog_CC="$CC" # Let the user override the test.
3412 else
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3415 do
3416   IFS=$as_save_IFS
3417   test -z "$as_dir" && as_dir=.
3418   for ac_exec_ext in '' $ac_executable_extensions; do
3419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422     break 2
3423   fi
3424 done
3425 done
3426
3427 fi
3428 fi
3429 CC=$ac_cv_prog_CC
3430 if test -n "$CC"; then
3431   echo "$as_me:$LINENO: result: $CC" >&5
3432 echo "${ECHO_T}$CC" >&6
3433 else
3434   echo "$as_me:$LINENO: result: no" >&5
3435 echo "${ECHO_T}no" >&6
3436 fi
3437
3438     test -n "$CC" && break
3439   done
3440 fi
3441 if test -z "$CC"; then
3442   ac_ct_CC=$CC
3443   for ac_prog in gcc
3444 do
3445   # Extract the first word of "$ac_prog", so it can be a program name with args.
3446 set dummy $ac_prog; ac_word=$2
3447 echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3450   echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452   if test -n "$ac_ct_CC"; then
3453   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3457 do
3458   IFS=$as_save_IFS
3459   test -z "$as_dir" && as_dir=.
3460   for ac_exec_ext in '' $ac_executable_extensions; do
3461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462     ac_cv_prog_ac_ct_CC="$ac_prog"
3463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464     break 2
3465   fi
3466 done
3467 done
3468
3469 fi
3470 fi
3471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3472 if test -n "$ac_ct_CC"; then
3473   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3474 echo "${ECHO_T}$ac_ct_CC" >&6
3475 else
3476   echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6
3478 fi
3479
3480   test -n "$ac_ct_CC" && break
3481 done
3482
3483   CC=$ac_ct_CC
3484 fi
3485
3486
3487 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3488 See \`config.log' for more details." >&5
3489 echo "$as_me: error: no acceptable C compiler found in \$PATH
3490 See \`config.log' for more details." >&2;}
3491    { (exit 1); exit 1; }; }
3492
3493 # Provide some information about the compiler.
3494 echo "$as_me:$LINENO:" \
3495      "checking for C compiler version" >&5
3496 ac_compiler=`set X $ac_compile; echo $2`
3497 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3498   (eval $ac_compiler --version </dev/null >&5) 2>&5
3499   ac_status=$?
3500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501   (exit $ac_status); }
3502 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3503   (eval $ac_compiler -v </dev/null >&5) 2>&5
3504   ac_status=$?
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); }
3507 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3508   (eval $ac_compiler -V </dev/null >&5) 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); }
3512
3513 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3514 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3515 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3516   echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518   cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h.  */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h.  */
3524
3525 int
3526 main ()
3527 {
3528 #ifndef __GNUC__
3529        choke me
3530 #endif
3531
3532   ;
3533   return 0;
3534 }
3535 _ACEOF
3536 rm -f conftest.$ac_objext
3537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3538   (eval $ac_compile) 2>conftest.er1
3539   ac_status=$?
3540   grep -v '^ *+' conftest.er1 >conftest.err
3541   rm -f conftest.er1
3542   cat conftest.err >&5
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); } &&
3545          { ac_try='test -z "$ac_c_werror_flag"
3546                          || test ! -s conftest.err'
3547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548   (eval $ac_try) 2>&5
3549   ac_status=$?
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); }; } &&
3552          { ac_try='test -s conftest.$ac_objext'
3553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554   (eval $ac_try) 2>&5
3555   ac_status=$?
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); }; }; then
3558   ac_compiler_gnu=yes
3559 else
3560   echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563 ac_compiler_gnu=no
3564 fi
3565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3567
3568 fi
3569 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3570 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3571 GCC=`test $ac_compiler_gnu = yes && echo yes`
3572 ac_test_CFLAGS=${CFLAGS+set}
3573 ac_save_CFLAGS=$CFLAGS
3574 CFLAGS="-g"
3575 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3576 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3577 if test "${ac_cv_prog_cc_g+set}" = set; then
3578   echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580   cat >conftest.$ac_ext <<_ACEOF
3581 /* confdefs.h.  */
3582 _ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h.  */
3586
3587 int
3588 main ()
3589 {
3590
3591   ;
3592   return 0;
3593 }
3594 _ACEOF
3595 rm -f conftest.$ac_objext
3596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597   (eval $ac_compile) 2>conftest.er1
3598   ac_status=$?
3599   grep -v '^ *+' conftest.er1 >conftest.err
3600   rm -f conftest.er1
3601   cat conftest.err >&5
3602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603   (exit $ac_status); } &&
3604          { ac_try='test -z "$ac_c_werror_flag"
3605                          || test ! -s conftest.err'
3606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607   (eval $ac_try) 2>&5
3608   ac_status=$?
3609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610   (exit $ac_status); }; } &&
3611          { ac_try='test -s conftest.$ac_objext'
3612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613   (eval $ac_try) 2>&5
3614   ac_status=$?
3615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616   (exit $ac_status); }; }; then
3617   ac_cv_prog_cc_g=yes
3618 else
3619   echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622 ac_cv_prog_cc_g=no
3623 fi
3624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3625 fi
3626 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3627 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3628 if test "$ac_test_CFLAGS" = set; then
3629   CFLAGS=$ac_save_CFLAGS
3630 elif test $ac_cv_prog_cc_g = yes; then
3631   if test "$GCC" = yes; then
3632     CFLAGS="-g -O2"
3633   else
3634     CFLAGS="-g"
3635   fi
3636 else
3637   if test "$GCC" = yes; then
3638     CFLAGS="-O2"
3639   else
3640     CFLAGS=
3641   fi
3642 fi
3643 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3644 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3645 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3646   echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648   ac_cv_prog_cc_stdc=no
3649 ac_save_CC=$CC
3650 cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h.  */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h.  */
3656 #include <stdarg.h>
3657 #include <stdio.h>
3658 #include <sys/types.h>
3659 #include <sys/stat.h>
3660 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3661 struct buf { int x; };
3662 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3663 static char *e (p, i)
3664      char **p;
3665      int i;
3666 {
3667   return p[i];
3668 }
3669 static char *f (char * (*g) (char **, int), char **p, ...)
3670 {
3671   char *s;
3672   va_list v;
3673   va_start (v,p);
3674   s = g (p, va_arg (v,int));
3675   va_end (v);
3676   return s;
3677 }
3678
3679 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3680    function prototypes and stuff, but not '\xHH' hex character constants.
3681    These don't provoke an error unfortunately, instead are silently treated
3682    as 'x'.  The following induces an error, until -std1 is added to get
3683    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3684    array size at least.  It's necessary to write '\x00'==0 to get something
3685    that's true only with -std1.  */
3686 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3687
3688 int test (int i, double x);
3689 struct s1 {int (*f) (int a);};
3690 struct s2 {int (*f) (double a);};
3691 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3692 int argc;
3693 char **argv;
3694 int
3695 main ()
3696 {
3697 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3698   ;
3699   return 0;
3700 }
3701 _ACEOF
3702 # Don't try gcc -ansi; that turns off useful extensions and
3703 # breaks some systems' header files.
3704 # AIX                   -qlanglvl=ansi
3705 # Ultrix and OSF/1      -std1
3706 # HP-UX 10.20 and later -Ae
3707 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3708 # SVR4                  -Xc -D__EXTENSIONS__
3709 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3710 do
3711   CC="$ac_save_CC $ac_arg"
3712   rm -f conftest.$ac_objext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714   (eval $ac_compile) 2>conftest.er1
3715   ac_status=$?
3716   grep -v '^ *+' conftest.er1 >conftest.err
3717   rm -f conftest.er1
3718   cat conftest.err >&5
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); } &&
3721          { ac_try='test -z "$ac_c_werror_flag"
3722                          || test ! -s conftest.err'
3723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724   (eval $ac_try) 2>&5
3725   ac_status=$?
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); }; } &&
3728          { ac_try='test -s conftest.$ac_objext'
3729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730   (eval $ac_try) 2>&5
3731   ac_status=$?
3732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733   (exit $ac_status); }; }; then
3734   ac_cv_prog_cc_stdc=$ac_arg
3735 break
3736 else
3737   echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3739
3740 fi
3741 rm -f conftest.err conftest.$ac_objext
3742 done
3743 rm -f conftest.$ac_ext conftest.$ac_objext
3744 CC=$ac_save_CC
3745
3746 fi
3747
3748 case "x$ac_cv_prog_cc_stdc" in
3749   x|xno)
3750     echo "$as_me:$LINENO: result: none needed" >&5
3751 echo "${ECHO_T}none needed" >&6 ;;
3752   *)
3753     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3754 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3755     CC="$CC $ac_cv_prog_cc_stdc" ;;
3756 esac
3757
3758 # Some people use a C++ compiler to compile C.  Since we use `exit',
3759 # in C++ we need to declare it.  In case someone uses the same compiler
3760 # for both compiling C and C++ we need to have the C++ compiler decide
3761 # the declaration of exit, since it's the most demanding environment.
3762 cat >conftest.$ac_ext <<_ACEOF
3763 #ifndef __cplusplus
3764   choke me
3765 #endif
3766 _ACEOF
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769   (eval $ac_compile) 2>conftest.er1
3770   ac_status=$?
3771   grep -v '^ *+' conftest.er1 >conftest.err
3772   rm -f conftest.er1
3773   cat conftest.err >&5
3774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775   (exit $ac_status); } &&
3776          { ac_try='test -z "$ac_c_werror_flag"
3777                          || test ! -s conftest.err'
3778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779   (eval $ac_try) 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); }; } &&
3783          { ac_try='test -s conftest.$ac_objext'
3784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785   (eval $ac_try) 2>&5
3786   ac_status=$?
3787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788   (exit $ac_status); }; }; then
3789   for ac_declaration in \
3790    '' \
3791    'extern "C" void std::exit (int) throw (); using std::exit;' \
3792    'extern "C" void std::exit (int); using std::exit;' \
3793    'extern "C" void exit (int) throw ();' \
3794    'extern "C" void exit (int);' \
3795    'void exit (int);'
3796 do
3797   cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h.  */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h.  */
3803 $ac_declaration
3804 #include <stdlib.h>
3805 int
3806 main ()
3807 {
3808 exit (42);
3809   ;
3810   return 0;
3811 }
3812 _ACEOF
3813 rm -f conftest.$ac_objext
3814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3815   (eval $ac_compile) 2>conftest.er1
3816   ac_status=$?
3817   grep -v '^ *+' conftest.er1 >conftest.err
3818   rm -f conftest.er1
3819   cat conftest.err >&5
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); } &&
3822          { ac_try='test -z "$ac_c_werror_flag"
3823                          || test ! -s conftest.err'
3824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825   (eval $ac_try) 2>&5
3826   ac_status=$?
3827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828   (exit $ac_status); }; } &&
3829          { ac_try='test -s conftest.$ac_objext'
3830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831   (eval $ac_try) 2>&5
3832   ac_status=$?
3833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834   (exit $ac_status); }; }; then
3835   :
3836 else
3837   echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3839
3840 continue
3841 fi
3842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3843   cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h.  */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h.  */
3849 $ac_declaration
3850 int
3851 main ()
3852 {
3853 exit (42);
3854   ;
3855   return 0;
3856 }
3857 _ACEOF
3858 rm -f conftest.$ac_objext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860   (eval $ac_compile) 2>conftest.er1
3861   ac_status=$?
3862   grep -v '^ *+' conftest.er1 >conftest.err
3863   rm -f conftest.er1
3864   cat conftest.err >&5
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); } &&
3867          { ac_try='test -z "$ac_c_werror_flag"
3868                          || test ! -s conftest.err'
3869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870   (eval $ac_try) 2>&5
3871   ac_status=$?
3872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873   (exit $ac_status); }; } &&
3874          { ac_try='test -s conftest.$ac_objext'
3875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876   (eval $ac_try) 2>&5
3877   ac_status=$?
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); }; }; then
3880   break
3881 else
3882   echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885 fi
3886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3887 done
3888 rm -f conftest*
3889 if test -n "$ac_declaration"; then
3890   echo '#ifdef __cplusplus' >>confdefs.h
3891   echo $ac_declaration      >>confdefs.h
3892   echo '#endif'             >>confdefs.h
3893 fi
3894
3895 else
3896   echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3898
3899 fi
3900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3901 ac_ext=c
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906
3907 ac_ext=cc
3908 ac_cpp='$CXXCPP $CPPFLAGS'
3909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3912 if test -n "$ac_tool_prefix"; then
3913   for ac_prog in $CCC g++
3914   do
3915     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3917 echo "$as_me:$LINENO: checking for $ac_word" >&5
3918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919 if test "${ac_cv_prog_CXX+set}" = set; then
3920   echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922   if test -n "$CXX"; then
3923   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3927 do
3928   IFS=$as_save_IFS
3929   test -z "$as_dir" && as_dir=.
3930   for ac_exec_ext in '' $ac_executable_extensions; do
3931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934     break 2
3935   fi
3936 done
3937 done
3938
3939 fi
3940 fi
3941 CXX=$ac_cv_prog_CXX
3942 if test -n "$CXX"; then
3943   echo "$as_me:$LINENO: result: $CXX" >&5
3944 echo "${ECHO_T}$CXX" >&6
3945 else
3946   echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3948 fi
3949
3950     test -n "$CXX" && break
3951   done
3952 fi
3953 if test -z "$CXX"; then
3954   ac_ct_CXX=$CXX
3955   for ac_prog in $CCC g++
3956 do
3957   # Extract the first word of "$ac_prog", so it can be a program name with args.
3958 set dummy $ac_prog; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   if test -n "$ac_ct_CXX"; then
3965   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970   IFS=$as_save_IFS
3971   test -z "$as_dir" && as_dir=.
3972   for ac_exec_ext in '' $ac_executable_extensions; do
3973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974     ac_cv_prog_ac_ct_CXX="$ac_prog"
3975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976     break 2
3977   fi
3978 done
3979 done
3980
3981 fi
3982 fi
3983 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3984 if test -n "$ac_ct_CXX"; then
3985   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3986 echo "${ECHO_T}$ac_ct_CXX" >&6
3987 else
3988   echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3990 fi
3991
3992   test -n "$ac_ct_CXX" && break
3993 done
3994 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3995
3996   CXX=$ac_ct_CXX
3997 fi
3998
3999
4000 # Provide some information about the compiler.
4001 echo "$as_me:$LINENO:" \
4002      "checking for C++ compiler version" >&5
4003 ac_compiler=`set X $ac_compile; echo $2`
4004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4005   (eval $ac_compiler --version </dev/null >&5) 2>&5
4006   ac_status=$?
4007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); }
4009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4010   (eval $ac_compiler -v </dev/null >&5) 2>&5
4011   ac_status=$?
4012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013   (exit $ac_status); }
4014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4015   (eval $ac_compiler -V </dev/null >&5) 2>&5
4016   ac_status=$?
4017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018   (exit $ac_status); }
4019
4020 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4021 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4022 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   cat >conftest.$ac_ext <<_ACEOF
4026 /* confdefs.h.  */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h.  */
4031
4032 int
4033 main ()
4034 {
4035 #ifndef __GNUC__
4036        choke me
4037 #endif
4038
4039   ;
4040   return 0;
4041 }
4042 _ACEOF
4043 rm -f conftest.$ac_objext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045   (eval $ac_compile) 2>conftest.er1
4046   ac_status=$?
4047   grep -v '^ *+' conftest.er1 >conftest.err
4048   rm -f conftest.er1
4049   cat conftest.err >&5
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); } &&
4052          { ac_try='test -z "$ac_cxx_werror_flag"
4053                          || test ! -s conftest.err'
4054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055   (eval $ac_try) 2>&5
4056   ac_status=$?
4057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); }; } &&
4059          { ac_try='test -s conftest.$ac_objext'
4060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061   (eval $ac_try) 2>&5
4062   ac_status=$?
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); }; }; then
4065   ac_compiler_gnu=yes
4066 else
4067   echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070 ac_compiler_gnu=no
4071 fi
4072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4074
4075 fi
4076 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4077 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4078 GXX=`test $ac_compiler_gnu = yes && echo yes`
4079 ac_test_CXXFLAGS=${CXXFLAGS+set}
4080 ac_save_CXXFLAGS=$CXXFLAGS
4081 CXXFLAGS="-g"
4082 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4083 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4084 if test "${ac_cv_prog_cxx_g+set}" = set; then
4085   echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087   cat >conftest.$ac_ext <<_ACEOF
4088 /* confdefs.h.  */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h.  */
4093
4094 int
4095 main ()
4096 {
4097
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   ac_cv_prog_cxx_g=yes
4125 else
4126   echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4128
4129 ac_cv_prog_cxx_g=no
4130 fi
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132 fi
4133 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4134 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4135 if test "$ac_test_CXXFLAGS" = set; then
4136   CXXFLAGS=$ac_save_CXXFLAGS
4137 elif test $ac_cv_prog_cxx_g = yes; then
4138   if test "$GXX" = yes; then
4139     CXXFLAGS="-g -O2"
4140   else
4141     CXXFLAGS="-g"
4142   fi
4143 else
4144   if test "$GXX" = yes; then
4145     CXXFLAGS="-O2"
4146   else
4147     CXXFLAGS=
4148   fi
4149 fi
4150 for ac_declaration in \
4151    '' \
4152    'extern "C" void std::exit (int) throw (); using std::exit;' \
4153    'extern "C" void std::exit (int); using std::exit;' \
4154    'extern "C" void exit (int) throw ();' \
4155    'extern "C" void exit (int);' \
4156    'void exit (int);'
4157 do
4158   cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h.  */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h.  */
4164 $ac_declaration
4165 #include <stdlib.h>
4166 int
4167 main ()
4168 {
4169 exit (42);
4170   ;
4171   return 0;
4172 }
4173 _ACEOF
4174 rm -f conftest.$ac_objext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176   (eval $ac_compile) 2>conftest.er1
4177   ac_status=$?
4178   grep -v '^ *+' conftest.er1 >conftest.err
4179   rm -f conftest.er1
4180   cat conftest.err >&5
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); } &&
4183          { ac_try='test -z "$ac_cxx_werror_flag"
4184                          || test ! -s conftest.err'
4185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186   (eval $ac_try) 2>&5
4187   ac_status=$?
4188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189   (exit $ac_status); }; } &&
4190          { ac_try='test -s conftest.$ac_objext'
4191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192   (eval $ac_try) 2>&5
4193   ac_status=$?
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); }; }; then
4196   :
4197 else
4198   echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4200
4201 continue
4202 fi
4203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4204   cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210 $ac_declaration
4211 int
4212 main ()
4213 {
4214 exit (42);
4215   ;
4216   return 0;
4217 }
4218 _ACEOF
4219 rm -f conftest.$ac_objext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221   (eval $ac_compile) 2>conftest.er1
4222   ac_status=$?
4223   grep -v '^ *+' conftest.er1 >conftest.err
4224   rm -f conftest.er1
4225   cat conftest.err >&5
4226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227   (exit $ac_status); } &&
4228          { ac_try='test -z "$ac_cxx_werror_flag"
4229                          || test ! -s conftest.err'
4230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231   (eval $ac_try) 2>&5
4232   ac_status=$?
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); }; } &&
4235          { ac_try='test -s conftest.$ac_objext'
4236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237   (eval $ac_try) 2>&5
4238   ac_status=$?
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); }; }; then
4241   break
4242 else
4243   echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4245
4246 fi
4247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4248 done
4249 rm -f conftest*
4250 if test -n "$ac_declaration"; then
4251   echo '#ifdef __cplusplus' >>confdefs.h
4252   echo $ac_declaration      >>confdefs.h
4253   echo '#endif'             >>confdefs.h
4254 fi
4255
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
4262 echo "$as_me:$LINENO: checking " >&5
4263 echo $ECHO_N "checking ... $ECHO_C" >&6
4264 if test "${ac_cv_has_flex+set}" = set; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   for ac_prog in flex lex
4268 do
4269   # Extract the first word of "$ac_prog", so it can be a program name with args.
4270 set dummy $ac_prog; ac_word=$2
4271 echo "$as_me:$LINENO: checking for $ac_word" >&5
4272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4273 if test "${ac_cv_prog_LEX+set}" = set; then
4274   echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276   if test -n "$LEX"; then
4277   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4278 else
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4281 do
4282   IFS=$as_save_IFS
4283   test -z "$as_dir" && as_dir=.
4284   for ac_exec_ext in '' $ac_executable_extensions; do
4285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286     ac_cv_prog_LEX="$ac_prog"
4287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288     break 2
4289   fi
4290 done
4291 done
4292
4293 fi
4294 fi
4295 LEX=$ac_cv_prog_LEX
4296 if test -n "$LEX"; then
4297   echo "$as_me:$LINENO: result: $LEX" >&5
4298 echo "${ECHO_T}$LEX" >&6
4299 else
4300   echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4302 fi
4303
4304   test -n "$LEX" && break
4305 done
4306 test -n "$LEX" || LEX=":"
4307
4308 if test -z "$LEXLIB"
4309 then
4310   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4311 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4312 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4313   echo $ECHO_N "(cached) $ECHO_C" >&6
4314 else
4315   ac_check_lib_save_LIBS=$LIBS
4316 LIBS="-lfl  $LIBS"
4317 cat >conftest.$ac_ext <<_ACEOF
4318 /* confdefs.h.  */
4319 _ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h.  */
4323
4324 /* Override any gcc2 internal prototype to avoid an error.  */
4325 #ifdef __cplusplus
4326 extern "C"
4327 #endif
4328 /* We use char because int might match the return type of a gcc2
4329    builtin and then its argument prototype would still apply.  */
4330 char yywrap ();
4331 int
4332 main ()
4333 {
4334 yywrap ();
4335   ;
4336   return 0;
4337 }
4338 _ACEOF
4339 rm -f conftest.$ac_objext conftest$ac_exeext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4341   (eval $ac_link) 2>conftest.er1
4342   ac_status=$?
4343   grep -v '^ *+' conftest.er1 >conftest.err
4344   rm -f conftest.er1
4345   cat conftest.err >&5
4346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); } &&
4348          { ac_try='test -z "$ac_c_werror_flag"
4349                          || test ! -s conftest.err'
4350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351   (eval $ac_try) 2>&5
4352   ac_status=$?
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); }; } &&
4355          { ac_try='test -s conftest$ac_exeext'
4356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357   (eval $ac_try) 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); }; }; then
4361   ac_cv_lib_fl_yywrap=yes
4362 else
4363   echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4365
4366 ac_cv_lib_fl_yywrap=no
4367 fi
4368 rm -f conftest.err conftest.$ac_objext \
4369       conftest$ac_exeext conftest.$ac_ext
4370 LIBS=$ac_check_lib_save_LIBS
4371 fi
4372 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4373 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4374 if test $ac_cv_lib_fl_yywrap = yes; then
4375   LEXLIB="-lfl"
4376 else
4377   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4378 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4379 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4380   echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382   ac_check_lib_save_LIBS=$LIBS
4383 LIBS="-ll  $LIBS"
4384 cat >conftest.$ac_ext <<_ACEOF
4385 /* confdefs.h.  */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h.  */
4390
4391 /* Override any gcc2 internal prototype to avoid an error.  */
4392 #ifdef __cplusplus
4393 extern "C"
4394 #endif
4395 /* We use char because int might match the return type of a gcc2
4396    builtin and then its argument prototype would still apply.  */
4397 char yywrap ();
4398 int
4399 main ()
4400 {
4401 yywrap ();
4402   ;
4403   return 0;
4404 }
4405 _ACEOF
4406 rm -f conftest.$ac_objext conftest$ac_exeext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4408   (eval $ac_link) 2>conftest.er1
4409   ac_status=$?
4410   grep -v '^ *+' conftest.er1 >conftest.err
4411   rm -f conftest.er1
4412   cat conftest.err >&5
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); } &&
4415          { ac_try='test -z "$ac_c_werror_flag"
4416                          || test ! -s conftest.err'
4417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418   (eval $ac_try) 2>&5
4419   ac_status=$?
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); }; } &&
4422          { ac_try='test -s conftest$ac_exeext'
4423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424   (eval $ac_try) 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); }; }; then
4428   ac_cv_lib_l_yywrap=yes
4429 else
4430   echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 ac_cv_lib_l_yywrap=no
4434 fi
4435 rm -f conftest.err conftest.$ac_objext \
4436       conftest$ac_exeext conftest.$ac_ext
4437 LIBS=$ac_check_lib_save_LIBS
4438 fi
4439 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4440 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4441 if test $ac_cv_lib_l_yywrap = yes; then
4442   LEXLIB="-ll"
4443 fi
4444
4445 fi
4446
4447 fi
4448
4449 if test "x$LEX" != "x:"; then
4450   echo "$as_me:$LINENO: checking lex output file root" >&5
4451 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4452 if test "${ac_cv_prog_lex_root+set}" = set; then
4453   echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455   # The minimal lex program is just a single line: %%.  But some broken lexes
4456 # (Solaris, I think it was) want two %% lines, so accommodate them.
4457 cat >conftest.l <<_ACEOF
4458 %%
4459 %%
4460 _ACEOF
4461 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4462   (eval $LEX conftest.l) 2>&5
4463   ac_status=$?
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); }
4466 if test -f lex.yy.c; then
4467   ac_cv_prog_lex_root=lex.yy
4468 elif test -f lexyy.c; then
4469   ac_cv_prog_lex_root=lexyy
4470 else
4471   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4472 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4473    { (exit 1); exit 1; }; }
4474 fi
4475 fi
4476 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4477 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4478 rm -f conftest.l
4479 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4480
4481 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4482 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4483 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4484   echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486   # POSIX says lex can declare yytext either as a pointer or an array; the
4487 # default is implementation-dependent. Figure out which it is, since
4488 # not all implementations provide the %pointer and %array declarations.
4489 ac_cv_prog_lex_yytext_pointer=no
4490 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4491 ac_save_LIBS=$LIBS
4492 LIBS="$LIBS $LEXLIB"
4493 cat >conftest.$ac_ext <<_ACEOF
4494 `cat $LEX_OUTPUT_ROOT.c`
4495 _ACEOF
4496 rm -f conftest.$ac_objext conftest$ac_exeext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4498   (eval $ac_link) 2>conftest.er1
4499   ac_status=$?
4500   grep -v '^ *+' conftest.er1 >conftest.err
4501   rm -f conftest.er1
4502   cat conftest.err >&5
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); } &&
4505          { ac_try='test -z "$ac_c_werror_flag"
4506                          || test ! -s conftest.err'
4507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508   (eval $ac_try) 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); }; } &&
4512          { ac_try='test -s conftest$ac_exeext'
4513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514   (eval $ac_try) 2>&5
4515   ac_status=$?
4516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); }; }; then
4518   ac_cv_prog_lex_yytext_pointer=yes
4519 else
4520   echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4522
4523 fi
4524 rm -f conftest.err conftest.$ac_objext \
4525       conftest$ac_exeext conftest.$ac_ext
4526 LIBS=$ac_save_LIBS
4527 rm -f "${LEX_OUTPUT_ROOT}.c"
4528
4529 fi
4530 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4531 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4532 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4533
4534 cat >>confdefs.h <<\_ACEOF
4535 #define YYTEXT_POINTER 1
4536 _ACEOF
4537
4538 fi
4539
4540 fi
4541
4542 fi
4543 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4544 echo "${ECHO_T}$ac_cv_has_flex" >&6
4545 if test "$LEX" != "flex"; then
4546   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4547 echo "$as_me: error: flex not found but required" >&2;}
4548    { (exit 1); exit 1; }; }
4549 else
4550   FLEX=flex
4551
4552 fi
4553
4554 echo "$as_me:$LINENO: checking " >&5
4555 echo $ECHO_N "checking ... $ECHO_C" >&6
4556 if test "${llvm_cv_has_bison+set}" = set; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   for ac_prog in 'bison -y' byacc
4560 do
4561   # Extract the first word of "$ac_prog", so it can be a program name with args.
4562 set dummy $ac_prog; ac_word=$2
4563 echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565 if test "${ac_cv_prog_YACC+set}" = set; then
4566   echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568   if test -n "$YACC"; then
4569   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4573 do
4574   IFS=$as_save_IFS
4575   test -z "$as_dir" && as_dir=.
4576   for ac_exec_ext in '' $ac_executable_extensions; do
4577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578     ac_cv_prog_YACC="$ac_prog"
4579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580     break 2
4581   fi
4582 done
4583 done
4584
4585 fi
4586 fi
4587 YACC=$ac_cv_prog_YACC
4588 if test -n "$YACC"; then
4589   echo "$as_me:$LINENO: result: $YACC" >&5
4590 echo "${ECHO_T}$YACC" >&6
4591 else
4592   echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4594 fi
4595
4596   test -n "$YACC" && break
4597 done
4598 test -n "$YACC" || YACC="yacc"
4599
4600 fi
4601 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4602 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4603 if test "$YACC" != "bison -y"; then
4604   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4605 echo "$as_me: error: bison not found but required" >&2;}
4606    { (exit 1); exit 1; }; }
4607 else
4608   BISON=bison
4609
4610 fi
4611
4612 echo "$as_me:$LINENO: checking for GNU make" >&5
4613 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4614 if test "${llvm_cv_gnu_make_command+set}" = set; then
4615   echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617   llvm_cv_gnu_make_command=''
4618  for a in "$MAKE" make gmake gnumake ; do
4619   if test -z "$a" ; then continue ; fi ;
4620   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4621   then
4622    llvm_cv_gnu_make_command=$a ;
4623    break;
4624   fi
4625  done
4626 fi
4627 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4628 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4629  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4630    ifGNUmake='' ;
4631  else
4632    ifGNUmake='#' ;
4633    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4634 echo "${ECHO_T}\"Not found\"" >&6;
4635  fi
4636
4637
4638 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4639 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4640 LN_S=$as_ln_s
4641 if test "$LN_S" = "ln -s"; then
4642   echo "$as_me:$LINENO: result: yes" >&5
4643 echo "${ECHO_T}yes" >&6
4644 else
4645   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4646 echo "${ECHO_T}no, using $LN_S" >&6
4647 fi
4648
4649 # Extract the first word of "cmp", so it can be a program name with args.
4650 set dummy cmp; ac_word=$2
4651 echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653 if test "${ac_cv_path_CMP+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656   case $CMP in
4657   [\\/]* | ?:[\\/]*)
4658   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4659   ;;
4660   *)
4661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664   IFS=$as_save_IFS
4665   test -z "$as_dir" && as_dir=.
4666   for ac_exec_ext in '' $ac_executable_extensions; do
4667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670     break 2
4671   fi
4672 done
4673 done
4674
4675   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4676   ;;
4677 esac
4678 fi
4679 CMP=$ac_cv_path_CMP
4680
4681 if test -n "$CMP"; then
4682   echo "$as_me:$LINENO: result: $CMP" >&5
4683 echo "${ECHO_T}$CMP" >&6
4684 else
4685   echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6
4687 fi
4688
4689 # Extract the first word of "cp", so it can be a program name with args.
4690 set dummy cp; ac_word=$2
4691 echo "$as_me:$LINENO: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4693 if test "${ac_cv_path_CP+set}" = set; then
4694   echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696   case $CP in
4697   [\\/]* | ?:[\\/]*)
4698   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4699   ;;
4700   *)
4701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704   IFS=$as_save_IFS
4705   test -z "$as_dir" && as_dir=.
4706   for ac_exec_ext in '' $ac_executable_extensions; do
4707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710     break 2
4711   fi
4712 done
4713 done
4714
4715   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4716   ;;
4717 esac
4718 fi
4719 CP=$ac_cv_path_CP
4720
4721 if test -n "$CP"; then
4722   echo "$as_me:$LINENO: result: $CP" >&5
4723 echo "${ECHO_T}$CP" >&6
4724 else
4725   echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6
4727 fi
4728
4729 # Extract the first word of "date", so it can be a program name with args.
4730 set dummy date; ac_word=$2
4731 echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4733 if test "${ac_cv_path_DATE+set}" = set; then
4734   echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736   case $DATE in
4737   [\\/]* | ?:[\\/]*)
4738   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4739   ;;
4740   *)
4741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4743 do
4744   IFS=$as_save_IFS
4745   test -z "$as_dir" && as_dir=.
4746   for ac_exec_ext in '' $ac_executable_extensions; do
4747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750     break 2
4751   fi
4752 done
4753 done
4754
4755   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4756   ;;
4757 esac
4758 fi
4759 DATE=$ac_cv_path_DATE
4760
4761 if test -n "$DATE"; then
4762   echo "$as_me:$LINENO: result: $DATE" >&5
4763 echo "${ECHO_T}$DATE" >&6
4764 else
4765   echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6
4767 fi
4768
4769 # Extract the first word of "find", so it can be a program name with args.
4770 set dummy find; ac_word=$2
4771 echo "$as_me:$LINENO: checking for $ac_word" >&5
4772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4773 if test "${ac_cv_path_FIND+set}" = set; then
4774   echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776   case $FIND in
4777   [\\/]* | ?:[\\/]*)
4778   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4779   ;;
4780   *)
4781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4783 do
4784   IFS=$as_save_IFS
4785   test -z "$as_dir" && as_dir=.
4786   for ac_exec_ext in '' $ac_executable_extensions; do
4787   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790     break 2
4791   fi
4792 done
4793 done
4794
4795   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4796   ;;
4797 esac
4798 fi
4799 FIND=$ac_cv_path_FIND
4800
4801 if test -n "$FIND"; then
4802   echo "$as_me:$LINENO: result: $FIND" >&5
4803 echo "${ECHO_T}$FIND" >&6
4804 else
4805   echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6
4807 fi
4808
4809 # Extract the first word of "grep", so it can be a program name with args.
4810 set dummy grep; ac_word=$2
4811 echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813 if test "${ac_cv_path_GREP+set}" = set; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816   case $GREP in
4817   [\\/]* | ?:[\\/]*)
4818   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4819   ;;
4820   *)
4821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4823 do
4824   IFS=$as_save_IFS
4825   test -z "$as_dir" && as_dir=.
4826   for ac_exec_ext in '' $ac_executable_extensions; do
4827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830     break 2
4831   fi
4832 done
4833 done
4834
4835   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4836   ;;
4837 esac
4838 fi
4839 GREP=$ac_cv_path_GREP
4840
4841 if test -n "$GREP"; then
4842   echo "$as_me:$LINENO: result: $GREP" >&5
4843 echo "${ECHO_T}$GREP" >&6
4844 else
4845   echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6
4847 fi
4848
4849 # Extract the first word of "mkdir", so it can be a program name with args.
4850 set dummy mkdir; ac_word=$2
4851 echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_path_MKDIR+set}" = set; then
4854   echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856   case $MKDIR in
4857   [\\/]* | ?:[\\/]*)
4858   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4859   ;;
4860   *)
4861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864   IFS=$as_save_IFS
4865   test -z "$as_dir" && as_dir=.
4866   for ac_exec_ext in '' $ac_executable_extensions; do
4867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870     break 2
4871   fi
4872 done
4873 done
4874
4875   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4876   ;;
4877 esac
4878 fi
4879 MKDIR=$ac_cv_path_MKDIR
4880
4881 if test -n "$MKDIR"; then
4882   echo "$as_me:$LINENO: result: $MKDIR" >&5
4883 echo "${ECHO_T}$MKDIR" >&6
4884 else
4885   echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4887 fi
4888
4889 # Extract the first word of "mv", so it can be a program name with args.
4890 set dummy mv; ac_word=$2
4891 echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893 if test "${ac_cv_path_MV+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   case $MV in
4897   [\\/]* | ?:[\\/]*)
4898   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4899   ;;
4900   *)
4901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904   IFS=$as_save_IFS
4905   test -z "$as_dir" && as_dir=.
4906   for ac_exec_ext in '' $ac_executable_extensions; do
4907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910     break 2
4911   fi
4912 done
4913 done
4914
4915   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4916   ;;
4917 esac
4918 fi
4919 MV=$ac_cv_path_MV
4920
4921 if test -n "$MV"; then
4922   echo "$as_me:$LINENO: result: $MV" >&5
4923 echo "${ECHO_T}$MV" >&6
4924 else
4925   echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6
4927 fi
4928
4929 if test -n "$ac_tool_prefix"; then
4930   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4931 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4932 echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4934 if test "${ac_cv_prog_RANLIB+set}" = set; then
4935   echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937   if test -n "$RANLIB"; then
4938   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4939 else
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4942 do
4943   IFS=$as_save_IFS
4944   test -z "$as_dir" && as_dir=.
4945   for ac_exec_ext in '' $ac_executable_extensions; do
4946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4949     break 2
4950   fi
4951 done
4952 done
4953
4954 fi
4955 fi
4956 RANLIB=$ac_cv_prog_RANLIB
4957 if test -n "$RANLIB"; then
4958   echo "$as_me:$LINENO: result: $RANLIB" >&5
4959 echo "${ECHO_T}$RANLIB" >&6
4960 else
4961   echo "$as_me:$LINENO: result: no" >&5
4962 echo "${ECHO_T}no" >&6
4963 fi
4964
4965 fi
4966 if test -z "$ac_cv_prog_RANLIB"; then
4967   ac_ct_RANLIB=$RANLIB
4968   # Extract the first word of "ranlib", so it can be a program name with args.
4969 set dummy ranlib; ac_word=$2
4970 echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4972 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975   if test -n "$ac_ct_RANLIB"; then
4976   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981   IFS=$as_save_IFS
4982   test -z "$as_dir" && as_dir=.
4983   for ac_exec_ext in '' $ac_executable_extensions; do
4984   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985     ac_cv_prog_ac_ct_RANLIB="ranlib"
4986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987     break 2
4988   fi
4989 done
4990 done
4991
4992   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4993 fi
4994 fi
4995 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4996 if test -n "$ac_ct_RANLIB"; then
4997   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4998 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4999 else
5000   echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6
5002 fi
5003
5004   RANLIB=$ac_ct_RANLIB
5005 else
5006   RANLIB="$ac_cv_prog_RANLIB"
5007 fi
5008
5009 # Extract the first word of "rm", so it can be a program name with args.
5010 set dummy rm; ac_word=$2
5011 echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013 if test "${ac_cv_path_RM+set}" = set; then
5014   echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016   case $RM in
5017   [\\/]* | ?:[\\/]*)
5018   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5019   ;;
5020   *)
5021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5023 do
5024   IFS=$as_save_IFS
5025   test -z "$as_dir" && as_dir=.
5026   for ac_exec_ext in '' $ac_executable_extensions; do
5027   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030     break 2
5031   fi
5032 done
5033 done
5034
5035   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5036   ;;
5037 esac
5038 fi
5039 RM=$ac_cv_path_RM
5040
5041 if test -n "$RM"; then
5042   echo "$as_me:$LINENO: result: $RM" >&5
5043 echo "${ECHO_T}$RM" >&6
5044 else
5045   echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5047 fi
5048
5049 # Extract the first word of "sed", so it can be a program name with args.
5050 set dummy sed; ac_word=$2
5051 echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5053 if test "${ac_cv_path_SED+set}" = set; then
5054   echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056   case $SED in
5057   [\\/]* | ?:[\\/]*)
5058   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5059   ;;
5060   *)
5061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5063 do
5064   IFS=$as_save_IFS
5065   test -z "$as_dir" && as_dir=.
5066   for ac_exec_ext in '' $ac_executable_extensions; do
5067   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070     break 2
5071   fi
5072 done
5073 done
5074
5075   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5076   ;;
5077 esac
5078 fi
5079 SED=$ac_cv_path_SED
5080
5081 if test -n "$SED"; then
5082   echo "$as_me:$LINENO: result: $SED" >&5
5083 echo "${ECHO_T}$SED" >&6
5084 else
5085   echo "$as_me:$LINENO: result: no" >&5
5086 echo "${ECHO_T}no" >&6
5087 fi
5088
5089 # Extract the first word of "tar", so it can be a program name with args.
5090 set dummy tar; ac_word=$2
5091 echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5093 if test "${ac_cv_path_TAR+set}" = set; then
5094   echo $ECHO_N "(cached) $ECHO_C" >&6
5095 else
5096   case $TAR in
5097   [\\/]* | ?:[\\/]*)
5098   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5099   ;;
5100   *)
5101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5103 do
5104   IFS=$as_save_IFS
5105   test -z "$as_dir" && as_dir=.
5106   for ac_exec_ext in '' $ac_executable_extensions; do
5107   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110     break 2
5111   fi
5112 done
5113 done
5114
5115   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5116   ;;
5117 esac
5118 fi
5119 TAR=$ac_cv_path_TAR
5120
5121 if test -n "$TAR"; then
5122   echo "$as_me:$LINENO: result: $TAR" >&5
5123 echo "${ECHO_T}$TAR" >&6
5124 else
5125   echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6
5127 fi
5128
5129 # Extract the first word of "Graphviz", so it can be a program name with args.
5130 set dummy Graphviz; ac_word=$2
5131 echo "$as_me:$LINENO: checking for $ac_word" >&5
5132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5134   echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136   case $GRAPHVIZ in
5137   [\\/]* | ?:[\\/]*)
5138   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5139   ;;
5140   *)
5141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5143 do
5144   IFS=$as_save_IFS
5145   test -z "$as_dir" && as_dir=.
5146   for ac_exec_ext in '' $ac_executable_extensions; do
5147   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150     break 2
5151   fi
5152 done
5153 done
5154
5155   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5156   ;;
5157 esac
5158 fi
5159 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5160
5161 if test -n "$GRAPHVIZ"; then
5162   echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5163 echo "${ECHO_T}$GRAPHVIZ" >&6
5164 else
5165   echo "$as_me:$LINENO: result: no" >&5
5166 echo "${ECHO_T}no" >&6
5167 fi
5168
5169 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5170
5171 cat >>confdefs.h <<\_ACEOF
5172 #define HAVE_GRAPHVIZ 1
5173 _ACEOF
5174
5175
5176 cat >>confdefs.h <<_ACEOF
5177 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5178 _ACEOF
5179
5180 fi
5181 # Extract the first word of "gv", so it can be a program name with args.
5182 set dummy gv; ac_word=$2
5183 echo "$as_me:$LINENO: checking for $ac_word" >&5
5184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5185 if test "${ac_cv_path_GV+set}" = set; then
5186   echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188   case $GV in
5189   [\\/]* | ?:[\\/]*)
5190   ac_cv_path_GV="$GV" # Let the user override the test with a path.
5191   ;;
5192   *)
5193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5195 do
5196   IFS=$as_save_IFS
5197   test -z "$as_dir" && as_dir=.
5198   for ac_exec_ext in '' $ac_executable_extensions; do
5199   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202     break 2
5203   fi
5204 done
5205 done
5206
5207   test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5208   ;;
5209 esac
5210 fi
5211 GV=$ac_cv_path_GV
5212
5213 if test -n "$GV"; then
5214   echo "$as_me:$LINENO: result: $GV" >&5
5215 echo "${ECHO_T}$GV" >&6
5216 else
5217   echo "$as_me:$LINENO: result: no" >&5
5218 echo "${ECHO_T}no" >&6
5219 fi
5220
5221 if test "$GV" != "echo gv" ; then
5222
5223 cat >>confdefs.h <<\_ACEOF
5224 #define HAVE_GV 1
5225 _ACEOF
5226
5227
5228 cat >>confdefs.h <<_ACEOF
5229 #define LLVM_PATH_GV "$GV"
5230 _ACEOF
5231
5232 fi
5233
5234
5235 # Extract the first word of "perl", so it can be a program name with args.
5236 set dummy perl; ac_word=$2
5237 echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239 if test "${ac_cv_path_PERL+set}" = set; then
5240   echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242   case $PERL in
5243   [\\/]* | ?:[\\/]*)
5244   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5245   ;;
5246   *)
5247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5249 do
5250   IFS=$as_save_IFS
5251   test -z "$as_dir" && as_dir=.
5252   for ac_exec_ext in '' $ac_executable_extensions; do
5253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256     break 2
5257   fi
5258 done
5259 done
5260
5261   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5262   ;;
5263 esac
5264 fi
5265 PERL=$ac_cv_path_PERL
5266
5267 if test -n "$PERL"; then
5268   echo "$as_me:$LINENO: result: $PERL" >&5
5269 echo "${ECHO_T}$PERL" >&6
5270 else
5271   echo "$as_me:$LINENO: result: no" >&5
5272 echo "${ECHO_T}no" >&6
5273 fi
5274
5275 if test "$PERL" != "none"; then
5276   echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5277 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5278   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5279     echo "$as_me:$LINENO: result: yes" >&5
5280 echo "${ECHO_T}yes" >&6
5281   else
5282     PERL=none
5283     echo "$as_me:$LINENO: result: not found" >&5
5284 echo "${ECHO_T}not found" >&6
5285   fi
5286 fi
5287
5288
5289 if test x"$PERL" = xnone; then
5290    HAVE_PERL=0
5291
5292 else
5293    HAVE_PERL=1
5294
5295 fi
5296
5297 # Find a good install program.  We prefer a C program (faster),
5298 # so one script is as good as another.  But avoid the broken or
5299 # incompatible versions:
5300 # SysV /etc/install, /usr/sbin/install
5301 # SunOS /usr/etc/install
5302 # IRIX /sbin/install
5303 # AIX /bin/install
5304 # AmigaOS /C/install, which installs bootblocks on floppy discs
5305 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5306 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5307 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5308 # OS/2's system install, which has a completely different semantic
5309 # ./install, which can be erroneously created by make from ./install.sh.
5310 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5311 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5312 if test -z "$INSTALL"; then
5313 if test "${ac_cv_path_install+set}" = set; then
5314   echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH
5318 do
5319   IFS=$as_save_IFS
5320   test -z "$as_dir" && as_dir=.
5321   # Account for people who put trailing slashes in PATH elements.
5322 case $as_dir/ in
5323   ./ | .// | /cC/* | \
5324   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5325   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5326   /usr/ucb/* ) ;;
5327   *)
5328     # OSF1 and SCO ODT 3.0 have their own names for install.
5329     # Don't use installbsd from OSF since it installs stuff as root
5330     # by default.
5331     for ac_prog in ginstall scoinst install; do
5332       for ac_exec_ext in '' $ac_executable_extensions; do
5333         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5334           if test $ac_prog = install &&
5335             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5336             # AIX install.  It has an incompatible calling convention.
5337             :
5338           elif test $ac_prog = install &&
5339             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5340             # program-specific install script used by HP pwplus--don't use.
5341             :
5342           else
5343             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5344             break 3
5345           fi
5346         fi
5347       done
5348     done
5349     ;;
5350 esac
5351 done
5352
5353
5354 fi
5355   if test "${ac_cv_path_install+set}" = set; then
5356     INSTALL=$ac_cv_path_install
5357   else
5358     # As a last resort, use the slow shell script.  We don't cache a
5359     # path for INSTALL within a source directory, because that will
5360     # break other packages using the cache if that directory is
5361     # removed, or if the path is relative.
5362     INSTALL=$ac_install_sh
5363   fi
5364 fi
5365 echo "$as_me:$LINENO: result: $INSTALL" >&5
5366 echo "${ECHO_T}$INSTALL" >&6
5367
5368 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5369 # It thinks the first close brace ends the variable substitution.
5370 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5371
5372 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5373
5374 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5375
5376
5377 # Extract the first word of "bzip2", so it can be a program name with args.
5378 set dummy bzip2; ac_word=$2
5379 echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5381 if test "${ac_cv_path_BZIP2+set}" = set; then
5382   echo $ECHO_N "(cached) $ECHO_C" >&6
5383 else
5384   case $BZIP2 in
5385   [\\/]* | ?:[\\/]*)
5386   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5387   ;;
5388   *)
5389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5391 do
5392   IFS=$as_save_IFS
5393   test -z "$as_dir" && as_dir=.
5394   for ac_exec_ext in '' $ac_executable_extensions; do
5395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398     break 2
5399   fi
5400 done
5401 done
5402
5403   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
5404   ;;
5405 esac
5406 fi
5407 BZIP2=$ac_cv_path_BZIP2
5408
5409 if test -n "$BZIP2"; then
5410   echo "$as_me:$LINENO: result: $BZIP2" >&5
5411 echo "${ECHO_T}$BZIP2" >&6
5412 else
5413   echo "$as_me:$LINENO: result: no" >&5
5414 echo "${ECHO_T}no" >&6
5415 fi
5416
5417 # Extract the first word of "dot", so it can be a program name with args.
5418 set dummy dot; ac_word=$2
5419 echo "$as_me:$LINENO: checking for $ac_word" >&5
5420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5421 if test "${ac_cv_path_DOT+set}" = set; then
5422   echo $ECHO_N "(cached) $ECHO_C" >&6
5423 else
5424   case $DOT in
5425   [\\/]* | ?:[\\/]*)
5426   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5427   ;;
5428   *)
5429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432   IFS=$as_save_IFS
5433   test -z "$as_dir" && as_dir=.
5434   for ac_exec_ext in '' $ac_executable_extensions; do
5435   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5438     break 2
5439   fi
5440 done
5441 done
5442
5443   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo "Skipped: dot not found""
5444   ;;
5445 esac
5446 fi
5447 DOT=$ac_cv_path_DOT
5448
5449 if test -n "$DOT"; then
5450   echo "$as_me:$LINENO: result: $DOT" >&5
5451 echo "${ECHO_T}$DOT" >&6
5452 else
5453   echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6
5455 fi
5456
5457 # Extract the first word of "doxygen", so it can be a program name with args.
5458 set dummy doxygen; ac_word=$2
5459 echo "$as_me:$LINENO: checking for $ac_word" >&5
5460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5461 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5462   echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464   case $DOXYGEN in
5465   [\\/]* | ?:[\\/]*)
5466   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5467   ;;
5468   *)
5469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5471 do
5472   IFS=$as_save_IFS
5473   test -z "$as_dir" && as_dir=.
5474   for ac_exec_ext in '' $ac_executable_extensions; do
5475   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5478     break 2
5479   fi
5480 done
5481 done
5482
5483   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
5484   ;;
5485 esac
5486 fi
5487 DOXYGEN=$ac_cv_path_DOXYGEN
5488
5489 if test -n "$DOXYGEN"; then
5490   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5491 echo "${ECHO_T}$DOXYGEN" >&6
5492 else
5493   echo "$as_me:$LINENO: result: no" >&5
5494 echo "${ECHO_T}no" >&6
5495 fi
5496
5497 # Extract the first word of "etags", so it can be a program name with args.
5498 set dummy etags; ac_word=$2
5499 echo "$as_me:$LINENO: checking for $ac_word" >&5
5500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5501 if test "${ac_cv_path_ETAGS+set}" = set; then
5502   echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504   case $ETAGS in
5505   [\\/]* | ?:[\\/]*)
5506   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5507   ;;
5508   *)
5509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH
5511 do
5512   IFS=$as_save_IFS
5513   test -z "$as_dir" && as_dir=.
5514   for ac_exec_ext in '' $ac_executable_extensions; do
5515   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5516     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5518     break 2
5519   fi
5520 done
5521 done
5522
5523   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
5524   ;;
5525 esac
5526 fi
5527 ETAGS=$ac_cv_path_ETAGS
5528
5529 if test -n "$ETAGS"; then
5530   echo "$as_me:$LINENO: result: $ETAGS" >&5
5531 echo "${ECHO_T}$ETAGS" >&6
5532 else
5533   echo "$as_me:$LINENO: result: no" >&5
5534 echo "${ECHO_T}no" >&6
5535 fi
5536
5537 # Extract the first word of "groff", so it can be a program name with args.
5538 set dummy groff; ac_word=$2
5539 echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5541 if test "${ac_cv_path_GROFF+set}" = set; then
5542   echo $ECHO_N "(cached) $ECHO_C" >&6
5543 else
5544   case $GROFF in
5545   [\\/]* | ?:[\\/]*)
5546   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5547   ;;
5548   *)
5549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5551 do
5552   IFS=$as_save_IFS
5553   test -z "$as_dir" && as_dir=.
5554   for ac_exec_ext in '' $ac_executable_extensions; do
5555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5556     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558     break 2
5559   fi
5560 done
5561 done
5562
5563   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
5564   ;;
5565 esac
5566 fi
5567 GROFF=$ac_cv_path_GROFF
5568
5569 if test -n "$GROFF"; then
5570   echo "$as_me:$LINENO: result: $GROFF" >&5
5571 echo "${ECHO_T}$GROFF" >&6
5572 else
5573   echo "$as_me:$LINENO: result: no" >&5
5574 echo "${ECHO_T}no" >&6
5575 fi
5576
5577 # Extract the first word of "gzip", so it can be a program name with args.
5578 set dummy gzip; ac_word=$2
5579 echo "$as_me:$LINENO: checking for $ac_word" >&5
5580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5581 if test "${ac_cv_path_GZIP+set}" = set; then
5582   echo $ECHO_N "(cached) $ECHO_C" >&6
5583 else
5584   case $GZIP in
5585   [\\/]* | ?:[\\/]*)
5586   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5587   ;;
5588   *)
5589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH
5591 do
5592   IFS=$as_save_IFS
5593   test -z "$as_dir" && as_dir=.
5594   for ac_exec_ext in '' $ac_executable_extensions; do
5595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5596     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5598     break 2
5599   fi
5600 done
5601 done
5602
5603   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
5604   ;;
5605 esac
5606 fi
5607 GZIP=$ac_cv_path_GZIP
5608
5609 if test -n "$GZIP"; then
5610   echo "$as_me:$LINENO: result: $GZIP" >&5
5611 echo "${ECHO_T}$GZIP" >&6
5612 else
5613   echo "$as_me:$LINENO: result: no" >&5
5614 echo "${ECHO_T}no" >&6
5615 fi
5616
5617 # Extract the first word of "pod2html", so it can be a program name with args.
5618 set dummy pod2html; ac_word=$2
5619 echo "$as_me:$LINENO: checking for $ac_word" >&5
5620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5621 if test "${ac_cv_path_POD2HTML+set}" = set; then
5622   echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624   case $POD2HTML in
5625   [\\/]* | ?:[\\/]*)
5626   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5627   ;;
5628   *)
5629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH
5631 do
5632   IFS=$as_save_IFS
5633   test -z "$as_dir" && as_dir=.
5634   for ac_exec_ext in '' $ac_executable_extensions; do
5635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5638     break 2
5639   fi
5640 done
5641 done
5642
5643   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
5644   ;;
5645 esac
5646 fi
5647 POD2HTML=$ac_cv_path_POD2HTML
5648
5649 if test -n "$POD2HTML"; then
5650   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5651 echo "${ECHO_T}$POD2HTML" >&6
5652 else
5653   echo "$as_me:$LINENO: result: no" >&5
5654 echo "${ECHO_T}no" >&6
5655 fi
5656
5657 # Extract the first word of "pod2man", so it can be a program name with args.
5658 set dummy pod2man; ac_word=$2
5659 echo "$as_me:$LINENO: checking for $ac_word" >&5
5660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5661 if test "${ac_cv_path_POD2MAN+set}" = set; then
5662   echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664   case $POD2MAN in
5665   [\\/]* | ?:[\\/]*)
5666   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5667   ;;
5668   *)
5669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 for as_dir in $PATH
5671 do
5672   IFS=$as_save_IFS
5673   test -z "$as_dir" && as_dir=.
5674   for ac_exec_ext in '' $ac_executable_extensions; do
5675   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5676     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678     break 2
5679   fi
5680 done
5681 done
5682
5683   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
5684   ;;
5685 esac
5686 fi
5687 POD2MAN=$ac_cv_path_POD2MAN
5688
5689 if test -n "$POD2MAN"; then
5690   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5691 echo "${ECHO_T}$POD2MAN" >&6
5692 else
5693   echo "$as_me:$LINENO: result: no" >&5
5694 echo "${ECHO_T}no" >&6
5695 fi
5696
5697 # Extract the first word of "runtest", so it can be a program name with args.
5698 set dummy runtest; ac_word=$2
5699 echo "$as_me:$LINENO: checking for $ac_word" >&5
5700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5701 if test "${ac_cv_path_RUNTEST+set}" = set; then
5702   echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704   case $RUNTEST in
5705   [\\/]* | ?:[\\/]*)
5706   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5707   ;;
5708   *)
5709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH
5711 do
5712   IFS=$as_save_IFS
5713   test -z "$as_dir" && as_dir=.
5714   for ac_exec_ext in '' $ac_executable_extensions; do
5715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5716     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5718     break 2
5719   fi
5720 done
5721 done
5722
5723   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
5724   ;;
5725 esac
5726 fi
5727 RUNTEST=$ac_cv_path_RUNTEST
5728
5729 if test -n "$RUNTEST"; then
5730   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5731 echo "${ECHO_T}$RUNTEST" >&6
5732 else
5733   echo "$as_me:$LINENO: result: no" >&5
5734 echo "${ECHO_T}no" >&6
5735 fi
5736
5737
5738 no_itcl=true
5739 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5740 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5741
5742 # Check whether --with-tclinclude or --without-tclinclude was given.
5743 if test "${with_tclinclude+set}" = set; then
5744   withval="$with_tclinclude"
5745   with_tclinclude=${withval}
5746 else
5747   with_tclinclude=''
5748 fi;
5749 if test "${ac_cv_path_tclsh+set}" = set; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752
5753 if test x"${with_tclinclude}" != x ; then
5754   if test -f ${with_tclinclude}/tclsh ; then
5755     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5756   elif test -f ${with_tclinclude}/src/tclsh ; then
5757     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5758   else
5759     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5760 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5761    { (exit 1); exit 1; }; }
5762   fi
5763 fi
5764
5765 if test x"${ac_cv_path_tclsh}" = x ; then
5766   echo "$as_me:$LINENO: result: none" >&5
5767 echo "${ECHO_T}none" >&6
5768   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
5769 do
5770   # Extract the first word of "$ac_prog", so it can be a program name with args.
5771 set dummy $ac_prog; ac_word=$2
5772 echo "$as_me:$LINENO: checking for $ac_word" >&5
5773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5774 if test "${ac_cv_path_TCLSH+set}" = set; then
5775   echo $ECHO_N "(cached) $ECHO_C" >&6
5776 else
5777   case $TCLSH in
5778   [\\/]* | ?:[\\/]*)
5779   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5780   ;;
5781   *)
5782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 for as_dir in $PATH
5784 do
5785   IFS=$as_save_IFS
5786   test -z "$as_dir" && as_dir=.
5787   for ac_exec_ext in '' $ac_executable_extensions; do
5788   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5789     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5791     break 2
5792   fi
5793 done
5794 done
5795
5796   ;;
5797 esac
5798 fi
5799 TCLSH=$ac_cv_path_TCLSH
5800
5801 if test -n "$TCLSH"; then
5802   echo "$as_me:$LINENO: result: $TCLSH" >&5
5803 echo "${ECHO_T}$TCLSH" >&6
5804 else
5805   echo "$as_me:$LINENO: result: no" >&5
5806 echo "${ECHO_T}no" >&6
5807 fi
5808
5809   test -n "$TCLSH" && break
5810 done
5811
5812   if test x"${TCLSH}" = x ; then
5813     ac_cv_path_tclsh='';
5814   else
5815     ac_cv_path_tclsh="${TCLSH}";
5816   fi
5817 else
5818   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5819 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5820   TCLSH="${ac_cv_path_tclsh}"
5821
5822 fi
5823
5824 fi
5825
5826 # Extract the first word of "zip", so it can be a program name with args.
5827 set dummy zip; ac_word=$2
5828 echo "$as_me:$LINENO: checking for $ac_word" >&5
5829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5830 if test "${ac_cv_path_ZIP+set}" = set; then
5831   echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833   case $ZIP in
5834   [\\/]* | ?:[\\/]*)
5835   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5836   ;;
5837   *)
5838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH
5840 do
5841   IFS=$as_save_IFS
5842   test -z "$as_dir" && as_dir=.
5843   for ac_exec_ext in '' $ac_executable_extensions; do
5844   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5845     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847     break 2
5848   fi
5849 done
5850 done
5851
5852   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
5853   ;;
5854 esac
5855 fi
5856 ZIP=$ac_cv_path_ZIP
5857
5858 if test -n "$ZIP"; then
5859   echo "$as_me:$LINENO: result: $ZIP" >&5
5860 echo "${ECHO_T}$ZIP" >&6
5861 else
5862   echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6
5864 fi
5865
5866
5867 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5868 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5869 if test "${llvm_cv_link_use_r+set}" = set; then
5870   echo $ECHO_N "(cached) $ECHO_C" >&6
5871 else
5872    ac_ext=c
5873 ac_cpp='$CPP $CPPFLAGS'
5874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5877
5878   oldcflags="$CFLAGS"
5879   CFLAGS="$CFLAGS -Wl,-R."
5880   cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h.  */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h.  */
5886
5887 int
5888 main ()
5889 {
5890 int main() { return 0; }
5891   ;
5892   return 0;
5893 }
5894 _ACEOF
5895 rm -f conftest.$ac_objext conftest$ac_exeext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5897   (eval $ac_link) 2>conftest.er1
5898   ac_status=$?
5899   grep -v '^ *+' conftest.er1 >conftest.err
5900   rm -f conftest.er1
5901   cat conftest.err >&5
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); } &&
5904          { ac_try='test -z "$ac_c_werror_flag"
5905                          || test ! -s conftest.err'
5906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907   (eval $ac_try) 2>&5
5908   ac_status=$?
5909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910   (exit $ac_status); }; } &&
5911          { ac_try='test -s conftest$ac_exeext'
5912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913   (eval $ac_try) 2>&5
5914   ac_status=$?
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); }; }; then
5917   llvm_cv_link_use_r=yes
5918 else
5919   echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5921
5922 llvm_cv_link_use_r=no
5923 fi
5924 rm -f conftest.err conftest.$ac_objext \
5925       conftest$ac_exeext conftest.$ac_ext
5926   CFLAGS="$oldcflags"
5927   ac_ext=c
5928 ac_cpp='$CPP $CPPFLAGS'
5929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5932
5933
5934 fi
5935 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5936 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5937 if test "$llvm_cv_link_use_r" = yes ; then
5938
5939 cat >>confdefs.h <<\_ACEOF
5940 #define HAVE_LINK_R 1
5941 _ACEOF
5942
5943   fi
5944
5945
5946
5947
5948 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5949 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5950 if test "${ac_cv_c_const+set}" = set; then
5951   echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953   cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h.  */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h.  */
5959
5960 int
5961 main ()
5962 {
5963 /* FIXME: Include the comments suggested by Paul. */
5964 #ifndef __cplusplus
5965   /* Ultrix mips cc rejects this.  */
5966   typedef int charset[2];
5967   const charset x;
5968   /* SunOS 4.1.1 cc rejects this.  */
5969   char const *const *ccp;
5970   char **p;
5971   /* NEC SVR4.0.2 mips cc rejects this.  */
5972   struct point {int x, y;};
5973   static struct point const zero = {0,0};
5974   /* AIX XL C 1.02.0.0 rejects this.
5975      It does not let you subtract one const X* pointer from another in
5976      an arm of an if-expression whose if-part is not a constant
5977      expression */
5978   const char *g = "string";
5979   ccp = &g + (g ? g-g : 0);
5980   /* HPUX 7.0 cc rejects these. */
5981   ++ccp;
5982   p = (char**) ccp;
5983   ccp = (char const *const *) p;
5984   { /* SCO 3.2v4 cc rejects this.  */
5985     char *t;
5986     char const *s = 0 ? (char *) 0 : (char const *) 0;
5987
5988     *t++ = 0;
5989   }
5990   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5991     int x[] = {25, 17};
5992     const int *foo = &x[0];
5993     ++foo;
5994   }
5995   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5996     typedef const int *iptr;
5997     iptr p = 0;
5998     ++p;
5999   }
6000   { /* AIX XL C 1.02.0.0 rejects this saying
6001        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6002     struct s { int j; const int *ap[3]; };
6003     struct s *b; b->j = 5;
6004   }
6005   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6006     const int foo = 10;
6007   }
6008 #endif
6009
6010   ;
6011   return 0;
6012 }
6013 _ACEOF
6014 rm -f conftest.$ac_objext
6015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6016   (eval $ac_compile) 2>conftest.er1
6017   ac_status=$?
6018   grep -v '^ *+' conftest.er1 >conftest.err
6019   rm -f conftest.er1
6020   cat conftest.err >&5
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); } &&
6023          { ac_try='test -z "$ac_c_werror_flag"
6024                          || test ! -s conftest.err'
6025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026   (eval $ac_try) 2>&5
6027   ac_status=$?
6028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029   (exit $ac_status); }; } &&
6030          { ac_try='test -s conftest.$ac_objext'
6031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032   (eval $ac_try) 2>&5
6033   ac_status=$?
6034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035   (exit $ac_status); }; }; then
6036   ac_cv_c_const=yes
6037 else
6038   echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6040
6041 ac_cv_c_const=no
6042 fi
6043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6044 fi
6045 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6046 echo "${ECHO_T}$ac_cv_c_const" >&6
6047 if test $ac_cv_c_const = no; then
6048
6049 cat >>confdefs.h <<\_ACEOF
6050 #define const
6051 _ACEOF
6052
6053 fi
6054
6055
6056 echo "$as_me:$LINENO: checking for egrep" >&5
6057 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6058 if test "${ac_cv_prog_egrep+set}" = set; then
6059   echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6062     then ac_cv_prog_egrep='grep -E'
6063     else ac_cv_prog_egrep='egrep'
6064     fi
6065 fi
6066 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6067 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6068  EGREP=$ac_cv_prog_egrep
6069
6070
6071 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6072 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6073 if test "${ac_cv_header_stdc+set}" = set; then
6074   echo $ECHO_N "(cached) $ECHO_C" >&6
6075 else
6076   cat >conftest.$ac_ext <<_ACEOF
6077 /* confdefs.h.  */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h.  */
6082 #include <stdlib.h>
6083 #include <stdarg.h>
6084 #include <string.h>
6085 #include <float.h>
6086
6087 int
6088 main ()
6089 {
6090
6091   ;
6092   return 0;
6093 }
6094 _ACEOF
6095 rm -f conftest.$ac_objext
6096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6097   (eval $ac_compile) 2>conftest.er1
6098   ac_status=$?
6099   grep -v '^ *+' conftest.er1 >conftest.err
6100   rm -f conftest.er1
6101   cat conftest.err >&5
6102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103   (exit $ac_status); } &&
6104          { ac_try='test -z "$ac_c_werror_flag"
6105                          || test ! -s conftest.err'
6106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107   (eval $ac_try) 2>&5
6108   ac_status=$?
6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); }; } &&
6111          { ac_try='test -s conftest.$ac_objext'
6112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113   (eval $ac_try) 2>&5
6114   ac_status=$?
6115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116   (exit $ac_status); }; }; then
6117   ac_cv_header_stdc=yes
6118 else
6119   echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6121
6122 ac_cv_header_stdc=no
6123 fi
6124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6125
6126 if test $ac_cv_header_stdc = yes; then
6127   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6128   cat >conftest.$ac_ext <<_ACEOF
6129 /* confdefs.h.  */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h.  */
6134 #include <string.h>
6135
6136 _ACEOF
6137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6138   $EGREP "memchr" >/dev/null 2>&1; then
6139   :
6140 else
6141   ac_cv_header_stdc=no
6142 fi
6143 rm -f conftest*
6144
6145 fi
6146
6147 if test $ac_cv_header_stdc = yes; then
6148   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6149   cat >conftest.$ac_ext <<_ACEOF
6150 /* confdefs.h.  */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h.  */
6155 #include <stdlib.h>
6156
6157 _ACEOF
6158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6159   $EGREP "free" >/dev/null 2>&1; then
6160   :
6161 else
6162   ac_cv_header_stdc=no
6163 fi
6164 rm -f conftest*
6165
6166 fi
6167
6168 if test $ac_cv_header_stdc = yes; then
6169   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6170   if test "$cross_compiling" = yes; then
6171   :
6172 else
6173   cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h.  */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h.  */
6179 #include <ctype.h>
6180 #if ((' ' & 0x0FF) == 0x020)
6181 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6182 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6183 #else
6184 # define ISLOWER(c) \
6185                    (('a' <= (c) && (c) <= 'i') \
6186                      || ('j' <= (c) && (c) <= 'r') \
6187                      || ('s' <= (c) && (c) <= 'z'))
6188 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6189 #endif
6190
6191 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6192 int
6193 main ()
6194 {
6195   int i;
6196   for (i = 0; i < 256; i++)
6197     if (XOR (islower (i), ISLOWER (i))
6198         || toupper (i) != TOUPPER (i))
6199       exit(2);
6200   exit (0);
6201 }
6202 _ACEOF
6203 rm -f conftest$ac_exeext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6205   (eval $ac_link) 2>&5
6206   ac_status=$?
6207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210   (eval $ac_try) 2>&5
6211   ac_status=$?
6212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213   (exit $ac_status); }; }; then
6214   :
6215 else
6216   echo "$as_me: program exited with status $ac_status" >&5
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6219
6220 ( exit $ac_status )
6221 ac_cv_header_stdc=no
6222 fi
6223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6224 fi
6225 fi
6226 fi
6227 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6228 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6229 if test $ac_cv_header_stdc = yes; then
6230
6231 cat >>confdefs.h <<\_ACEOF
6232 #define STDC_HEADERS 1
6233 _ACEOF
6234
6235 fi
6236
6237
6238
6239
6240
6241
6242 ac_header_dirent=no
6243 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6244   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6245 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6246 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6248   echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250   cat >conftest.$ac_ext <<_ACEOF
6251 /* confdefs.h.  */
6252 _ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h.  */
6256 #include <sys/types.h>
6257 #include <$ac_hdr>
6258
6259 int
6260 main ()
6261 {
6262 if ((DIR *) 0)
6263 return 0;
6264   ;
6265   return 0;
6266 }
6267 _ACEOF
6268 rm -f conftest.$ac_objext
6269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6270   (eval $ac_compile) 2>conftest.er1
6271   ac_status=$?
6272   grep -v '^ *+' conftest.er1 >conftest.err
6273   rm -f conftest.er1
6274   cat conftest.err >&5
6275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276   (exit $ac_status); } &&
6277          { ac_try='test -z "$ac_c_werror_flag"
6278                          || test ! -s conftest.err'
6279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280   (eval $ac_try) 2>&5
6281   ac_status=$?
6282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283   (exit $ac_status); }; } &&
6284          { ac_try='test -s conftest.$ac_objext'
6285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286   (eval $ac_try) 2>&5
6287   ac_status=$?
6288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289   (exit $ac_status); }; }; then
6290   eval "$as_ac_Header=yes"
6291 else
6292   echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6294
6295 eval "$as_ac_Header=no"
6296 fi
6297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6298 fi
6299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6302   cat >>confdefs.h <<_ACEOF
6303 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6304 _ACEOF
6305
6306 ac_header_dirent=$ac_hdr; break
6307 fi
6308
6309 done
6310 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6311 if test $ac_header_dirent = dirent.h; then
6312   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6313 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6314 if test "${ac_cv_search_opendir+set}" = set; then
6315   echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317   ac_func_search_save_LIBS=$LIBS
6318 ac_cv_search_opendir=no
6319 cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h.  */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h.  */
6325
6326 /* Override any gcc2 internal prototype to avoid an error.  */
6327 #ifdef __cplusplus
6328 extern "C"
6329 #endif
6330 /* We use char because int might match the return type of a gcc2
6331    builtin and then its argument prototype would still apply.  */
6332 char opendir ();
6333 int
6334 main ()
6335 {
6336 opendir ();
6337   ;
6338   return 0;
6339 }
6340 _ACEOF
6341 rm -f conftest.$ac_objext conftest$ac_exeext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6343   (eval $ac_link) 2>conftest.er1
6344   ac_status=$?
6345   grep -v '^ *+' conftest.er1 >conftest.err
6346   rm -f conftest.er1
6347   cat conftest.err >&5
6348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349   (exit $ac_status); } &&
6350          { ac_try='test -z "$ac_c_werror_flag"
6351                          || test ! -s conftest.err'
6352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353   (eval $ac_try) 2>&5
6354   ac_status=$?
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); }; } &&
6357          { ac_try='test -s conftest$ac_exeext'
6358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359   (eval $ac_try) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); }; }; then
6363   ac_cv_search_opendir="none required"
6364 else
6365   echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6367
6368 fi
6369 rm -f conftest.err conftest.$ac_objext \
6370       conftest$ac_exeext conftest.$ac_ext
6371 if test "$ac_cv_search_opendir" = no; then
6372   for ac_lib in dir; do
6373     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6374     cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h.  */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h.  */
6380
6381 /* Override any gcc2 internal prototype to avoid an error.  */
6382 #ifdef __cplusplus
6383 extern "C"
6384 #endif
6385 /* We use char because int might match the return type of a gcc2
6386    builtin and then its argument prototype would still apply.  */
6387 char opendir ();
6388 int
6389 main ()
6390 {
6391 opendir ();
6392   ;
6393   return 0;
6394 }
6395 _ACEOF
6396 rm -f conftest.$ac_objext conftest$ac_exeext
6397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6398   (eval $ac_link) 2>conftest.er1
6399   ac_status=$?
6400   grep -v '^ *+' conftest.er1 >conftest.err
6401   rm -f conftest.er1
6402   cat conftest.err >&5
6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404   (exit $ac_status); } &&
6405          { ac_try='test -z "$ac_c_werror_flag"
6406                          || test ! -s conftest.err'
6407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408   (eval $ac_try) 2>&5
6409   ac_status=$?
6410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411   (exit $ac_status); }; } &&
6412          { ac_try='test -s conftest$ac_exeext'
6413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414   (eval $ac_try) 2>&5
6415   ac_status=$?
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); }; }; then
6418   ac_cv_search_opendir="-l$ac_lib"
6419 break
6420 else
6421   echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6423
6424 fi
6425 rm -f conftest.err conftest.$ac_objext \
6426       conftest$ac_exeext conftest.$ac_ext
6427   done
6428 fi
6429 LIBS=$ac_func_search_save_LIBS
6430 fi
6431 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6432 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6433 if test "$ac_cv_search_opendir" != no; then
6434   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6435
6436 fi
6437
6438 else
6439   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6440 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6441 if test "${ac_cv_search_opendir+set}" = set; then
6442   echo $ECHO_N "(cached) $ECHO_C" >&6
6443 else
6444   ac_func_search_save_LIBS=$LIBS
6445 ac_cv_search_opendir=no
6446 cat >conftest.$ac_ext <<_ACEOF
6447 /* confdefs.h.  */
6448 _ACEOF
6449 cat confdefs.h >>conftest.$ac_ext
6450 cat >>conftest.$ac_ext <<_ACEOF
6451 /* end confdefs.h.  */
6452
6453 /* Override any gcc2 internal prototype to avoid an error.  */
6454 #ifdef __cplusplus
6455 extern "C"
6456 #endif
6457 /* We use char because int might match the return type of a gcc2
6458    builtin and then its argument prototype would still apply.  */
6459 char opendir ();
6460 int
6461 main ()
6462 {
6463 opendir ();
6464   ;
6465   return 0;
6466 }
6467 _ACEOF
6468 rm -f conftest.$ac_objext conftest$ac_exeext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6470   (eval $ac_link) 2>conftest.er1
6471   ac_status=$?
6472   grep -v '^ *+' conftest.er1 >conftest.err
6473   rm -f conftest.er1
6474   cat conftest.err >&5
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); } &&
6477          { ac_try='test -z "$ac_c_werror_flag"
6478                          || test ! -s conftest.err'
6479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480   (eval $ac_try) 2>&5
6481   ac_status=$?
6482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483   (exit $ac_status); }; } &&
6484          { ac_try='test -s conftest$ac_exeext'
6485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486   (eval $ac_try) 2>&5
6487   ac_status=$?
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); }; }; then
6490   ac_cv_search_opendir="none required"
6491 else
6492   echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6494
6495 fi
6496 rm -f conftest.err conftest.$ac_objext \
6497       conftest$ac_exeext conftest.$ac_ext
6498 if test "$ac_cv_search_opendir" = no; then
6499   for ac_lib in x; do
6500     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6501     cat >conftest.$ac_ext <<_ACEOF
6502 /* confdefs.h.  */
6503 _ACEOF
6504 cat confdefs.h >>conftest.$ac_ext
6505 cat >>conftest.$ac_ext <<_ACEOF
6506 /* end confdefs.h.  */
6507
6508 /* Override any gcc2 internal prototype to avoid an error.  */
6509 #ifdef __cplusplus
6510 extern "C"
6511 #endif
6512 /* We use char because int might match the return type of a gcc2
6513    builtin and then its argument prototype would still apply.  */
6514 char opendir ();
6515 int
6516 main ()
6517 {
6518 opendir ();
6519   ;
6520   return 0;
6521 }
6522 _ACEOF
6523 rm -f conftest.$ac_objext conftest$ac_exeext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6525   (eval $ac_link) 2>conftest.er1
6526   ac_status=$?
6527   grep -v '^ *+' conftest.er1 >conftest.err
6528   rm -f conftest.er1
6529   cat conftest.err >&5
6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531   (exit $ac_status); } &&
6532          { ac_try='test -z "$ac_c_werror_flag"
6533                          || test ! -s conftest.err'
6534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535   (eval $ac_try) 2>&5
6536   ac_status=$?
6537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538   (exit $ac_status); }; } &&
6539          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6545   ac_cv_search_opendir="-l$ac_lib"
6546 break
6547 else
6548   echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6550
6551 fi
6552 rm -f conftest.err conftest.$ac_objext \
6553       conftest$ac_exeext conftest.$ac_ext
6554   done
6555 fi
6556 LIBS=$ac_func_search_save_LIBS
6557 fi
6558 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6559 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6560 if test "$ac_cv_search_opendir" != no; then
6561   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6562
6563 fi
6564
6565 fi
6566
6567 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6578                   inttypes.h stdint.h unistd.h
6579 do
6580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6581 echo "$as_me:$LINENO: checking for $ac_header" >&5
6582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6584   echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586   cat >conftest.$ac_ext <<_ACEOF
6587 /* confdefs.h.  */
6588 _ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h.  */
6592 $ac_includes_default
6593
6594 #include <$ac_header>
6595 _ACEOF
6596 rm -f conftest.$ac_objext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6598   (eval $ac_compile) 2>conftest.er1
6599   ac_status=$?
6600   grep -v '^ *+' conftest.er1 >conftest.err
6601   rm -f conftest.er1
6602   cat conftest.err >&5
6603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604   (exit $ac_status); } &&
6605          { ac_try='test -z "$ac_c_werror_flag"
6606                          || test ! -s conftest.err'
6607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608   (eval $ac_try) 2>&5
6609   ac_status=$?
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); }; } &&
6612          { ac_try='test -s conftest.$ac_objext'
6613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614   (eval $ac_try) 2>&5
6615   ac_status=$?
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); }; }; then
6618   eval "$as_ac_Header=yes"
6619 else
6620   echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6622
6623 eval "$as_ac_Header=no"
6624 fi
6625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6626 fi
6627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6630   cat >>confdefs.h <<_ACEOF
6631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6632 _ACEOF
6633
6634 fi
6635
6636 done
6637
6638
6639
6640 for ac_header in dlfcn.h
6641 do
6642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6644   echo "$as_me:$LINENO: checking for $ac_header" >&5
6645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6647   echo $ECHO_N "(cached) $ECHO_C" >&6
6648 fi
6649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6651 else
6652   # Is the header compilable?
6653 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6655 cat >conftest.$ac_ext <<_ACEOF
6656 /* confdefs.h.  */
6657 _ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h.  */
6661 $ac_includes_default
6662 #include <$ac_header>
6663 _ACEOF
6664 rm -f conftest.$ac_objext
6665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6666   (eval $ac_compile) 2>conftest.er1
6667   ac_status=$?
6668   grep -v '^ *+' conftest.er1 >conftest.err
6669   rm -f conftest.er1
6670   cat conftest.err >&5
6671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672   (exit $ac_status); } &&
6673          { ac_try='test -z "$ac_c_werror_flag"
6674                          || test ! -s conftest.err'
6675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676   (eval $ac_try) 2>&5
6677   ac_status=$?
6678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679   (exit $ac_status); }; } &&
6680          { ac_try='test -s conftest.$ac_objext'
6681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682   (eval $ac_try) 2>&5
6683   ac_status=$?
6684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685   (exit $ac_status); }; }; then
6686   ac_header_compiler=yes
6687 else
6688   echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6690
6691 ac_header_compiler=no
6692 fi
6693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6695 echo "${ECHO_T}$ac_header_compiler" >&6
6696
6697 # Is the header present?
6698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6700 cat >conftest.$ac_ext <<_ACEOF
6701 /* confdefs.h.  */
6702 _ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h.  */
6706 #include <$ac_header>
6707 _ACEOF
6708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6709   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6710   ac_status=$?
6711   grep -v '^ *+' conftest.er1 >conftest.err
6712   rm -f conftest.er1
6713   cat conftest.err >&5
6714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715   (exit $ac_status); } >/dev/null; then
6716   if test -s conftest.err; then
6717     ac_cpp_err=$ac_c_preproc_warn_flag
6718     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6719   else
6720     ac_cpp_err=
6721   fi
6722 else
6723   ac_cpp_err=yes
6724 fi
6725 if test -z "$ac_cpp_err"; then
6726   ac_header_preproc=yes
6727 else
6728   echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6730
6731   ac_header_preproc=no
6732 fi
6733 rm -f conftest.err conftest.$ac_ext
6734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6735 echo "${ECHO_T}$ac_header_preproc" >&6
6736
6737 # So?  What about this header?
6738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6739   yes:no: )
6740     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6744     ac_header_preproc=yes
6745     ;;
6746   no:yes:* )
6747     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6749     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6750 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6751     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6753     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6754 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6757     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6759     (
6760       cat <<\_ASBOX
6761 ## ----------------------------------- ##
6762 ## Report this to llvmbugs@cs.uiuc.edu ##
6763 ## ----------------------------------- ##
6764 _ASBOX
6765     ) |
6766       sed "s/^/$as_me: WARNING:     /" >&2
6767     ;;
6768 esac
6769 echo "$as_me:$LINENO: checking for $ac_header" >&5
6770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6772   echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774   eval "$as_ac_Header=\$ac_header_preproc"
6775 fi
6776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6778
6779 fi
6780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6781   cat >>confdefs.h <<_ACEOF
6782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6783 _ACEOF
6784
6785 fi
6786
6787 done
6788
6789 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6790 if test "${enable_ltdl_install+set}" = set; then
6791   enableval="$enable_ltdl_install"
6792
6793 fi;
6794
6795
6796
6797 if test x"${enable_ltdl_install-no}" != xno; then
6798   INSTALL_LTDL_TRUE=
6799   INSTALL_LTDL_FALSE='#'
6800 else
6801   INSTALL_LTDL_TRUE='#'
6802   INSTALL_LTDL_FALSE=
6803 fi
6804
6805
6806
6807 if test x"${enable_ltdl_convenience-no}" != xno; then
6808   CONVENIENCE_LTDL_TRUE=
6809   CONVENIENCE_LTDL_FALSE='#'
6810 else
6811   CONVENIENCE_LTDL_TRUE='#'
6812   CONVENIENCE_LTDL_FALSE=
6813 fi
6814
6815
6816 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6817 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6818 library_names_spec=
6819 libname_spec='lib$name'
6820 soname_spec=
6821 shrext_cmds=".so"
6822 postinstall_cmds=
6823 postuninstall_cmds=
6824 finish_cmds=
6825 finish_eval=
6826 shlibpath_var=
6827 shlibpath_overrides_runpath=unknown
6828 version_type=none
6829 dynamic_linker="$host_os ld.so"
6830 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6831 if test "$GCC" = yes; then
6832   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6833   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6834     # if the path contains ";" then we assume it to be the separator
6835     # otherwise default to the standard path separator (i.e. ":") - it is
6836     # assumed that no part of a normal pathname contains ";" but that should
6837     # okay in the real world where ";" in dirpaths is itself problematic.
6838     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6839   else
6840     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6841   fi
6842 else
6843   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6844 fi
6845 need_lib_prefix=unknown
6846 hardcode_into_libs=no
6847
6848 # when you set need_version to no, make sure it does not cause -set_version
6849 # flags to be left without arguments
6850 need_version=unknown
6851
6852 case $host_os in
6853 aix3*)
6854   version_type=linux
6855   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6856   shlibpath_var=LIBPATH
6857
6858   # AIX 3 has no versioning support, so we append a major version to the name.
6859   soname_spec='${libname}${release}${shared_ext}$major'
6860   ;;
6861
6862 aix4* | aix5*)
6863   version_type=linux
6864   need_lib_prefix=no
6865   need_version=no
6866   hardcode_into_libs=yes
6867   if test "$host_cpu" = ia64; then
6868     # AIX 5 supports IA64
6869     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6870     shlibpath_var=LD_LIBRARY_PATH
6871   else
6872     # With GCC up to 2.95.x, collect2 would create an import file
6873     # for dependence libraries.  The import file would start with
6874     # the line `#! .'.  This would cause the generated library to
6875     # depend on `.', always an invalid library.  This was fixed in
6876     # development snapshots of GCC prior to 3.0.
6877     case $host_os in
6878       aix4 | aix4.[01] | aix4.[01].*)
6879       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6880            echo ' yes '
6881            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6882         :
6883       else
6884         can_build_shared=no
6885       fi
6886       ;;
6887     esac
6888     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6889     # soname into executable. Probably we can add versioning support to
6890     # collect2, so additional links can be useful in future.
6891     if test "$aix_use_runtimelinking" = yes; then
6892       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6893       # instead of lib<name>.a to let people know that these are not
6894       # typical AIX shared libraries.
6895       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6896     else
6897       # We preserve .a as extension for shared libraries through AIX4.2
6898       # and later when we are not doing run time linking.
6899       library_names_spec='${libname}${release}.a $libname.a'
6900       soname_spec='${libname}${release}${shared_ext}$major'
6901     fi
6902     shlibpath_var=LIBPATH
6903   fi
6904   ;;
6905
6906 amigaos*)
6907   library_names_spec='$libname.ixlibrary $libname.a'
6908   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6909   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'
6910   ;;
6911
6912 beos*)
6913   library_names_spec='${libname}${shared_ext}'
6914   dynamic_linker="$host_os ld.so"
6915   shlibpath_var=LIBRARY_PATH
6916   ;;
6917
6918 bsdi[45]*)
6919   version_type=linux
6920   need_version=no
6921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6922   soname_spec='${libname}${release}${shared_ext}$major'
6923   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6924   shlibpath_var=LD_LIBRARY_PATH
6925   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6926   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6927   # the default ld.so.conf also contains /usr/contrib/lib and
6928   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6929   # libtool to hard-code these into programs
6930   ;;
6931
6932 cygwin* | mingw* | pw32*)
6933   version_type=windows
6934   shrext_cmds=".dll"
6935   need_version=no
6936   need_lib_prefix=no
6937
6938   case $GCC,$host_os in
6939   yes,cygwin* | yes,mingw* | yes,pw32*)
6940     library_names_spec='$libname.dll.a'
6941     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6942     postinstall_cmds='base_file=`basename \${file}`~
6943       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6944       dldir=$destdir/`dirname \$dlpath`~
6945       test -d \$dldir || mkdir -p \$dldir~
6946       $install_prog $dir/$dlname \$dldir/$dlname'
6947     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6948       dlpath=$dir/\$dldll~
6949        $rm \$dlpath'
6950     shlibpath_overrides_runpath=yes
6951
6952     case $host_os in
6953     cygwin*)
6954       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6955       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6956       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6957       ;;
6958     mingw*)
6959       # MinGW DLLs use traditional 'lib' prefix
6960       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6961       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6962       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6963         # It is most probably a Windows format PATH printed by
6964         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6965         # path with ; separators, and with drive letters. We can handle the
6966         # drive letters (cygwin fileutils understands them), so leave them,
6967         # especially as we might pass files found there to a mingw objdump,
6968         # which wouldn't understand a cygwinified path. Ahh.
6969         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6970       else
6971         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6972       fi
6973       ;;
6974     pw32*)
6975       # pw32 DLLs use 'pw' prefix rather than 'lib'
6976       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6977       ;;
6978     esac
6979     ;;
6980
6981   *)
6982     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6983     ;;
6984   esac
6985   dynamic_linker='Win32 ld.exe'
6986   # FIXME: first we should search . and the directory the executable is in
6987   shlibpath_var=PATH
6988   ;;
6989
6990 darwin* | rhapsody*)
6991   dynamic_linker="$host_os dyld"
6992   version_type=darwin
6993   need_lib_prefix=no
6994   need_version=no
6995   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6996   soname_spec='${libname}${release}${major}$shared_ext'
6997   shlibpath_overrides_runpath=yes
6998   shlibpath_var=DYLD_LIBRARY_PATH
6999   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7000   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7001   if test "$GCC" = yes; then
7002     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"`
7003   else
7004     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7005   fi
7006   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7007   ;;
7008
7009 dgux*)
7010   version_type=linux
7011   need_lib_prefix=no
7012   need_version=no
7013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7014   soname_spec='${libname}${release}${shared_ext}$major'
7015   shlibpath_var=LD_LIBRARY_PATH
7016   ;;
7017
7018 freebsd1*)
7019   dynamic_linker=no
7020   ;;
7021
7022 kfreebsd*-gnu)
7023   version_type=linux
7024   need_lib_prefix=no
7025   need_version=no
7026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7027   soname_spec='${libname}${release}${shared_ext}$major'
7028   shlibpath_var=LD_LIBRARY_PATH
7029   shlibpath_overrides_runpath=no
7030   hardcode_into_libs=yes
7031   dynamic_linker='GNU ld.so'
7032   ;;
7033
7034 freebsd*)
7035   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7036   version_type=freebsd-$objformat
7037   case $version_type in
7038     freebsd-elf*)
7039       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7040       need_version=no
7041       need_lib_prefix=no
7042       ;;
7043     freebsd-*)
7044       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7045       need_version=yes
7046       ;;
7047   esac
7048   shlibpath_var=LD_LIBRARY_PATH
7049   case $host_os in
7050   freebsd2*)
7051     shlibpath_overrides_runpath=yes
7052     ;;
7053   freebsd3.01* | freebsdelf3.01*)
7054     shlibpath_overrides_runpath=yes
7055     hardcode_into_libs=yes
7056     ;;
7057   *) # from 3.2 on
7058     shlibpath_overrides_runpath=no
7059     hardcode_into_libs=yes
7060     ;;
7061   esac
7062   ;;
7063
7064 gnu*)
7065   version_type=linux
7066   need_lib_prefix=no
7067   need_version=no
7068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7069   soname_spec='${libname}${release}${shared_ext}$major'
7070   shlibpath_var=LD_LIBRARY_PATH
7071   hardcode_into_libs=yes
7072   ;;
7073
7074 hpux9* | hpux10* | hpux11*)
7075   # Give a soname corresponding to the major version so that dld.sl refuses to
7076   # link against other versions.
7077   version_type=sunos
7078   need_lib_prefix=no
7079   need_version=no
7080   case "$host_cpu" in
7081   ia64*)
7082     shrext_cmds='.so'
7083     hardcode_into_libs=yes
7084     dynamic_linker="$host_os dld.so"
7085     shlibpath_var=LD_LIBRARY_PATH
7086     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7087     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7088     soname_spec='${libname}${release}${shared_ext}$major'
7089     if test "X$HPUX_IA64_MODE" = X32; then
7090       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7091     else
7092       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7093     fi
7094     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7095     ;;
7096    hppa*64*)
7097      shrext_cmds='.sl'
7098      hardcode_into_libs=yes
7099      dynamic_linker="$host_os dld.sl"
7100      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7101      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7102      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7103      soname_spec='${libname}${release}${shared_ext}$major'
7104      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7105      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7106      ;;
7107    *)
7108     shrext_cmds='.sl'
7109     dynamic_linker="$host_os dld.sl"
7110     shlibpath_var=SHLIB_PATH
7111     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7112     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7113     soname_spec='${libname}${release}${shared_ext}$major'
7114     ;;
7115   esac
7116   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7117   postinstall_cmds='chmod 555 $lib'
7118   ;;
7119
7120 irix5* | irix6* | nonstopux*)
7121   case $host_os in
7122     nonstopux*) version_type=nonstopux ;;
7123     *)
7124         if test "$lt_cv_prog_gnu_ld" = yes; then
7125                 version_type=linux
7126         else
7127                 version_type=irix
7128         fi ;;
7129   esac
7130   need_lib_prefix=no
7131   need_version=no
7132   soname_spec='${libname}${release}${shared_ext}$major'
7133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7134   case $host_os in
7135   irix5* | nonstopux*)
7136     libsuff= shlibsuff=
7137     ;;
7138   *)
7139     case $LD in # libtool.m4 will add one of these switches to LD
7140     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7141       libsuff= shlibsuff= libmagic=32-bit;;
7142     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7143       libsuff=32 shlibsuff=N32 libmagic=N32;;
7144     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7145       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7146     *) libsuff= shlibsuff= libmagic=never-match;;
7147     esac
7148     ;;
7149   esac
7150   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7151   shlibpath_overrides_runpath=no
7152   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7153   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7154   hardcode_into_libs=yes
7155   ;;
7156
7157 # No shared lib support for Linux oldld, aout, or coff.
7158 linux*oldld* | linux*aout* | linux*coff*)
7159   dynamic_linker=no
7160   ;;
7161
7162 # This must be Linux ELF.
7163 linux*)
7164   version_type=linux
7165   need_lib_prefix=no
7166   need_version=no
7167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7168   soname_spec='${libname}${release}${shared_ext}$major'
7169   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7170   shlibpath_var=LD_LIBRARY_PATH
7171   shlibpath_overrides_runpath=no
7172   # This implies no fast_install, which is unacceptable.
7173   # Some rework will be needed to allow for fast_install
7174   # before this can be enabled.
7175   hardcode_into_libs=yes
7176
7177   # Append ld.so.conf contents to the search path
7178   if test -f /etc/ld.so.conf; then
7179     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7180     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7181   fi
7182
7183   # We used to test for /lib/ld.so.1 and disable shared libraries on
7184   # powerpc, because MkLinux only supported shared libraries with the
7185   # GNU dynamic linker.  Since this was broken with cross compilers,
7186   # most powerpc-linux boxes support dynamic linking these days and
7187   # people can always --disable-shared, the test was removed, and we
7188   # assume the GNU/Linux dynamic linker is in use.
7189   dynamic_linker='GNU/Linux ld.so'
7190   ;;
7191
7192 knetbsd*-gnu)
7193   version_type=linux
7194   need_lib_prefix=no
7195   need_version=no
7196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7197   soname_spec='${libname}${release}${shared_ext}$major'
7198   shlibpath_var=LD_LIBRARY_PATH
7199   shlibpath_overrides_runpath=no
7200   hardcode_into_libs=yes
7201   dynamic_linker='GNU ld.so'
7202   ;;
7203
7204 netbsd*)
7205   version_type=sunos
7206   need_lib_prefix=no
7207   need_version=no
7208   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7209     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7210     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7211     dynamic_linker='NetBSD (a.out) ld.so'
7212   else
7213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7214     soname_spec='${libname}${release}${shared_ext}$major'
7215     dynamic_linker='NetBSD ld.elf_so'
7216   fi
7217   shlibpath_var=LD_LIBRARY_PATH
7218   shlibpath_overrides_runpath=yes
7219   hardcode_into_libs=yes
7220   ;;
7221
7222 newsos6)
7223   version_type=linux
7224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7225   shlibpath_var=LD_LIBRARY_PATH
7226   shlibpath_overrides_runpath=yes
7227   ;;
7228
7229 nto-qnx*)
7230   version_type=linux
7231   need_lib_prefix=no
7232   need_version=no
7233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7234   soname_spec='${libname}${release}${shared_ext}$major'
7235   shlibpath_var=LD_LIBRARY_PATH
7236   shlibpath_overrides_runpath=yes
7237   ;;
7238
7239 openbsd*)
7240   version_type=sunos
7241   need_lib_prefix=no
7242   need_version=no
7243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7244   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7245   shlibpath_var=LD_LIBRARY_PATH
7246   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7247     case $host_os in
7248       openbsd2.[89] | openbsd2.[89].*)
7249         shlibpath_overrides_runpath=no
7250         ;;
7251       *)
7252         shlibpath_overrides_runpath=yes
7253         ;;
7254       esac
7255   else
7256     shlibpath_overrides_runpath=yes
7257   fi
7258   ;;
7259
7260 os2*)
7261   libname_spec='$name'
7262   shrext_cmds=".dll"
7263   need_lib_prefix=no
7264   library_names_spec='$libname${shared_ext} $libname.a'
7265   dynamic_linker='OS/2 ld.exe'
7266   shlibpath_var=LIBPATH
7267   ;;
7268
7269 osf3* | osf4* | osf5*)
7270   version_type=osf
7271   need_lib_prefix=no
7272   need_version=no
7273   soname_spec='${libname}${release}${shared_ext}$major'
7274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7275   shlibpath_var=LD_LIBRARY_PATH
7276   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7277   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7278   ;;
7279
7280 sco3.2v5*)
7281   version_type=osf
7282   soname_spec='${libname}${release}${shared_ext}$major'
7283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7284   shlibpath_var=LD_LIBRARY_PATH
7285   ;;
7286
7287 solaris*)
7288   version_type=linux
7289   need_lib_prefix=no
7290   need_version=no
7291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7292   soname_spec='${libname}${release}${shared_ext}$major'
7293   shlibpath_var=LD_LIBRARY_PATH
7294   shlibpath_overrides_runpath=yes
7295   hardcode_into_libs=yes
7296   # ldd complains unless libraries are executable
7297   postinstall_cmds='chmod +x $lib'
7298   ;;
7299
7300 sunos4*)
7301   version_type=sunos
7302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7303   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7304   shlibpath_var=LD_LIBRARY_PATH
7305   shlibpath_overrides_runpath=yes
7306   if test "$with_gnu_ld" = yes; then
7307     need_lib_prefix=no
7308   fi
7309   need_version=yes
7310   ;;
7311
7312 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7313   version_type=linux
7314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7315   soname_spec='${libname}${release}${shared_ext}$major'
7316   shlibpath_var=LD_LIBRARY_PATH
7317   case $host_vendor in
7318     sni)
7319       shlibpath_overrides_runpath=no
7320       need_lib_prefix=no
7321       export_dynamic_flag_spec='${wl}-Blargedynsym'
7322       runpath_var=LD_RUN_PATH
7323       ;;
7324     siemens)
7325       need_lib_prefix=no
7326       ;;
7327     motorola)
7328       need_lib_prefix=no
7329       need_version=no
7330       shlibpath_overrides_runpath=no
7331       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7332       ;;
7333   esac
7334   ;;
7335
7336 sysv4*MP*)
7337   if test -d /usr/nec ;then
7338     version_type=linux
7339     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7340     soname_spec='$libname${shared_ext}.$major'
7341     shlibpath_var=LD_LIBRARY_PATH
7342   fi
7343   ;;
7344
7345 uts4*)
7346   version_type=linux
7347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7348   soname_spec='${libname}${release}${shared_ext}$major'
7349   shlibpath_var=LD_LIBRARY_PATH
7350   ;;
7351
7352 *)
7353   dynamic_linker=no
7354   ;;
7355 esac
7356 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7357 echo "${ECHO_T}$dynamic_linker" >&6
7358 test "$dynamic_linker" = no && can_build_shared=no
7359
7360
7361 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7362 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7363 if test "${libltdl_cv_shlibext+set}" = set; then
7364   echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366
7367 module=yes
7368 eval libltdl_cv_shlibext=$shrext_cmds
7369
7370 fi
7371 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7372 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7373 if test -n "$libltdl_cv_shlibext"; then
7374
7375 cat >>confdefs.h <<_ACEOF
7376 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7377 _ACEOF
7378
7379 fi
7380
7381
7382 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7383 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7384 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7385   echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387   libltdl_cv_shlibpath_var="$shlibpath_var"
7388 fi
7389 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7390 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7391 if test -n "$libltdl_cv_shlibpath_var"; then
7392
7393 cat >>confdefs.h <<_ACEOF
7394 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7395 _ACEOF
7396
7397 fi
7398
7399
7400 echo "$as_me:$LINENO: checking for the default library search path" >&5
7401 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7402 if test "${libltdl_cv_sys_search_path+set}" = set; then
7403   echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7406 fi
7407 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7408 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7409 if test -n "$libltdl_cv_sys_search_path"; then
7410   sys_search_path=
7411   for dir in $libltdl_cv_sys_search_path; do
7412     if test -z "$sys_search_path"; then
7413       sys_search_path="$dir"
7414     else
7415       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7416     fi
7417   done
7418
7419 cat >>confdefs.h <<_ACEOF
7420 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7421 _ACEOF
7422
7423 fi
7424
7425 echo "$as_me:$LINENO: checking for objdir" >&5
7426 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7427 if test "${libltdl_cv_objdir+set}" = set; then
7428   echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430   libltdl_cv_objdir="$objdir"
7431   if test -n "$objdir"; then
7432     :
7433   else
7434     rm -f .libs 2>/dev/null
7435     mkdir .libs 2>/dev/null
7436     if test -d .libs; then
7437       libltdl_cv_objdir=.libs
7438     else
7439       # MS-DOS does not allow filenames that begin with a dot.
7440       libltdl_cv_objdir=_libs
7441     fi
7442   rmdir .libs 2>/dev/null
7443   fi
7444
7445 fi
7446 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7447 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7448
7449 cat >>confdefs.h <<_ACEOF
7450 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7451 _ACEOF
7452
7453
7454 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7455 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7456 if test "${lt_cv_path_NM+set}" = set; then
7457   echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459   if test -n "$NM"; then
7460   # Let the user override the test.
7461   lt_cv_path_NM="$NM"
7462 else
7463   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7464   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7465     IFS="$lt_save_ifs"
7466     test -z "$ac_dir" && ac_dir=.
7467     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7468     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7469       # Check to see if the nm accepts a BSD-compat flag.
7470       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7471       #   nm: unknown option "B" ignored
7472       # Tru64's nm complains that /dev/null is an invalid object file
7473       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7474       */dev/null* | *'Invalid file or object type'*)
7475         lt_cv_path_NM="$tmp_nm -B"
7476         break
7477         ;;
7478       *)
7479         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7480         */dev/null*)
7481           lt_cv_path_NM="$tmp_nm -p"
7482           break
7483           ;;
7484         *)
7485           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7486           continue # so that we can try to find one that supports BSD flags
7487           ;;
7488         esac
7489       esac
7490     fi
7491   done
7492   IFS="$lt_save_ifs"
7493   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7494 fi
7495 fi
7496 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7497 echo "${ECHO_T}$lt_cv_path_NM" >&6
7498 NM="$lt_cv_path_NM"
7499
7500
7501
7502
7503
7504 # Check for command to grab the raw symbol name followed by C symbol from nm.
7505 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7506 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7507 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7508   echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510
7511 # These are sane defaults that work on at least a few old systems.
7512 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7513
7514 # Character class describing NM global symbol codes.
7515 symcode='[BCDEGRST]'
7516
7517 # Regexp to match symbols that can be accessed directly from C.
7518 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7519
7520 # Transform the above into a raw symbol and a C symbol.
7521 symxfrm='\1 \2\3 \3'
7522
7523 # Transform an extracted symbol line into a proper C declaration
7524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7525
7526 # Transform an extracted symbol line into symbol name and symbol address
7527 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'"
7528
7529 # Define system-specific variables.
7530 case $host_os in
7531 aix*)
7532   symcode='[BCDT]'
7533   ;;
7534 cygwin* | mingw* | pw32*)
7535   symcode='[ABCDGISTW]'
7536   ;;
7537 hpux*) # Its linker distinguishes data from code symbols
7538   if test "$host_cpu" = ia64; then
7539     symcode='[ABCDEGRST]'
7540   fi
7541   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7542   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'"
7543   ;;
7544 linux*)
7545   if test "$host_cpu" = ia64; then
7546     symcode='[ABCDGIRSTW]'
7547     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7548     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'"
7549   fi
7550   ;;
7551 irix* | nonstopux*)
7552   symcode='[BCDEGRST]'
7553   ;;
7554 osf*)
7555   symcode='[BCDEGQRST]'
7556   ;;
7557 solaris* | sysv5*)
7558   symcode='[BDRT]'
7559   ;;
7560 sysv4)
7561   symcode='[DFNSTU]'
7562   ;;
7563 esac
7564
7565 # Handle CRLF in mingw tool chain
7566 opt_cr=
7567 case $build_os in
7568 mingw*)
7569   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7570   ;;
7571 esac
7572
7573 # If we're using GNU nm, then use its standard symbol codes.
7574 case `$NM -V 2>&1` in
7575 *GNU* | *'with BFD'*)
7576   symcode='[ABCDGIRSTW]' ;;
7577 esac
7578
7579 # Try without a prefix undercore, then with it.
7580 for ac_symprfx in "" "_"; do
7581
7582   # Write the raw and C identifiers.
7583   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7584
7585   # Check to see that the pipe works correctly.
7586   pipe_works=no
7587
7588   rm -f conftest*
7589   cat > conftest.$ac_ext <<EOF
7590 #ifdef __cplusplus
7591 extern "C" {
7592 #endif
7593 char nm_test_var;
7594 void nm_test_func(){}
7595 #ifdef __cplusplus
7596 }
7597 #endif
7598 int main(){nm_test_var='a';nm_test_func();return(0);}
7599 EOF
7600
7601   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7602   (eval $ac_compile) 2>&5
7603   ac_status=$?
7604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605   (exit $ac_status); }; then
7606     # Now try to grab the symbols.
7607     nlist=conftest.nm
7608     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7609   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7610   ac_status=$?
7611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612   (exit $ac_status); } && test -s "$nlist"; then
7613       # Try sorting and uniquifying the output.
7614       if sort "$nlist" | uniq > "$nlist"T; then
7615         mv -f "$nlist"T "$nlist"
7616       else
7617         rm -f "$nlist"T
7618       fi
7619
7620       # Make sure that we snagged all the symbols we need.
7621       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7622         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7623           cat <<EOF > conftest.$ac_ext
7624 #ifdef __cplusplus
7625 extern "C" {
7626 #endif
7627
7628 EOF
7629           # Now generate the symbol file.
7630           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7631
7632           cat <<EOF >> conftest.$ac_ext
7633 #if defined (__STDC__) && __STDC__
7634 # define lt_ptr_t void *
7635 #else
7636 # define lt_ptr_t char *
7637 # define const
7638 #endif
7639
7640 /* The mapping between symbol names and symbols. */
7641 const struct {
7642   const char *name;
7643   lt_ptr_t address;
7644 }
7645 lt_preloaded_symbols[] =
7646 {
7647 EOF
7648           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7649           cat <<\EOF >> conftest.$ac_ext
7650   {0, (lt_ptr_t) 0}
7651 };
7652
7653 #ifdef __cplusplus
7654 }
7655 #endif
7656 EOF
7657           # Now try linking the two files.
7658           mv conftest.$ac_objext conftstm.$ac_objext
7659           lt_save_LIBS="$LIBS"
7660           lt_save_CFLAGS="$CFLAGS"
7661           LIBS="conftstm.$ac_objext"
7662           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7663           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7664   (eval $ac_link) 2>&5
7665   ac_status=$?
7666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7668             pipe_works=yes
7669           fi
7670           LIBS="$lt_save_LIBS"
7671           CFLAGS="$lt_save_CFLAGS"
7672         else
7673           echo "cannot find nm_test_func in $nlist" >&5
7674         fi
7675       else
7676         echo "cannot find nm_test_var in $nlist" >&5
7677       fi
7678     else
7679       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7680     fi
7681   else
7682     echo "$progname: failed program was:" >&5
7683     cat conftest.$ac_ext >&5
7684   fi
7685   rm -f conftest* conftst*
7686
7687   # Do not use the global_symbol_pipe unless it works.
7688   if test "$pipe_works" = yes; then
7689     break
7690   else
7691     lt_cv_sys_global_symbol_pipe=
7692   fi
7693 done
7694
7695 fi
7696
7697 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7698   lt_cv_sys_global_symbol_to_cdecl=
7699 fi
7700 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7701   echo "$as_me:$LINENO: result: failed" >&5
7702 echo "${ECHO_T}failed" >&6
7703 else
7704   echo "$as_me:$LINENO: result: ok" >&5
7705 echo "${ECHO_T}ok" >&6
7706 fi
7707
7708
7709 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7710 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7711 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7712   echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7715     libltdl_cv_preloaded_symbols=yes
7716   else
7717     libltdl_cv_preloaded_symbols=no
7718   fi
7719
7720 fi
7721 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7722 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7723 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7724
7725 cat >>confdefs.h <<\_ACEOF
7726 #define HAVE_PRELOADED_SYMBOLS 1
7727 _ACEOF
7728
7729 fi
7730
7731 LIBADD_DL=
7732
7733 ac_ext=c
7734 ac_cpp='$CPP $CPPFLAGS'
7735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7738
7739
7740 echo "$as_me:$LINENO: checking for shl_load" >&5
7741 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7742 if test "${ac_cv_func_shl_load+set}" = set; then
7743   echo $ECHO_N "(cached) $ECHO_C" >&6
7744 else
7745   cat >conftest.$ac_ext <<_ACEOF
7746 /* confdefs.h.  */
7747 _ACEOF
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h.  */
7751 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7753 #define shl_load innocuous_shl_load
7754
7755 /* System header to define __stub macros and hopefully few prototypes,
7756     which can conflict with char shl_load (); below.
7757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7758     <limits.h> exists even on freestanding compilers.  */
7759
7760 #ifdef __STDC__
7761 # include <limits.h>
7762 #else
7763 # include <assert.h>
7764 #endif
7765
7766 #undef shl_load
7767
7768 /* Override any gcc2 internal prototype to avoid an error.  */
7769 #ifdef __cplusplus
7770 extern "C"
7771 {
7772 #endif
7773 /* We use char because int might match the return type of a gcc2
7774    builtin and then its argument prototype would still apply.  */
7775 char shl_load ();
7776 /* The GNU C library defines this for functions which it implements
7777     to always fail with ENOSYS.  Some functions are actually named
7778     something starting with __ and the normal name is an alias.  */
7779 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7780 choke me
7781 #else
7782 char (*f) () = shl_load;
7783 #endif
7784 #ifdef __cplusplus
7785 }
7786 #endif
7787
7788 int
7789 main ()
7790 {
7791 return f != shl_load;
7792   ;
7793   return 0;
7794 }
7795 _ACEOF
7796 rm -f conftest.$ac_objext conftest$ac_exeext
7797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798   (eval $ac_link) 2>conftest.er1
7799   ac_status=$?
7800   grep -v '^ *+' conftest.er1 >conftest.err
7801   rm -f conftest.er1
7802   cat conftest.err >&5
7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); } &&
7805          { ac_try='test -z "$ac_c_werror_flag"
7806                          || test ! -s conftest.err'
7807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7808   (eval $ac_try) 2>&5
7809   ac_status=$?
7810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811   (exit $ac_status); }; } &&
7812          { ac_try='test -s conftest$ac_exeext'
7813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7814   (eval $ac_try) 2>&5
7815   ac_status=$?
7816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817   (exit $ac_status); }; }; then
7818   ac_cv_func_shl_load=yes
7819 else
7820   echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7822
7823 ac_cv_func_shl_load=no
7824 fi
7825 rm -f conftest.err conftest.$ac_objext \
7826       conftest$ac_exeext conftest.$ac_ext
7827 fi
7828 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7829 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7830 if test $ac_cv_func_shl_load = yes; then
7831
7832 cat >>confdefs.h <<\_ACEOF
7833 #define HAVE_SHL_LOAD 1
7834 _ACEOF
7835
7836 else
7837   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7838 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7839 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7840   echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842   ac_check_lib_save_LIBS=$LIBS
7843 LIBS="-ldld  $LIBS"
7844 cat >conftest.$ac_ext <<_ACEOF
7845 /* confdefs.h.  */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h.  */
7850
7851 /* Override any gcc2 internal prototype to avoid an error.  */
7852 #ifdef __cplusplus
7853 extern "C"
7854 #endif
7855 /* We use char because int might match the return type of a gcc2
7856    builtin and then its argument prototype would still apply.  */
7857 char shl_load ();
7858 int
7859 main ()
7860 {
7861 shl_load ();
7862   ;
7863   return 0;
7864 }
7865 _ACEOF
7866 rm -f conftest.$ac_objext conftest$ac_exeext
7867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7868   (eval $ac_link) 2>conftest.er1
7869   ac_status=$?
7870   grep -v '^ *+' conftest.er1 >conftest.err
7871   rm -f conftest.er1
7872   cat conftest.err >&5
7873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); } &&
7875          { ac_try='test -z "$ac_c_werror_flag"
7876                          || test ! -s conftest.err'
7877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878   (eval $ac_try) 2>&5
7879   ac_status=$?
7880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881   (exit $ac_status); }; } &&
7882          { ac_try='test -s conftest$ac_exeext'
7883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884   (eval $ac_try) 2>&5
7885   ac_status=$?
7886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887   (exit $ac_status); }; }; then
7888   ac_cv_lib_dld_shl_load=yes
7889 else
7890   echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7892
7893 ac_cv_lib_dld_shl_load=no
7894 fi
7895 rm -f conftest.err conftest.$ac_objext \
7896       conftest$ac_exeext conftest.$ac_ext
7897 LIBS=$ac_check_lib_save_LIBS
7898 fi
7899 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7900 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7901 if test $ac_cv_lib_dld_shl_load = yes; then
7902
7903 cat >>confdefs.h <<\_ACEOF
7904 #define HAVE_SHL_LOAD 1
7905 _ACEOF
7906
7907         LIBADD_DL="$LIBADD_DL -ldld"
7908 else
7909   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7910 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7911 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7912   echo $ECHO_N "(cached) $ECHO_C" >&6
7913 else
7914   ac_check_lib_save_LIBS=$LIBS
7915 LIBS="-ldl  $LIBS"
7916 cat >conftest.$ac_ext <<_ACEOF
7917 /* confdefs.h.  */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h.  */
7922
7923 /* Override any gcc2 internal prototype to avoid an error.  */
7924 #ifdef __cplusplus
7925 extern "C"
7926 #endif
7927 /* We use char because int might match the return type of a gcc2
7928    builtin and then its argument prototype would still apply.  */
7929 char dlopen ();
7930 int
7931 main ()
7932 {
7933 dlopen ();
7934   ;
7935   return 0;
7936 }
7937 _ACEOF
7938 rm -f conftest.$ac_objext conftest$ac_exeext
7939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7940   (eval $ac_link) 2>conftest.er1
7941   ac_status=$?
7942   grep -v '^ *+' conftest.er1 >conftest.err
7943   rm -f conftest.er1
7944   cat conftest.err >&5
7945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946   (exit $ac_status); } &&
7947          { ac_try='test -z "$ac_c_werror_flag"
7948                          || test ! -s conftest.err'
7949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950   (eval $ac_try) 2>&5
7951   ac_status=$?
7952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953   (exit $ac_status); }; } &&
7954          { ac_try='test -s conftest$ac_exeext'
7955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956   (eval $ac_try) 2>&5
7957   ac_status=$?
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); }; }; then
7960   ac_cv_lib_dl_dlopen=yes
7961 else
7962   echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7964
7965 ac_cv_lib_dl_dlopen=no
7966 fi
7967 rm -f conftest.err conftest.$ac_objext \
7968       conftest$ac_exeext conftest.$ac_ext
7969 LIBS=$ac_check_lib_save_LIBS
7970 fi
7971 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7972 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7973 if test $ac_cv_lib_dl_dlopen = yes; then
7974
7975 cat >>confdefs.h <<\_ACEOF
7976 #define HAVE_LIBDL 1
7977 _ACEOF
7978
7979                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7980 else
7981   cat >conftest.$ac_ext <<_ACEOF
7982 /* confdefs.h.  */
7983 _ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h.  */
7987 #if HAVE_DLFCN_H
7988 #  include <dlfcn.h>
7989 #endif
7990
7991 int
7992 main ()
7993 {
7994 dlopen(0, 0);
7995   ;
7996   return 0;
7997 }
7998 _ACEOF
7999 rm -f conftest.$ac_objext conftest$ac_exeext
8000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8001   (eval $ac_link) 2>conftest.er1
8002   ac_status=$?
8003   grep -v '^ *+' conftest.er1 >conftest.err
8004   rm -f conftest.er1
8005   cat conftest.err >&5
8006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007   (exit $ac_status); } &&
8008          { ac_try='test -z "$ac_c_werror_flag"
8009                          || test ! -s conftest.err'
8010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011   (eval $ac_try) 2>&5
8012   ac_status=$?
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); }; } &&
8015          { ac_try='test -s conftest$ac_exeext'
8016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017   (eval $ac_try) 2>&5
8018   ac_status=$?
8019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020   (exit $ac_status); }; }; then
8021
8022 cat >>confdefs.h <<\_ACEOF
8023 #define HAVE_LIBDL 1
8024 _ACEOF
8025  libltdl_cv_func_dlopen="yes"
8026 else
8027   echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8029
8030 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8031 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8032 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8033   echo $ECHO_N "(cached) $ECHO_C" >&6
8034 else
8035   ac_check_lib_save_LIBS=$LIBS
8036 LIBS="-lsvld  $LIBS"
8037 cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h.  */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h.  */
8043
8044 /* Override any gcc2 internal prototype to avoid an error.  */
8045 #ifdef __cplusplus
8046 extern "C"
8047 #endif
8048 /* We use char because int might match the return type of a gcc2
8049    builtin and then its argument prototype would still apply.  */
8050 char dlopen ();
8051 int
8052 main ()
8053 {
8054 dlopen ();
8055   ;
8056   return 0;
8057 }
8058 _ACEOF
8059 rm -f conftest.$ac_objext conftest$ac_exeext
8060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8061   (eval $ac_link) 2>conftest.er1
8062   ac_status=$?
8063   grep -v '^ *+' conftest.er1 >conftest.err
8064   rm -f conftest.er1
8065   cat conftest.err >&5
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); } &&
8068          { ac_try='test -z "$ac_c_werror_flag"
8069                          || test ! -s conftest.err'
8070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071   (eval $ac_try) 2>&5
8072   ac_status=$?
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); }; } &&
8075          { ac_try='test -s conftest$ac_exeext'
8076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077   (eval $ac_try) 2>&5
8078   ac_status=$?
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); }; }; then
8081   ac_cv_lib_svld_dlopen=yes
8082 else
8083   echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8085
8086 ac_cv_lib_svld_dlopen=no
8087 fi
8088 rm -f conftest.err conftest.$ac_objext \
8089       conftest$ac_exeext conftest.$ac_ext
8090 LIBS=$ac_check_lib_save_LIBS
8091 fi
8092 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8093 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8094 if test $ac_cv_lib_svld_dlopen = yes; then
8095
8096 cat >>confdefs.h <<\_ACEOF
8097 #define HAVE_LIBDL 1
8098 _ACEOF
8099
8100                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8101 else
8102   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8103 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8104 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8105   echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8107   ac_check_lib_save_LIBS=$LIBS
8108 LIBS="-ldld  $LIBS"
8109 cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h.  */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h.  */
8115
8116 /* Override any gcc2 internal prototype to avoid an error.  */
8117 #ifdef __cplusplus
8118 extern "C"
8119 #endif
8120 /* We use char because int might match the return type of a gcc2
8121    builtin and then its argument prototype would still apply.  */
8122 char dld_link ();
8123 int
8124 main ()
8125 {
8126 dld_link ();
8127   ;
8128   return 0;
8129 }
8130 _ACEOF
8131 rm -f conftest.$ac_objext conftest$ac_exeext
8132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8133   (eval $ac_link) 2>conftest.er1
8134   ac_status=$?
8135   grep -v '^ *+' conftest.er1 >conftest.err
8136   rm -f conftest.er1
8137   cat conftest.err >&5
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); } &&
8140          { ac_try='test -z "$ac_c_werror_flag"
8141                          || test ! -s conftest.err'
8142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143   (eval $ac_try) 2>&5
8144   ac_status=$?
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); }; } &&
8147          { ac_try='test -s conftest$ac_exeext'
8148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149   (eval $ac_try) 2>&5
8150   ac_status=$?
8151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152   (exit $ac_status); }; }; then
8153   ac_cv_lib_dld_dld_link=yes
8154 else
8155   echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8157
8158 ac_cv_lib_dld_dld_link=no
8159 fi
8160 rm -f conftest.err conftest.$ac_objext \
8161       conftest$ac_exeext conftest.$ac_ext
8162 LIBS=$ac_check_lib_save_LIBS
8163 fi
8164 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8165 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8166 if test $ac_cv_lib_dld_dld_link = yes; then
8167
8168 cat >>confdefs.h <<\_ACEOF
8169 #define HAVE_DLD 1
8170 _ACEOF
8171
8172                 LIBADD_DL="$LIBADD_DL -ldld"
8173 else
8174   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8175 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8176 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8177   echo $ECHO_N "(cached) $ECHO_C" >&6
8178 else
8179   cat >conftest.$ac_ext <<_ACEOF
8180 /* confdefs.h.  */
8181 _ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h.  */
8185 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8187 #define _dyld_func_lookup innocuous__dyld_func_lookup
8188
8189 /* System header to define __stub macros and hopefully few prototypes,
8190     which can conflict with char _dyld_func_lookup (); below.
8191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8192     <limits.h> exists even on freestanding compilers.  */
8193
8194 #ifdef __STDC__
8195 # include <limits.h>
8196 #else
8197 # include <assert.h>
8198 #endif
8199
8200 #undef _dyld_func_lookup
8201
8202 /* Override any gcc2 internal prototype to avoid an error.  */
8203 #ifdef __cplusplus
8204 extern "C"
8205 {
8206 #endif
8207 /* We use char because int might match the return type of a gcc2
8208    builtin and then its argument prototype would still apply.  */
8209 char _dyld_func_lookup ();
8210 /* The GNU C library defines this for functions which it implements
8211     to always fail with ENOSYS.  Some functions are actually named
8212     something starting with __ and the normal name is an alias.  */
8213 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8214 choke me
8215 #else
8216 char (*f) () = _dyld_func_lookup;
8217 #endif
8218 #ifdef __cplusplus
8219 }
8220 #endif
8221
8222 int
8223 main ()
8224 {
8225 return f != _dyld_func_lookup;
8226   ;
8227   return 0;
8228 }
8229 _ACEOF
8230 rm -f conftest.$ac_objext conftest$ac_exeext
8231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8232   (eval $ac_link) 2>conftest.er1
8233   ac_status=$?
8234   grep -v '^ *+' conftest.er1 >conftest.err
8235   rm -f conftest.er1
8236   cat conftest.err >&5
8237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238   (exit $ac_status); } &&
8239          { ac_try='test -z "$ac_c_werror_flag"
8240                          || test ! -s conftest.err'
8241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242   (eval $ac_try) 2>&5
8243   ac_status=$?
8244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245   (exit $ac_status); }; } &&
8246          { ac_try='test -s conftest$ac_exeext'
8247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248   (eval $ac_try) 2>&5
8249   ac_status=$?
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); }; }; then
8252   ac_cv_func__dyld_func_lookup=yes
8253 else
8254   echo "$as_me: failed program was:" >&5
8255 sed 's/^/| /' conftest.$ac_ext >&5
8256
8257 ac_cv_func__dyld_func_lookup=no
8258 fi
8259 rm -f conftest.err conftest.$ac_objext \
8260       conftest$ac_exeext conftest.$ac_ext
8261 fi
8262 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8263 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8264 if test $ac_cv_func__dyld_func_lookup = yes; then
8265
8266 cat >>confdefs.h <<\_ACEOF
8267 #define HAVE_DYLD 1
8268 _ACEOF
8269
8270 fi
8271
8272
8273 fi
8274
8275
8276 fi
8277
8278
8279 fi
8280 rm -f conftest.err conftest.$ac_objext \
8281       conftest$ac_exeext conftest.$ac_ext
8282
8283 fi
8284
8285
8286 fi
8287
8288
8289 fi
8290
8291
8292 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8293 then
8294   lt_save_LIBS="$LIBS"
8295   LIBS="$LIBS $LIBADD_DL"
8296
8297 for ac_func in dlerror
8298 do
8299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8300 echo "$as_me:$LINENO: checking for $ac_func" >&5
8301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8302 if eval "test \"\${$as_ac_var+set}\" = set"; then
8303   echo $ECHO_N "(cached) $ECHO_C" >&6
8304 else
8305   cat >conftest.$ac_ext <<_ACEOF
8306 /* confdefs.h.  */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h.  */
8311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8313 #define $ac_func innocuous_$ac_func
8314
8315 /* System header to define __stub macros and hopefully few prototypes,
8316     which can conflict with char $ac_func (); below.
8317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8318     <limits.h> exists even on freestanding compilers.  */
8319
8320 #ifdef __STDC__
8321 # include <limits.h>
8322 #else
8323 # include <assert.h>
8324 #endif
8325
8326 #undef $ac_func
8327
8328 /* Override any gcc2 internal prototype to avoid an error.  */
8329 #ifdef __cplusplus
8330 extern "C"
8331 {
8332 #endif
8333 /* We use char because int might match the return type of a gcc2
8334    builtin and then its argument prototype would still apply.  */
8335 char $ac_func ();
8336 /* The GNU C library defines this for functions which it implements
8337     to always fail with ENOSYS.  Some functions are actually named
8338     something starting with __ and the normal name is an alias.  */
8339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8340 choke me
8341 #else
8342 char (*f) () = $ac_func;
8343 #endif
8344 #ifdef __cplusplus
8345 }
8346 #endif
8347
8348 int
8349 main ()
8350 {
8351 return f != $ac_func;
8352   ;
8353   return 0;
8354 }
8355 _ACEOF
8356 rm -f conftest.$ac_objext conftest$ac_exeext
8357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8358   (eval $ac_link) 2>conftest.er1
8359   ac_status=$?
8360   grep -v '^ *+' conftest.er1 >conftest.err
8361   rm -f conftest.er1
8362   cat conftest.err >&5
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); } &&
8365          { ac_try='test -z "$ac_c_werror_flag"
8366                          || test ! -s conftest.err'
8367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368   (eval $ac_try) 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); }; } &&
8372          { ac_try='test -s conftest$ac_exeext'
8373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374   (eval $ac_try) 2>&5
8375   ac_status=$?
8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377   (exit $ac_status); }; }; then
8378   eval "$as_ac_var=yes"
8379 else
8380   echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8382
8383 eval "$as_ac_var=no"
8384 fi
8385 rm -f conftest.err conftest.$ac_objext \
8386       conftest$ac_exeext conftest.$ac_ext
8387 fi
8388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8389 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8390 if test `eval echo '${'$as_ac_var'}'` = yes; then
8391   cat >>confdefs.h <<_ACEOF
8392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8393 _ACEOF
8394
8395 fi
8396 done
8397
8398   LIBS="$lt_save_LIBS"
8399 fi
8400 ac_ext=c
8401 ac_cpp='$CPP $CPPFLAGS'
8402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8405
8406
8407
8408 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8409 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8410 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8411   echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413   ac_cv_sys_symbol_underscore=no
8414   cat > conftest.$ac_ext <<EOF
8415 void nm_test_func(){}
8416 int main(){nm_test_func;return 0;}
8417 EOF
8418   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8419   (eval $ac_compile) 2>&5
8420   ac_status=$?
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); }; then
8423     # Now try to grab the symbols.
8424     ac_nlist=conftest.nm
8425     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8426   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); } && test -s "$ac_nlist"; then
8430       # See whether the symbols have a leading underscore.
8431       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8432         ac_cv_sys_symbol_underscore=yes
8433       else
8434         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8435           :
8436         else
8437           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8438         fi
8439       fi
8440     else
8441       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8442     fi
8443   else
8444     echo "configure: failed program was:" >&5
8445     cat conftest.c >&5
8446   fi
8447   rm -rf conftest*
8448
8449 fi
8450 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8451 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8452
8453
8454 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8455   if test x"$libltdl_cv_func_dlopen" = xyes ||
8456      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8457         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8458 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8459 if test "${libltdl_cv_need_uscore+set}" = set; then
8460   echo $ECHO_N "(cached) $ECHO_C" >&6
8461 else
8462   libltdl_cv_need_uscore=unknown
8463           save_LIBS="$LIBS"
8464           LIBS="$LIBS $LIBADD_DL"
8465           if test "$cross_compiling" = yes; then :
8466   libltdl_cv_need_uscore=cross
8467 else
8468   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8469   lt_status=$lt_dlunknown
8470   cat > conftest.$ac_ext <<EOF
8471 #line 8471 "configure"
8472 #include "confdefs.h"
8473
8474 #if HAVE_DLFCN_H
8475 #include <dlfcn.h>
8476 #endif
8477
8478 #include <stdio.h>
8479
8480 #ifdef RTLD_GLOBAL
8481 #  define LT_DLGLOBAL           RTLD_GLOBAL
8482 #else
8483 #  ifdef DL_GLOBAL
8484 #    define LT_DLGLOBAL         DL_GLOBAL
8485 #  else
8486 #    define LT_DLGLOBAL         0
8487 #  endif
8488 #endif
8489
8490 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8491    find out it does not work in some platform. */
8492 #ifndef LT_DLLAZY_OR_NOW
8493 #  ifdef RTLD_LAZY
8494 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8495 #  else
8496 #    ifdef DL_LAZY
8497 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8498 #    else
8499 #      ifdef RTLD_NOW
8500 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8501 #      else
8502 #        ifdef DL_NOW
8503 #          define LT_DLLAZY_OR_NOW      DL_NOW
8504 #        else
8505 #          define LT_DLLAZY_OR_NOW      0
8506 #        endif
8507 #      endif
8508 #    endif
8509 #  endif
8510 #endif
8511
8512 #ifdef __cplusplus
8513 extern "C" void exit (int);
8514 #endif
8515
8516 void fnord() { int i=42;}
8517 int main ()
8518 {
8519   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8520   int status = $lt_dlunknown;
8521
8522   if (self)
8523     {
8524       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8525       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8526       /* dlclose (self); */
8527     }
8528
8529     exit (status);
8530 }
8531 EOF
8532   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533   (eval $ac_link) 2>&5
8534   ac_status=$?
8535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8537     (./conftest; exit; ) 2>/dev/null
8538     lt_status=$?
8539     case x$lt_status in
8540       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8541       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8542       x$lt_unknown|x*)  ;;
8543     esac
8544   else :
8545     # compilation failed
8546
8547   fi
8548 fi
8549 rm -fr conftest*
8550
8551           LIBS="$save_LIBS"
8552
8553 fi
8554 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8555 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8556   fi
8557 fi
8558
8559 if test x"$libltdl_cv_need_uscore" = xyes; then
8560
8561 cat >>confdefs.h <<\_ACEOF
8562 #define NEED_USCORE 1
8563 _ACEOF
8564
8565 fi
8566
8567
8568 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8569 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8570 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8571   echo $ECHO_N "(cached) $ECHO_C" >&6
8572 else
8573   # PORTME does your system automatically load deplibs for dlopen?
8574   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8575   # For now, we just catch OSes we know something about -- in the
8576   # future, we'll try test this programmatically.
8577   libltdl_cv_sys_dlopen_deplibs=unknown
8578   case "$host_os" in
8579   aix3*|aix4.1.*|aix4.2.*)
8580     # Unknown whether this is true for these versions of AIX, but
8581     # we want this `case' here to explicitly catch those versions.
8582     libltdl_cv_sys_dlopen_deplibs=unknown
8583     ;;
8584   aix[45]*)
8585     libltdl_cv_sys_dlopen_deplibs=yes
8586     ;;
8587   darwin*)
8588     # Assuming the user has installed a libdl from somewhere, this is true
8589     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8590     libltdl_cv_sys_dlopen_deplibs=yes
8591     ;;
8592   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8593     # GNU and its variants, using gnu ld.so (Glibc)
8594     libltdl_cv_sys_dlopen_deplibs=yes
8595     ;;
8596   hpux10*|hpux11*)
8597     libltdl_cv_sys_dlopen_deplibs=yes
8598     ;;
8599   irix[12345]*|irix6.[01]*)
8600     # Catch all versions of IRIX before 6.2, and indicate that we don't
8601     # know how it worked for any of those versions.
8602     libltdl_cv_sys_dlopen_deplibs=unknown
8603     ;;
8604   irix*)
8605     # The case above catches anything before 6.2, and it's known that
8606     # at 6.2 and later dlopen does load deplibs.
8607     libltdl_cv_sys_dlopen_deplibs=yes
8608     ;;
8609   netbsd*)
8610     libltdl_cv_sys_dlopen_deplibs=yes
8611     ;;
8612   openbsd*)
8613     libltdl_cv_sys_dlopen_deplibs=yes
8614     ;;
8615   osf[1234]*)
8616     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8617     # it did *not* use an RPATH in a shared library to find objects the
8618     # library depends on, so we explictly say `no'.
8619     libltdl_cv_sys_dlopen_deplibs=no
8620     ;;
8621   osf5.0|osf5.0a|osf5.1)
8622     # dlopen *does* load deplibs and with the right loader patch applied
8623     # it even uses RPATH in a shared library to search for shared objects
8624     # that the library depends on, but there's no easy way to know if that
8625     # patch is installed.  Since this is the case, all we can really
8626     # say is unknown -- it depends on the patch being installed.  If
8627     # it is, this changes to `yes'.  Without it, it would be `no'.
8628     libltdl_cv_sys_dlopen_deplibs=unknown
8629     ;;
8630   osf*)
8631     # the two cases above should catch all versions of osf <= 5.1.  Read
8632     # the comments above for what we know about them.
8633     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8634     # is used to find them so we can finally say `yes'.
8635     libltdl_cv_sys_dlopen_deplibs=yes
8636     ;;
8637   solaris*)
8638     libltdl_cv_sys_dlopen_deplibs=yes
8639     ;;
8640   esac
8641
8642 fi
8643 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8644 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8645 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8646
8647 cat >>confdefs.h <<\_ACEOF
8648 #define LTDL_DLOPEN_DEPLIBS 1
8649 _ACEOF
8650
8651 fi
8652
8653
8654 for ac_header in argz.h
8655 do
8656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8658   echo "$as_me:$LINENO: checking for $ac_header" >&5
8659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8661   echo $ECHO_N "(cached) $ECHO_C" >&6
8662 fi
8663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8665 else
8666   # Is the header compilable?
8667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8669 cat >conftest.$ac_ext <<_ACEOF
8670 /* confdefs.h.  */
8671 _ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h.  */
8675 $ac_includes_default
8676 #include <$ac_header>
8677 _ACEOF
8678 rm -f conftest.$ac_objext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8680   (eval $ac_compile) 2>conftest.er1
8681   ac_status=$?
8682   grep -v '^ *+' conftest.er1 >conftest.err
8683   rm -f conftest.er1
8684   cat conftest.err >&5
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); } &&
8687          { ac_try='test -z "$ac_c_werror_flag"
8688                          || test ! -s conftest.err'
8689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690   (eval $ac_try) 2>&5
8691   ac_status=$?
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   (exit $ac_status); }; } &&
8694          { ac_try='test -s conftest.$ac_objext'
8695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696   (eval $ac_try) 2>&5
8697   ac_status=$?
8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); }; }; then
8700   ac_header_compiler=yes
8701 else
8702   echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8704
8705 ac_header_compiler=no
8706 fi
8707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8709 echo "${ECHO_T}$ac_header_compiler" >&6
8710
8711 # Is the header present?
8712 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8714 cat >conftest.$ac_ext <<_ACEOF
8715 /* confdefs.h.  */
8716 _ACEOF
8717 cat confdefs.h >>conftest.$ac_ext
8718 cat >>conftest.$ac_ext <<_ACEOF
8719 /* end confdefs.h.  */
8720 #include <$ac_header>
8721 _ACEOF
8722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8723   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8724   ac_status=$?
8725   grep -v '^ *+' conftest.er1 >conftest.err
8726   rm -f conftest.er1
8727   cat conftest.err >&5
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); } >/dev/null; then
8730   if test -s conftest.err; then
8731     ac_cpp_err=$ac_c_preproc_warn_flag
8732     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8733   else
8734     ac_cpp_err=
8735   fi
8736 else
8737   ac_cpp_err=yes
8738 fi
8739 if test -z "$ac_cpp_err"; then
8740   ac_header_preproc=yes
8741 else
8742   echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8744
8745   ac_header_preproc=no
8746 fi
8747 rm -f conftest.err conftest.$ac_ext
8748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8749 echo "${ECHO_T}$ac_header_preproc" >&6
8750
8751 # So?  What about this header?
8752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8753   yes:no: )
8754     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8756     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8758     ac_header_preproc=yes
8759     ;;
8760   no:yes:* )
8761     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8763     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8764 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8765     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8767     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8768 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8769     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8771     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8773     (
8774       cat <<\_ASBOX
8775 ## ----------------------------------- ##
8776 ## Report this to llvmbugs@cs.uiuc.edu ##
8777 ## ----------------------------------- ##
8778 _ASBOX
8779     ) |
8780       sed "s/^/$as_me: WARNING:     /" >&2
8781     ;;
8782 esac
8783 echo "$as_me:$LINENO: checking for $ac_header" >&5
8784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8786   echo $ECHO_N "(cached) $ECHO_C" >&6
8787 else
8788   eval "$as_ac_Header=\$ac_header_preproc"
8789 fi
8790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8792
8793 fi
8794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8795   cat >>confdefs.h <<_ACEOF
8796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8797 _ACEOF
8798
8799 fi
8800
8801 done
8802
8803
8804 echo "$as_me:$LINENO: checking for error_t" >&5
8805 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8806 if test "${ac_cv_type_error_t+set}" = set; then
8807   echo $ECHO_N "(cached) $ECHO_C" >&6
8808 else
8809   cat >conftest.$ac_ext <<_ACEOF
8810 /* confdefs.h.  */
8811 _ACEOF
8812 cat confdefs.h >>conftest.$ac_ext
8813 cat >>conftest.$ac_ext <<_ACEOF
8814 /* end confdefs.h.  */
8815 #if HAVE_ARGZ_H
8816 #  include <argz.h>
8817 #endif
8818
8819 int
8820 main ()
8821 {
8822 if ((error_t *) 0)
8823   return 0;
8824 if (sizeof (error_t))
8825   return 0;
8826   ;
8827   return 0;
8828 }
8829 _ACEOF
8830 rm -f conftest.$ac_objext
8831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8832   (eval $ac_compile) 2>conftest.er1
8833   ac_status=$?
8834   grep -v '^ *+' conftest.er1 >conftest.err
8835   rm -f conftest.er1
8836   cat conftest.err >&5
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); } &&
8839          { ac_try='test -z "$ac_c_werror_flag"
8840                          || test ! -s conftest.err'
8841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842   (eval $ac_try) 2>&5
8843   ac_status=$?
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); }; } &&
8846          { ac_try='test -s conftest.$ac_objext'
8847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848   (eval $ac_try) 2>&5
8849   ac_status=$?
8850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851   (exit $ac_status); }; }; then
8852   ac_cv_type_error_t=yes
8853 else
8854   echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.$ac_ext >&5
8856
8857 ac_cv_type_error_t=no
8858 fi
8859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8860 fi
8861 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8862 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8863 if test $ac_cv_type_error_t = yes; then
8864
8865 cat >>confdefs.h <<_ACEOF
8866 #define HAVE_ERROR_T 1
8867 _ACEOF
8868
8869
8870 else
8871
8872 cat >>confdefs.h <<\_ACEOF
8873 #define error_t int
8874 _ACEOF
8875
8876 fi
8877
8878
8879
8880
8881
8882
8883
8884 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8885 do
8886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8887 echo "$as_me:$LINENO: checking for $ac_func" >&5
8888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8889 if eval "test \"\${$as_ac_var+set}\" = set"; then
8890   echo $ECHO_N "(cached) $ECHO_C" >&6
8891 else
8892   cat >conftest.$ac_ext <<_ACEOF
8893 /* confdefs.h.  */
8894 _ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h.  */
8898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8899    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8900 #define $ac_func innocuous_$ac_func
8901
8902 /* System header to define __stub macros and hopefully few prototypes,
8903     which can conflict with char $ac_func (); below.
8904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8905     <limits.h> exists even on freestanding compilers.  */
8906
8907 #ifdef __STDC__
8908 # include <limits.h>
8909 #else
8910 # include <assert.h>
8911 #endif
8912
8913 #undef $ac_func
8914
8915 /* Override any gcc2 internal prototype to avoid an error.  */
8916 #ifdef __cplusplus
8917 extern "C"
8918 {
8919 #endif
8920 /* We use char because int might match the return type of a gcc2
8921    builtin and then its argument prototype would still apply.  */
8922 char $ac_func ();
8923 /* The GNU C library defines this for functions which it implements
8924     to always fail with ENOSYS.  Some functions are actually named
8925     something starting with __ and the normal name is an alias.  */
8926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8927 choke me
8928 #else
8929 char (*f) () = $ac_func;
8930 #endif
8931 #ifdef __cplusplus
8932 }
8933 #endif
8934
8935 int
8936 main ()
8937 {
8938 return f != $ac_func;
8939   ;
8940   return 0;
8941 }
8942 _ACEOF
8943 rm -f conftest.$ac_objext conftest$ac_exeext
8944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8945   (eval $ac_link) 2>conftest.er1
8946   ac_status=$?
8947   grep -v '^ *+' conftest.er1 >conftest.err
8948   rm -f conftest.er1
8949   cat conftest.err >&5
8950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951   (exit $ac_status); } &&
8952          { ac_try='test -z "$ac_c_werror_flag"
8953                          || test ! -s conftest.err'
8954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955   (eval $ac_try) 2>&5
8956   ac_status=$?
8957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958   (exit $ac_status); }; } &&
8959          { ac_try='test -s conftest$ac_exeext'
8960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961   (eval $ac_try) 2>&5
8962   ac_status=$?
8963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964   (exit $ac_status); }; }; then
8965   eval "$as_ac_var=yes"
8966 else
8967   echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8969
8970 eval "$as_ac_var=no"
8971 fi
8972 rm -f conftest.err conftest.$ac_objext \
8973       conftest$ac_exeext conftest.$ac_ext
8974 fi
8975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8977 if test `eval echo '${'$as_ac_var'}'` = yes; then
8978   cat >>confdefs.h <<_ACEOF
8979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8980 _ACEOF
8981
8982 fi
8983 done
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9013                   stdio.h unistd.h
9014 do
9015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9017   echo "$as_me:$LINENO: checking for $ac_header" >&5
9018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9020   echo $ECHO_N "(cached) $ECHO_C" >&6
9021 fi
9022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9024 else
9025   # Is the header compilable?
9026 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9028 cat >conftest.$ac_ext <<_ACEOF
9029 /* confdefs.h.  */
9030 _ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h.  */
9034 $ac_includes_default
9035 #include <$ac_header>
9036 _ACEOF
9037 rm -f conftest.$ac_objext
9038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9039   (eval $ac_compile) 2>conftest.er1
9040   ac_status=$?
9041   grep -v '^ *+' conftest.er1 >conftest.err
9042   rm -f conftest.er1
9043   cat conftest.err >&5
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); } &&
9046          { ac_try='test -z "$ac_c_werror_flag"
9047                          || test ! -s conftest.err'
9048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049   (eval $ac_try) 2>&5
9050   ac_status=$?
9051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); }; } &&
9053          { ac_try='test -s conftest.$ac_objext'
9054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055   (eval $ac_try) 2>&5
9056   ac_status=$?
9057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058   (exit $ac_status); }; }; then
9059   ac_header_compiler=yes
9060 else
9061   echo "$as_me: failed program was:" >&5
9062 sed 's/^/| /' conftest.$ac_ext >&5
9063
9064 ac_header_compiler=no
9065 fi
9066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9068 echo "${ECHO_T}$ac_header_compiler" >&6
9069
9070 # Is the header present?
9071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9073 cat >conftest.$ac_ext <<_ACEOF
9074 /* confdefs.h.  */
9075 _ACEOF
9076 cat confdefs.h >>conftest.$ac_ext
9077 cat >>conftest.$ac_ext <<_ACEOF
9078 /* end confdefs.h.  */
9079 #include <$ac_header>
9080 _ACEOF
9081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9083   ac_status=$?
9084   grep -v '^ *+' conftest.er1 >conftest.err
9085   rm -f conftest.er1
9086   cat conftest.err >&5
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); } >/dev/null; then
9089   if test -s conftest.err; then
9090     ac_cpp_err=$ac_c_preproc_warn_flag
9091     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9092   else
9093     ac_cpp_err=
9094   fi
9095 else
9096   ac_cpp_err=yes
9097 fi
9098 if test -z "$ac_cpp_err"; then
9099   ac_header_preproc=yes
9100 else
9101   echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9103
9104   ac_header_preproc=no
9105 fi
9106 rm -f conftest.err conftest.$ac_ext
9107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9108 echo "${ECHO_T}$ac_header_preproc" >&6
9109
9110 # So?  What about this header?
9111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9112   yes:no: )
9113     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9117     ac_header_preproc=yes
9118     ;;
9119   no:yes:* )
9120     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9122     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9123 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9124     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9126     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9127 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9130     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9132     (
9133       cat <<\_ASBOX
9134 ## ----------------------------------- ##
9135 ## Report this to llvmbugs@cs.uiuc.edu ##
9136 ## ----------------------------------- ##
9137 _ASBOX
9138     ) |
9139       sed "s/^/$as_me: WARNING:     /" >&2
9140     ;;
9141 esac
9142 echo "$as_me:$LINENO: checking for $ac_header" >&5
9143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9145   echo $ECHO_N "(cached) $ECHO_C" >&6
9146 else
9147   eval "$as_ac_Header=\$ac_header_preproc"
9148 fi
9149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9151
9152 fi
9153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9154   cat >>confdefs.h <<_ACEOF
9155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9156 _ACEOF
9157
9158 fi
9159
9160 done
9161
9162
9163
9164
9165
9166 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9167 do
9168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9170   echo "$as_me:$LINENO: checking for $ac_header" >&5
9171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9173   echo $ECHO_N "(cached) $ECHO_C" >&6
9174 fi
9175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9177 else
9178   # Is the header compilable?
9179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9181 cat >conftest.$ac_ext <<_ACEOF
9182 /* confdefs.h.  */
9183 _ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h.  */
9187 $ac_includes_default
9188 #include <$ac_header>
9189 _ACEOF
9190 rm -f conftest.$ac_objext
9191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9192   (eval $ac_compile) 2>conftest.er1
9193   ac_status=$?
9194   grep -v '^ *+' conftest.er1 >conftest.err
9195   rm -f conftest.er1
9196   cat conftest.err >&5
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); } &&
9199          { ac_try='test -z "$ac_c_werror_flag"
9200                          || test ! -s conftest.err'
9201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202   (eval $ac_try) 2>&5
9203   ac_status=$?
9204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205   (exit $ac_status); }; } &&
9206          { ac_try='test -s conftest.$ac_objext'
9207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208   (eval $ac_try) 2>&5
9209   ac_status=$?
9210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211   (exit $ac_status); }; }; then
9212   ac_header_compiler=yes
9213 else
9214   echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9216
9217 ac_header_compiler=no
9218 fi
9219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9221 echo "${ECHO_T}$ac_header_compiler" >&6
9222
9223 # Is the header present?
9224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9226 cat >conftest.$ac_ext <<_ACEOF
9227 /* confdefs.h.  */
9228 _ACEOF
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h.  */
9232 #include <$ac_header>
9233 _ACEOF
9234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9235   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9236   ac_status=$?
9237   grep -v '^ *+' conftest.er1 >conftest.err
9238   rm -f conftest.er1
9239   cat conftest.err >&5
9240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241   (exit $ac_status); } >/dev/null; then
9242   if test -s conftest.err; then
9243     ac_cpp_err=$ac_c_preproc_warn_flag
9244     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9245   else
9246     ac_cpp_err=
9247   fi
9248 else
9249   ac_cpp_err=yes
9250 fi
9251 if test -z "$ac_cpp_err"; then
9252   ac_header_preproc=yes
9253 else
9254   echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.$ac_ext >&5
9256
9257   ac_header_preproc=no
9258 fi
9259 rm -f conftest.err conftest.$ac_ext
9260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9261 echo "${ECHO_T}$ac_header_preproc" >&6
9262
9263 # So?  What about this header?
9264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9265   yes:no: )
9266     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9270     ac_header_preproc=yes
9271     ;;
9272   no:yes:* )
9273     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9275     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9276 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9277     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9279     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9280 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9283     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9285     (
9286       cat <<\_ASBOX
9287 ## ----------------------------------- ##
9288 ## Report this to llvmbugs@cs.uiuc.edu ##
9289 ## ----------------------------------- ##
9290 _ASBOX
9291     ) |
9292       sed "s/^/$as_me: WARNING:     /" >&2
9293     ;;
9294 esac
9295 echo "$as_me:$LINENO: checking for $ac_header" >&5
9296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9298   echo $ECHO_N "(cached) $ECHO_C" >&6
9299 else
9300   eval "$as_ac_Header=\$ac_header_preproc"
9301 fi
9302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9304
9305 fi
9306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9307   cat >>confdefs.h <<_ACEOF
9308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9309 _ACEOF
9310
9311 fi
9312
9313 done
9314
9315
9316
9317 for ac_header in string.h strings.h
9318 do
9319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9321   echo "$as_me:$LINENO: checking for $ac_header" >&5
9322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9324   echo $ECHO_N "(cached) $ECHO_C" >&6
9325 fi
9326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9328 else
9329   # Is the header compilable?
9330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9332 cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h.  */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h.  */
9338 $ac_includes_default
9339 #include <$ac_header>
9340 _ACEOF
9341 rm -f conftest.$ac_objext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9343   (eval $ac_compile) 2>conftest.er1
9344   ac_status=$?
9345   grep -v '^ *+' conftest.er1 >conftest.err
9346   rm -f conftest.er1
9347   cat conftest.err >&5
9348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349   (exit $ac_status); } &&
9350          { ac_try='test -z "$ac_c_werror_flag"
9351                          || test ! -s conftest.err'
9352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353   (eval $ac_try) 2>&5
9354   ac_status=$?
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); }; } &&
9357          { ac_try='test -s conftest.$ac_objext'
9358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359   (eval $ac_try) 2>&5
9360   ac_status=$?
9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); }; }; then
9363   ac_header_compiler=yes
9364 else
9365   echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9367
9368 ac_header_compiler=no
9369 fi
9370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9372 echo "${ECHO_T}$ac_header_compiler" >&6
9373
9374 # Is the header present?
9375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9377 cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h.  */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h.  */
9383 #include <$ac_header>
9384 _ACEOF
9385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9386   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9387   ac_status=$?
9388   grep -v '^ *+' conftest.er1 >conftest.err
9389   rm -f conftest.er1
9390   cat conftest.err >&5
9391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392   (exit $ac_status); } >/dev/null; then
9393   if test -s conftest.err; then
9394     ac_cpp_err=$ac_c_preproc_warn_flag
9395     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9396   else
9397     ac_cpp_err=
9398   fi
9399 else
9400   ac_cpp_err=yes
9401 fi
9402 if test -z "$ac_cpp_err"; then
9403   ac_header_preproc=yes
9404 else
9405   echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9407
9408   ac_header_preproc=no
9409 fi
9410 rm -f conftest.err conftest.$ac_ext
9411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9412 echo "${ECHO_T}$ac_header_preproc" >&6
9413
9414 # So?  What about this header?
9415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9416   yes:no: )
9417     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9421     ac_header_preproc=yes
9422     ;;
9423   no:yes:* )
9424     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9426     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9427 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9428     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9430     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9431 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9434     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9436     (
9437       cat <<\_ASBOX
9438 ## ----------------------------------- ##
9439 ## Report this to llvmbugs@cs.uiuc.edu ##
9440 ## ----------------------------------- ##
9441 _ASBOX
9442     ) |
9443       sed "s/^/$as_me: WARNING:     /" >&2
9444     ;;
9445 esac
9446 echo "$as_me:$LINENO: checking for $ac_header" >&5
9447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9449   echo $ECHO_N "(cached) $ECHO_C" >&6
9450 else
9451   eval "$as_ac_Header=\$ac_header_preproc"
9452 fi
9453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9455
9456 fi
9457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9458   cat >>confdefs.h <<_ACEOF
9459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9460 _ACEOF
9461  break
9462 fi
9463
9464 done
9465
9466
9467
9468
9469 for ac_func in strchr index
9470 do
9471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9472 echo "$as_me:$LINENO: checking for $ac_func" >&5
9473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9474 if eval "test \"\${$as_ac_var+set}\" = set"; then
9475   echo $ECHO_N "(cached) $ECHO_C" >&6
9476 else
9477   cat >conftest.$ac_ext <<_ACEOF
9478 /* confdefs.h.  */
9479 _ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h.  */
9483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9485 #define $ac_func innocuous_$ac_func
9486
9487 /* System header to define __stub macros and hopefully few prototypes,
9488     which can conflict with char $ac_func (); below.
9489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9490     <limits.h> exists even on freestanding compilers.  */
9491
9492 #ifdef __STDC__
9493 # include <limits.h>
9494 #else
9495 # include <assert.h>
9496 #endif
9497
9498 #undef $ac_func
9499
9500 /* Override any gcc2 internal prototype to avoid an error.  */
9501 #ifdef __cplusplus
9502 extern "C"
9503 {
9504 #endif
9505 /* We use char because int might match the return type of a gcc2
9506    builtin and then its argument prototype would still apply.  */
9507 char $ac_func ();
9508 /* The GNU C library defines this for functions which it implements
9509     to always fail with ENOSYS.  Some functions are actually named
9510     something starting with __ and the normal name is an alias.  */
9511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9512 choke me
9513 #else
9514 char (*f) () = $ac_func;
9515 #endif
9516 #ifdef __cplusplus
9517 }
9518 #endif
9519
9520 int
9521 main ()
9522 {
9523 return f != $ac_func;
9524   ;
9525   return 0;
9526 }
9527 _ACEOF
9528 rm -f conftest.$ac_objext conftest$ac_exeext
9529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9530   (eval $ac_link) 2>conftest.er1
9531   ac_status=$?
9532   grep -v '^ *+' conftest.er1 >conftest.err
9533   rm -f conftest.er1
9534   cat conftest.err >&5
9535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); } &&
9537          { ac_try='test -z "$ac_c_werror_flag"
9538                          || test ! -s conftest.err'
9539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540   (eval $ac_try) 2>&5
9541   ac_status=$?
9542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543   (exit $ac_status); }; } &&
9544          { ac_try='test -s conftest$ac_exeext'
9545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546   (eval $ac_try) 2>&5
9547   ac_status=$?
9548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549   (exit $ac_status); }; }; then
9550   eval "$as_ac_var=yes"
9551 else
9552   echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9554
9555 eval "$as_ac_var=no"
9556 fi
9557 rm -f conftest.err conftest.$ac_objext \
9558       conftest$ac_exeext conftest.$ac_ext
9559 fi
9560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9562 if test `eval echo '${'$as_ac_var'}'` = yes; then
9563   cat >>confdefs.h <<_ACEOF
9564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9565 _ACEOF
9566  break
9567 fi
9568 done
9569
9570
9571
9572 for ac_func in strrchr rindex
9573 do
9574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9575 echo "$as_me:$LINENO: checking for $ac_func" >&5
9576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9577 if eval "test \"\${$as_ac_var+set}\" = set"; then
9578   echo $ECHO_N "(cached) $ECHO_C" >&6
9579 else
9580   cat >conftest.$ac_ext <<_ACEOF
9581 /* confdefs.h.  */
9582 _ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h.  */
9586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9588 #define $ac_func innocuous_$ac_func
9589
9590 /* System header to define __stub macros and hopefully few prototypes,
9591     which can conflict with char $ac_func (); below.
9592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9593     <limits.h> exists even on freestanding compilers.  */
9594
9595 #ifdef __STDC__
9596 # include <limits.h>
9597 #else
9598 # include <assert.h>
9599 #endif
9600
9601 #undef $ac_func
9602
9603 /* Override any gcc2 internal prototype to avoid an error.  */
9604 #ifdef __cplusplus
9605 extern "C"
9606 {
9607 #endif
9608 /* We use char because int might match the return type of a gcc2
9609    builtin and then its argument prototype would still apply.  */
9610 char $ac_func ();
9611 /* The GNU C library defines this for functions which it implements
9612     to always fail with ENOSYS.  Some functions are actually named
9613     something starting with __ and the normal name is an alias.  */
9614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9615 choke me
9616 #else
9617 char (*f) () = $ac_func;
9618 #endif
9619 #ifdef __cplusplus
9620 }
9621 #endif
9622
9623 int
9624 main ()
9625 {
9626 return f != $ac_func;
9627   ;
9628   return 0;
9629 }
9630 _ACEOF
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9633   (eval $ac_link) 2>conftest.er1
9634   ac_status=$?
9635   grep -v '^ *+' conftest.er1 >conftest.err
9636   rm -f conftest.er1
9637   cat conftest.err >&5
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); } &&
9640          { ac_try='test -z "$ac_c_werror_flag"
9641                          || test ! -s conftest.err'
9642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643   (eval $ac_try) 2>&5
9644   ac_status=$?
9645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646   (exit $ac_status); }; } &&
9647          { ac_try='test -s conftest$ac_exeext'
9648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649   (eval $ac_try) 2>&5
9650   ac_status=$?
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); }; }; then
9653   eval "$as_ac_var=yes"
9654 else
9655   echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9657
9658 eval "$as_ac_var=no"
9659 fi
9660 rm -f conftest.err conftest.$ac_objext \
9661       conftest$ac_exeext conftest.$ac_ext
9662 fi
9663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9665 if test `eval echo '${'$as_ac_var'}'` = yes; then
9666   cat >>confdefs.h <<_ACEOF
9667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9668 _ACEOF
9669  break
9670 fi
9671 done
9672
9673
9674
9675 for ac_func in memcpy bcopy
9676 do
9677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9678 echo "$as_me:$LINENO: checking for $ac_func" >&5
9679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9680 if eval "test \"\${$as_ac_var+set}\" = set"; then
9681   echo $ECHO_N "(cached) $ECHO_C" >&6
9682 else
9683   cat >conftest.$ac_ext <<_ACEOF
9684 /* confdefs.h.  */
9685 _ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h.  */
9689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9691 #define $ac_func innocuous_$ac_func
9692
9693 /* System header to define __stub macros and hopefully few prototypes,
9694     which can conflict with char $ac_func (); below.
9695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9696     <limits.h> exists even on freestanding compilers.  */
9697
9698 #ifdef __STDC__
9699 # include <limits.h>
9700 #else
9701 # include <assert.h>
9702 #endif
9703
9704 #undef $ac_func
9705
9706 /* Override any gcc2 internal prototype to avoid an error.  */
9707 #ifdef __cplusplus
9708 extern "C"
9709 {
9710 #endif
9711 /* We use char because int might match the return type of a gcc2
9712    builtin and then its argument prototype would still apply.  */
9713 char $ac_func ();
9714 /* The GNU C library defines this for functions which it implements
9715     to always fail with ENOSYS.  Some functions are actually named
9716     something starting with __ and the normal name is an alias.  */
9717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9718 choke me
9719 #else
9720 char (*f) () = $ac_func;
9721 #endif
9722 #ifdef __cplusplus
9723 }
9724 #endif
9725
9726 int
9727 main ()
9728 {
9729 return f != $ac_func;
9730   ;
9731   return 0;
9732 }
9733 _ACEOF
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9736   (eval $ac_link) 2>conftest.er1
9737   ac_status=$?
9738   grep -v '^ *+' conftest.er1 >conftest.err
9739   rm -f conftest.er1
9740   cat conftest.err >&5
9741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742   (exit $ac_status); } &&
9743          { ac_try='test -z "$ac_c_werror_flag"
9744                          || test ! -s conftest.err'
9745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746   (eval $ac_try) 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); }; } &&
9750          { ac_try='test -s conftest$ac_exeext'
9751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752   (eval $ac_try) 2>&5
9753   ac_status=$?
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); }; }; then
9756   eval "$as_ac_var=yes"
9757 else
9758   echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9760
9761 eval "$as_ac_var=no"
9762 fi
9763 rm -f conftest.err conftest.$ac_objext \
9764       conftest$ac_exeext conftest.$ac_ext
9765 fi
9766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9768 if test `eval echo '${'$as_ac_var'}'` = yes; then
9769   cat >>confdefs.h <<_ACEOF
9770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9771 _ACEOF
9772  break
9773 fi
9774 done
9775
9776
9777
9778 for ac_func in memmove strcmp
9779 do
9780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9781 echo "$as_me:$LINENO: checking for $ac_func" >&5
9782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9783 if eval "test \"\${$as_ac_var+set}\" = set"; then
9784   echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786   cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9794 #define $ac_func innocuous_$ac_func
9795
9796 /* System header to define __stub macros and hopefully few prototypes,
9797     which can conflict with char $ac_func (); below.
9798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9799     <limits.h> exists even on freestanding compilers.  */
9800
9801 #ifdef __STDC__
9802 # include <limits.h>
9803 #else
9804 # include <assert.h>
9805 #endif
9806
9807 #undef $ac_func
9808
9809 /* Override any gcc2 internal prototype to avoid an error.  */
9810 #ifdef __cplusplus
9811 extern "C"
9812 {
9813 #endif
9814 /* We use char because int might match the return type of a gcc2
9815    builtin and then its argument prototype would still apply.  */
9816 char $ac_func ();
9817 /* The GNU C library defines this for functions which it implements
9818     to always fail with ENOSYS.  Some functions are actually named
9819     something starting with __ and the normal name is an alias.  */
9820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9821 choke me
9822 #else
9823 char (*f) () = $ac_func;
9824 #endif
9825 #ifdef __cplusplus
9826 }
9827 #endif
9828
9829 int
9830 main ()
9831 {
9832 return f != $ac_func;
9833   ;
9834   return 0;
9835 }
9836 _ACEOF
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839   (eval $ac_link) 2>conftest.er1
9840   ac_status=$?
9841   grep -v '^ *+' conftest.er1 >conftest.err
9842   rm -f conftest.er1
9843   cat conftest.err >&5
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); } &&
9846          { ac_try='test -z "$ac_c_werror_flag"
9847                          || test ! -s conftest.err'
9848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849   (eval $ac_try) 2>&5
9850   ac_status=$?
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); }; } &&
9853          { ac_try='test -s conftest$ac_exeext'
9854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855   (eval $ac_try) 2>&5
9856   ac_status=$?
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); }; }; then
9859   eval "$as_ac_var=yes"
9860 else
9861   echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9863
9864 eval "$as_ac_var=no"
9865 fi
9866 rm -f conftest.err conftest.$ac_objext \
9867       conftest$ac_exeext conftest.$ac_ext
9868 fi
9869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9871 if test `eval echo '${'$as_ac_var'}'` = yes; then
9872   cat >>confdefs.h <<_ACEOF
9873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9874 _ACEOF
9875
9876 fi
9877 done
9878
9879
9880
9881
9882 for ac_func in closedir opendir readdir
9883 do
9884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9885 echo "$as_me:$LINENO: checking for $ac_func" >&5
9886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9887 if eval "test \"\${$as_ac_var+set}\" = set"; then
9888   echo $ECHO_N "(cached) $ECHO_C" >&6
9889 else
9890   cat >conftest.$ac_ext <<_ACEOF
9891 /* confdefs.h.  */
9892 _ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h.  */
9896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9897    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9898 #define $ac_func innocuous_$ac_func
9899
9900 /* System header to define __stub macros and hopefully few prototypes,
9901     which can conflict with char $ac_func (); below.
9902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9903     <limits.h> exists even on freestanding compilers.  */
9904
9905 #ifdef __STDC__
9906 # include <limits.h>
9907 #else
9908 # include <assert.h>
9909 #endif
9910
9911 #undef $ac_func
9912
9913 /* Override any gcc2 internal prototype to avoid an error.  */
9914 #ifdef __cplusplus
9915 extern "C"
9916 {
9917 #endif
9918 /* We use char because int might match the return type of a gcc2
9919    builtin and then its argument prototype would still apply.  */
9920 char $ac_func ();
9921 /* The GNU C library defines this for functions which it implements
9922     to always fail with ENOSYS.  Some functions are actually named
9923     something starting with __ and the normal name is an alias.  */
9924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9925 choke me
9926 #else
9927 char (*f) () = $ac_func;
9928 #endif
9929 #ifdef __cplusplus
9930 }
9931 #endif
9932
9933 int
9934 main ()
9935 {
9936 return f != $ac_func;
9937   ;
9938   return 0;
9939 }
9940 _ACEOF
9941 rm -f conftest.$ac_objext conftest$ac_exeext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9943   (eval $ac_link) 2>conftest.er1
9944   ac_status=$?
9945   grep -v '^ *+' conftest.er1 >conftest.err
9946   rm -f conftest.er1
9947   cat conftest.err >&5
9948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949   (exit $ac_status); } &&
9950          { ac_try='test -z "$ac_c_werror_flag"
9951                          || test ! -s conftest.err'
9952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953   (eval $ac_try) 2>&5
9954   ac_status=$?
9955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956   (exit $ac_status); }; } &&
9957          { ac_try='test -s conftest$ac_exeext'
9958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959   (eval $ac_try) 2>&5
9960   ac_status=$?
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); }; }; then
9963   eval "$as_ac_var=yes"
9964 else
9965   echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9967
9968 eval "$as_ac_var=no"
9969 fi
9970 rm -f conftest.err conftest.$ac_objext \
9971       conftest$ac_exeext conftest.$ac_ext
9972 fi
9973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9975 if test `eval echo '${'$as_ac_var'}'` = yes; then
9976   cat >>confdefs.h <<_ACEOF
9977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9978 _ACEOF
9979
9980 fi
9981 done
9982
9983
9984 # Check whether --enable-shared or --disable-shared was given.
9985 if test "${enable_shared+set}" = set; then
9986   enableval="$enable_shared"
9987   p=${PACKAGE-default}
9988     case $enableval in
9989     yes) enable_shared=yes ;;
9990     no) enable_shared=no ;;
9991     *)
9992       enable_shared=no
9993       # Look at the argument we got.  We use all the common list separators.
9994       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9995       for pkg in $enableval; do
9996         IFS="$lt_save_ifs"
9997         if test "X$pkg" = "X$p"; then
9998           enable_shared=yes
9999         fi
10000       done
10001       IFS="$lt_save_ifs"
10002       ;;
10003     esac
10004 else
10005   enable_shared=yes
10006 fi;
10007
10008 # Check whether --enable-static or --disable-static was given.
10009 if test "${enable_static+set}" = set; then
10010   enableval="$enable_static"
10011   p=${PACKAGE-default}
10012     case $enableval in
10013     yes) enable_static=yes ;;
10014     no) enable_static=no ;;
10015     *)
10016      enable_static=no
10017       # Look at the argument we got.  We use all the common list separators.
10018       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10019       for pkg in $enableval; do
10020         IFS="$lt_save_ifs"
10021         if test "X$pkg" = "X$p"; then
10022           enable_static=yes
10023         fi
10024       done
10025       IFS="$lt_save_ifs"
10026       ;;
10027     esac
10028 else
10029   enable_static=yes
10030 fi;
10031
10032 # Check whether --enable-fast-install or --disable-fast-install was given.
10033 if test "${enable_fast_install+set}" = set; then
10034   enableval="$enable_fast_install"
10035   p=${PACKAGE-default}
10036     case $enableval in
10037     yes) enable_fast_install=yes ;;
10038     no) enable_fast_install=no ;;
10039     *)
10040       enable_fast_install=no
10041       # Look at the argument we got.  We use all the common list separators.
10042       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10043       for pkg in $enableval; do
10044         IFS="$lt_save_ifs"
10045         if test "X$pkg" = "X$p"; then
10046           enable_fast_install=yes
10047         fi
10048       done
10049       IFS="$lt_save_ifs"
10050       ;;
10051     esac
10052 else
10053   enable_fast_install=yes
10054 fi;
10055
10056 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10057 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10058 if test "${lt_cv_path_SED+set}" = set; then
10059   echo $ECHO_N "(cached) $ECHO_C" >&6
10060 else
10061   # Loop through the user's path and test for sed and gsed.
10062 # Then use that list of sed's as ones to test for truncation.
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10065 do
10066   IFS=$as_save_IFS
10067   test -z "$as_dir" && as_dir=.
10068   for lt_ac_prog in sed gsed; do
10069     for ac_exec_ext in '' $ac_executable_extensions; do
10070       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10071         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10072       fi
10073     done
10074   done
10075 done
10076 lt_ac_max=0
10077 lt_ac_count=0
10078 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10079 # along with /bin/sed that truncates output.
10080 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10081   test ! -f $lt_ac_sed && break
10082   cat /dev/null > conftest.in
10083   lt_ac_count=0
10084   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10085   # Check for GNU sed and select it if it is found.
10086   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10087     lt_cv_path_SED=$lt_ac_sed
10088     break
10089   fi
10090   while true; do
10091     cat conftest.in conftest.in >conftest.tmp
10092     mv conftest.tmp conftest.in
10093     cp conftest.in conftest.nl
10094     echo >>conftest.nl
10095     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10096     cmp -s conftest.out conftest.nl || break
10097     # 10000 chars as input seems more than enough
10098     test $lt_ac_count -gt 10 && break
10099     lt_ac_count=`expr $lt_ac_count + 1`
10100     if test $lt_ac_count -gt $lt_ac_max; then
10101       lt_ac_max=$lt_ac_count
10102       lt_cv_path_SED=$lt_ac_sed
10103     fi
10104   done
10105 done
10106
10107 fi
10108
10109 SED=$lt_cv_path_SED
10110 echo "$as_me:$LINENO: result: $SED" >&5
10111 echo "${ECHO_T}$SED" >&6
10112
10113
10114 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10115 if test "${with_gnu_ld+set}" = set; then
10116   withval="$with_gnu_ld"
10117   test "$withval" = no || with_gnu_ld=yes
10118 else
10119   with_gnu_ld=no
10120 fi;
10121 ac_prog=ld
10122 if test "$GCC" = yes; then
10123   # Check if gcc -print-prog-name=ld gives a path.
10124   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10125 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10126   case $host in
10127   *-*-mingw*)
10128     # gcc leaves a trailing carriage return which upsets mingw
10129     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10130   *)
10131     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10132   esac
10133   case $ac_prog in
10134     # Accept absolute paths.
10135     [\\/]* | ?:[\\/]*)
10136       re_direlt='/[^/][^/]*/\.\./'
10137       # Canonicalize the pathname of ld
10138       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10139       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10140         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10141       done
10142       test -z "$LD" && LD="$ac_prog"
10143       ;;
10144   "")
10145     # If it fails, then pretend we aren't using GCC.
10146     ac_prog=ld
10147     ;;
10148   *)
10149     # If it is relative, then search for the first ld in PATH.
10150     with_gnu_ld=unknown
10151     ;;
10152   esac
10153 elif test "$with_gnu_ld" = yes; then
10154   echo "$as_me:$LINENO: checking for GNU ld" >&5
10155 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10156 else
10157   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10158 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10159 fi
10160 if test "${lt_cv_path_LD+set}" = set; then
10161   echo $ECHO_N "(cached) $ECHO_C" >&6
10162 else
10163   if test -z "$LD"; then
10164   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10165   for ac_dir in $PATH; do
10166     IFS="$lt_save_ifs"
10167     test -z "$ac_dir" && ac_dir=.
10168     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10169       lt_cv_path_LD="$ac_dir/$ac_prog"
10170       # Check to see if the program is GNU ld.  I'd rather use --version,
10171       # but apparently some GNU ld's only accept -v.
10172       # Break only if it was the GNU/non-GNU ld that we prefer.
10173       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10174       *GNU* | *'with BFD'*)
10175         test "$with_gnu_ld" != no && break
10176         ;;
10177       *)
10178         test "$with_gnu_ld" != yes && break
10179         ;;
10180       esac
10181     fi
10182   done
10183   IFS="$lt_save_ifs"
10184 else
10185   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10186 fi
10187 fi
10188
10189 LD="$lt_cv_path_LD"
10190 if test -n "$LD"; then
10191   echo "$as_me:$LINENO: result: $LD" >&5
10192 echo "${ECHO_T}$LD" >&6
10193 else
10194   echo "$as_me:$LINENO: result: no" >&5
10195 echo "${ECHO_T}no" >&6
10196 fi
10197 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10198 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10199    { (exit 1); exit 1; }; }
10200 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10201 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10202 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10203   echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10206 case `$LD -v 2>&1 </dev/null` in
10207 *GNU* | *'with BFD'*)
10208   lt_cv_prog_gnu_ld=yes
10209   ;;
10210 *)
10211   lt_cv_prog_gnu_ld=no
10212   ;;
10213 esac
10214 fi
10215 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10216 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10217 with_gnu_ld=$lt_cv_prog_gnu_ld
10218
10219
10220 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10221 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10222 if test "${lt_cv_ld_reload_flag+set}" = set; then
10223   echo $ECHO_N "(cached) $ECHO_C" >&6
10224 else
10225   lt_cv_ld_reload_flag='-r'
10226 fi
10227 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10228 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10229 reload_flag=$lt_cv_ld_reload_flag
10230 case $reload_flag in
10231 "" | " "*) ;;
10232 *) reload_flag=" $reload_flag" ;;
10233 esac
10234 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10235 case $host_os in
10236   darwin*)
10237     if test "$GCC" = yes; then
10238       reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
10239     else
10240       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10241     fi
10242     ;;
10243 esac
10244
10245 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10246 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10247 if test "${lt_cv_deplibs_check_method+set}" = set; then
10248   echo $ECHO_N "(cached) $ECHO_C" >&6
10249 else
10250   lt_cv_file_magic_cmd='$MAGIC_CMD'
10251 lt_cv_file_magic_test_file=
10252 lt_cv_deplibs_check_method='unknown'
10253 # Need to set the preceding variable on all platforms that support
10254 # interlibrary dependencies.
10255 # 'none' -- dependencies not supported.
10256 # `unknown' -- same as none, but documents that we really don't know.
10257 # 'pass_all' -- all dependencies passed with no checks.
10258 # 'test_compile' -- check by making test program.
10259 # 'file_magic [[regex]]' -- check by looking for files in library path
10260 # which responds to the $file_magic_cmd with a given extended regex.
10261 # If you have `file' or equivalent on your system and you're not sure
10262 # whether `pass_all' will *always* work, you probably want this one.
10263
10264 case $host_os in
10265 aix4* | aix5*)
10266   lt_cv_deplibs_check_method=pass_all
10267   ;;
10268
10269 beos*)
10270   lt_cv_deplibs_check_method=pass_all
10271   ;;
10272
10273 bsdi[45]*)
10274   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10275   lt_cv_file_magic_cmd='/usr/bin/file -L'
10276   lt_cv_file_magic_test_file=/shlib/libc.so
10277   ;;
10278
10279 cygwin*)
10280   # func_win32_libid is a shell function defined in ltmain.sh
10281   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10282   lt_cv_file_magic_cmd='func_win32_libid'
10283   ;;
10284
10285 mingw* | pw32*)
10286   # Base MSYS/MinGW do not provide the 'file' command needed by
10287   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10288   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10289   lt_cv_file_magic_cmd='$OBJDUMP -f'
10290   ;;
10291
10292 darwin* | rhapsody*)
10293   lt_cv_deplibs_check_method=pass_all
10294   ;;
10295
10296 freebsd* | kfreebsd*-gnu)
10297   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10298     case $host_cpu in
10299     i*86 )
10300       # Not sure whether the presence of OpenBSD here was a mistake.
10301       # Let's accept both of them until this is cleared up.
10302       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10303       lt_cv_file_magic_cmd=/usr/bin/file
10304       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10305       ;;
10306     esac
10307   else
10308     lt_cv_deplibs_check_method=pass_all
10309   fi
10310   ;;
10311
10312 gnu*)
10313   lt_cv_deplibs_check_method=pass_all
10314   ;;
10315
10316 hpux10.20* | hpux11*)
10317   lt_cv_file_magic_cmd=/usr/bin/file
10318   case "$host_cpu" in
10319   ia64*)
10320     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10321     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10322     ;;
10323   hppa*64*)
10324     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]'
10325     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10326     ;;
10327   *)
10328     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10329     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10330     ;;
10331   esac
10332   ;;
10333
10334 irix5* | irix6* | nonstopux*)
10335   case $LD in
10336   *-32|*"-32 ") libmagic=32-bit;;
10337   *-n32|*"-n32 ") libmagic=N32;;
10338   *-64|*"-64 ") libmagic=64-bit;;
10339   *) libmagic=never-match;;
10340   esac
10341   lt_cv_deplibs_check_method=pass_all
10342   ;;
10343
10344 # This must be Linux ELF.
10345 linux*)
10346   lt_cv_deplibs_check_method=pass_all
10347   ;;
10348
10349 netbsd*)
10350   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10351     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10352   else
10353     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10354   fi
10355   ;;
10356
10357 newos6*)
10358   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10359   lt_cv_file_magic_cmd=/usr/bin/file
10360   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10361   ;;
10362
10363 nto-qnx*)
10364   lt_cv_deplibs_check_method=unknown
10365   ;;
10366
10367 openbsd*)
10368   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10369     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10370   else
10371     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10372   fi
10373   ;;
10374
10375 osf3* | osf4* | osf5*)
10376   lt_cv_deplibs_check_method=pass_all
10377   ;;
10378
10379 sco3.2v5*)
10380   lt_cv_deplibs_check_method=pass_all
10381   ;;
10382
10383 solaris*)
10384   lt_cv_deplibs_check_method=pass_all
10385   ;;
10386
10387 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10388   case $host_vendor in
10389   motorola)
10390     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]'
10391     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10392     ;;
10393   ncr)
10394     lt_cv_deplibs_check_method=pass_all
10395     ;;
10396   sequent)
10397     lt_cv_file_magic_cmd='/bin/file'
10398     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10399     ;;
10400   sni)
10401     lt_cv_file_magic_cmd='/bin/file'
10402     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10403     lt_cv_file_magic_test_file=/lib/libc.so
10404     ;;
10405   siemens)
10406     lt_cv_deplibs_check_method=pass_all
10407     ;;
10408   esac
10409   ;;
10410
10411 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10412   lt_cv_deplibs_check_method=pass_all
10413   ;;
10414 esac
10415
10416 fi
10417 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10418 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10419 file_magic_cmd=$lt_cv_file_magic_cmd
10420 deplibs_check_method=$lt_cv_deplibs_check_method
10421 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10422
10423
10424
10425 # If no C compiler was specified, use CC.
10426 LTCC=${LTCC-"$CC"}
10427
10428 # Allow CC to be a program name with arguments.
10429 compiler=$CC
10430
10431 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10432 if test "${enable_libtool_lock+set}" = set; then
10433   enableval="$enable_libtool_lock"
10434
10435 fi;
10436 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10437
10438 # Some flags need to be propagated to the compiler or linker for good
10439 # libtool support.
10440 case $host in
10441 ia64-*-hpux*)
10442   # Find out which ABI we are using.
10443   echo 'int i;' > conftest.$ac_ext
10444   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10445   (eval $ac_compile) 2>&5
10446   ac_status=$?
10447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448   (exit $ac_status); }; then
10449     case `/usr/bin/file conftest.$ac_objext` in
10450     *ELF-32*)
10451       HPUX_IA64_MODE="32"
10452       ;;
10453     *ELF-64*)
10454       HPUX_IA64_MODE="64"
10455       ;;
10456     esac
10457   fi
10458   rm -rf conftest*
10459   ;;
10460 *-*-irix6*)
10461   # Find out which ABI we are using.
10462   echo '#line 10462 "configure"' > conftest.$ac_ext
10463   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10464   (eval $ac_compile) 2>&5
10465   ac_status=$?
10466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467   (exit $ac_status); }; then
10468    if test "$lt_cv_prog_gnu_ld" = yes; then
10469     case `/usr/bin/file conftest.$ac_objext` in
10470     *32-bit*)
10471       LD="${LD-ld} -melf32bsmip"
10472       ;;
10473     *N32*)
10474       LD="${LD-ld} -melf32bmipn32"
10475       ;;
10476     *64-bit*)
10477       LD="${LD-ld} -melf64bmip"
10478       ;;
10479     esac
10480    else
10481     case `/usr/bin/file conftest.$ac_objext` in
10482     *32-bit*)
10483       LD="${LD-ld} -32"
10484       ;;
10485     *N32*)
10486       LD="${LD-ld} -n32"
10487       ;;
10488     *64-bit*)
10489       LD="${LD-ld} -64"
10490       ;;
10491     esac
10492    fi
10493   fi
10494   rm -rf conftest*
10495   ;;
10496
10497 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10498   # Find out which ABI we are using.
10499   echo 'int i;' > conftest.$ac_ext
10500   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10501   (eval $ac_compile) 2>&5
10502   ac_status=$?
10503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504   (exit $ac_status); }; then
10505     case "`/usr/bin/file conftest.o`" in
10506     *32-bit*)
10507       case $host in
10508         x86_64-*linux*)
10509           LD="${LD-ld} -m elf_i386"
10510           ;;
10511         ppc64-*linux*|powerpc64-*linux*)
10512           LD="${LD-ld} -m elf32ppclinux"
10513           ;;
10514         s390x-*linux*)
10515           LD="${LD-ld} -m elf_s390"
10516           ;;
10517         sparc64-*linux*)
10518           LD="${LD-ld} -m elf32_sparc"
10519           ;;
10520       esac
10521       ;;
10522     *64-bit*)
10523       case $host in
10524         x86_64-*linux*)
10525           LD="${LD-ld} -m elf_x86_64"
10526           ;;
10527         ppc*-*linux*|powerpc*-*linux*)
10528           LD="${LD-ld} -m elf64ppc"
10529           ;;
10530         s390*-*linux*)
10531           LD="${LD-ld} -m elf64_s390"
10532           ;;
10533         sparc*-*linux*)
10534           LD="${LD-ld} -m elf64_sparc"
10535           ;;
10536       esac
10537       ;;
10538     esac
10539   fi
10540   rm -rf conftest*
10541   ;;
10542
10543 *-*-sco3.2v5*)
10544   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10545   SAVE_CFLAGS="$CFLAGS"
10546   CFLAGS="$CFLAGS -belf"
10547   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10548 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10549 if test "${lt_cv_cc_needs_belf+set}" = set; then
10550   echo $ECHO_N "(cached) $ECHO_C" >&6
10551 else
10552   ac_ext=c
10553 ac_cpp='$CPP $CPPFLAGS'
10554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10557
10558      cat >conftest.$ac_ext <<_ACEOF
10559 /* confdefs.h.  */
10560 _ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h.  */
10564
10565 _ACEOF
10566 rm -f conftest.$ac_objext conftest$ac_exeext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10568   (eval $ac_link) 2>conftest.er1
10569   ac_status=$?
10570   grep -v '^ *+' conftest.er1 >conftest.err
10571   rm -f conftest.er1
10572   cat conftest.err >&5
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); } &&
10575          { ac_try='test -z "$ac_c_werror_flag"
10576                          || test ! -s conftest.err'
10577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578   (eval $ac_try) 2>&5
10579   ac_status=$?
10580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581   (exit $ac_status); }; } &&
10582          { ac_try='test -s conftest$ac_exeext'
10583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584   (eval $ac_try) 2>&5
10585   ac_status=$?
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); }; }; then
10588   lt_cv_cc_needs_belf=yes
10589 else
10590   echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10592
10593 lt_cv_cc_needs_belf=no
10594 fi
10595 rm -f conftest.err conftest.$ac_objext \
10596       conftest$ac_exeext conftest.$ac_ext
10597      ac_ext=c
10598 ac_cpp='$CPP $CPPFLAGS'
10599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10602
10603 fi
10604 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10605 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10606   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10607     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10608     CFLAGS="$SAVE_CFLAGS"
10609   fi
10610   ;;
10611
10612 esac
10613
10614 need_locks="$enable_libtool_lock"
10615
10616
10617
10618
10619 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10620     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10621     (test "X$CXX" != "Xg++"))) ; then
10622   ac_ext=cc
10623 ac_cpp='$CXXCPP $CPPFLAGS'
10624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10627 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10628 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10629 if test -z "$CXXCPP"; then
10630   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10631   echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10633       # Double quotes because CXXCPP needs to be expanded
10634     for CXXCPP in "$CXX -E" "/lib/cpp"
10635     do
10636       ac_preproc_ok=false
10637 for ac_cxx_preproc_warn_flag in '' yes
10638 do
10639   # Use a header file that comes with gcc, so configuring glibc
10640   # with a fresh cross-compiler works.
10641   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10642   # <limits.h> exists even on freestanding compilers.
10643   # On the NeXT, cc -E runs the code through the compiler's parser,
10644   # not just through cpp. "Syntax error" is here to catch this case.
10645   cat >conftest.$ac_ext <<_ACEOF
10646 /* confdefs.h.  */
10647 _ACEOF
10648 cat confdefs.h >>conftest.$ac_ext
10649 cat >>conftest.$ac_ext <<_ACEOF
10650 /* end confdefs.h.  */
10651 #ifdef __STDC__
10652 # include <limits.h>
10653 #else
10654 # include <assert.h>
10655 #endif
10656                      Syntax error
10657 _ACEOF
10658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10659   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10660   ac_status=$?
10661   grep -v '^ *+' conftest.er1 >conftest.err
10662   rm -f conftest.er1
10663   cat conftest.err >&5
10664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665   (exit $ac_status); } >/dev/null; then
10666   if test -s conftest.err; then
10667     ac_cpp_err=$ac_cxx_preproc_warn_flag
10668     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10669   else
10670     ac_cpp_err=
10671   fi
10672 else
10673   ac_cpp_err=yes
10674 fi
10675 if test -z "$ac_cpp_err"; then
10676   :
10677 else
10678   echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10680
10681   # Broken: fails on valid input.
10682 continue
10683 fi
10684 rm -f conftest.err conftest.$ac_ext
10685
10686   # OK, works on sane cases.  Now check whether non-existent headers
10687   # can be detected and how.
10688   cat >conftest.$ac_ext <<_ACEOF
10689 /* confdefs.h.  */
10690 _ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h.  */
10694 #include <ac_nonexistent.h>
10695 _ACEOF
10696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10697   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10698   ac_status=$?
10699   grep -v '^ *+' conftest.er1 >conftest.err
10700   rm -f conftest.er1
10701   cat conftest.err >&5
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); } >/dev/null; then
10704   if test -s conftest.err; then
10705     ac_cpp_err=$ac_cxx_preproc_warn_flag
10706     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10707   else
10708     ac_cpp_err=
10709   fi
10710 else
10711   ac_cpp_err=yes
10712 fi
10713 if test -z "$ac_cpp_err"; then
10714   # Broken: success on invalid input.
10715 continue
10716 else
10717   echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10719
10720   # Passes both tests.
10721 ac_preproc_ok=:
10722 break
10723 fi
10724 rm -f conftest.err conftest.$ac_ext
10725
10726 done
10727 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10728 rm -f conftest.err conftest.$ac_ext
10729 if $ac_preproc_ok; then
10730   break
10731 fi
10732
10733     done
10734     ac_cv_prog_CXXCPP=$CXXCPP
10735
10736 fi
10737   CXXCPP=$ac_cv_prog_CXXCPP
10738 else
10739   ac_cv_prog_CXXCPP=$CXXCPP
10740 fi
10741 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10742 echo "${ECHO_T}$CXXCPP" >&6
10743 ac_preproc_ok=false
10744 for ac_cxx_preproc_warn_flag in '' yes
10745 do
10746   # Use a header file that comes with gcc, so configuring glibc
10747   # with a fresh cross-compiler works.
10748   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10749   # <limits.h> exists even on freestanding compilers.
10750   # On the NeXT, cc -E runs the code through the compiler's parser,
10751   # not just through cpp. "Syntax error" is here to catch this case.
10752   cat >conftest.$ac_ext <<_ACEOF
10753 /* confdefs.h.  */
10754 _ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h.  */
10758 #ifdef __STDC__
10759 # include <limits.h>
10760 #else
10761 # include <assert.h>
10762 #endif
10763                      Syntax error
10764 _ACEOF
10765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10766   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10767   ac_status=$?
10768   grep -v '^ *+' conftest.er1 >conftest.err
10769   rm -f conftest.er1
10770   cat conftest.err >&5
10771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772   (exit $ac_status); } >/dev/null; then
10773   if test -s conftest.err; then
10774     ac_cpp_err=$ac_cxx_preproc_warn_flag
10775     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10776   else
10777     ac_cpp_err=
10778   fi
10779 else
10780   ac_cpp_err=yes
10781 fi
10782 if test -z "$ac_cpp_err"; then
10783   :
10784 else
10785   echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10787
10788   # Broken: fails on valid input.
10789 continue
10790 fi
10791 rm -f conftest.err conftest.$ac_ext
10792
10793   # OK, works on sane cases.  Now check whether non-existent headers
10794   # can be detected and how.
10795   cat >conftest.$ac_ext <<_ACEOF
10796 /* confdefs.h.  */
10797 _ACEOF
10798 cat confdefs.h >>conftest.$ac_ext
10799 cat >>conftest.$ac_ext <<_ACEOF
10800 /* end confdefs.h.  */
10801 #include <ac_nonexistent.h>
10802 _ACEOF
10803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10804   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10805   ac_status=$?
10806   grep -v '^ *+' conftest.er1 >conftest.err
10807   rm -f conftest.er1
10808   cat conftest.err >&5
10809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810   (exit $ac_status); } >/dev/null; then
10811   if test -s conftest.err; then
10812     ac_cpp_err=$ac_cxx_preproc_warn_flag
10813     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10814   else
10815     ac_cpp_err=
10816   fi
10817 else
10818   ac_cpp_err=yes
10819 fi
10820 if test -z "$ac_cpp_err"; then
10821   # Broken: success on invalid input.
10822 continue
10823 else
10824   echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10826
10827   # Passes both tests.
10828 ac_preproc_ok=:
10829 break
10830 fi
10831 rm -f conftest.err conftest.$ac_ext
10832
10833 done
10834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10835 rm -f conftest.err conftest.$ac_ext
10836 if $ac_preproc_ok; then
10837   :
10838 else
10839   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10840 See \`config.log' for more details." >&5
10841 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10842 See \`config.log' for more details." >&2;}
10843    { (exit 1); exit 1; }; }
10844 fi
10845
10846 ac_ext=cc
10847 ac_cpp='$CXXCPP $CPPFLAGS'
10848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10851
10852 fi
10853
10854
10855 ac_ext=f
10856 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10857 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10858 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10859 if test -n "$ac_tool_prefix"; then
10860   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10861   do
10862     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10864 echo "$as_me:$LINENO: checking for $ac_word" >&5
10865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10866 if test "${ac_cv_prog_F77+set}" = set; then
10867   echo $ECHO_N "(cached) $ECHO_C" >&6
10868 else
10869   if test -n "$F77"; then
10870   ac_cv_prog_F77="$F77" # Let the user override the test.
10871 else
10872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873 for as_dir in $PATH
10874 do
10875   IFS=$as_save_IFS
10876   test -z "$as_dir" && as_dir=.
10877   for ac_exec_ext in '' $ac_executable_extensions; do
10878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10879     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10881     break 2
10882   fi
10883 done
10884 done
10885
10886 fi
10887 fi
10888 F77=$ac_cv_prog_F77
10889 if test -n "$F77"; then
10890   echo "$as_me:$LINENO: result: $F77" >&5
10891 echo "${ECHO_T}$F77" >&6
10892 else
10893   echo "$as_me:$LINENO: result: no" >&5
10894 echo "${ECHO_T}no" >&6
10895 fi
10896
10897     test -n "$F77" && break
10898   done
10899 fi
10900 if test -z "$F77"; then
10901   ac_ct_F77=$F77
10902   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10903 do
10904   # Extract the first word of "$ac_prog", so it can be a program name with args.
10905 set dummy $ac_prog; ac_word=$2
10906 echo "$as_me:$LINENO: checking for $ac_word" >&5
10907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10908 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10909   echo $ECHO_N "(cached) $ECHO_C" >&6
10910 else
10911   if test -n "$ac_ct_F77"; then
10912   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10913 else
10914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10915 for as_dir in $PATH
10916 do
10917   IFS=$as_save_IFS
10918   test -z "$as_dir" && as_dir=.
10919   for ac_exec_ext in '' $ac_executable_extensions; do
10920   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10921     ac_cv_prog_ac_ct_F77="$ac_prog"
10922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10923     break 2
10924   fi
10925 done
10926 done
10927
10928 fi
10929 fi
10930 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10931 if test -n "$ac_ct_F77"; then
10932   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10933 echo "${ECHO_T}$ac_ct_F77" >&6
10934 else
10935   echo "$as_me:$LINENO: result: no" >&5
10936 echo "${ECHO_T}no" >&6
10937 fi
10938
10939   test -n "$ac_ct_F77" && break
10940 done
10941
10942   F77=$ac_ct_F77
10943 fi
10944
10945
10946 # Provide some information about the compiler.
10947 echo "$as_me:10947:" \
10948      "checking for Fortran 77 compiler version" >&5
10949 ac_compiler=`set X $ac_compile; echo $2`
10950 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10951   (eval $ac_compiler --version </dev/null >&5) 2>&5
10952   ac_status=$?
10953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954   (exit $ac_status); }
10955 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10956   (eval $ac_compiler -v </dev/null >&5) 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }
10960 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10961   (eval $ac_compiler -V </dev/null >&5) 2>&5
10962   ac_status=$?
10963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964   (exit $ac_status); }
10965 rm -f a.out
10966
10967 # If we don't use `.F' as extension, the preprocessor is not run on the
10968 # input file.  (Note that this only needs to work for GNU compilers.)
10969 ac_save_ext=$ac_ext
10970 ac_ext=F
10971 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10972 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10973 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10974   echo $ECHO_N "(cached) $ECHO_C" >&6
10975 else
10976   cat >conftest.$ac_ext <<_ACEOF
10977       program main
10978 #ifndef __GNUC__
10979        choke me
10980 #endif
10981
10982       end
10983 _ACEOF
10984 rm -f conftest.$ac_objext
10985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10986   (eval $ac_compile) 2>conftest.er1
10987   ac_status=$?
10988   grep -v '^ *+' conftest.er1 >conftest.err
10989   rm -f conftest.er1
10990   cat conftest.err >&5
10991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992   (exit $ac_status); } &&
10993          { ac_try='test -z "$ac_f77_werror_flag"
10994                          || test ! -s conftest.err'
10995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996   (eval $ac_try) 2>&5
10997   ac_status=$?
10998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999   (exit $ac_status); }; } &&
11000          { ac_try='test -s conftest.$ac_objext'
11001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002   (eval $ac_try) 2>&5
11003   ac_status=$?
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); }; }; then
11006   ac_compiler_gnu=yes
11007 else
11008   echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11010
11011 ac_compiler_gnu=no
11012 fi
11013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11014 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11015
11016 fi
11017 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11018 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11019 ac_ext=$ac_save_ext
11020 ac_test_FFLAGS=${FFLAGS+set}
11021 ac_save_FFLAGS=$FFLAGS
11022 FFLAGS=
11023 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11024 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11025 if test "${ac_cv_prog_f77_g+set}" = set; then
11026   echo $ECHO_N "(cached) $ECHO_C" >&6
11027 else
11028   FFLAGS=-g
11029 cat >conftest.$ac_ext <<_ACEOF
11030       program main
11031
11032       end
11033 _ACEOF
11034 rm -f conftest.$ac_objext
11035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11036   (eval $ac_compile) 2>conftest.er1
11037   ac_status=$?
11038   grep -v '^ *+' conftest.er1 >conftest.err
11039   rm -f conftest.er1
11040   cat conftest.err >&5
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); } &&
11043          { ac_try='test -z "$ac_f77_werror_flag"
11044                          || test ! -s conftest.err'
11045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046   (eval $ac_try) 2>&5
11047   ac_status=$?
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); }; } &&
11050          { ac_try='test -s conftest.$ac_objext'
11051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052   (eval $ac_try) 2>&5
11053   ac_status=$?
11054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055   (exit $ac_status); }; }; then
11056   ac_cv_prog_f77_g=yes
11057 else
11058   echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.$ac_ext >&5
11060
11061 ac_cv_prog_f77_g=no
11062 fi
11063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11064
11065 fi
11066 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11067 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11068 if test "$ac_test_FFLAGS" = set; then
11069   FFLAGS=$ac_save_FFLAGS
11070 elif test $ac_cv_prog_f77_g = yes; then
11071   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11072     FFLAGS="-g -O2"
11073   else
11074     FFLAGS="-g"
11075   fi
11076 else
11077   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11078     FFLAGS="-O2"
11079   else
11080     FFLAGS=
11081   fi
11082 fi
11083
11084 G77=`test $ac_compiler_gnu = yes && echo yes`
11085 ac_ext=c
11086 ac_cpp='$CPP $CPPFLAGS'
11087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11090
11091
11092
11093 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11094
11095 # find the maximum length of command line arguments
11096 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11097 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11098 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11099   echo $ECHO_N "(cached) $ECHO_C" >&6
11100 else
11101     i=0
11102   teststring="ABCD"
11103
11104   case $build_os in
11105   msdosdjgpp*)
11106     # On DJGPP, this test can blow up pretty badly due to problems in libc
11107     # (any single argument exceeding 2000 bytes causes a buffer overrun
11108     # during glob expansion).  Even if it were fixed, the result of this
11109     # check would be larger than it should be.
11110     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11111     ;;
11112
11113   gnu*)
11114     # Under GNU Hurd, this test is not required because there is
11115     # no limit to the length of command line arguments.
11116     # Libtool will interpret -1 as no limit whatsoever
11117     lt_cv_sys_max_cmd_len=-1;
11118     ;;
11119
11120   cygwin* | mingw*)
11121     # On Win9x/ME, this test blows up -- it succeeds, but takes
11122     # about 5 minutes as the teststring grows exponentially.
11123     # Worse, since 9x/ME are not pre-emptively multitasking,
11124     # you end up with a "frozen" computer, even though with patience
11125     # the test eventually succeeds (with a max line length of 256k).
11126     # Instead, let's just punt: use the minimum linelength reported by
11127     # all of the supported platforms: 8192 (on NT/2K/XP).
11128     lt_cv_sys_max_cmd_len=8192;
11129     ;;
11130
11131   amigaos*)
11132     # On AmigaOS with pdksh, this test takes hours, literally.
11133     # So we just punt and use a minimum line length of 8192.
11134     lt_cv_sys_max_cmd_len=8192;
11135     ;;
11136
11137   netbsd* | freebsd* | openbsd* | darwin* )
11138     # This has been around since 386BSD, at least.  Likely further.
11139     if test -x /sbin/sysctl; then
11140       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11141     elif test -x /usr/sbin/sysctl; then
11142       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11143     else
11144       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11145     fi
11146     # And add a safety zone
11147     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11148     ;;
11149
11150  *)
11151     # If test is not a shell built-in, we'll probably end up computing a
11152     # maximum length that is only half of the actual maximum length, but
11153     # we can't tell.
11154     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11155     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11156                = "XX$teststring") >/dev/null 2>&1 &&
11157             new_result=`expr "X$teststring" : ".*" 2>&1` &&
11158             lt_cv_sys_max_cmd_len=$new_result &&
11159             test $i != 17 # 1/2 MB should be enough
11160     do
11161       i=`expr $i + 1`
11162       teststring=$teststring$teststring
11163     done
11164     teststring=
11165     # Add a significant safety factor because C++ compilers can tack on massive
11166     # amounts of additional arguments before passing them to the linker.
11167     # It appears as though 1/2 is a usable value.
11168     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11169     ;;
11170   esac
11171
11172 fi
11173
11174 if test -n $lt_cv_sys_max_cmd_len ; then
11175   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11176 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11177 else
11178   echo "$as_me:$LINENO: result: none" >&5
11179 echo "${ECHO_T}none" >&6
11180 fi
11181
11182
11183
11184
11185 # Check for command to grab the raw symbol name followed by C symbol from nm.
11186 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11187 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11188 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11189   echo $ECHO_N "(cached) $ECHO_C" >&6
11190 else
11191
11192 # These are sane defaults that work on at least a few old systems.
11193 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11194
11195 # Character class describing NM global symbol codes.
11196 symcode='[BCDEGRST]'
11197
11198 # Regexp to match symbols that can be accessed directly from C.
11199 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11200
11201 # Transform the above into a raw symbol and a C symbol.
11202 symxfrm='\1 \2\3 \3'
11203
11204 # Transform an extracted symbol line into a proper C declaration
11205 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11206
11207 # Transform an extracted symbol line into symbol name and symbol address
11208 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'"
11209
11210 # Define system-specific variables.
11211 case $host_os in
11212 aix*)
11213   symcode='[BCDT]'
11214   ;;
11215 cygwin* | mingw* | pw32*)
11216   symcode='[ABCDGISTW]'
11217   ;;
11218 hpux*) # Its linker distinguishes data from code symbols
11219   if test "$host_cpu" = ia64; then
11220     symcode='[ABCDEGRST]'
11221   fi
11222   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11223   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'"
11224   ;;
11225 linux*)
11226   if test "$host_cpu" = ia64; then
11227     symcode='[ABCDGIRSTW]'
11228     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11229     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'"
11230   fi
11231   ;;
11232 irix* | nonstopux*)
11233   symcode='[BCDEGRST]'
11234   ;;
11235 osf*)
11236   symcode='[BCDEGQRST]'
11237   ;;
11238 solaris* | sysv5*)
11239   symcode='[BDRT]'
11240   ;;
11241 sysv4)
11242   symcode='[DFNSTU]'
11243   ;;
11244 esac
11245
11246 # Handle CRLF in mingw tool chain
11247 opt_cr=
11248 case $build_os in
11249 mingw*)
11250   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11251   ;;
11252 esac
11253
11254 # If we're using GNU nm, then use its standard symbol codes.
11255 case `$NM -V 2>&1` in
11256 *GNU* | *'with BFD'*)
11257   symcode='[ABCDGIRSTW]' ;;
11258 esac
11259
11260 # Try without a prefix undercore, then with it.
11261 for ac_symprfx in "" "_"; do
11262
11263   # Write the raw and C identifiers.
11264   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11265
11266   # Check to see that the pipe works correctly.
11267   pipe_works=no
11268
11269   rm -f conftest*
11270   cat > conftest.$ac_ext <<EOF
11271 #ifdef __cplusplus
11272 extern "C" {
11273 #endif
11274 char nm_test_var;
11275 void nm_test_func(){}
11276 #ifdef __cplusplus
11277 }
11278 #endif
11279 int main(){nm_test_var='a';nm_test_func();return(0);}
11280 EOF
11281
11282   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11283   (eval $ac_compile) 2>&5
11284   ac_status=$?
11285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286   (exit $ac_status); }; then
11287     # Now try to grab the symbols.
11288     nlist=conftest.nm
11289     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11290   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11291   ac_status=$?
11292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293   (exit $ac_status); } && test -s "$nlist"; then
11294       # Try sorting and uniquifying the output.
11295       if sort "$nlist" | uniq > "$nlist"T; then
11296         mv -f "$nlist"T "$nlist"
11297       else
11298         rm -f "$nlist"T
11299       fi
11300
11301       # Make sure that we snagged all the symbols we need.
11302       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11303         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11304           cat <<EOF > conftest.$ac_ext
11305 #ifdef __cplusplus
11306 extern "C" {
11307 #endif
11308
11309 EOF
11310           # Now generate the symbol file.
11311           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11312
11313           cat <<EOF >> conftest.$ac_ext
11314 #if defined (__STDC__) && __STDC__
11315 # define lt_ptr_t void *
11316 #else
11317 # define lt_ptr_t char *
11318 # define const
11319 #endif
11320
11321 /* The mapping between symbol names and symbols. */
11322 const struct {
11323   const char *name;
11324   lt_ptr_t address;
11325 }
11326 lt_preloaded_symbols[] =
11327 {
11328 EOF
11329           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11330           cat <<\EOF >> conftest.$ac_ext
11331   {0, (lt_ptr_t) 0}
11332 };
11333
11334 #ifdef __cplusplus
11335 }
11336 #endif
11337 EOF
11338           # Now try linking the two files.
11339           mv conftest.$ac_objext conftstm.$ac_objext
11340           lt_save_LIBS="$LIBS"
11341           lt_save_CFLAGS="$CFLAGS"
11342           LIBS="conftstm.$ac_objext"
11343           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11344           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11345   (eval $ac_link) 2>&5
11346   ac_status=$?
11347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11349             pipe_works=yes
11350           fi
11351           LIBS="$lt_save_LIBS"
11352           CFLAGS="$lt_save_CFLAGS"
11353         else
11354           echo "cannot find nm_test_func in $nlist" >&5
11355         fi
11356       else
11357         echo "cannot find nm_test_var in $nlist" >&5
11358       fi
11359     else
11360       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11361     fi
11362   else
11363     echo "$progname: failed program was:" >&5
11364     cat conftest.$ac_ext >&5
11365   fi
11366   rm -f conftest* conftst*
11367
11368   # Do not use the global_symbol_pipe unless it works.
11369   if test "$pipe_works" = yes; then
11370     break
11371   else
11372     lt_cv_sys_global_symbol_pipe=
11373   fi
11374 done
11375
11376 fi
11377
11378 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11379   lt_cv_sys_global_symbol_to_cdecl=
11380 fi
11381 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11382   echo "$as_me:$LINENO: result: failed" >&5
11383 echo "${ECHO_T}failed" >&6
11384 else
11385   echo "$as_me:$LINENO: result: ok" >&5
11386 echo "${ECHO_T}ok" >&6
11387 fi
11388
11389 echo "$as_me:$LINENO: checking for objdir" >&5
11390 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11391 if test "${lt_cv_objdir+set}" = set; then
11392   echo $ECHO_N "(cached) $ECHO_C" >&6
11393 else
11394   rm -f .libs 2>/dev/null
11395 mkdir .libs 2>/dev/null
11396 if test -d .libs; then
11397   lt_cv_objdir=.libs
11398 else
11399   # MS-DOS does not allow filenames that begin with a dot.
11400   lt_cv_objdir=_libs
11401 fi
11402 rmdir .libs 2>/dev/null
11403 fi
11404 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11405 echo "${ECHO_T}$lt_cv_objdir" >&6
11406 objdir=$lt_cv_objdir
11407
11408
11409
11410
11411
11412 case $host_os in
11413 aix3*)
11414   # AIX sometimes has problems with the GCC collect2 program.  For some
11415   # reason, if we set the COLLECT_NAMES environment variable, the problems
11416   # vanish in a puff of smoke.
11417   if test "X${COLLECT_NAMES+set}" != Xset; then
11418     COLLECT_NAMES=
11419     export COLLECT_NAMES
11420   fi
11421   ;;
11422 esac
11423
11424 # Sed substitution that helps us do robust quoting.  It backslashifies
11425 # metacharacters that are still active within double-quoted strings.
11426 Xsed='sed -e s/^X//'
11427 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11428
11429 # Same as above, but do not quote variable references.
11430 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11431
11432 # Sed substitution to delay expansion of an escaped shell variable in a
11433 # double_quote_subst'ed string.
11434 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11435
11436 # Sed substitution to avoid accidental globbing in evaled expressions
11437 no_glob_subst='s/\*/\\\*/g'
11438
11439 # Constants:
11440 rm="rm -f"
11441
11442 # Global variables:
11443 default_ofile=mklib
11444 can_build_shared=yes
11445
11446 # All known linkers require a `.a' archive for static linking (except M$VC,
11447 # which needs '.lib').
11448 libext=a
11449 ltmain="$ac_aux_dir/ltmain.sh"
11450 ofile="$default_ofile"
11451 with_gnu_ld="$lt_cv_prog_gnu_ld"
11452
11453 if test -n "$ac_tool_prefix"; then
11454   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11455 set dummy ${ac_tool_prefix}ar; ac_word=$2
11456 echo "$as_me:$LINENO: checking for $ac_word" >&5
11457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11458 if test "${ac_cv_prog_AR+set}" = set; then
11459   echo $ECHO_N "(cached) $ECHO_C" >&6
11460 else
11461   if test -n "$AR"; then
11462   ac_cv_prog_AR="$AR" # Let the user override the test.
11463 else
11464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465 for as_dir in $PATH
11466 do
11467   IFS=$as_save_IFS
11468   test -z "$as_dir" && as_dir=.
11469   for ac_exec_ext in '' $ac_executable_extensions; do
11470   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11471     ac_cv_prog_AR="${ac_tool_prefix}ar"
11472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11473     break 2
11474   fi
11475 done
11476 done
11477
11478 fi
11479 fi
11480 AR=$ac_cv_prog_AR
11481 if test -n "$AR"; then
11482   echo "$as_me:$LINENO: result: $AR" >&5
11483 echo "${ECHO_T}$AR" >&6
11484 else
11485   echo "$as_me:$LINENO: result: no" >&5
11486 echo "${ECHO_T}no" >&6
11487 fi
11488
11489 fi
11490 if test -z "$ac_cv_prog_AR"; then
11491   ac_ct_AR=$AR
11492   # Extract the first word of "ar", so it can be a program name with args.
11493 set dummy ar; ac_word=$2
11494 echo "$as_me:$LINENO: checking for $ac_word" >&5
11495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11496 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11497   echo $ECHO_N "(cached) $ECHO_C" >&6
11498 else
11499   if test -n "$ac_ct_AR"; then
11500   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11501 else
11502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11503 for as_dir in $PATH
11504 do
11505   IFS=$as_save_IFS
11506   test -z "$as_dir" && as_dir=.
11507   for ac_exec_ext in '' $ac_executable_extensions; do
11508   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11509     ac_cv_prog_ac_ct_AR="ar"
11510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11511     break 2
11512   fi
11513 done
11514 done
11515
11516   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11517 fi
11518 fi
11519 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11520 if test -n "$ac_ct_AR"; then
11521   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11522 echo "${ECHO_T}$ac_ct_AR" >&6
11523 else
11524   echo "$as_me:$LINENO: result: no" >&5
11525 echo "${ECHO_T}no" >&6
11526 fi
11527
11528   AR=$ac_ct_AR
11529 else
11530   AR="$ac_cv_prog_AR"
11531 fi
11532
11533 if test -n "$ac_tool_prefix"; then
11534   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11535 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11536 echo "$as_me:$LINENO: checking for $ac_word" >&5
11537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11538 if test "${ac_cv_prog_RANLIB+set}" = set; then
11539   echo $ECHO_N "(cached) $ECHO_C" >&6
11540 else
11541   if test -n "$RANLIB"; then
11542   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11543 else
11544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11545 for as_dir in $PATH
11546 do
11547   IFS=$as_save_IFS
11548   test -z "$as_dir" && as_dir=.
11549   for ac_exec_ext in '' $ac_executable_extensions; do
11550   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11551     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11553     break 2
11554   fi
11555 done
11556 done
11557
11558 fi
11559 fi
11560 RANLIB=$ac_cv_prog_RANLIB
11561 if test -n "$RANLIB"; then
11562   echo "$as_me:$LINENO: result: $RANLIB" >&5
11563 echo "${ECHO_T}$RANLIB" >&6
11564 else
11565   echo "$as_me:$LINENO: result: no" >&5
11566 echo "${ECHO_T}no" >&6
11567 fi
11568
11569 fi
11570 if test -z "$ac_cv_prog_RANLIB"; then
11571   ac_ct_RANLIB=$RANLIB
11572   # Extract the first word of "ranlib", so it can be a program name with args.
11573 set dummy ranlib; ac_word=$2
11574 echo "$as_me:$LINENO: checking for $ac_word" >&5
11575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11576 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11577   echo $ECHO_N "(cached) $ECHO_C" >&6
11578 else
11579   if test -n "$ac_ct_RANLIB"; then
11580   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11581 else
11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583 for as_dir in $PATH
11584 do
11585   IFS=$as_save_IFS
11586   test -z "$as_dir" && as_dir=.
11587   for ac_exec_ext in '' $ac_executable_extensions; do
11588   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11589     ac_cv_prog_ac_ct_RANLIB="ranlib"
11590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11591     break 2
11592   fi
11593 done
11594 done
11595
11596   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11597 fi
11598 fi
11599 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11600 if test -n "$ac_ct_RANLIB"; then
11601   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11602 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11603 else
11604   echo "$as_me:$LINENO: result: no" >&5
11605 echo "${ECHO_T}no" >&6
11606 fi
11607
11608   RANLIB=$ac_ct_RANLIB
11609 else
11610   RANLIB="$ac_cv_prog_RANLIB"
11611 fi
11612
11613 if test -n "$ac_tool_prefix"; then
11614   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11615 set dummy ${ac_tool_prefix}strip; ac_word=$2
11616 echo "$as_me:$LINENO: checking for $ac_word" >&5
11617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11618 if test "${ac_cv_prog_STRIP+set}" = set; then
11619   echo $ECHO_N "(cached) $ECHO_C" >&6
11620 else
11621   if test -n "$STRIP"; then
11622   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11623 else
11624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625 for as_dir in $PATH
11626 do
11627   IFS=$as_save_IFS
11628   test -z "$as_dir" && as_dir=.
11629   for ac_exec_ext in '' $ac_executable_extensions; do
11630   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11631     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11633     break 2
11634   fi
11635 done
11636 done
11637
11638 fi
11639 fi
11640 STRIP=$ac_cv_prog_STRIP
11641 if test -n "$STRIP"; then
11642   echo "$as_me:$LINENO: result: $STRIP" >&5
11643 echo "${ECHO_T}$STRIP" >&6
11644 else
11645   echo "$as_me:$LINENO: result: no" >&5
11646 echo "${ECHO_T}no" >&6
11647 fi
11648
11649 fi
11650 if test -z "$ac_cv_prog_STRIP"; then
11651   ac_ct_STRIP=$STRIP
11652   # Extract the first word of "strip", so it can be a program name with args.
11653 set dummy strip; ac_word=$2
11654 echo "$as_me:$LINENO: checking for $ac_word" >&5
11655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11656 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11657   echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659   if test -n "$ac_ct_STRIP"; then
11660   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11661 else
11662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663 for as_dir in $PATH
11664 do
11665   IFS=$as_save_IFS
11666   test -z "$as_dir" && as_dir=.
11667   for ac_exec_ext in '' $ac_executable_extensions; do
11668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11669     ac_cv_prog_ac_ct_STRIP="strip"
11670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11671     break 2
11672   fi
11673 done
11674 done
11675
11676   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11677 fi
11678 fi
11679 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11680 if test -n "$ac_ct_STRIP"; then
11681   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11682 echo "${ECHO_T}$ac_ct_STRIP" >&6
11683 else
11684   echo "$as_me:$LINENO: result: no" >&5
11685 echo "${ECHO_T}no" >&6
11686 fi
11687
11688   STRIP=$ac_ct_STRIP
11689 else
11690   STRIP="$ac_cv_prog_STRIP"
11691 fi
11692
11693
11694 old_CC="$CC"
11695 old_CFLAGS="$CFLAGS"
11696
11697 # Set sane defaults for various variables
11698 test -z "$AR" && AR=ar
11699 test -z "$AR_FLAGS" && AR_FLAGS=cru
11700 test -z "$AS" && AS=as
11701 test -z "$CC" && CC=cc
11702 test -z "$LTCC" && LTCC=$CC
11703 test -z "$DLLTOOL" && DLLTOOL=dlltool
11704 test -z "$LD" && LD=ld
11705 test -z "$LN_S" && LN_S="ln -s"
11706 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11707 test -z "$NM" && NM=nm
11708 test -z "$SED" && SED=sed
11709 test -z "$OBJDUMP" && OBJDUMP=objdump
11710 test -z "$RANLIB" && RANLIB=:
11711 test -z "$STRIP" && STRIP=:
11712 test -z "$ac_objext" && ac_objext=o
11713
11714 # Determine commands to create old-style static archives.
11715 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11716 old_postinstall_cmds='chmod 644 $oldlib'
11717 old_postuninstall_cmds=
11718
11719 if test -n "$RANLIB"; then
11720   case $host_os in
11721   openbsd*)
11722     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11723     ;;
11724   *)
11725     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11726     ;;
11727   esac
11728   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11729 fi
11730
11731 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11732
11733 # Only perform the check for file, if the check method requires it
11734 case $deplibs_check_method in
11735 file_magic*)
11736   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11737     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11738 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11739 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11740   echo $ECHO_N "(cached) $ECHO_C" >&6
11741 else
11742   case $MAGIC_CMD in
11743 [\\/*] |  ?:[\\/]*)
11744   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11745   ;;
11746 *)
11747   lt_save_MAGIC_CMD="$MAGIC_CMD"
11748   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11749   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11750   for ac_dir in $ac_dummy; do
11751     IFS="$lt_save_ifs"
11752     test -z "$ac_dir" && ac_dir=.
11753     if test -f $ac_dir/${ac_tool_prefix}file; then
11754       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11755       if test -n "$file_magic_test_file"; then
11756         case $deplibs_check_method in
11757         "file_magic "*)
11758           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11759           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11760           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11761             $EGREP "$file_magic_regex" > /dev/null; then
11762             :
11763           else
11764             cat <<EOF 1>&2
11765
11766 *** Warning: the command libtool uses to detect shared libraries,
11767 *** $file_magic_cmd, produces output that libtool cannot recognize.
11768 *** The result is that libtool may fail to recognize shared libraries
11769 *** as such.  This will affect the creation of libtool libraries that
11770 *** depend on shared libraries, but programs linked with such libtool
11771 *** libraries will work regardless of this problem.  Nevertheless, you
11772 *** may want to report the problem to your system manager and/or to
11773 *** bug-libtool@gnu.org
11774
11775 EOF
11776           fi ;;
11777         esac
11778       fi
11779       break
11780     fi
11781   done
11782   IFS="$lt_save_ifs"
11783   MAGIC_CMD="$lt_save_MAGIC_CMD"
11784   ;;
11785 esac
11786 fi
11787
11788 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11789 if test -n "$MAGIC_CMD"; then
11790   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11791 echo "${ECHO_T}$MAGIC_CMD" >&6
11792 else
11793   echo "$as_me:$LINENO: result: no" >&5
11794 echo "${ECHO_T}no" >&6
11795 fi
11796
11797 if test -z "$lt_cv_path_MAGIC_CMD"; then
11798   if test -n "$ac_tool_prefix"; then
11799     echo "$as_me:$LINENO: checking for file" >&5
11800 echo $ECHO_N "checking for file... $ECHO_C" >&6
11801 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11802   echo $ECHO_N "(cached) $ECHO_C" >&6
11803 else
11804   case $MAGIC_CMD in
11805 [\\/*] |  ?:[\\/]*)
11806   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11807   ;;
11808 *)
11809   lt_save_MAGIC_CMD="$MAGIC_CMD"
11810   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11811   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11812   for ac_dir in $ac_dummy; do
11813     IFS="$lt_save_ifs"
11814     test -z "$ac_dir" && ac_dir=.
11815     if test -f $ac_dir/file; then
11816       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11817       if test -n "$file_magic_test_file"; then
11818         case $deplibs_check_method in
11819         "file_magic "*)
11820           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11821           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11822           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11823             $EGREP "$file_magic_regex" > /dev/null; then
11824             :
11825           else
11826             cat <<EOF 1>&2
11827
11828 *** Warning: the command libtool uses to detect shared libraries,
11829 *** $file_magic_cmd, produces output that libtool cannot recognize.
11830 *** The result is that libtool may fail to recognize shared libraries
11831 *** as such.  This will affect the creation of libtool libraries that
11832 *** depend on shared libraries, but programs linked with such libtool
11833 *** libraries will work regardless of this problem.  Nevertheless, you
11834 *** may want to report the problem to your system manager and/or to
11835 *** bug-libtool@gnu.org
11836
11837 EOF
11838           fi ;;
11839         esac
11840       fi
11841       break
11842     fi
11843   done
11844   IFS="$lt_save_ifs"
11845   MAGIC_CMD="$lt_save_MAGIC_CMD"
11846   ;;
11847 esac
11848 fi
11849
11850 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11851 if test -n "$MAGIC_CMD"; then
11852   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11853 echo "${ECHO_T}$MAGIC_CMD" >&6
11854 else
11855   echo "$as_me:$LINENO: result: no" >&5
11856 echo "${ECHO_T}no" >&6
11857 fi
11858
11859   else
11860     MAGIC_CMD=:
11861   fi
11862 fi
11863
11864   fi
11865   ;;
11866 esac
11867
11868 enable_dlopen=yes
11869 enable_win32_dll=no
11870
11871 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11872 if test "${enable_libtool_lock+set}" = set; then
11873   enableval="$enable_libtool_lock"
11874
11875 fi;
11876 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11877
11878
11879 # Check whether --with-pic or --without-pic was given.
11880 if test "${with_pic+set}" = set; then
11881   withval="$with_pic"
11882   pic_mode="$withval"
11883 else
11884   pic_mode=default
11885 fi;
11886 test -z "$pic_mode" && pic_mode=default
11887
11888 # Use C for the default configuration in the libtool script
11889 tagname=
11890 lt_save_CC="$CC"
11891 ac_ext=c
11892 ac_cpp='$CPP $CPPFLAGS'
11893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11896
11897
11898 # Source file extension for C test sources.
11899 ac_ext=c
11900
11901 # Object file extension for compiled C test sources.
11902 objext=o
11903 objext=$objext
11904
11905 # Code to be used in simple compile tests
11906 lt_simple_compile_test_code="int some_variable = 0;\n"
11907
11908 # Code to be used in simple link tests
11909 lt_simple_link_test_code='int main(){return(0);}\n'
11910
11911
11912 # If no C compiler was specified, use CC.
11913 LTCC=${LTCC-"$CC"}
11914
11915 # Allow CC to be a program name with arguments.
11916 compiler=$CC
11917
11918
11919 #
11920 # Check for any special shared library compilation flags.
11921 #
11922 lt_prog_cc_shlib=
11923 if test "$GCC" = no; then
11924   case $host_os in
11925   sco3.2v5*)
11926     lt_prog_cc_shlib='-belf'
11927     ;;
11928   esac
11929 fi
11930 if test -n "$lt_prog_cc_shlib"; then
11931   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11932 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11933   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11934   else
11935     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11936 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11937     lt_cv_prog_cc_can_build_shared=no
11938   fi
11939 fi
11940
11941
11942 #
11943 # Check to make sure the static flag actually works.
11944 #
11945 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11946 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11947 if test "${lt_prog_compiler_static_works+set}" = set; then
11948   echo $ECHO_N "(cached) $ECHO_C" >&6
11949 else
11950   lt_prog_compiler_static_works=no
11951    save_LDFLAGS="$LDFLAGS"
11952    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11953    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11954    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11955      # The compiler can only warn and ignore the option if not recognized
11956      # So say no if there are warnings
11957      if test -s conftest.err; then
11958        # Append any errors to the config.log.
11959        cat conftest.err 1>&5
11960      else
11961        lt_prog_compiler_static_works=yes
11962      fi
11963    fi
11964    $rm conftest*
11965    LDFLAGS="$save_LDFLAGS"
11966
11967 fi
11968 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11969 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11970
11971 if test x"$lt_prog_compiler_static_works" = xyes; then
11972     :
11973 else
11974     lt_prog_compiler_static=
11975 fi
11976
11977
11978
11979
11980 lt_prog_compiler_no_builtin_flag=
11981
11982 if test "$GCC" = yes; then
11983   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11984
11985
11986 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11987 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11988 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11989   echo $ECHO_N "(cached) $ECHO_C" >&6
11990 else
11991   lt_cv_prog_compiler_rtti_exceptions=no
11992   ac_outfile=conftest.$ac_objext
11993    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11994    lt_compiler_flag="-fno-rtti -fno-exceptions"
11995    # Insert the option either (1) after the last *FLAGS variable, or
11996    # (2) before a word containing "conftest.", or (3) at the end.
11997    # Note that $ac_compile itself does not contain backslashes and begins
11998    # with a dollar sign (not a hyphen), so the echo should work correctly.
11999    # The option is referenced via a variable to avoid confusing sed.
12000    lt_compile=`echo "$ac_compile" | $SED \
12001    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12002    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12003    -e 's:$: $lt_compiler_flag:'`
12004    (eval echo "\"\$as_me:12004: $lt_compile\"" >&5)
12005    (eval "$lt_compile" 2>conftest.err)
12006    ac_status=$?
12007    cat conftest.err >&5
12008    echo "$as_me:12008: \$? = $ac_status" >&5
12009    if (exit $ac_status) && test -s "$ac_outfile"; then
12010      # The compiler can only warn and ignore the option if not recognized
12011      # So say no if there are warnings
12012      if test ! -s conftest.err; then
12013        lt_cv_prog_compiler_rtti_exceptions=yes
12014      fi
12015    fi
12016    $rm conftest*
12017
12018 fi
12019 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12020 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12021
12022 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12023     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12024 else
12025     :
12026 fi
12027
12028 fi
12029
12030 lt_prog_compiler_wl=
12031 lt_prog_compiler_pic=
12032 lt_prog_compiler_static=
12033
12034 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12035 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12036
12037   if test "$GCC" = yes; then
12038     lt_prog_compiler_wl='-Wl,'
12039     lt_prog_compiler_static='-static'
12040
12041     case $host_os in
12042       aix*)
12043       # All AIX code is PIC.
12044       if test "$host_cpu" = ia64; then
12045         # AIX 5 now supports IA64 processor
12046         lt_prog_compiler_static='-Bstatic'
12047       fi
12048       ;;
12049
12050     amigaos*)
12051       # FIXME: we need at least 68020 code to build shared libraries, but
12052       # adding the `-m68020' flag to GCC prevents building anything better,
12053       # like `-m68040'.
12054       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12055       ;;
12056
12057     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12058       # PIC is the default for these OSes.
12059       ;;
12060
12061     mingw* | pw32* | os2*)
12062       # This hack is so that the source file can tell whether it is being
12063       # built for inclusion in a dll (and should export symbols for example).
12064       lt_prog_compiler_pic='-DDLL_EXPORT'
12065       ;;
12066
12067     darwin* | rhapsody*)
12068       # PIC is the default on this platform
12069       # Common symbols not allowed in MH_DYLIB files
12070       lt_prog_compiler_pic='-fno-common'
12071       ;;
12072
12073     msdosdjgpp*)
12074       # Just because we use GCC doesn't mean we suddenly get shared libraries
12075       # on systems that don't support them.
12076       lt_prog_compiler_can_build_shared=no
12077       enable_shared=no
12078       ;;
12079
12080     sysv4*MP*)
12081       if test -d /usr/nec; then
12082         lt_prog_compiler_pic=-Kconform_pic
12083       fi
12084       ;;
12085
12086     hpux*)
12087       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12088       # not for PA HP-UX.
12089       case "$host_cpu" in
12090       hppa*64*|ia64*)
12091         # +Z the default
12092         ;;
12093       *)
12094         lt_prog_compiler_pic='-fPIC'
12095         ;;
12096       esac
12097       ;;
12098
12099     *)
12100       lt_prog_compiler_pic='-fPIC'
12101       ;;
12102     esac
12103   else
12104     # PORTME Check for flag to pass linker flags through the system compiler.
12105     case $host_os in
12106     aix*)
12107       lt_prog_compiler_wl='-Wl,'
12108       if test "$host_cpu" = ia64; then
12109         # AIX 5 now supports IA64 processor
12110         lt_prog_compiler_static='-Bstatic'
12111       else
12112         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12113       fi
12114       ;;
12115       darwin*)
12116         # PIC is the default on this platform
12117         # Common symbols not allowed in MH_DYLIB files
12118        case "$cc_basename" in
12119          xlc*)
12120          lt_prog_compiler_pic='-qnocommon'
12121          lt_prog_compiler_wl='-Wl,'
12122          ;;
12123        esac
12124        ;;
12125
12126     mingw* | pw32* | os2*)
12127       # This hack is so that the source file can tell whether it is being
12128       # built for inclusion in a dll (and should export symbols for example).
12129       lt_prog_compiler_pic='-DDLL_EXPORT'
12130       ;;
12131
12132     hpux9* | hpux10* | hpux11*)
12133       lt_prog_compiler_wl='-Wl,'
12134       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12135       # not for PA HP-UX.
12136       case "$host_cpu" in
12137       hppa*64*|ia64*)
12138         # +Z the default
12139         ;;
12140       *)
12141         lt_prog_compiler_pic='+Z'
12142         ;;
12143       esac
12144       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12145       lt_prog_compiler_static='${wl}-a ${wl}archive'
12146       ;;
12147
12148     irix5* | irix6* | nonstopux*)
12149       lt_prog_compiler_wl='-Wl,'
12150       # PIC (with -KPIC) is the default.
12151       lt_prog_compiler_static='-non_shared'
12152       ;;
12153
12154     newsos6)
12155       lt_prog_compiler_pic='-KPIC'
12156       lt_prog_compiler_static='-Bstatic'
12157       ;;
12158
12159     linux*)
12160       case $CC in
12161       icc* | ecc*)
12162         lt_prog_compiler_wl='-Wl,'
12163         lt_prog_compiler_pic='-KPIC'
12164         lt_prog_compiler_static='-static'
12165         ;;
12166       ccc*)
12167         lt_prog_compiler_wl='-Wl,'
12168         # All Alpha code is PIC.
12169         lt_prog_compiler_static='-non_shared'
12170         ;;
12171       esac
12172       ;;
12173
12174     osf3* | osf4* | osf5*)
12175       lt_prog_compiler_wl='-Wl,'
12176       # All OSF/1 code is PIC.
12177       lt_prog_compiler_static='-non_shared'
12178       ;;
12179
12180     sco3.2v5*)
12181       lt_prog_compiler_pic='-Kpic'
12182       lt_prog_compiler_static='-dn'
12183       ;;
12184
12185     solaris*)
12186       lt_prog_compiler_wl='-Wl,'
12187       lt_prog_compiler_pic='-KPIC'
12188       lt_prog_compiler_static='-Bstatic'
12189       ;;
12190
12191     sunos4*)
12192       lt_prog_compiler_wl='-Qoption ld '
12193       lt_prog_compiler_pic='-PIC'
12194       lt_prog_compiler_static='-Bstatic'
12195       ;;
12196
12197     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12198       lt_prog_compiler_wl='-Wl,'
12199       lt_prog_compiler_pic='-KPIC'
12200       lt_prog_compiler_static='-Bstatic'
12201       ;;
12202
12203     sysv4*MP*)
12204       if test -d /usr/nec ;then
12205         lt_prog_compiler_pic='-Kconform_pic'
12206         lt_prog_compiler_static='-Bstatic'
12207       fi
12208       ;;
12209
12210     uts4*)
12211       lt_prog_compiler_pic='-pic'
12212       lt_prog_compiler_static='-Bstatic'
12213       ;;
12214
12215     *)
12216       lt_prog_compiler_can_build_shared=no
12217       ;;
12218     esac
12219   fi
12220
12221 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12222 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12223
12224 #
12225 # Check to make sure the PIC flag actually works.
12226 #
12227 if test -n "$lt_prog_compiler_pic"; then
12228
12229 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12230 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12231 if test "${lt_prog_compiler_pic_works+set}" = set; then
12232   echo $ECHO_N "(cached) $ECHO_C" >&6
12233 else
12234   lt_prog_compiler_pic_works=no
12235   ac_outfile=conftest.$ac_objext
12236    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12237    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12238    # Insert the option either (1) after the last *FLAGS variable, or
12239    # (2) before a word containing "conftest.", or (3) at the end.
12240    # Note that $ac_compile itself does not contain backslashes and begins
12241    # with a dollar sign (not a hyphen), so the echo should work correctly.
12242    # The option is referenced via a variable to avoid confusing sed.
12243    lt_compile=`echo "$ac_compile" | $SED \
12244    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12245    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12246    -e 's:$: $lt_compiler_flag:'`
12247    (eval echo "\"\$as_me:12247: $lt_compile\"" >&5)
12248    (eval "$lt_compile" 2>conftest.err)
12249    ac_status=$?
12250    cat conftest.err >&5
12251    echo "$as_me:12251: \$? = $ac_status" >&5
12252    if (exit $ac_status) && test -s "$ac_outfile"; then
12253      # The compiler can only warn and ignore the option if not recognized
12254      # So say no if there are warnings
12255      if test ! -s conftest.err; then
12256        lt_prog_compiler_pic_works=yes
12257      fi
12258    fi
12259    $rm conftest*
12260
12261 fi
12262 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12263 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12264
12265 if test x"$lt_prog_compiler_pic_works" = xyes; then
12266     case $lt_prog_compiler_pic in
12267      "" | " "*) ;;
12268      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12269      esac
12270 else
12271     lt_prog_compiler_pic=
12272      lt_prog_compiler_can_build_shared=no
12273 fi
12274
12275 fi
12276 case "$host_os" in
12277   # For platforms which do not support PIC, -DPIC is meaningless:
12278   *djgpp*)
12279     lt_prog_compiler_pic=
12280     ;;
12281   *)
12282     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12283     ;;
12284 esac
12285
12286 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12287 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12288 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12289   echo $ECHO_N "(cached) $ECHO_C" >&6
12290 else
12291   lt_cv_prog_compiler_c_o=no
12292    $rm -r conftest 2>/dev/null
12293    mkdir conftest
12294    cd conftest
12295    mkdir out
12296    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12297
12298    lt_compiler_flag="-o out/conftest2.$ac_objext"
12299    # Insert the option either (1) after the last *FLAGS variable, or
12300    # (2) before a word containing "conftest.", or (3) at the end.
12301    # Note that $ac_compile itself does not contain backslashes and begins
12302    # with a dollar sign (not a hyphen), so the echo should work correctly.
12303    lt_compile=`echo "$ac_compile" | $SED \
12304    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12305    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12306    -e 's:$: $lt_compiler_flag:'`
12307    (eval echo "\"\$as_me:12307: $lt_compile\"" >&5)
12308    (eval "$lt_compile" 2>out/conftest.err)
12309    ac_status=$?
12310    cat out/conftest.err >&5
12311    echo "$as_me:12311: \$? = $ac_status" >&5
12312    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12313    then
12314      # The compiler can only warn and ignore the option if not recognized
12315      # So say no if there are warnings
12316      if test ! -s out/conftest.err; then
12317        lt_cv_prog_compiler_c_o=yes
12318      fi
12319    fi
12320    chmod u+w .
12321    $rm conftest*
12322    # SGI C++ compiler will create directory out/ii_files/ for
12323    # template instantiation
12324    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12325    $rm out/* && rmdir out
12326    cd ..
12327    rmdir conftest
12328    $rm conftest*
12329
12330 fi
12331 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12332 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12333
12334
12335 hard_links="nottested"
12336 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12337   # do not overwrite the value of need_locks provided by the user
12338   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12339 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12340   hard_links=yes
12341   $rm conftest*
12342   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12343   touch conftest.a
12344   ln conftest.a conftest.b 2>&5 || hard_links=no
12345   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12346   echo "$as_me:$LINENO: result: $hard_links" >&5
12347 echo "${ECHO_T}$hard_links" >&6
12348   if test "$hard_links" = no; then
12349     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12350 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12351     need_locks=warn
12352   fi
12353 else
12354   need_locks=no
12355 fi
12356
12357 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12358 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12359
12360   runpath_var=
12361   allow_undefined_flag=
12362   enable_shared_with_static_runtimes=no
12363   archive_cmds=
12364   archive_expsym_cmds=
12365   old_archive_From_new_cmds=
12366   old_archive_from_expsyms_cmds=
12367   export_dynamic_flag_spec=
12368   whole_archive_flag_spec=
12369   thread_safe_flag_spec=
12370   hardcode_libdir_flag_spec=
12371   hardcode_libdir_flag_spec_ld=
12372   hardcode_libdir_separator=
12373   hardcode_direct=no
12374   hardcode_minus_L=no
12375   hardcode_shlibpath_var=unsupported
12376   link_all_deplibs=unknown
12377   hardcode_automatic=no
12378   module_cmds=
12379   module_expsym_cmds=
12380   always_export_symbols=no
12381   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12382   # include_expsyms should be a list of space-separated symbols to be *always*
12383   # included in the symbol list
12384   include_expsyms=
12385   # exclude_expsyms can be an extended regexp of symbols to exclude
12386   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12387   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12388   # as well as any symbol that contains `d'.
12389   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12390   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12391   # platforms (ab)use it in PIC code, but their linkers get confused if
12392   # the symbol is explicitly referenced.  Since portable code cannot
12393   # rely on this symbol name, it's probably fine to never include it in
12394   # preloaded symbol tables.
12395   extract_expsyms_cmds=
12396
12397   case $host_os in
12398   cygwin* | mingw* | pw32*)
12399     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12400     # When not using gcc, we currently assume that we are using
12401     # Microsoft Visual C++.
12402     if test "$GCC" != yes; then
12403       with_gnu_ld=no
12404     fi
12405     ;;
12406   openbsd*)
12407     with_gnu_ld=no
12408     ;;
12409   esac
12410
12411   ld_shlibs=yes
12412   if test "$with_gnu_ld" = yes; then
12413     # If archive_cmds runs LD, not CC, wlarc should be empty
12414     wlarc='${wl}'
12415
12416     # See if GNU ld supports shared libraries.
12417     case $host_os in
12418     aix3* | aix4* | aix5*)
12419       # On AIX/PPC, the GNU linker is very broken
12420       if test "$host_cpu" != ia64; then
12421         ld_shlibs=no
12422         cat <<EOF 1>&2
12423
12424 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12425 *** to be unable to reliably create shared libraries on AIX.
12426 *** Therefore, libtool is disabling shared libraries support.  If you
12427 *** really care for shared libraries, you may want to modify your PATH
12428 *** so that a non-GNU linker is found, and then restart.
12429
12430 EOF
12431       fi
12432       ;;
12433
12434     amigaos*)
12435       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)'
12436       hardcode_libdir_flag_spec='-L$libdir'
12437       hardcode_minus_L=yes
12438
12439       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12440       # that the semantics of dynamic libraries on AmigaOS, at least up
12441       # to version 4, is to share data among multiple programs linked
12442       # with the same dynamic library.  Since this doesn't match the
12443       # behavior of shared libraries on other platforms, we can't use
12444       # them.
12445       ld_shlibs=no
12446       ;;
12447
12448     beos*)
12449       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12450         allow_undefined_flag=unsupported
12451         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12452         # support --undefined.  This deserves some investigation.  FIXME
12453         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12454       else
12455         ld_shlibs=no
12456       fi
12457       ;;
12458
12459     cygwin* | mingw* | pw32*)
12460       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12461       # as there is no search path for DLLs.
12462       hardcode_libdir_flag_spec='-L$libdir'
12463       allow_undefined_flag=unsupported
12464       always_export_symbols=no
12465       enable_shared_with_static_runtimes=yes
12466       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12467
12468       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12469         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12470         # If the export-symbols file already is a .def file (1st line
12471         # is EXPORTS), use it as is; otherwise, prepend...
12472         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12473           cp $export_symbols $output_objdir/$soname.def;
12474         else
12475           echo EXPORTS > $output_objdir/$soname.def;
12476           cat $export_symbols >> $output_objdir/$soname.def;
12477         fi~
12478         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12479       else
12480         ld_shlibs=no
12481       fi
12482       ;;
12483
12484     netbsd*)
12485       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12486         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12487         wlarc=
12488       else
12489         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12490         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12491       fi
12492       ;;
12493
12494     solaris* | sysv5*)
12495       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12496         ld_shlibs=no
12497         cat <<EOF 1>&2
12498
12499 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12500 *** create shared libraries on Solaris systems.  Therefore, libtool
12501 *** is disabling shared libraries support.  We urge you to upgrade GNU
12502 *** binutils to release 2.9.1 or newer.  Another option is to modify
12503 *** your PATH or compiler configuration so that the native linker is
12504 *** used, and then restart.
12505
12506 EOF
12507       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12508         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12509         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12510       else
12511         ld_shlibs=no
12512       fi
12513       ;;
12514
12515     sunos4*)
12516       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12517       wlarc=
12518       hardcode_direct=yes
12519       hardcode_shlibpath_var=no
12520       ;;
12521
12522   linux*)
12523     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12524         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12525         archive_cmds="$tmp_archive_cmds"
12526       supports_anon_versioning=no
12527       case `$LD -v 2>/dev/null` in
12528         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12529         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12530         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12531         *\ 2.11.*) ;; # other 2.11 versions
12532         *) supports_anon_versioning=yes ;;
12533       esac
12534       if test $supports_anon_versioning = yes; then
12535         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12536 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12537 $echo "local: *; };" >> $output_objdir/$libname.ver~
12538         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12539       else
12540         archive_expsym_cmds="$tmp_archive_cmds"
12541       fi
12542     else
12543       ld_shlibs=no
12544     fi
12545     ;;
12546
12547     *)
12548       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12549         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12550         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12551       else
12552         ld_shlibs=no
12553       fi
12554       ;;
12555     esac
12556
12557     if test "$ld_shlibs" = yes; then
12558       runpath_var=LD_RUN_PATH
12559       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12560       export_dynamic_flag_spec='${wl}--export-dynamic'
12561       # ancient GNU ld didn't support --whole-archive et. al.
12562       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12563         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12564       else
12565         whole_archive_flag_spec=
12566       fi
12567     fi
12568   else
12569     # PORTME fill in a description of your system's linker (not GNU ld)
12570     case $host_os in
12571     aix3*)
12572       allow_undefined_flag=unsupported
12573       always_export_symbols=yes
12574       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'
12575       # Note: this linker hardcodes the directories in LIBPATH if there
12576       # are no directories specified by -L.
12577       hardcode_minus_L=yes
12578       if test "$GCC" = yes && test -z "$link_static_flag"; then
12579         # Neither direct hardcoding nor static linking is supported with a
12580         # broken collect2.
12581         hardcode_direct=unsupported
12582       fi
12583       ;;
12584
12585     aix4* | aix5*)
12586       if test "$host_cpu" = ia64; then
12587         # On IA64, the linker does run time linking by default, so we don't
12588         # have to do anything special.
12589         aix_use_runtimelinking=no
12590         exp_sym_flag='-Bexport'
12591         no_entry_flag=""
12592       else
12593         # If we're using GNU nm, then we don't want the "-C" option.
12594         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12595         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12596           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'
12597         else
12598           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'
12599         fi
12600         aix_use_runtimelinking=no
12601
12602         # Test if we are trying to use run time linking or normal
12603         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12604         # need to do runtime linking.
12605         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12606           for ld_flag in $LDFLAGS; do
12607           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12608             aix_use_runtimelinking=yes
12609             break
12610           fi
12611           done
12612         esac
12613
12614         exp_sym_flag='-bexport'
12615         no_entry_flag='-bnoentry'
12616       fi
12617
12618       # When large executables or shared objects are built, AIX ld can
12619       # have problems creating the table of contents.  If linking a library
12620       # or program results in "error TOC overflow" add -mminimal-toc to
12621       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12622       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12623
12624       archive_cmds=''
12625       hardcode_direct=yes
12626       hardcode_libdir_separator=':'
12627       link_all_deplibs=yes
12628
12629       if test "$GCC" = yes; then
12630         case $host_os in aix4.012|aix4.012.*)
12631         # We only want to do this on AIX 4.2 and lower, the check
12632         # below for broken collect2 doesn't work under 4.3+
12633           collect2name=`${CC} -print-prog-name=collect2`
12634           if test -f "$collect2name" && \
12635            strings "$collect2name" | grep resolve_lib_name >/dev/null
12636           then
12637           # We have reworked collect2
12638           hardcode_direct=yes
12639           else
12640           # We have old collect2
12641           hardcode_direct=unsupported
12642           # It fails to find uninstalled libraries when the uninstalled
12643           # path is not listed in the libpath.  Setting hardcode_minus_L
12644           # to unsupported forces relinking
12645           hardcode_minus_L=yes
12646           hardcode_libdir_flag_spec='-L$libdir'
12647           hardcode_libdir_separator=
12648           fi
12649         esac
12650         shared_flag='-shared'
12651       else
12652         # not using gcc
12653         if test "$host_cpu" = ia64; then
12654         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12655         # chokes on -Wl,-G. The following line is correct:
12656           shared_flag='-G'
12657         else
12658         if test "$aix_use_runtimelinking" = yes; then
12659             shared_flag='${wl}-G'
12660           else
12661             shared_flag='${wl}-bM:SRE'
12662         fi
12663         fi
12664       fi
12665
12666       # It seems that -bexpall does not export symbols beginning with
12667       # underscore (_), so it is better to generate a list of symbols to export.
12668       always_export_symbols=yes
12669       if test "$aix_use_runtimelinking" = yes; then
12670         # Warning - without using the other runtime loading flags (-brtl),
12671         # -berok will link without error, but may produce a broken library.
12672         allow_undefined_flag='-berok'
12673        # Determine the default libpath from the value encoded in an empty executable.
12674        cat >conftest.$ac_ext <<_ACEOF
12675 /* confdefs.h.  */
12676 _ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h.  */
12680
12681 int
12682 main ()
12683 {
12684
12685   ;
12686   return 0;
12687 }
12688 _ACEOF
12689 rm -f conftest.$ac_objext conftest$ac_exeext
12690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12691   (eval $ac_link) 2>conftest.er1
12692   ac_status=$?
12693   grep -v '^ *+' conftest.er1 >conftest.err
12694   rm -f conftest.er1
12695   cat conftest.err >&5
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); } &&
12698          { ac_try='test -z "$ac_c_werror_flag"
12699                          || test ! -s conftest.err'
12700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701   (eval $ac_try) 2>&5
12702   ac_status=$?
12703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704   (exit $ac_status); }; } &&
12705          { ac_try='test -s conftest$ac_exeext'
12706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707   (eval $ac_try) 2>&5
12708   ac_status=$?
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); }; }; then
12711
12712 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12713 }'`
12714 # Check for a 64-bit object if we didn't find anything.
12715 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; }
12716 }'`; fi
12717 else
12718   echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12720
12721 fi
12722 rm -f conftest.err conftest.$ac_objext \
12723       conftest$ac_exeext conftest.$ac_ext
12724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12725
12726        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12727         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"
12728        else
12729         if test "$host_cpu" = ia64; then
12730           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12731           allow_undefined_flag="-z nodefs"
12732           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"
12733         else
12734          # Determine the default libpath from the value encoded in an empty executable.
12735          cat >conftest.$ac_ext <<_ACEOF
12736 /* confdefs.h.  */
12737 _ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h.  */
12741
12742 int
12743 main ()
12744 {
12745
12746   ;
12747   return 0;
12748 }
12749 _ACEOF
12750 rm -f conftest.$ac_objext conftest$ac_exeext
12751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12752   (eval $ac_link) 2>conftest.er1
12753   ac_status=$?
12754   grep -v '^ *+' conftest.er1 >conftest.err
12755   rm -f conftest.er1
12756   cat conftest.err >&5
12757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); } &&
12759          { ac_try='test -z "$ac_c_werror_flag"
12760                          || test ! -s conftest.err'
12761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762   (eval $ac_try) 2>&5
12763   ac_status=$?
12764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765   (exit $ac_status); }; } &&
12766          { ac_try='test -s conftest$ac_exeext'
12767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768   (eval $ac_try) 2>&5
12769   ac_status=$?
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); }; }; then
12772
12773 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12774 }'`
12775 # Check for a 64-bit object if we didn't find anything.
12776 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; }
12777 }'`; fi
12778 else
12779   echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.$ac_ext >&5
12781
12782 fi
12783 rm -f conftest.err conftest.$ac_objext \
12784       conftest$ac_exeext conftest.$ac_ext
12785 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12786
12787          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12788           # Warning - without using the other run time loading flags,
12789           # -berok will link without error, but may produce a broken library.
12790           no_undefined_flag=' ${wl}-bernotok'
12791           allow_undefined_flag=' ${wl}-berok'
12792           # -bexpall does not export symbols beginning with underscore (_)
12793           always_export_symbols=yes
12794           # Exported symbols can be pulled into shared objects from archives
12795           whole_archive_flag_spec=' '
12796           archive_cmds_need_lc=yes
12797           # This is similar to how AIX traditionally builds it's shared libraries.
12798           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'
12799         fi
12800       fi
12801       ;;
12802
12803     amigaos*)
12804       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)'
12805       hardcode_libdir_flag_spec='-L$libdir'
12806       hardcode_minus_L=yes
12807       # see comment about different semantics on the GNU ld section
12808       ld_shlibs=no
12809       ;;
12810
12811     bsdi[45]*)
12812       export_dynamic_flag_spec=-rdynamic
12813       ;;
12814
12815     cygwin* | mingw* | pw32*)
12816       # When not using gcc, we currently assume that we are using
12817       # Microsoft Visual C++.
12818       # hardcode_libdir_flag_spec is actually meaningless, as there is
12819       # no search path for DLLs.
12820       hardcode_libdir_flag_spec=' '
12821       allow_undefined_flag=unsupported
12822       # Tell ltmain to make .lib files, not .a files.
12823       libext=lib
12824       # Tell ltmain to make .dll files, not .so files.
12825       shrext_cmds=".dll"
12826       # FIXME: Setting linknames here is a bad hack.
12827       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12828       # The linker will automatically build a .lib file if we build a DLL.
12829       old_archive_From_new_cmds='true'
12830       # FIXME: Should let the user specify the lib program.
12831       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12832       fix_srcfile_path='`cygpath -w "$srcfile"`'
12833       enable_shared_with_static_runtimes=yes
12834       ;;
12835
12836     darwin* | rhapsody*)
12837       case "$host_os" in
12838         rhapsody* | darwin1.[012])
12839          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12840          ;;
12841        *) # Darwin 1.3 on
12842          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12843            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12844          else
12845            case ${MACOSX_DEPLOYMENT_TARGET} in
12846              10.[012])
12847                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12848                ;;
12849              10.*)
12850                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12851                ;;
12852            esac
12853          fi
12854          ;;
12855       esac
12856       archive_cmds_need_lc=no
12857       hardcode_direct=no
12858       hardcode_automatic=yes
12859       hardcode_shlibpath_var=unsupported
12860       whole_archive_flag_spec=''
12861       link_all_deplibs=yes
12862     if test "$GCC" = yes ; then
12863         output_verbose_link_cmd='echo'
12864         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12865       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12866       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12867       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}'
12868       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}'
12869     else
12870       case "$cc_basename" in
12871         xlc*)
12872          output_verbose_link_cmd='echo'
12873          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12874          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12875           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12876          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}'
12877           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}'
12878           ;;
12879        *)
12880          ld_shlibs=no
12881           ;;
12882       esac
12883     fi
12884       ;;
12885
12886     dgux*)
12887       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12888       hardcode_libdir_flag_spec='-L$libdir'
12889       hardcode_shlibpath_var=no
12890       ;;
12891
12892     freebsd1*)
12893       ld_shlibs=no
12894       ;;
12895
12896     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12897     # support.  Future versions do this automatically, but an explicit c++rt0.o
12898     # does not break anything, and helps significantly (at the cost of a little
12899     # extra space).
12900     freebsd2.2*)
12901       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12902       hardcode_libdir_flag_spec='-R$libdir'
12903       hardcode_direct=yes
12904       hardcode_shlibpath_var=no
12905       ;;
12906
12907     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12908     freebsd2*)
12909       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12910       hardcode_direct=yes
12911       hardcode_minus_L=yes
12912       hardcode_shlibpath_var=no
12913       ;;
12914
12915     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12916     freebsd* | kfreebsd*-gnu)
12917       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12918       hardcode_libdir_flag_spec='-R$libdir'
12919       hardcode_direct=yes
12920       hardcode_shlibpath_var=no
12921       ;;
12922
12923     hpux9*)
12924       if test "$GCC" = yes; then
12925         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'
12926       else
12927         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'
12928       fi
12929       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12930       hardcode_libdir_separator=:
12931       hardcode_direct=yes
12932
12933       # hardcode_minus_L: Not really in the search PATH,
12934       # but as the default location of the library.
12935       hardcode_minus_L=yes
12936       export_dynamic_flag_spec='${wl}-E'
12937       ;;
12938
12939     hpux10* | hpux11*)
12940       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12941         case "$host_cpu" in
12942         hppa*64*|ia64*)
12943           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12944           ;;
12945         *)
12946           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12947           ;;
12948         esac
12949       else
12950         case "$host_cpu" in
12951         hppa*64*|ia64*)
12952           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12953           ;;
12954         *)
12955           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12956           ;;
12957         esac
12958       fi
12959       if test "$with_gnu_ld" = no; then
12960         case "$host_cpu" in
12961         hppa*64*)
12962           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12963           hardcode_libdir_flag_spec_ld='+b $libdir'
12964           hardcode_libdir_separator=:
12965           hardcode_direct=no
12966           hardcode_shlibpath_var=no
12967           ;;
12968         ia64*)
12969           hardcode_libdir_flag_spec='-L$libdir'
12970           hardcode_direct=no
12971           hardcode_shlibpath_var=no
12972
12973           # hardcode_minus_L: Not really in the search PATH,
12974           # but as the default location of the library.
12975           hardcode_minus_L=yes
12976           ;;
12977         *)
12978           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12979           hardcode_libdir_separator=:
12980           hardcode_direct=yes
12981           export_dynamic_flag_spec='${wl}-E'
12982
12983           # hardcode_minus_L: Not really in the search PATH,
12984           # but as the default location of the library.
12985           hardcode_minus_L=yes
12986           ;;
12987         esac
12988       fi
12989       ;;
12990
12991     irix5* | irix6* | nonstopux*)
12992       if test "$GCC" = yes; then
12993         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'
12994       else
12995         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'
12996         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12997       fi
12998       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12999       hardcode_libdir_separator=:
13000       link_all_deplibs=yes
13001       ;;
13002
13003     netbsd*)
13004       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13005         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13006       else
13007         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13008       fi
13009       hardcode_libdir_flag_spec='-R$libdir'
13010       hardcode_direct=yes
13011       hardcode_shlibpath_var=no
13012       ;;
13013
13014     newsos6)
13015       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13016       hardcode_direct=yes
13017       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13018       hardcode_libdir_separator=:
13019       hardcode_shlibpath_var=no
13020       ;;
13021
13022     openbsd*)
13023       hardcode_direct=yes
13024       hardcode_shlibpath_var=no
13025       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13026         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13027         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13028         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13029         export_dynamic_flag_spec='${wl}-E'
13030       else
13031        case $host_os in
13032          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13033            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13034            hardcode_libdir_flag_spec='-R$libdir'
13035            ;;
13036          *)
13037            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13038            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13039            ;;
13040        esac
13041       fi
13042       ;;
13043
13044     os2*)
13045       hardcode_libdir_flag_spec='-L$libdir'
13046       hardcode_minus_L=yes
13047       allow_undefined_flag=unsupported
13048       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'
13049       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13050       ;;
13051
13052     osf3*)
13053       if test "$GCC" = yes; then
13054         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13055         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'
13056       else
13057         allow_undefined_flag=' -expect_unresolved \*'
13058         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'
13059       fi
13060       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13061       hardcode_libdir_separator=:
13062       ;;
13063
13064     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13065       if test "$GCC" = yes; then
13066         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13067         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'
13068         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13069       else
13070         allow_undefined_flag=' -expect_unresolved \*'
13071         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'
13072         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13073         $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'
13074
13075         # Both c and cxx compiler support -rpath directly
13076         hardcode_libdir_flag_spec='-rpath $libdir'
13077       fi
13078       hardcode_libdir_separator=:
13079       ;;
13080
13081     sco3.2v5*)
13082       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13083       hardcode_shlibpath_var=no
13084       export_dynamic_flag_spec='${wl}-Bexport'
13085       runpath_var=LD_RUN_PATH
13086       hardcode_runpath_var=yes
13087       ;;
13088
13089     solaris*)
13090       no_undefined_flag=' -z text'
13091       if test "$GCC" = yes; then
13092         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13093         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13094           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13095       else
13096         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13097         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13098         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13099       fi
13100       hardcode_libdir_flag_spec='-R$libdir'
13101       hardcode_shlibpath_var=no
13102       case $host_os in
13103       solaris2.[0-5] | solaris2.[0-5].*) ;;
13104       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13105         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13106       esac
13107       link_all_deplibs=yes
13108       ;;
13109
13110     sunos4*)
13111       if test "x$host_vendor" = xsequent; then
13112         # Use $CC to link under sequent, because it throws in some extra .o
13113         # files that make .init and .fini sections work.
13114         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13115       else
13116         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13117       fi
13118       hardcode_libdir_flag_spec='-L$libdir'
13119       hardcode_direct=yes
13120       hardcode_minus_L=yes
13121       hardcode_shlibpath_var=no
13122       ;;
13123
13124     sysv4)
13125       case $host_vendor in
13126         sni)
13127           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13128           hardcode_direct=yes # is this really true???
13129         ;;
13130         siemens)
13131           ## LD is ld it makes a PLAMLIB
13132           ## CC just makes a GrossModule.
13133           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13134           reload_cmds='$CC -r -o $output$reload_objs'
13135           hardcode_direct=no
13136         ;;
13137         motorola)
13138           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13139           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13140         ;;
13141       esac
13142       runpath_var='LD_RUN_PATH'
13143       hardcode_shlibpath_var=no
13144       ;;
13145
13146     sysv4.3*)
13147       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13148       hardcode_shlibpath_var=no
13149       export_dynamic_flag_spec='-Bexport'
13150       ;;
13151
13152     sysv4*MP*)
13153       if test -d /usr/nec; then
13154         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13155         hardcode_shlibpath_var=no
13156         runpath_var=LD_RUN_PATH
13157         hardcode_runpath_var=yes
13158         ld_shlibs=yes
13159       fi
13160       ;;
13161
13162     sysv4.2uw2*)
13163       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13164       hardcode_direct=yes
13165       hardcode_minus_L=no
13166       hardcode_shlibpath_var=no
13167       hardcode_runpath_var=yes
13168       runpath_var=LD_RUN_PATH
13169       ;;
13170
13171    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13172       no_undefined_flag='${wl}-z ${wl}text'
13173       if test "$GCC" = yes; then
13174         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13175       else
13176         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13177       fi
13178       runpath_var='LD_RUN_PATH'
13179       hardcode_shlibpath_var=no
13180       ;;
13181
13182     sysv5*)
13183       no_undefined_flag=' -z text'
13184       # $CC -shared without GNU ld will not create a library from C++
13185       # object files and a static libstdc++, better avoid it by now
13186       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13187       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13188                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13189       hardcode_libdir_flag_spec=
13190       hardcode_shlibpath_var=no
13191       runpath_var='LD_RUN_PATH'
13192       ;;
13193
13194     uts4*)
13195       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13196       hardcode_libdir_flag_spec='-L$libdir'
13197       hardcode_shlibpath_var=no
13198       ;;
13199
13200     *)
13201       ld_shlibs=no
13202       ;;
13203     esac
13204   fi
13205
13206 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13207 echo "${ECHO_T}$ld_shlibs" >&6
13208 test "$ld_shlibs" = no && can_build_shared=no
13209
13210 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13211 if test "$GCC" = yes; then
13212   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13213 fi
13214
13215 #
13216 # Do we need to explicitly link libc?
13217 #
13218 case "x$archive_cmds_need_lc" in
13219 x|xyes)
13220   # Assume -lc should be added
13221   archive_cmds_need_lc=yes
13222
13223   if test "$enable_shared" = yes && test "$GCC" = yes; then
13224     case $archive_cmds in
13225     *'~'*)
13226       # FIXME: we may have to deal with multi-command sequences.
13227       ;;
13228     '$CC '*)
13229       # Test whether the compiler implicitly links with -lc since on some
13230       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13231       # to ld, don't add -lc before -lgcc.
13232       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13233 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13234       $rm conftest*
13235       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13236
13237       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238   (eval $ac_compile) 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); } 2>conftest.err; then
13242         soname=conftest
13243         lib=conftest
13244         libobjs=conftest.$ac_objext
13245         deplibs=
13246         wl=$lt_prog_compiler_wl
13247         compiler_flags=-v
13248         linker_flags=-v
13249         verstring=
13250         output_objdir=.
13251         libname=conftest
13252         lt_save_allow_undefined_flag=$allow_undefined_flag
13253         allow_undefined_flag=
13254         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13255   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13256   ac_status=$?
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); }
13259         then
13260           archive_cmds_need_lc=no
13261         else
13262           archive_cmds_need_lc=yes
13263         fi
13264         allow_undefined_flag=$lt_save_allow_undefined_flag
13265       else
13266         cat conftest.err 1>&5
13267       fi
13268       $rm conftest*
13269       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13270 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13271       ;;
13272     esac
13273   fi
13274   ;;
13275 esac
13276
13277 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13278 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13279 library_names_spec=
13280 libname_spec='lib$name'
13281 soname_spec=
13282 shrext_cmds=".so"
13283 postinstall_cmds=
13284 postuninstall_cmds=
13285 finish_cmds=
13286 finish_eval=
13287 shlibpath_var=
13288 shlibpath_overrides_runpath=unknown
13289 version_type=none
13290 dynamic_linker="$host_os ld.so"
13291 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13292 if test "$GCC" = yes; then
13293   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13294   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13295     # if the path contains ";" then we assume it to be the separator
13296     # otherwise default to the standard path separator (i.e. ":") - it is
13297     # assumed that no part of a normal pathname contains ";" but that should
13298     # okay in the real world where ";" in dirpaths is itself problematic.
13299     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13300   else
13301     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13302   fi
13303 else
13304   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13305 fi
13306 need_lib_prefix=unknown
13307 hardcode_into_libs=no
13308
13309 # when you set need_version to no, make sure it does not cause -set_version
13310 # flags to be left without arguments
13311 need_version=unknown
13312
13313 case $host_os in
13314 aix3*)
13315   version_type=linux
13316   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13317   shlibpath_var=LIBPATH
13318
13319   # AIX 3 has no versioning support, so we append a major version to the name.
13320   soname_spec='${libname}${release}${shared_ext}$major'
13321   ;;
13322
13323 aix4* | aix5*)
13324   version_type=linux
13325   need_lib_prefix=no
13326   need_version=no
13327   hardcode_into_libs=yes
13328   if test "$host_cpu" = ia64; then
13329     # AIX 5 supports IA64
13330     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13331     shlibpath_var=LD_LIBRARY_PATH
13332   else
13333     # With GCC up to 2.95.x, collect2 would create an import file
13334     # for dependence libraries.  The import file would start with
13335     # the line `#! .'.  This would cause the generated library to
13336     # depend on `.', always an invalid library.  This was fixed in
13337     # development snapshots of GCC prior to 3.0.
13338     case $host_os in
13339       aix4 | aix4.[01] | aix4.[01].*)
13340       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13341            echo ' yes '
13342            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13343         :
13344       else
13345         can_build_shared=no
13346       fi
13347       ;;
13348     esac
13349     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13350     # soname into executable. Probably we can add versioning support to
13351     # collect2, so additional links can be useful in future.
13352     if test "$aix_use_runtimelinking" = yes; then
13353       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13354       # instead of lib<name>.a to let people know that these are not
13355       # typical AIX shared libraries.
13356       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13357     else
13358       # We preserve .a as extension for shared libraries through AIX4.2
13359       # and later when we are not doing run time linking.
13360       library_names_spec='${libname}${release}.a $libname.a'
13361       soname_spec='${libname}${release}${shared_ext}$major'
13362     fi
13363     shlibpath_var=LIBPATH
13364   fi
13365   ;;
13366
13367 amigaos*)
13368   library_names_spec='$libname.ixlibrary $libname.a'
13369   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13370   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'
13371   ;;
13372
13373 beos*)
13374   library_names_spec='${libname}${shared_ext}'
13375   dynamic_linker="$host_os ld.so"
13376   shlibpath_var=LIBRARY_PATH
13377   ;;
13378
13379 bsdi[45]*)
13380   version_type=linux
13381   need_version=no
13382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13383   soname_spec='${libname}${release}${shared_ext}$major'
13384   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13385   shlibpath_var=LD_LIBRARY_PATH
13386   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13387   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13388   # the default ld.so.conf also contains /usr/contrib/lib and
13389   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13390   # libtool to hard-code these into programs
13391   ;;
13392
13393 cygwin* | mingw* | pw32*)
13394   version_type=windows
13395   shrext_cmds=".dll"
13396   need_version=no
13397   need_lib_prefix=no
13398
13399   case $GCC,$host_os in
13400   yes,cygwin* | yes,mingw* | yes,pw32*)
13401     library_names_spec='$libname.dll.a'
13402     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13403     postinstall_cmds='base_file=`basename \${file}`~
13404       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13405       dldir=$destdir/`dirname \$dlpath`~
13406       test -d \$dldir || mkdir -p \$dldir~
13407       $install_prog $dir/$dlname \$dldir/$dlname'
13408     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13409       dlpath=$dir/\$dldll~
13410        $rm \$dlpath'
13411     shlibpath_overrides_runpath=yes
13412
13413     case $host_os in
13414     cygwin*)
13415       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13416       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13417       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13418       ;;
13419     mingw*)
13420       # MinGW DLLs use traditional 'lib' prefix
13421       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13422       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13423       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13424         # It is most probably a Windows format PATH printed by
13425         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13426         # path with ; separators, and with drive letters. We can handle the
13427         # drive letters (cygwin fileutils understands them), so leave them,
13428         # especially as we might pass files found there to a mingw objdump,
13429         # which wouldn't understand a cygwinified path. Ahh.
13430         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13431       else
13432         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13433       fi
13434       ;;
13435     pw32*)
13436       # pw32 DLLs use 'pw' prefix rather than 'lib'
13437       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13438       ;;
13439     esac
13440     ;;
13441
13442   *)
13443     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13444     ;;
13445   esac
13446   dynamic_linker='Win32 ld.exe'
13447   # FIXME: first we should search . and the directory the executable is in
13448   shlibpath_var=PATH
13449   ;;
13450
13451 darwin* | rhapsody*)
13452   dynamic_linker="$host_os dyld"
13453   version_type=darwin
13454   need_lib_prefix=no
13455   need_version=no
13456   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13457   soname_spec='${libname}${release}${major}$shared_ext'
13458   shlibpath_overrides_runpath=yes
13459   shlibpath_var=DYLD_LIBRARY_PATH
13460   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13461   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13462   if test "$GCC" = yes; then
13463     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"`
13464   else
13465     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13466   fi
13467   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13468   ;;
13469
13470 dgux*)
13471   version_type=linux
13472   need_lib_prefix=no
13473   need_version=no
13474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13475   soname_spec='${libname}${release}${shared_ext}$major'
13476   shlibpath_var=LD_LIBRARY_PATH
13477   ;;
13478
13479 freebsd1*)
13480   dynamic_linker=no
13481   ;;
13482
13483 kfreebsd*-gnu)
13484   version_type=linux
13485   need_lib_prefix=no
13486   need_version=no
13487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13488   soname_spec='${libname}${release}${shared_ext}$major'
13489   shlibpath_var=LD_LIBRARY_PATH
13490   shlibpath_overrides_runpath=no
13491   hardcode_into_libs=yes
13492   dynamic_linker='GNU ld.so'
13493   ;;
13494
13495 freebsd*)
13496   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13497   version_type=freebsd-$objformat
13498   case $version_type in
13499     freebsd-elf*)
13500       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13501       need_version=no
13502       need_lib_prefix=no
13503       ;;
13504     freebsd-*)
13505       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13506       need_version=yes
13507       ;;
13508   esac
13509   shlibpath_var=LD_LIBRARY_PATH
13510   case $host_os in
13511   freebsd2*)
13512     shlibpath_overrides_runpath=yes
13513     ;;
13514   freebsd3.01* | freebsdelf3.01*)
13515     shlibpath_overrides_runpath=yes
13516     hardcode_into_libs=yes
13517     ;;
13518   *) # from 3.2 on
13519     shlibpath_overrides_runpath=no
13520     hardcode_into_libs=yes
13521     ;;
13522   esac
13523   ;;
13524
13525 gnu*)
13526   version_type=linux
13527   need_lib_prefix=no
13528   need_version=no
13529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13530   soname_spec='${libname}${release}${shared_ext}$major'
13531   shlibpath_var=LD_LIBRARY_PATH
13532   hardcode_into_libs=yes
13533   ;;
13534
13535 hpux9* | hpux10* | hpux11*)
13536   # Give a soname corresponding to the major version so that dld.sl refuses to
13537   # link against other versions.
13538   version_type=sunos
13539   need_lib_prefix=no
13540   need_version=no
13541   case "$host_cpu" in
13542   ia64*)
13543     shrext_cmds='.so'
13544     hardcode_into_libs=yes
13545     dynamic_linker="$host_os dld.so"
13546     shlibpath_var=LD_LIBRARY_PATH
13547     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13548     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13549     soname_spec='${libname}${release}${shared_ext}$major'
13550     if test "X$HPUX_IA64_MODE" = X32; then
13551       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13552     else
13553       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13554     fi
13555     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13556     ;;
13557    hppa*64*)
13558      shrext_cmds='.sl'
13559      hardcode_into_libs=yes
13560      dynamic_linker="$host_os dld.sl"
13561      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13562      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13563      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13564      soname_spec='${libname}${release}${shared_ext}$major'
13565      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13566      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13567      ;;
13568    *)
13569     shrext_cmds='.sl'
13570     dynamic_linker="$host_os dld.sl"
13571     shlibpath_var=SHLIB_PATH
13572     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13573     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13574     soname_spec='${libname}${release}${shared_ext}$major'
13575     ;;
13576   esac
13577   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13578   postinstall_cmds='chmod 555 $lib'
13579   ;;
13580
13581 irix5* | irix6* | nonstopux*)
13582   case $host_os in
13583     nonstopux*) version_type=nonstopux ;;
13584     *)
13585         if test "$lt_cv_prog_gnu_ld" = yes; then
13586                 version_type=linux
13587         else
13588                 version_type=irix
13589         fi ;;
13590   esac
13591   need_lib_prefix=no
13592   need_version=no
13593   soname_spec='${libname}${release}${shared_ext}$major'
13594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13595   case $host_os in
13596   irix5* | nonstopux*)
13597     libsuff= shlibsuff=
13598     ;;
13599   *)
13600     case $LD in # libtool.m4 will add one of these switches to LD
13601     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13602       libsuff= shlibsuff= libmagic=32-bit;;
13603     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13604       libsuff=32 shlibsuff=N32 libmagic=N32;;
13605     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13606       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13607     *) libsuff= shlibsuff= libmagic=never-match;;
13608     esac
13609     ;;
13610   esac
13611   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13612   shlibpath_overrides_runpath=no
13613   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13614   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13615   hardcode_into_libs=yes
13616   ;;
13617
13618 # No shared lib support for Linux oldld, aout, or coff.
13619 linux*oldld* | linux*aout* | linux*coff*)
13620   dynamic_linker=no
13621   ;;
13622
13623 # This must be Linux ELF.
13624 linux*)
13625   version_type=linux
13626   need_lib_prefix=no
13627   need_version=no
13628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13629   soname_spec='${libname}${release}${shared_ext}$major'
13630   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13631   shlibpath_var=LD_LIBRARY_PATH
13632   shlibpath_overrides_runpath=no
13633   # This implies no fast_install, which is unacceptable.
13634   # Some rework will be needed to allow for fast_install
13635   # before this can be enabled.
13636   hardcode_into_libs=yes
13637
13638   # Append ld.so.conf contents to the search path
13639   if test -f /etc/ld.so.conf; then
13640     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13641     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13642   fi
13643
13644   # We used to test for /lib/ld.so.1 and disable shared libraries on
13645   # powerpc, because MkLinux only supported shared libraries with the
13646   # GNU dynamic linker.  Since this was broken with cross compilers,
13647   # most powerpc-linux boxes support dynamic linking these days and
13648   # people can always --disable-shared, the test was removed, and we
13649   # assume the GNU/Linux dynamic linker is in use.
13650   dynamic_linker='GNU/Linux ld.so'
13651   ;;
13652
13653 knetbsd*-gnu)
13654   version_type=linux
13655   need_lib_prefix=no
13656   need_version=no
13657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13658   soname_spec='${libname}${release}${shared_ext}$major'
13659   shlibpath_var=LD_LIBRARY_PATH
13660   shlibpath_overrides_runpath=no
13661   hardcode_into_libs=yes
13662   dynamic_linker='GNU ld.so'
13663   ;;
13664
13665 netbsd*)
13666   version_type=sunos
13667   need_lib_prefix=no
13668   need_version=no
13669   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13670     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13671     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13672     dynamic_linker='NetBSD (a.out) ld.so'
13673   else
13674     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13675     soname_spec='${libname}${release}${shared_ext}$major'
13676     dynamic_linker='NetBSD ld.elf_so'
13677   fi
13678   shlibpath_var=LD_LIBRARY_PATH
13679   shlibpath_overrides_runpath=yes
13680   hardcode_into_libs=yes
13681   ;;
13682
13683 newsos6)
13684   version_type=linux
13685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13686   shlibpath_var=LD_LIBRARY_PATH
13687   shlibpath_overrides_runpath=yes
13688   ;;
13689
13690 nto-qnx*)
13691   version_type=linux
13692   need_lib_prefix=no
13693   need_version=no
13694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13695   soname_spec='${libname}${release}${shared_ext}$major'
13696   shlibpath_var=LD_LIBRARY_PATH
13697   shlibpath_overrides_runpath=yes
13698   ;;
13699
13700 openbsd*)
13701   version_type=sunos
13702   need_lib_prefix=no
13703   need_version=no
13704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13705   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13706   shlibpath_var=LD_LIBRARY_PATH
13707   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13708     case $host_os in
13709       openbsd2.[89] | openbsd2.[89].*)
13710         shlibpath_overrides_runpath=no
13711         ;;
13712       *)
13713         shlibpath_overrides_runpath=yes
13714         ;;
13715       esac
13716   else
13717     shlibpath_overrides_runpath=yes
13718   fi
13719   ;;
13720
13721 os2*)
13722   libname_spec='$name'
13723   shrext_cmds=".dll"
13724   need_lib_prefix=no
13725   library_names_spec='$libname${shared_ext} $libname.a'
13726   dynamic_linker='OS/2 ld.exe'
13727   shlibpath_var=LIBPATH
13728   ;;
13729
13730 osf3* | osf4* | osf5*)
13731   version_type=osf
13732   need_lib_prefix=no
13733   need_version=no
13734   soname_spec='${libname}${release}${shared_ext}$major'
13735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13736   shlibpath_var=LD_LIBRARY_PATH
13737   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13738   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13739   ;;
13740
13741 sco3.2v5*)
13742   version_type=osf
13743   soname_spec='${libname}${release}${shared_ext}$major'
13744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13745   shlibpath_var=LD_LIBRARY_PATH
13746   ;;
13747
13748 solaris*)
13749   version_type=linux
13750   need_lib_prefix=no
13751   need_version=no
13752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13753   soname_spec='${libname}${release}${shared_ext}$major'
13754   shlibpath_var=LD_LIBRARY_PATH
13755   shlibpath_overrides_runpath=yes
13756   hardcode_into_libs=yes
13757   # ldd complains unless libraries are executable
13758   postinstall_cmds='chmod +x $lib'
13759   ;;
13760
13761 sunos4*)
13762   version_type=sunos
13763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13764   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13765   shlibpath_var=LD_LIBRARY_PATH
13766   shlibpath_overrides_runpath=yes
13767   if test "$with_gnu_ld" = yes; then
13768     need_lib_prefix=no
13769   fi
13770   need_version=yes
13771   ;;
13772
13773 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13774   version_type=linux
13775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13776   soname_spec='${libname}${release}${shared_ext}$major'
13777   shlibpath_var=LD_LIBRARY_PATH
13778   case $host_vendor in
13779     sni)
13780       shlibpath_overrides_runpath=no
13781       need_lib_prefix=no
13782       export_dynamic_flag_spec='${wl}-Blargedynsym'
13783       runpath_var=LD_RUN_PATH
13784       ;;
13785     siemens)
13786       need_lib_prefix=no
13787       ;;
13788     motorola)
13789       need_lib_prefix=no
13790       need_version=no
13791       shlibpath_overrides_runpath=no
13792       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13793       ;;
13794   esac
13795   ;;
13796
13797 sysv4*MP*)
13798   if test -d /usr/nec ;then
13799     version_type=linux
13800     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13801     soname_spec='$libname${shared_ext}.$major'
13802     shlibpath_var=LD_LIBRARY_PATH
13803   fi
13804   ;;
13805
13806 uts4*)
13807   version_type=linux
13808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13809   soname_spec='${libname}${release}${shared_ext}$major'
13810   shlibpath_var=LD_LIBRARY_PATH
13811   ;;
13812
13813 *)
13814   dynamic_linker=no
13815   ;;
13816 esac
13817 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13818 echo "${ECHO_T}$dynamic_linker" >&6
13819 test "$dynamic_linker" = no && can_build_shared=no
13820
13821 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13822 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13823 hardcode_action=
13824 if test -n "$hardcode_libdir_flag_spec" || \
13825    test -n "$runpath_var" || \
13826    test "X$hardcode_automatic" = "Xyes" ; then
13827
13828   # We can hardcode non-existant directories.
13829   if test "$hardcode_direct" != no &&
13830      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13831      # have to relink, otherwise we might link with an installed library
13832      # when we should be linking with a yet-to-be-installed one
13833      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13834      test "$hardcode_minus_L" != no; then
13835     # Linking always hardcodes the temporary library directory.
13836     hardcode_action=relink
13837   else
13838     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13839     hardcode_action=immediate
13840   fi
13841 else
13842   # We cannot hardcode anything, or else we can only hardcode existing
13843   # directories.
13844   hardcode_action=unsupported
13845 fi
13846 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13847 echo "${ECHO_T}$hardcode_action" >&6
13848
13849 if test "$hardcode_action" = relink; then
13850   # Fast installation is not supported
13851   enable_fast_install=no
13852 elif test "$shlibpath_overrides_runpath" = yes ||
13853      test "$enable_shared" = no; then
13854   # Fast installation is not necessary
13855   enable_fast_install=needless
13856 fi
13857
13858 striplib=
13859 old_striplib=
13860 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13861 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13862 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13863   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13864   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13865   echo "$as_me:$LINENO: result: yes" >&5
13866 echo "${ECHO_T}yes" >&6
13867 else
13868 # FIXME - insert some real tests, host_os isn't really good enough
13869   case $host_os in
13870    darwin*)
13871        if test -n "$STRIP" ; then
13872          striplib="$STRIP -x"
13873          echo "$as_me:$LINENO: result: yes" >&5
13874 echo "${ECHO_T}yes" >&6
13875        else
13876   echo "$as_me:$LINENO: result: no" >&5
13877 echo "${ECHO_T}no" >&6
13878 fi
13879        ;;
13880    *)
13881   echo "$as_me:$LINENO: result: no" >&5
13882 echo "${ECHO_T}no" >&6
13883     ;;
13884   esac
13885 fi
13886
13887 if test "x$enable_dlopen" != xyes; then
13888   enable_dlopen=unknown
13889   enable_dlopen_self=unknown
13890   enable_dlopen_self_static=unknown
13891 else
13892   lt_cv_dlopen=no
13893   lt_cv_dlopen_libs=
13894
13895   case $host_os in
13896   beos*)
13897     lt_cv_dlopen="load_add_on"
13898     lt_cv_dlopen_libs=
13899     lt_cv_dlopen_self=yes
13900     ;;
13901
13902   mingw* | pw32*)
13903     lt_cv_dlopen="LoadLibrary"
13904     lt_cv_dlopen_libs=
13905    ;;
13906
13907   cygwin*)
13908     lt_cv_dlopen="dlopen"
13909     lt_cv_dlopen_libs=
13910    ;;
13911
13912   darwin*)
13913   # if libdl is installed we need to link against it
13914     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13915 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13916 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13917   echo $ECHO_N "(cached) $ECHO_C" >&6
13918 else
13919   ac_check_lib_save_LIBS=$LIBS
13920 LIBS="-ldl  $LIBS"
13921 cat >conftest.$ac_ext <<_ACEOF
13922 /* confdefs.h.  */
13923 _ACEOF
13924 cat confdefs.h >>conftest.$ac_ext
13925 cat >>conftest.$ac_ext <<_ACEOF
13926 /* end confdefs.h.  */
13927
13928 /* Override any gcc2 internal prototype to avoid an error.  */
13929 #ifdef __cplusplus
13930 extern "C"
13931 #endif
13932 /* We use char because int might match the return type of a gcc2
13933    builtin and then its argument prototype would still apply.  */
13934 char dlopen ();
13935 int
13936 main ()
13937 {
13938 dlopen ();
13939   ;
13940   return 0;
13941 }
13942 _ACEOF
13943 rm -f conftest.$ac_objext conftest$ac_exeext
13944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13945   (eval $ac_link) 2>conftest.er1
13946   ac_status=$?
13947   grep -v '^ *+' conftest.er1 >conftest.err
13948   rm -f conftest.er1
13949   cat conftest.err >&5
13950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   (exit $ac_status); } &&
13952          { ac_try='test -z "$ac_c_werror_flag"
13953                          || test ! -s conftest.err'
13954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955   (eval $ac_try) 2>&5
13956   ac_status=$?
13957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958   (exit $ac_status); }; } &&
13959          { ac_try='test -s conftest$ac_exeext'
13960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961   (eval $ac_try) 2>&5
13962   ac_status=$?
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); }; }; then
13965   ac_cv_lib_dl_dlopen=yes
13966 else
13967   echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13969
13970 ac_cv_lib_dl_dlopen=no
13971 fi
13972 rm -f conftest.err conftest.$ac_objext \
13973       conftest$ac_exeext conftest.$ac_ext
13974 LIBS=$ac_check_lib_save_LIBS
13975 fi
13976 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13977 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13978 if test $ac_cv_lib_dl_dlopen = yes; then
13979   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13980 else
13981
13982     lt_cv_dlopen="dyld"
13983     lt_cv_dlopen_libs=
13984     lt_cv_dlopen_self=yes
13985
13986 fi
13987
13988    ;;
13989
13990   *)
13991     echo "$as_me:$LINENO: checking for shl_load" >&5
13992 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13993 if test "${ac_cv_func_shl_load+set}" = set; then
13994   echo $ECHO_N "(cached) $ECHO_C" >&6
13995 else
13996   cat >conftest.$ac_ext <<_ACEOF
13997 /* confdefs.h.  */
13998 _ACEOF
13999 cat confdefs.h >>conftest.$ac_ext
14000 cat >>conftest.$ac_ext <<_ACEOF
14001 /* end confdefs.h.  */
14002 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14004 #define shl_load innocuous_shl_load
14005
14006 /* System header to define __stub macros and hopefully few prototypes,
14007     which can conflict with char shl_load (); below.
14008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14009     <limits.h> exists even on freestanding compilers.  */
14010
14011 #ifdef __STDC__
14012 # include <limits.h>
14013 #else
14014 # include <assert.h>
14015 #endif
14016
14017 #undef shl_load
14018
14019 /* Override any gcc2 internal prototype to avoid an error.  */
14020 #ifdef __cplusplus
14021 extern "C"
14022 {
14023 #endif
14024 /* We use char because int might match the return type of a gcc2
14025    builtin and then its argument prototype would still apply.  */
14026 char shl_load ();
14027 /* The GNU C library defines this for functions which it implements
14028     to always fail with ENOSYS.  Some functions are actually named
14029     something starting with __ and the normal name is an alias.  */
14030 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14031 choke me
14032 #else
14033 char (*f) () = shl_load;
14034 #endif
14035 #ifdef __cplusplus
14036 }
14037 #endif
14038
14039 int
14040 main ()
14041 {
14042 return f != shl_load;
14043   ;
14044   return 0;
14045 }
14046 _ACEOF
14047 rm -f conftest.$ac_objext conftest$ac_exeext
14048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14049   (eval $ac_link) 2>conftest.er1
14050   ac_status=$?
14051   grep -v '^ *+' conftest.er1 >conftest.err
14052   rm -f conftest.er1
14053   cat conftest.err >&5
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); } &&
14056          { ac_try='test -z "$ac_c_werror_flag"
14057                          || test ! -s conftest.err'
14058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059   (eval $ac_try) 2>&5
14060   ac_status=$?
14061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062   (exit $ac_status); }; } &&
14063          { ac_try='test -s conftest$ac_exeext'
14064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14065   (eval $ac_try) 2>&5
14066   ac_status=$?
14067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   (exit $ac_status); }; }; then
14069   ac_cv_func_shl_load=yes
14070 else
14071   echo "$as_me: failed program was:" >&5
14072 sed 's/^/| /' conftest.$ac_ext >&5
14073
14074 ac_cv_func_shl_load=no
14075 fi
14076 rm -f conftest.err conftest.$ac_objext \
14077       conftest$ac_exeext conftest.$ac_ext
14078 fi
14079 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14080 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14081 if test $ac_cv_func_shl_load = yes; then
14082   lt_cv_dlopen="shl_load"
14083 else
14084   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14085 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14086 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14087   echo $ECHO_N "(cached) $ECHO_C" >&6
14088 else
14089   ac_check_lib_save_LIBS=$LIBS
14090 LIBS="-ldld  $LIBS"
14091 cat >conftest.$ac_ext <<_ACEOF
14092 /* confdefs.h.  */
14093 _ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h.  */
14097
14098 /* Override any gcc2 internal prototype to avoid an error.  */
14099 #ifdef __cplusplus
14100 extern "C"
14101 #endif
14102 /* We use char because int might match the return type of a gcc2
14103    builtin and then its argument prototype would still apply.  */
14104 char shl_load ();
14105 int
14106 main ()
14107 {
14108 shl_load ();
14109   ;
14110   return 0;
14111 }
14112 _ACEOF
14113 rm -f conftest.$ac_objext conftest$ac_exeext
14114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14115   (eval $ac_link) 2>conftest.er1
14116   ac_status=$?
14117   grep -v '^ *+' conftest.er1 >conftest.err
14118   rm -f conftest.er1
14119   cat conftest.err >&5
14120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121   (exit $ac_status); } &&
14122          { ac_try='test -z "$ac_c_werror_flag"
14123                          || test ! -s conftest.err'
14124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125   (eval $ac_try) 2>&5
14126   ac_status=$?
14127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128   (exit $ac_status); }; } &&
14129          { ac_try='test -s conftest$ac_exeext'
14130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131   (eval $ac_try) 2>&5
14132   ac_status=$?
14133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134   (exit $ac_status); }; }; then
14135   ac_cv_lib_dld_shl_load=yes
14136 else
14137   echo "$as_me: failed program was:" >&5
14138 sed 's/^/| /' conftest.$ac_ext >&5
14139
14140 ac_cv_lib_dld_shl_load=no
14141 fi
14142 rm -f conftest.err conftest.$ac_objext \
14143       conftest$ac_exeext conftest.$ac_ext
14144 LIBS=$ac_check_lib_save_LIBS
14145 fi
14146 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14147 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14148 if test $ac_cv_lib_dld_shl_load = yes; then
14149   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14150 else
14151   echo "$as_me:$LINENO: checking for dlopen" >&5
14152 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14153 if test "${ac_cv_func_dlopen+set}" = set; then
14154   echo $ECHO_N "(cached) $ECHO_C" >&6
14155 else
14156   cat >conftest.$ac_ext <<_ACEOF
14157 /* confdefs.h.  */
14158 _ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h.  */
14162 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14164 #define dlopen innocuous_dlopen
14165
14166 /* System header to define __stub macros and hopefully few prototypes,
14167     which can conflict with char dlopen (); below.
14168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14169     <limits.h> exists even on freestanding compilers.  */
14170
14171 #ifdef __STDC__
14172 # include <limits.h>
14173 #else
14174 # include <assert.h>
14175 #endif
14176
14177 #undef dlopen
14178
14179 /* Override any gcc2 internal prototype to avoid an error.  */
14180 #ifdef __cplusplus
14181 extern "C"
14182 {
14183 #endif
14184 /* We use char because int might match the return type of a gcc2
14185    builtin and then its argument prototype would still apply.  */
14186 char dlopen ();
14187 /* The GNU C library defines this for functions which it implements
14188     to always fail with ENOSYS.  Some functions are actually named
14189     something starting with __ and the normal name is an alias.  */
14190 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14191 choke me
14192 #else
14193 char (*f) () = dlopen;
14194 #endif
14195 #ifdef __cplusplus
14196 }
14197 #endif
14198
14199 int
14200 main ()
14201 {
14202 return f != dlopen;
14203   ;
14204   return 0;
14205 }
14206 _ACEOF
14207 rm -f conftest.$ac_objext conftest$ac_exeext
14208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14209   (eval $ac_link) 2>conftest.er1
14210   ac_status=$?
14211   grep -v '^ *+' conftest.er1 >conftest.err
14212   rm -f conftest.er1
14213   cat conftest.err >&5
14214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215   (exit $ac_status); } &&
14216          { ac_try='test -z "$ac_c_werror_flag"
14217                          || test ! -s conftest.err'
14218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219   (eval $ac_try) 2>&5
14220   ac_status=$?
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); }; } &&
14223          { ac_try='test -s conftest$ac_exeext'
14224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225   (eval $ac_try) 2>&5
14226   ac_status=$?
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); }; }; then
14229   ac_cv_func_dlopen=yes
14230 else
14231   echo "$as_me: failed program was:" >&5
14232 sed 's/^/| /' conftest.$ac_ext >&5
14233
14234 ac_cv_func_dlopen=no
14235 fi
14236 rm -f conftest.err conftest.$ac_objext \
14237       conftest$ac_exeext conftest.$ac_ext
14238 fi
14239 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14240 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14241 if test $ac_cv_func_dlopen = yes; then
14242   lt_cv_dlopen="dlopen"
14243 else
14244   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14245 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14246 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14247   echo $ECHO_N "(cached) $ECHO_C" >&6
14248 else
14249   ac_check_lib_save_LIBS=$LIBS
14250 LIBS="-ldl  $LIBS"
14251 cat >conftest.$ac_ext <<_ACEOF
14252 /* confdefs.h.  */
14253 _ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h.  */
14257
14258 /* Override any gcc2 internal prototype to avoid an error.  */
14259 #ifdef __cplusplus
14260 extern "C"
14261 #endif
14262 /* We use char because int might match the return type of a gcc2
14263    builtin and then its argument prototype would still apply.  */
14264 char dlopen ();
14265 int
14266 main ()
14267 {
14268 dlopen ();
14269   ;
14270   return 0;
14271 }
14272 _ACEOF
14273 rm -f conftest.$ac_objext conftest$ac_exeext
14274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14275   (eval $ac_link) 2>conftest.er1
14276   ac_status=$?
14277   grep -v '^ *+' conftest.er1 >conftest.err
14278   rm -f conftest.er1
14279   cat conftest.err >&5
14280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281   (exit $ac_status); } &&
14282          { ac_try='test -z "$ac_c_werror_flag"
14283                          || test ! -s conftest.err'
14284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285   (eval $ac_try) 2>&5
14286   ac_status=$?
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); }; } &&
14289          { ac_try='test -s conftest$ac_exeext'
14290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291   (eval $ac_try) 2>&5
14292   ac_status=$?
14293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); }; }; then
14295   ac_cv_lib_dl_dlopen=yes
14296 else
14297   echo "$as_me: failed program was:" >&5
14298 sed 's/^/| /' conftest.$ac_ext >&5
14299
14300 ac_cv_lib_dl_dlopen=no
14301 fi
14302 rm -f conftest.err conftest.$ac_objext \
14303       conftest$ac_exeext conftest.$ac_ext
14304 LIBS=$ac_check_lib_save_LIBS
14305 fi
14306 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14307 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14308 if test $ac_cv_lib_dl_dlopen = yes; then
14309   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14310 else
14311   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14312 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14313 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14314   echo $ECHO_N "(cached) $ECHO_C" >&6
14315 else
14316   ac_check_lib_save_LIBS=$LIBS
14317 LIBS="-lsvld  $LIBS"
14318 cat >conftest.$ac_ext <<_ACEOF
14319 /* confdefs.h.  */
14320 _ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h.  */
14324
14325 /* Override any gcc2 internal prototype to avoid an error.  */
14326 #ifdef __cplusplus
14327 extern "C"
14328 #endif
14329 /* We use char because int might match the return type of a gcc2
14330    builtin and then its argument prototype would still apply.  */
14331 char dlopen ();
14332 int
14333 main ()
14334 {
14335 dlopen ();
14336   ;
14337   return 0;
14338 }
14339 _ACEOF
14340 rm -f conftest.$ac_objext conftest$ac_exeext
14341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14342   (eval $ac_link) 2>conftest.er1
14343   ac_status=$?
14344   grep -v '^ *+' conftest.er1 >conftest.err
14345   rm -f conftest.er1
14346   cat conftest.err >&5
14347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348   (exit $ac_status); } &&
14349          { ac_try='test -z "$ac_c_werror_flag"
14350                          || test ! -s conftest.err'
14351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352   (eval $ac_try) 2>&5
14353   ac_status=$?
14354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355   (exit $ac_status); }; } &&
14356          { ac_try='test -s conftest$ac_exeext'
14357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358   (eval $ac_try) 2>&5
14359   ac_status=$?
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); }; }; then
14362   ac_cv_lib_svld_dlopen=yes
14363 else
14364   echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14366
14367 ac_cv_lib_svld_dlopen=no
14368 fi
14369 rm -f conftest.err conftest.$ac_objext \
14370       conftest$ac_exeext conftest.$ac_ext
14371 LIBS=$ac_check_lib_save_LIBS
14372 fi
14373 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14374 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14375 if test $ac_cv_lib_svld_dlopen = yes; then
14376   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14377 else
14378   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14379 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14380 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14381   echo $ECHO_N "(cached) $ECHO_C" >&6
14382 else
14383   ac_check_lib_save_LIBS=$LIBS
14384 LIBS="-ldld  $LIBS"
14385 cat >conftest.$ac_ext <<_ACEOF
14386 /* confdefs.h.  */
14387 _ACEOF
14388 cat confdefs.h >>conftest.$ac_ext
14389 cat >>conftest.$ac_ext <<_ACEOF
14390 /* end confdefs.h.  */
14391
14392 /* Override any gcc2 internal prototype to avoid an error.  */
14393 #ifdef __cplusplus
14394 extern "C"
14395 #endif
14396 /* We use char because int might match the return type of a gcc2
14397    builtin and then its argument prototype would still apply.  */
14398 char dld_link ();
14399 int
14400 main ()
14401 {
14402 dld_link ();
14403   ;
14404   return 0;
14405 }
14406 _ACEOF
14407 rm -f conftest.$ac_objext conftest$ac_exeext
14408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14409   (eval $ac_link) 2>conftest.er1
14410   ac_status=$?
14411   grep -v '^ *+' conftest.er1 >conftest.err
14412   rm -f conftest.er1
14413   cat conftest.err >&5
14414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415   (exit $ac_status); } &&
14416          { ac_try='test -z "$ac_c_werror_flag"
14417                          || test ! -s conftest.err'
14418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419   (eval $ac_try) 2>&5
14420   ac_status=$?
14421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422   (exit $ac_status); }; } &&
14423          { ac_try='test -s conftest$ac_exeext'
14424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425   (eval $ac_try) 2>&5
14426   ac_status=$?
14427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428   (exit $ac_status); }; }; then
14429   ac_cv_lib_dld_dld_link=yes
14430 else
14431   echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14433
14434 ac_cv_lib_dld_dld_link=no
14435 fi
14436 rm -f conftest.err conftest.$ac_objext \
14437       conftest$ac_exeext conftest.$ac_ext
14438 LIBS=$ac_check_lib_save_LIBS
14439 fi
14440 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14441 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14442 if test $ac_cv_lib_dld_dld_link = yes; then
14443   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14444 fi
14445
14446
14447 fi
14448
14449
14450 fi
14451
14452
14453 fi
14454
14455
14456 fi
14457
14458
14459 fi
14460
14461     ;;
14462   esac
14463
14464   if test "x$lt_cv_dlopen" != xno; then
14465     enable_dlopen=yes
14466   else
14467     enable_dlopen=no
14468   fi
14469
14470   case $lt_cv_dlopen in
14471   dlopen)
14472     save_CPPFLAGS="$CPPFLAGS"
14473     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14474
14475     save_LDFLAGS="$LDFLAGS"
14476     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14477
14478     save_LIBS="$LIBS"
14479     LIBS="$lt_cv_dlopen_libs $LIBS"
14480
14481     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14482 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14483 if test "${lt_cv_dlopen_self+set}" = set; then
14484   echo $ECHO_N "(cached) $ECHO_C" >&6
14485 else
14486           if test "$cross_compiling" = yes; then :
14487   lt_cv_dlopen_self=cross
14488 else
14489   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14490   lt_status=$lt_dlunknown
14491   cat > conftest.$ac_ext <<EOF
14492 #line 14492 "configure"
14493 #include "confdefs.h"
14494
14495 #if HAVE_DLFCN_H
14496 #include <dlfcn.h>
14497 #endif
14498
14499 #include <stdio.h>
14500
14501 #ifdef RTLD_GLOBAL
14502 #  define LT_DLGLOBAL           RTLD_GLOBAL
14503 #else
14504 #  ifdef DL_GLOBAL
14505 #    define LT_DLGLOBAL         DL_GLOBAL
14506 #  else
14507 #    define LT_DLGLOBAL         0
14508 #  endif
14509 #endif
14510
14511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14512    find out it does not work in some platform. */
14513 #ifndef LT_DLLAZY_OR_NOW
14514 #  ifdef RTLD_LAZY
14515 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14516 #  else
14517 #    ifdef DL_LAZY
14518 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14519 #    else
14520 #      ifdef RTLD_NOW
14521 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14522 #      else
14523 #        ifdef DL_NOW
14524 #          define LT_DLLAZY_OR_NOW      DL_NOW
14525 #        else
14526 #          define LT_DLLAZY_OR_NOW      0
14527 #        endif
14528 #      endif
14529 #    endif
14530 #  endif
14531 #endif
14532
14533 #ifdef __cplusplus
14534 extern "C" void exit (int);
14535 #endif
14536
14537 void fnord() { int i=42;}
14538 int main ()
14539 {
14540   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14541   int status = $lt_dlunknown;
14542
14543   if (self)
14544     {
14545       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14546       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14547       /* dlclose (self); */
14548     }
14549
14550     exit (status);
14551 }
14552 EOF
14553   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14554   (eval $ac_link) 2>&5
14555   ac_status=$?
14556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14558     (./conftest; exit; ) 2>/dev/null
14559     lt_status=$?
14560     case x$lt_status in
14561       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14562       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14563       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14564     esac
14565   else :
14566     # compilation failed
14567     lt_cv_dlopen_self=no
14568   fi
14569 fi
14570 rm -fr conftest*
14571
14572
14573 fi
14574 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14575 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14576
14577     if test "x$lt_cv_dlopen_self" = xyes; then
14578       LDFLAGS="$LDFLAGS $link_static_flag"
14579       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14580 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14581 if test "${lt_cv_dlopen_self_static+set}" = set; then
14582   echo $ECHO_N "(cached) $ECHO_C" >&6
14583 else
14584           if test "$cross_compiling" = yes; then :
14585   lt_cv_dlopen_self_static=cross
14586 else
14587   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14588   lt_status=$lt_dlunknown
14589   cat > conftest.$ac_ext <<EOF
14590 #line 14590 "configure"
14591 #include "confdefs.h"
14592
14593 #if HAVE_DLFCN_H
14594 #include <dlfcn.h>
14595 #endif
14596
14597 #include <stdio.h>
14598
14599 #ifdef RTLD_GLOBAL
14600 #  define LT_DLGLOBAL           RTLD_GLOBAL
14601 #else
14602 #  ifdef DL_GLOBAL
14603 #    define LT_DLGLOBAL         DL_GLOBAL
14604 #  else
14605 #    define LT_DLGLOBAL         0
14606 #  endif
14607 #endif
14608
14609 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14610    find out it does not work in some platform. */
14611 #ifndef LT_DLLAZY_OR_NOW
14612 #  ifdef RTLD_LAZY
14613 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14614 #  else
14615 #    ifdef DL_LAZY
14616 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14617 #    else
14618 #      ifdef RTLD_NOW
14619 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14620 #      else
14621 #        ifdef DL_NOW
14622 #          define LT_DLLAZY_OR_NOW      DL_NOW
14623 #        else
14624 #          define LT_DLLAZY_OR_NOW      0
14625 #        endif
14626 #      endif
14627 #    endif
14628 #  endif
14629 #endif
14630
14631 #ifdef __cplusplus
14632 extern "C" void exit (int);
14633 #endif
14634
14635 void fnord() { int i=42;}
14636 int main ()
14637 {
14638   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14639   int status = $lt_dlunknown;
14640
14641   if (self)
14642     {
14643       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14644       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14645       /* dlclose (self); */
14646     }
14647
14648     exit (status);
14649 }
14650 EOF
14651   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14652   (eval $ac_link) 2>&5
14653   ac_status=$?
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14656     (./conftest; exit; ) 2>/dev/null
14657     lt_status=$?
14658     case x$lt_status in
14659       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14660       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14661       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14662     esac
14663   else :
14664     # compilation failed
14665     lt_cv_dlopen_self_static=no
14666   fi
14667 fi
14668 rm -fr conftest*
14669
14670
14671 fi
14672 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14673 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14674     fi
14675
14676     CPPFLAGS="$save_CPPFLAGS"
14677     LDFLAGS="$save_LDFLAGS"
14678     LIBS="$save_LIBS"
14679     ;;
14680   esac
14681
14682   case $lt_cv_dlopen_self in
14683   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14684   *) enable_dlopen_self=unknown ;;
14685   esac
14686
14687   case $lt_cv_dlopen_self_static in
14688   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14689   *) enable_dlopen_self_static=unknown ;;
14690   esac
14691 fi
14692
14693
14694 # Report which librarie types wil actually be built
14695 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14696 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14697 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14698 echo "${ECHO_T}$can_build_shared" >&6
14699
14700 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14701 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14702 test "$can_build_shared" = "no" && enable_shared=no
14703
14704 # On AIX, shared libraries and static libraries use the same namespace, and
14705 # are all built from PIC.
14706 case "$host_os" in
14707 aix3*)
14708   test "$enable_shared" = yes && enable_static=no
14709   if test -n "$RANLIB"; then
14710     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14711     postinstall_cmds='$RANLIB $lib'
14712   fi
14713   ;;
14714
14715 aix4* | aix5*)
14716   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14717     test "$enable_shared" = yes && enable_static=no
14718   fi
14719     ;;
14720 esac
14721 echo "$as_me:$LINENO: result: $enable_shared" >&5
14722 echo "${ECHO_T}$enable_shared" >&6
14723
14724 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14725 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14726 # Make sure either enable_shared or enable_static is yes.
14727 test "$enable_shared" = yes || enable_static=yes
14728 echo "$as_me:$LINENO: result: $enable_static" >&5
14729 echo "${ECHO_T}$enable_static" >&6
14730
14731 # The else clause should only fire when bootstrapping the
14732 # libtool distribution, otherwise you forgot to ship ltmain.sh
14733 # with your package, and you will get complaints that there are
14734 # no rules to generate ltmain.sh.
14735 if test -f "$ltmain"; then
14736   # See if we are running on zsh, and set the options which allow our commands through
14737   # without removal of \ escapes.
14738   if test -n "${ZSH_VERSION+set}" ; then
14739     setopt NO_GLOB_SUBST
14740   fi
14741   # Now quote all the things that may contain metacharacters while being
14742   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14743   # variables and quote the copies for generation of the libtool script.
14744   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14745     SED SHELL STRIP \
14746     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14747     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14748     deplibs_check_method reload_flag reload_cmds need_locks \
14749     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14750     lt_cv_sys_global_symbol_to_c_name_address \
14751     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14752     old_postinstall_cmds old_postuninstall_cmds \
14753     compiler \
14754     CC \
14755     LD \
14756     lt_prog_compiler_wl \
14757     lt_prog_compiler_pic \
14758     lt_prog_compiler_static \
14759     lt_prog_compiler_no_builtin_flag \
14760     export_dynamic_flag_spec \
14761     thread_safe_flag_spec \
14762     whole_archive_flag_spec \
14763     enable_shared_with_static_runtimes \
14764     old_archive_cmds \
14765     old_archive_from_new_cmds \
14766     predep_objects \
14767     postdep_objects \
14768     predeps \
14769     postdeps \
14770     compiler_lib_search_path \
14771     archive_cmds \
14772     archive_expsym_cmds \
14773     postinstall_cmds \
14774     postuninstall_cmds \
14775     old_archive_from_expsyms_cmds \
14776     allow_undefined_flag \
14777     no_undefined_flag \
14778     export_symbols_cmds \
14779     hardcode_libdir_flag_spec \
14780     hardcode_libdir_flag_spec_ld \
14781     hardcode_libdir_separator \
14782     hardcode_automatic \
14783     module_cmds \
14784     module_expsym_cmds \
14785     lt_cv_prog_compiler_c_o \
14786     exclude_expsyms \
14787     include_expsyms; do
14788
14789     case $var in
14790     old_archive_cmds | \
14791     old_archive_from_new_cmds | \
14792     archive_cmds | \
14793     archive_expsym_cmds | \
14794     module_cmds | \
14795     module_expsym_cmds | \
14796     old_archive_from_expsyms_cmds | \
14797     export_symbols_cmds | \
14798     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14799     postinstall_cmds | postuninstall_cmds | \
14800     old_postinstall_cmds | old_postuninstall_cmds | \
14801     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14802       # Double-quote double-evaled strings.
14803       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14804       ;;
14805     *)
14806       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14807       ;;
14808     esac
14809   done
14810
14811   case $lt_echo in
14812   *'\$0 --fallback-echo"')
14813     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14814     ;;
14815   esac
14816
14817 cfgfile="${ofile}T"
14818   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14819   $rm -f "$cfgfile"
14820   { echo "$as_me:$LINENO: creating $ofile" >&5
14821 echo "$as_me: creating $ofile" >&6;}
14822
14823   cat <<__EOF__ >> "$cfgfile"
14824 #! $SHELL
14825
14826 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14827 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14828 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14829 #
14830 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14831 # Free Software Foundation, Inc.
14832 #
14833 # This file is part of GNU Libtool:
14834 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14835 #
14836 # This program is free software; you can redistribute it and/or modify
14837 # it under the terms of the GNU General Public License as published by
14838 # the Free Software Foundation; either version 2 of the License, or
14839 # (at your option) any later version.
14840 #
14841 # This program is distributed in the hope that it will be useful, but
14842 # WITHOUT ANY WARRANTY; without even the implied warranty of
14843 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14844 # General Public License for more details.
14845 #
14846 # You should have received a copy of the GNU General Public License
14847 # along with this program; if not, write to the Free Software
14848 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14849 #
14850 # As a special exception to the GNU General Public License, if you
14851 # distribute this file as part of a program that contains a
14852 # configuration script generated by Autoconf, you may include it under
14853 # the same distribution terms that you use for the rest of that program.
14854
14855 # A sed program that does not truncate output.
14856 SED=$lt_SED
14857
14858 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14859 Xsed="$SED -e s/^X//"
14860
14861 # The HP-UX ksh and POSIX shell print the target directory to stdout
14862 # if CDPATH is set.
14863 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14864
14865 # The names of the tagged configurations supported by this script.
14866 available_tags=
14867
14868 # ### BEGIN LIBTOOL CONFIG
14869
14870 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14871
14872 # Shell to use when invoking shell scripts.
14873 SHELL=$lt_SHELL
14874
14875 # Whether or not to build shared libraries.
14876 build_libtool_libs=$enable_shared
14877
14878 # Whether or not to build static libraries.
14879 build_old_libs=$enable_static
14880
14881 # Whether or not to add -lc for building shared libraries.
14882 build_libtool_need_lc=$archive_cmds_need_lc
14883
14884 # Whether or not to disallow shared libs when runtime libs are static
14885 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14886
14887 # Whether or not to optimize for fast installation.
14888 fast_install=$enable_fast_install
14889
14890 # The host system.
14891 host_alias=$host_alias
14892 host=$host
14893
14894 # An echo program that does not interpret backslashes.
14895 echo=$lt_echo
14896
14897 # The archiver.
14898 AR=$lt_AR
14899 AR_FLAGS=$lt_AR_FLAGS
14900
14901 # A C compiler.
14902 LTCC=$lt_LTCC
14903
14904 # A language-specific compiler.
14905 CC=$lt_compiler
14906
14907 # Is the compiler the GNU C compiler?
14908 with_gcc=$GCC
14909
14910 # An ERE matcher.
14911 EGREP=$lt_EGREP
14912
14913 # The linker used to build libraries.
14914 LD=$lt_LD
14915
14916 # Whether we need hard or soft links.
14917 LN_S=$lt_LN_S
14918
14919 # A BSD-compatible nm program.
14920 NM=$lt_NM
14921
14922 # A symbol stripping program
14923 STRIP=$lt_STRIP
14924
14925 # Used to examine libraries when file_magic_cmd begins "file"
14926 MAGIC_CMD=$MAGIC_CMD
14927
14928 # Used on cygwin: DLL creation program.
14929 DLLTOOL="$DLLTOOL"
14930
14931 # Used on cygwin: object dumper.
14932 OBJDUMP="$OBJDUMP"
14933
14934 # Used on cygwin: assembler.
14935 AS="$AS"
14936
14937 # The name of the directory that contains temporary libtool files.
14938 objdir=$objdir
14939
14940 # How to create reloadable object files.
14941 reload_flag=$lt_reload_flag
14942 reload_cmds=$lt_reload_cmds
14943
14944 # How to pass a linker flag through the compiler.
14945 wl=$lt_lt_prog_compiler_wl
14946
14947 # Object file suffix (normally "o").
14948 objext="$ac_objext"
14949
14950 # Old archive suffix (normally "a").
14951 libext="$libext"
14952
14953 # Shared library suffix (normally ".so").
14954 shrext_cmds='$shrext_cmds'
14955
14956 # Executable file suffix (normally "").
14957 exeext="$exeext"
14958
14959 # Additional compiler flags for building library objects.
14960 pic_flag=$lt_lt_prog_compiler_pic
14961 pic_mode=$pic_mode
14962
14963 # What is the maximum length of a command?
14964 max_cmd_len=$lt_cv_sys_max_cmd_len
14965
14966 # Does compiler simultaneously support -c and -o options?
14967 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14968
14969 # Must we lock files when doing compilation ?
14970 need_locks=$lt_need_locks
14971
14972 # Do we need the lib prefix for modules?
14973 need_lib_prefix=$need_lib_prefix
14974
14975 # Do we need a version for libraries?
14976 need_version=$need_version
14977
14978 # Whether dlopen is supported.
14979 dlopen_support=$enable_dlopen
14980
14981 # Whether dlopen of programs is supported.
14982 dlopen_self=$enable_dlopen_self
14983
14984 # Whether dlopen of statically linked programs is supported.
14985 dlopen_self_static=$enable_dlopen_self_static
14986
14987 # Compiler flag to prevent dynamic linking.
14988 link_static_flag=$lt_lt_prog_compiler_static
14989
14990 # Compiler flag to turn off builtin functions.
14991 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14992
14993 # Compiler flag to allow reflexive dlopens.
14994 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14995
14996 # Compiler flag to generate shared objects directly from archives.
14997 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14998
14999 # Compiler flag to generate thread-safe objects.
15000 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15001
15002 # Library versioning type.
15003 version_type=$version_type
15004
15005 # Format of library name prefix.
15006 libname_spec=$lt_libname_spec
15007
15008 # List of archive names.  First name is the real one, the rest are links.
15009 # The last name is the one that the linker finds with -lNAME.
15010 library_names_spec=$lt_library_names_spec
15011
15012 # The coded name of the library, if different from the real name.
15013 soname_spec=$lt_soname_spec
15014
15015 # Commands used to build and install an old-style archive.
15016 RANLIB=$lt_RANLIB
15017 old_archive_cmds=$lt_old_archive_cmds
15018 old_postinstall_cmds=$lt_old_postinstall_cmds
15019 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15020
15021 # Create an old-style archive from a shared archive.
15022 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15023
15024 # Create a temporary old-style archive to link instead of a shared archive.
15025 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15026
15027 # Commands used to build and install a shared archive.
15028 archive_cmds=$lt_archive_cmds
15029 archive_expsym_cmds=$lt_archive_expsym_cmds
15030 postinstall_cmds=$lt_postinstall_cmds
15031 postuninstall_cmds=$lt_postuninstall_cmds
15032
15033 # Commands used to build a loadable module (assumed same as above if empty)
15034 module_cmds=$lt_module_cmds
15035 module_expsym_cmds=$lt_module_expsym_cmds
15036
15037 # Commands to strip libraries.
15038 old_striplib=$lt_old_striplib
15039 striplib=$lt_striplib
15040
15041 # Dependencies to place before the objects being linked to create a
15042 # shared library.
15043 predep_objects=$lt_predep_objects
15044
15045 # Dependencies to place after the objects being linked to create a
15046 # shared library.
15047 postdep_objects=$lt_postdep_objects
15048
15049 # Dependencies to place before the objects being linked to create a
15050 # shared library.
15051 predeps=$lt_predeps
15052
15053 # Dependencies to place after the objects being linked to create a
15054 # shared library.
15055 postdeps=$lt_postdeps
15056
15057 # The library search path used internally by the compiler when linking
15058 # a shared library.
15059 compiler_lib_search_path=$lt_compiler_lib_search_path
15060
15061 # Method to check whether dependent libraries are shared objects.
15062 deplibs_check_method=$lt_deplibs_check_method
15063
15064 # Command to use when deplibs_check_method == file_magic.
15065 file_magic_cmd=$lt_file_magic_cmd
15066
15067 # Flag that allows shared libraries with undefined symbols to be built.
15068 allow_undefined_flag=$lt_allow_undefined_flag
15069
15070 # Flag that forces no undefined symbols.
15071 no_undefined_flag=$lt_no_undefined_flag
15072
15073 # Commands used to finish a libtool library installation in a directory.
15074 finish_cmds=$lt_finish_cmds
15075
15076 # Same as above, but a single script fragment to be evaled but not shown.
15077 finish_eval=$lt_finish_eval
15078
15079 # Take the output of nm and produce a listing of raw symbols and C names.
15080 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15081
15082 # Transform the output of nm in a proper C declaration
15083 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15084
15085 # Transform the output of nm in a C name address pair
15086 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15087
15088 # This is the shared library runtime path variable.
15089 runpath_var=$runpath_var
15090
15091 # This is the shared library path variable.
15092 shlibpath_var=$shlibpath_var
15093
15094 # Is shlibpath searched before the hard-coded library search path?
15095 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15096
15097 # How to hardcode a shared library path into an executable.
15098 hardcode_action=$hardcode_action
15099
15100 # Whether we should hardcode library paths into libraries.
15101 hardcode_into_libs=$hardcode_into_libs
15102
15103 # Flag to hardcode \$libdir into a binary during linking.
15104 # This must work even if \$libdir does not exist.
15105 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15106
15107 # If ld is used when linking, flag to hardcode \$libdir into
15108 # a binary during linking. This must work even if \$libdir does
15109 # not exist.
15110 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15111
15112 # Whether we need a single -rpath flag with a separated argument.
15113 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15114
15115 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15116 # resulting binary.
15117 hardcode_direct=$hardcode_direct
15118
15119 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15120 # resulting binary.
15121 hardcode_minus_L=$hardcode_minus_L
15122
15123 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15124 # the resulting binary.
15125 hardcode_shlibpath_var=$hardcode_shlibpath_var
15126
15127 # Set to yes if building a shared library automatically hardcodes DIR into the library
15128 # and all subsequent libraries and executables linked against it.
15129 hardcode_automatic=$hardcode_automatic
15130
15131 # Variables whose values should be saved in libtool wrapper scripts and
15132 # restored at relink time.
15133 variables_saved_for_relink="$variables_saved_for_relink"
15134
15135 # Whether libtool must link a program against all its dependency libraries.
15136 link_all_deplibs=$link_all_deplibs
15137
15138 # Compile-time system search path for libraries
15139 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15140
15141 # Run-time system search path for libraries
15142 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15143
15144 # Fix the shell variable \$srcfile for the compiler.
15145 fix_srcfile_path="$fix_srcfile_path"
15146
15147 # Set to yes if exported symbols are required.
15148 always_export_symbols=$always_export_symbols
15149
15150 # The commands to list exported symbols.
15151 export_symbols_cmds=$lt_export_symbols_cmds
15152
15153 # The commands to extract the exported symbol list from a shared archive.
15154 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15155
15156 # Symbols that should not be listed in the preloaded symbols.
15157 exclude_expsyms=$lt_exclude_expsyms
15158
15159 # Symbols that must always be exported.
15160 include_expsyms=$lt_include_expsyms
15161
15162 # ### END LIBTOOL CONFIG
15163
15164 __EOF__
15165
15166
15167   case $host_os in
15168   aix3*)
15169     cat <<\EOF >> "$cfgfile"
15170
15171 # AIX sometimes has problems with the GCC collect2 program.  For some
15172 # reason, if we set the COLLECT_NAMES environment variable, the problems
15173 # vanish in a puff of smoke.
15174 if test "X${COLLECT_NAMES+set}" != Xset; then
15175   COLLECT_NAMES=
15176   export COLLECT_NAMES
15177 fi
15178 EOF
15179     ;;
15180   esac
15181
15182   # We use sed instead of cat because bash on DJGPP gets confused if
15183   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15184   # text mode, it properly converts lines to CR/LF.  This bash problem
15185   # is reportedly fixed, but why not run on old versions too?
15186   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15187
15188   mv -f "$cfgfile" "$ofile" || \
15189     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15190   chmod +x "$ofile"
15191
15192 else
15193   # If there is no Makefile yet, we rely on a make rule to execute
15194   # `config.status --recheck' to rerun these tests and create the
15195   # libtool script then.
15196   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15197   if test -f "$ltmain_in"; then
15198     test -f Makefile && make "$ltmain"
15199   fi
15200 fi
15201
15202
15203 ac_ext=c
15204 ac_cpp='$CPP $CPPFLAGS'
15205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15208
15209 CC="$lt_save_CC"
15210
15211
15212 # Check whether --with-tags or --without-tags was given.
15213 if test "${with_tags+set}" = set; then
15214   withval="$with_tags"
15215   tagnames="$withval"
15216 fi;
15217
15218 if test -f "$ltmain" && test -n "$tagnames"; then
15219   if test ! -f "${ofile}"; then
15220     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15221 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15222   fi
15223
15224   if test -z "$LTCC"; then
15225     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15226     if test -z "$LTCC"; then
15227       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15228 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15229     else
15230       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15231 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15232     fi
15233   fi
15234
15235   # Extract list of available tagged configurations in $ofile.
15236   # Note that this assumes the entire list is on one line.
15237   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15238
15239   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15240   for tagname in $tagnames; do
15241     IFS="$lt_save_ifs"
15242     # Check whether tagname contains only valid characters
15243     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15244     "") ;;
15245     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15246 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15247    { (exit 1); exit 1; }; }
15248         ;;
15249     esac
15250
15251     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15252     then
15253       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15254 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15255    { (exit 1); exit 1; }; }
15256     fi
15257
15258     # Update the list of available tags.
15259     if test -n "$tagname"; then
15260       echo appending configuration tag "$tagname" to $ofile
15261
15262       case $tagname in
15263       CXX)
15264         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15265             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15266             (test "X$CXX" != "Xg++"))) ; then
15267           ac_ext=cc
15268 ac_cpp='$CXXCPP $CPPFLAGS'
15269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15272
15273
15274
15275
15276 archive_cmds_need_lc_CXX=no
15277 allow_undefined_flag_CXX=
15278 always_export_symbols_CXX=no
15279 archive_expsym_cmds_CXX=
15280 export_dynamic_flag_spec_CXX=
15281 hardcode_direct_CXX=no
15282 hardcode_libdir_flag_spec_CXX=
15283 hardcode_libdir_flag_spec_ld_CXX=
15284 hardcode_libdir_separator_CXX=
15285 hardcode_minus_L_CXX=no
15286 hardcode_automatic_CXX=no
15287 module_cmds_CXX=
15288 module_expsym_cmds_CXX=
15289 link_all_deplibs_CXX=unknown
15290 old_archive_cmds_CXX=$old_archive_cmds
15291 no_undefined_flag_CXX=
15292 whole_archive_flag_spec_CXX=
15293 enable_shared_with_static_runtimes_CXX=no
15294
15295 # Dependencies to place before and after the object being linked:
15296 predep_objects_CXX=
15297 postdep_objects_CXX=
15298 predeps_CXX=
15299 postdeps_CXX=
15300 compiler_lib_search_path_CXX=
15301
15302 # Source file extension for C++ test sources.
15303 ac_ext=cc
15304
15305 # Object file extension for compiled C++ test sources.
15306 objext=o
15307 objext_CXX=$objext
15308
15309 # Code to be used in simple compile tests
15310 lt_simple_compile_test_code="int some_variable = 0;\n"
15311
15312 # Code to be used in simple link tests
15313 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15314
15315 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15316
15317 # If no C compiler was specified, use CC.
15318 LTCC=${LTCC-"$CC"}
15319
15320 # Allow CC to be a program name with arguments.
15321 compiler=$CC
15322
15323
15324 # Allow CC to be a program name with arguments.
15325 lt_save_CC=$CC
15326 lt_save_LD=$LD
15327 lt_save_GCC=$GCC
15328 GCC=$GXX
15329 lt_save_with_gnu_ld=$with_gnu_ld
15330 lt_save_path_LD=$lt_cv_path_LD
15331 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15332   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15333 else
15334   unset lt_cv_prog_gnu_ld
15335 fi
15336 if test -n "${lt_cv_path_LDCXX+set}"; then
15337   lt_cv_path_LD=$lt_cv_path_LDCXX
15338 else
15339   unset lt_cv_path_LD
15340 fi
15341 test -z "${LDCXX+set}" || LD=$LDCXX
15342 CC=${CXX-"c++"}
15343 compiler=$CC
15344 compiler_CXX=$CC
15345 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15346
15347 # We don't want -fno-exception wen compiling C++ code, so set the
15348 # no_builtin_flag separately
15349 if test "$GXX" = yes; then
15350   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15351 else
15352   lt_prog_compiler_no_builtin_flag_CXX=
15353 fi
15354
15355 if test "$GXX" = yes; then
15356   # Set up default GNU C++ configuration
15357
15358
15359 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15360 if test "${with_gnu_ld+set}" = set; then
15361   withval="$with_gnu_ld"
15362   test "$withval" = no || with_gnu_ld=yes
15363 else
15364   with_gnu_ld=no
15365 fi;
15366 ac_prog=ld
15367 if test "$GCC" = yes; then
15368   # Check if gcc -print-prog-name=ld gives a path.
15369   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15370 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15371   case $host in
15372   *-*-mingw*)
15373     # gcc leaves a trailing carriage return which upsets mingw
15374     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15375   *)
15376     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15377   esac
15378   case $ac_prog in
15379     # Accept absolute paths.
15380     [\\/]* | ?:[\\/]*)
15381       re_direlt='/[^/][^/]*/\.\./'
15382       # Canonicalize the pathname of ld
15383       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15384       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15385         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15386       done
15387       test -z "$LD" && LD="$ac_prog"
15388       ;;
15389   "")
15390     # If it fails, then pretend we aren't using GCC.
15391     ac_prog=ld
15392     ;;
15393   *)
15394     # If it is relative, then search for the first ld in PATH.
15395     with_gnu_ld=unknown
15396     ;;
15397   esac
15398 elif test "$with_gnu_ld" = yes; then
15399   echo "$as_me:$LINENO: checking for GNU ld" >&5
15400 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15401 else
15402   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15403 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15404 fi
15405 if test "${lt_cv_path_LD+set}" = set; then
15406   echo $ECHO_N "(cached) $ECHO_C" >&6
15407 else
15408   if test -z "$LD"; then
15409   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15410   for ac_dir in $PATH; do
15411     IFS="$lt_save_ifs"
15412     test -z "$ac_dir" && ac_dir=.
15413     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15414       lt_cv_path_LD="$ac_dir/$ac_prog"
15415       # Check to see if the program is GNU ld.  I'd rather use --version,
15416       # but apparently some GNU ld's only accept -v.
15417       # Break only if it was the GNU/non-GNU ld that we prefer.
15418       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15419       *GNU* | *'with BFD'*)
15420         test "$with_gnu_ld" != no && break
15421         ;;
15422       *)
15423         test "$with_gnu_ld" != yes && break
15424         ;;
15425       esac
15426     fi
15427   done
15428   IFS="$lt_save_ifs"
15429 else
15430   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15431 fi
15432 fi
15433
15434 LD="$lt_cv_path_LD"
15435 if test -n "$LD"; then
15436   echo "$as_me:$LINENO: result: $LD" >&5
15437 echo "${ECHO_T}$LD" >&6
15438 else
15439   echo "$as_me:$LINENO: result: no" >&5
15440 echo "${ECHO_T}no" >&6
15441 fi
15442 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15443 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15444    { (exit 1); exit 1; }; }
15445 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15446 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15447 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15448   echo $ECHO_N "(cached) $ECHO_C" >&6
15449 else
15450   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15451 case `$LD -v 2>&1 </dev/null` in
15452 *GNU* | *'with BFD'*)
15453   lt_cv_prog_gnu_ld=yes
15454   ;;
15455 *)
15456   lt_cv_prog_gnu_ld=no
15457   ;;
15458 esac
15459 fi
15460 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15461 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15462 with_gnu_ld=$lt_cv_prog_gnu_ld
15463
15464
15465
15466   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15467   # archiving commands below assume that GNU ld is being used.
15468   if test "$with_gnu_ld" = yes; then
15469     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15470     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'
15471
15472     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15473     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15474
15475     # If archive_cmds runs LD, not CC, wlarc should be empty
15476     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15477     #     investigate it a little bit more. (MM)
15478     wlarc='${wl}'
15479
15480     # ancient GNU ld didn't support --whole-archive et. al.
15481     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15482         grep 'no-whole-archive' > /dev/null; then
15483       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15484     else
15485       whole_archive_flag_spec_CXX=
15486     fi
15487   else
15488     with_gnu_ld=no
15489     wlarc=
15490
15491     # A generic and very simple default shared library creation
15492     # command for GNU C++ for the case where it uses the native
15493     # linker, instead of GNU ld.  If possible, this setting should
15494     # overridden to take advantage of the native linker features on
15495     # the platform it is being used on.
15496     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15497   fi
15498
15499   # Commands to make compiler produce verbose output that lists
15500   # what "hidden" libraries, object files and flags are used when
15501   # linking a shared library.
15502   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15503
15504 else
15505   GXX=no
15506   with_gnu_ld=no
15507   wlarc=
15508 fi
15509
15510 # PORTME: fill in a description of your system's C++ link characteristics
15511 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15512 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15513 ld_shlibs_CXX=yes
15514 case $host_os in
15515   aix3*)
15516     # FIXME: insert proper C++ library support
15517     ld_shlibs_CXX=no
15518     ;;
15519   aix4* | aix5*)
15520     if test "$host_cpu" = ia64; then
15521       # On IA64, the linker does run time linking by default, so we don't
15522       # have to do anything special.
15523       aix_use_runtimelinking=no
15524       exp_sym_flag='-Bexport'
15525       no_entry_flag=""
15526     else
15527       aix_use_runtimelinking=no
15528
15529       # Test if we are trying to use run time linking or normal
15530       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15531       # need to do runtime linking.
15532       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15533         for ld_flag in $LDFLAGS; do
15534           case $ld_flag in
15535           *-brtl*)
15536             aix_use_runtimelinking=yes
15537             break
15538             ;;
15539           esac
15540         done
15541       esac
15542
15543       exp_sym_flag='-bexport'
15544       no_entry_flag='-bnoentry'
15545     fi
15546
15547     # When large executables or shared objects are built, AIX ld can
15548     # have problems creating the table of contents.  If linking a library
15549     # or program results in "error TOC overflow" add -mminimal-toc to
15550     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15551     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15552
15553     archive_cmds_CXX=''
15554     hardcode_direct_CXX=yes
15555     hardcode_libdir_separator_CXX=':'
15556     link_all_deplibs_CXX=yes
15557
15558     if test "$GXX" = yes; then
15559       case $host_os in aix4.012|aix4.012.*)
15560       # We only want to do this on AIX 4.2 and lower, the check
15561       # below for broken collect2 doesn't work under 4.3+
15562         collect2name=`${CC} -print-prog-name=collect2`
15563         if test -f "$collect2name" && \
15564            strings "$collect2name" | grep resolve_lib_name >/dev/null
15565         then
15566           # We have reworked collect2
15567           hardcode_direct_CXX=yes
15568         else
15569           # We have old collect2
15570           hardcode_direct_CXX=unsupported
15571           # It fails to find uninstalled libraries when the uninstalled
15572           # path is not listed in the libpath.  Setting hardcode_minus_L
15573           # to unsupported forces relinking
15574           hardcode_minus_L_CXX=yes
15575           hardcode_libdir_flag_spec_CXX='-L$libdir'
15576           hardcode_libdir_separator_CXX=
15577         fi
15578       esac
15579       shared_flag='-shared'
15580     else
15581       # not using gcc
15582       if test "$host_cpu" = ia64; then
15583         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15584         # chokes on -Wl,-G. The following line is correct:
15585         shared_flag='-G'
15586       else
15587         if test "$aix_use_runtimelinking" = yes; then
15588           shared_flag='${wl}-G'
15589         else
15590           shared_flag='${wl}-bM:SRE'
15591         fi
15592       fi
15593     fi
15594
15595     # It seems that -bexpall does not export symbols beginning with
15596     # underscore (_), so it is better to generate a list of symbols to export.
15597     always_export_symbols_CXX=yes
15598     if test "$aix_use_runtimelinking" = yes; then
15599       # Warning - without using the other runtime loading flags (-brtl),
15600       # -berok will link without error, but may produce a broken library.
15601       allow_undefined_flag_CXX='-berok'
15602       # Determine the default libpath from the value encoded in an empty executable.
15603       cat >conftest.$ac_ext <<_ACEOF
15604 /* confdefs.h.  */
15605 _ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h.  */
15609
15610 int
15611 main ()
15612 {
15613
15614   ;
15615   return 0;
15616 }
15617 _ACEOF
15618 rm -f conftest.$ac_objext conftest$ac_exeext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15620   (eval $ac_link) 2>conftest.er1
15621   ac_status=$?
15622   grep -v '^ *+' conftest.er1 >conftest.err
15623   rm -f conftest.er1
15624   cat conftest.err >&5
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); } &&
15627          { ac_try='test -z "$ac_cxx_werror_flag"
15628                          || test ! -s conftest.err'
15629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630   (eval $ac_try) 2>&5
15631   ac_status=$?
15632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633   (exit $ac_status); }; } &&
15634          { ac_try='test -s conftest$ac_exeext'
15635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636   (eval $ac_try) 2>&5
15637   ac_status=$?
15638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639   (exit $ac_status); }; }; then
15640
15641 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15642 }'`
15643 # Check for a 64-bit object if we didn't find anything.
15644 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; }
15645 }'`; fi
15646 else
15647   echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15649
15650 fi
15651 rm -f conftest.err conftest.$ac_objext \
15652       conftest$ac_exeext conftest.$ac_ext
15653 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15654
15655       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15656
15657       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"
15658      else
15659       if test "$host_cpu" = ia64; then
15660         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15661         allow_undefined_flag_CXX="-z nodefs"
15662         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"
15663       else
15664         # Determine the default libpath from the value encoded in an empty executable.
15665         cat >conftest.$ac_ext <<_ACEOF
15666 /* confdefs.h.  */
15667 _ACEOF
15668 cat confdefs.h >>conftest.$ac_ext
15669 cat >>conftest.$ac_ext <<_ACEOF
15670 /* end confdefs.h.  */
15671
15672 int
15673 main ()
15674 {
15675
15676   ;
15677   return 0;
15678 }
15679 _ACEOF
15680 rm -f conftest.$ac_objext conftest$ac_exeext
15681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15682   (eval $ac_link) 2>conftest.er1
15683   ac_status=$?
15684   grep -v '^ *+' conftest.er1 >conftest.err
15685   rm -f conftest.er1
15686   cat conftest.err >&5
15687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688   (exit $ac_status); } &&
15689          { ac_try='test -z "$ac_cxx_werror_flag"
15690                          || test ! -s conftest.err'
15691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692   (eval $ac_try) 2>&5
15693   ac_status=$?
15694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695   (exit $ac_status); }; } &&
15696          { ac_try='test -s conftest$ac_exeext'
15697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698   (eval $ac_try) 2>&5
15699   ac_status=$?
15700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701   (exit $ac_status); }; }; then
15702
15703 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15704 }'`
15705 # Check for a 64-bit object if we didn't find anything.
15706 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; }
15707 }'`; fi
15708 else
15709   echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15711
15712 fi
15713 rm -f conftest.err conftest.$ac_objext \
15714       conftest$ac_exeext conftest.$ac_ext
15715 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15716
15717         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15718         # Warning - without using the other run time loading flags,
15719         # -berok will link without error, but may produce a broken library.
15720         no_undefined_flag_CXX=' ${wl}-bernotok'
15721         allow_undefined_flag_CXX=' ${wl}-berok'
15722         # -bexpall does not export symbols beginning with underscore (_)
15723         always_export_symbols_CXX=yes
15724         # Exported symbols can be pulled into shared objects from archives
15725         whole_archive_flag_spec_CXX=' '
15726         archive_cmds_need_lc_CXX=yes
15727         # This is similar to how AIX traditionally builds it's shared libraries.
15728         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'
15729       fi
15730     fi
15731     ;;
15732   chorus*)
15733     case $cc_basename in
15734       *)
15735         # FIXME: insert proper C++ library support
15736         ld_shlibs_CXX=no
15737         ;;
15738     esac
15739     ;;
15740
15741
15742   cygwin* | mingw* | pw32*)
15743     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15744     # as there is no search path for DLLs.
15745     hardcode_libdir_flag_spec_CXX='-L$libdir'
15746     allow_undefined_flag_CXX=unsupported
15747     always_export_symbols_CXX=no
15748     enable_shared_with_static_runtimes_CXX=yes
15749
15750     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15751       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'
15752       # If the export-symbols file already is a .def file (1st line
15753       # is EXPORTS), use it as is; otherwise, prepend...
15754       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15755         cp $export_symbols $output_objdir/$soname.def;
15756       else
15757         echo EXPORTS > $output_objdir/$soname.def;
15758         cat $export_symbols >> $output_objdir/$soname.def;
15759       fi~
15760       $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'
15761     else
15762       ld_shlibs_CXX=no
15763     fi
15764   ;;
15765       darwin* | rhapsody*)
15766         case "$host_os" in
15767         rhapsody* | darwin1.[012])
15768          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15769          ;;
15770        *) # Darwin 1.3 on
15771          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15772            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15773          else
15774            case ${MACOSX_DEPLOYMENT_TARGET} in
15775              10.[012])
15776                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15777                ;;
15778              10.*)
15779                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15780                ;;
15781            esac
15782          fi
15783          ;;
15784         esac
15785       archive_cmds_need_lc_CXX=no
15786       hardcode_direct_CXX=no
15787       hardcode_automatic_CXX=yes
15788       hardcode_shlibpath_var_CXX=unsupported
15789       whole_archive_flag_spec_CXX=''
15790       link_all_deplibs_CXX=yes
15791
15792     if test "$GXX" = yes ; then
15793       lt_int_apple_cc_single_mod=no
15794       output_verbose_link_cmd='echo'
15795       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15796        lt_int_apple_cc_single_mod=yes
15797       fi
15798       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15799        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15800       else
15801           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'
15802         fi
15803         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15804         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15805           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15806             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}'
15807           else
15808             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}'
15809           fi
15810             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}'
15811       else
15812       case "$cc_basename" in
15813         xlc*)
15814          output_verbose_link_cmd='echo'
15815           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'
15816           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15817           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15818           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}'
15819           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}'
15820           ;;
15821        *)
15822          ld_shlibs_CXX=no
15823           ;;
15824       esac
15825       fi
15826         ;;
15827
15828   dgux*)
15829     case $cc_basename in
15830       ec++)
15831         # FIXME: insert proper C++ library support
15832         ld_shlibs_CXX=no
15833         ;;
15834       ghcx)
15835         # Green Hills C++ Compiler
15836         # FIXME: insert proper C++ library support
15837         ld_shlibs_CXX=no
15838         ;;
15839       *)
15840         # FIXME: insert proper C++ library support
15841         ld_shlibs_CXX=no
15842         ;;
15843     esac
15844     ;;
15845   freebsd12*)
15846     # C++ shared libraries reported to be fairly broken before switch to ELF
15847     ld_shlibs_CXX=no
15848     ;;
15849   freebsd-elf*)
15850     archive_cmds_need_lc_CXX=no
15851     ;;
15852   freebsd* | kfreebsd*-gnu)
15853     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15854     # conventions
15855     ld_shlibs_CXX=yes
15856     ;;
15857   gnu*)
15858     ;;
15859   hpux9*)
15860     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15861     hardcode_libdir_separator_CXX=:
15862     export_dynamic_flag_spec_CXX='${wl}-E'
15863     hardcode_direct_CXX=yes
15864     hardcode_minus_L_CXX=yes # Not in the search PATH,
15865                                 # but as the default
15866                                 # location of the library.
15867
15868     case $cc_basename in
15869     CC)
15870       # FIXME: insert proper C++ library support
15871       ld_shlibs_CXX=no
15872       ;;
15873     aCC)
15874       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'
15875       # Commands to make compiler produce verbose output that lists
15876       # what "hidden" libraries, object files and flags are used when
15877       # linking a shared library.
15878       #
15879       # There doesn't appear to be a way to prevent this compiler from
15880       # explicitly linking system object files so we need to strip them
15881       # from the output so that they don't get included in the library
15882       # dependencies.
15883       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'
15884       ;;
15885     *)
15886       if test "$GXX" = yes; then
15887         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'
15888       else
15889         # FIXME: insert proper C++ library support
15890         ld_shlibs_CXX=no
15891       fi
15892       ;;
15893     esac
15894     ;;
15895   hpux10*|hpux11*)
15896     if test $with_gnu_ld = no; then
15897       case "$host_cpu" in
15898       hppa*64*)
15899         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15900         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15901         hardcode_libdir_separator_CXX=:
15902         ;;
15903       ia64*)
15904         hardcode_libdir_flag_spec_CXX='-L$libdir'
15905         ;;
15906       *)
15907         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15908         hardcode_libdir_separator_CXX=:
15909         export_dynamic_flag_spec_CXX='${wl}-E'
15910         ;;
15911       esac
15912     fi
15913     case "$host_cpu" in
15914     hppa*64*)
15915       hardcode_direct_CXX=no
15916       hardcode_shlibpath_var_CXX=no
15917       ;;
15918     ia64*)
15919       hardcode_direct_CXX=no
15920       hardcode_shlibpath_var_CXX=no
15921       hardcode_minus_L_CXX=yes # Not in the search PATH,
15922                                               # but as the default
15923                                               # location of the library.
15924       ;;
15925     *)
15926       hardcode_direct_CXX=yes
15927       hardcode_minus_L_CXX=yes # Not in the search PATH,
15928                                               # but as the default
15929                                               # location of the library.
15930       ;;
15931     esac
15932
15933     case $cc_basename in
15934       CC)
15935         # FIXME: insert proper C++ library support
15936         ld_shlibs_CXX=no
15937         ;;
15938       aCC)
15939         case "$host_cpu" in
15940         hppa*64*|ia64*)
15941           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15942           ;;
15943         *)
15944           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15945           ;;
15946         esac
15947         # Commands to make compiler produce verbose output that lists
15948         # what "hidden" libraries, object files and flags are used when
15949         # linking a shared library.
15950         #
15951         # There doesn't appear to be a way to prevent this compiler from
15952         # explicitly linking system object files so we need to strip them
15953         # from the output so that they don't get included in the library
15954         # dependencies.
15955         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'
15956         ;;
15957       *)
15958         if test "$GXX" = yes; then
15959           if test $with_gnu_ld = no; then
15960             case "$host_cpu" in
15961             ia64*|hppa*64*)
15962               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15963               ;;
15964             *)
15965               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'
15966               ;;
15967             esac
15968           fi
15969         else
15970           # FIXME: insert proper C++ library support
15971           ld_shlibs_CXX=no
15972         fi
15973         ;;
15974     esac
15975     ;;
15976   irix5* | irix6*)
15977     case $cc_basename in
15978       CC)
15979         # SGI C++
15980         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'
15981
15982         # Archives containing C++ object files must be created using
15983         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15984         # necessary to make sure instantiated templates are included
15985         # in the archive.
15986         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15987         ;;
15988       *)
15989         if test "$GXX" = yes; then
15990           if test "$with_gnu_ld" = no; then
15991             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'
15992           else
15993             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'
15994           fi
15995         fi
15996         link_all_deplibs_CXX=yes
15997         ;;
15998     esac
15999     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16000     hardcode_libdir_separator_CXX=:
16001     ;;
16002   linux*)
16003     case $cc_basename in
16004       KCC)
16005         # Kuck and Associates, Inc. (KAI) C++ Compiler
16006
16007         # KCC will only create a shared library if the output file
16008         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16009         # to its proper name (with version) after linking.
16010         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'
16011         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'
16012         # Commands to make compiler produce verbose output that lists
16013         # what "hidden" libraries, object files and flags are used when
16014         # linking a shared library.
16015         #
16016         # There doesn't appear to be a way to prevent this compiler from
16017         # explicitly linking system object files so we need to strip them
16018         # from the output so that they don't get included in the library
16019         # dependencies.
16020         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'
16021
16022         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16023         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16024
16025         # Archives containing C++ object files must be created using
16026         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16027         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16028         ;;
16029       icpc)
16030         # Intel C++
16031         with_gnu_ld=yes
16032         # version 8.0 and above of icpc choke on multiply defined symbols
16033         # if we add $predep_objects and $postdep_objects, however 7.1 and
16034         # earlier do not add the objects themselves.
16035         case `$CC -V 2>&1` in
16036         *"Version 7."*)
16037           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16038           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'
16039           ;;
16040         *)  # Version 8.0 or newer
16041           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16042         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16043           ;;
16044         esac
16045         archive_cmds_need_lc_CXX=no
16046         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16047         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16048         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16049         ;;
16050       cxx)
16051         # Compaq C++
16052         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16053         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'
16054
16055         runpath_var=LD_RUN_PATH
16056         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16057         hardcode_libdir_separator_CXX=:
16058
16059         # Commands to make compiler produce verbose output that lists
16060         # what "hidden" libraries, object files and flags are used when
16061         # linking a shared library.
16062         #
16063         # There doesn't appear to be a way to prevent this compiler from
16064         # explicitly linking system object files so we need to strip them
16065         # from the output so that they don't get included in the library
16066         # dependencies.
16067         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'
16068         ;;
16069     esac
16070     ;;
16071   lynxos*)
16072     # FIXME: insert proper C++ library support
16073     ld_shlibs_CXX=no
16074     ;;
16075   m88k*)
16076     # FIXME: insert proper C++ library support
16077     ld_shlibs_CXX=no
16078     ;;
16079   mvs*)
16080     case $cc_basename in
16081       cxx)
16082         # FIXME: insert proper C++ library support
16083         ld_shlibs_CXX=no
16084         ;;
16085       *)
16086         # FIXME: insert proper C++ library support
16087         ld_shlibs_CXX=no
16088         ;;
16089     esac
16090     ;;
16091   netbsd*)
16092     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16093       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16094       wlarc=
16095       hardcode_libdir_flag_spec_CXX='-R$libdir'
16096       hardcode_direct_CXX=yes
16097       hardcode_shlibpath_var_CXX=no
16098     fi
16099     # Workaround some broken pre-1.5 toolchains
16100     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16101     ;;
16102   openbsd2*)
16103     # C++ shared libraries are fairly broken
16104     ld_shlibs_CXX=no
16105     ;;
16106   openbsd*)
16107     hardcode_direct_CXX=yes
16108     hardcode_shlibpath_var_CXX=no
16109     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16110     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16111     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16112       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16113       export_dynamic_flag_spec_CXX='${wl}-E'
16114       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16115     fi
16116     output_verbose_link_cmd='echo'
16117     ;;
16118   osf3*)
16119     case $cc_basename in
16120       KCC)
16121         # Kuck and Associates, Inc. (KAI) C++ Compiler
16122
16123         # KCC will only create a shared library if the output file
16124         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16125         # to its proper name (with version) after linking.
16126         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'
16127
16128         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16129         hardcode_libdir_separator_CXX=:
16130
16131         # Archives containing C++ object files must be created using
16132         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16133         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16134
16135         ;;
16136       RCC)
16137         # Rational C++ 2.4.1
16138         # FIXME: insert proper C++ library support
16139         ld_shlibs_CXX=no
16140         ;;
16141       cxx)
16142         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16143         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'
16144
16145         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16146         hardcode_libdir_separator_CXX=:
16147
16148         # Commands to make compiler produce verbose output that lists
16149         # what "hidden" libraries, object files and flags are used when
16150         # linking a shared library.
16151         #
16152         # There doesn't appear to be a way to prevent this compiler from
16153         # explicitly linking system object files so we need to strip them
16154         # from the output so that they don't get included in the library
16155         # dependencies.
16156         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'
16157         ;;
16158       *)
16159         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16160           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16161           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'
16162
16163           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16164           hardcode_libdir_separator_CXX=:
16165
16166           # Commands to make compiler produce verbose output that lists
16167           # what "hidden" libraries, object files and flags are used when
16168           # linking a shared library.
16169           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16170
16171         else
16172           # FIXME: insert proper C++ library support
16173           ld_shlibs_CXX=no
16174         fi
16175         ;;
16176     esac
16177     ;;
16178   osf4* | osf5*)
16179     case $cc_basename in
16180       KCC)
16181         # Kuck and Associates, Inc. (KAI) C++ Compiler
16182
16183         # KCC will only create a shared library if the output file
16184         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16185         # to its proper name (with version) after linking.
16186         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'
16187
16188         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16189         hardcode_libdir_separator_CXX=:
16190
16191         # Archives containing C++ object files must be created using
16192         # the KAI C++ compiler.
16193         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16194         ;;
16195       RCC)
16196         # Rational C++ 2.4.1
16197         # FIXME: insert proper C++ library support
16198         ld_shlibs_CXX=no
16199         ;;
16200       cxx)
16201         allow_undefined_flag_CXX=' -expect_unresolved \*'
16202         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'
16203         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16204           echo "-hidden">> $lib.exp~
16205           $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~
16206           $rm $lib.exp'
16207
16208         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16209         hardcode_libdir_separator_CXX=:
16210
16211         # Commands to make compiler produce verbose output that lists
16212         # what "hidden" libraries, object files and flags are used when
16213         # linking a shared library.
16214         #
16215         # There doesn't appear to be a way to prevent this compiler from
16216         # explicitly linking system object files so we need to strip them
16217         # from the output so that they don't get included in the library
16218         # dependencies.
16219         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'
16220         ;;
16221       *)
16222         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16223           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16224          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'
16225
16226           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16227           hardcode_libdir_separator_CXX=:
16228
16229           # Commands to make compiler produce verbose output that lists
16230           # what "hidden" libraries, object files and flags are used when
16231           # linking a shared library.
16232           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16233
16234         else
16235           # FIXME: insert proper C++ library support
16236           ld_shlibs_CXX=no
16237         fi
16238         ;;
16239     esac
16240     ;;
16241   psos*)
16242     # FIXME: insert proper C++ library support
16243     ld_shlibs_CXX=no
16244     ;;
16245   sco*)
16246     archive_cmds_need_lc_CXX=no
16247     case $cc_basename in
16248       CC)
16249         # FIXME: insert proper C++ library support
16250         ld_shlibs_CXX=no
16251         ;;
16252       *)
16253         # FIXME: insert proper C++ library support
16254         ld_shlibs_CXX=no
16255         ;;
16256     esac
16257     ;;
16258   sunos4*)
16259     case $cc_basename in
16260       CC)
16261         # Sun C++ 4.x
16262         # FIXME: insert proper C++ library support
16263         ld_shlibs_CXX=no
16264         ;;
16265       lcc)
16266         # Lucid
16267         # FIXME: insert proper C++ library support
16268         ld_shlibs_CXX=no
16269         ;;
16270       *)
16271         # FIXME: insert proper C++ library support
16272         ld_shlibs_CXX=no
16273         ;;
16274     esac
16275     ;;
16276   solaris*)
16277     case $cc_basename in
16278       CC)
16279         # Sun C++ 4.2, 5.x and Centerline C++
16280         no_undefined_flag_CXX=' -zdefs'
16281         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16282         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16283         $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'
16284
16285         hardcode_libdir_flag_spec_CXX='-R$libdir'
16286         hardcode_shlibpath_var_CXX=no
16287         case $host_os in
16288           solaris2.0-5 | solaris2.0-5.*) ;;
16289           *)
16290             # The C++ compiler is used as linker so we must use $wl
16291             # flag to pass the commands to the underlying system
16292             # linker.
16293             # Supported since Solaris 2.6 (maybe 2.5.1?)
16294             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16295             ;;
16296         esac
16297         link_all_deplibs_CXX=yes
16298
16299         # Commands to make compiler produce verbose output that lists
16300         # what "hidden" libraries, object files and flags are used when
16301         # linking a shared library.
16302         #
16303         # There doesn't appear to be a way to prevent this compiler from
16304         # explicitly linking system object files so we need to strip them
16305         # from the output so that they don't get included in the library
16306         # dependencies.
16307         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'
16308
16309         # Archives containing C++ object files must be created using
16310         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16311         # necessary to make sure instantiated templates are included
16312         # in the archive.
16313         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16314         ;;
16315       gcx)
16316         # Green Hills C++ Compiler
16317         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16318
16319         # The C++ compiler must be used to create the archive.
16320         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16321         ;;
16322       *)
16323         # GNU C++ compiler with Solaris linker
16324         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16325           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16326           if $CC --version | grep -v '^2\.7' > /dev/null; then
16327             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16328             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16329                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16330
16331             # Commands to make compiler produce verbose output that lists
16332             # what "hidden" libraries, object files and flags are used when
16333             # linking a shared library.
16334             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16335           else
16336             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16337             # platform.
16338             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16339             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16340                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16341
16342             # Commands to make compiler produce verbose output that lists
16343             # what "hidden" libraries, object files and flags are used when
16344             # linking a shared library.
16345             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16346           fi
16347
16348           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16349         fi
16350         ;;
16351     esac
16352     ;;
16353   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16354     archive_cmds_need_lc_CXX=no
16355     ;;
16356   tandem*)
16357     case $cc_basename in
16358       NCC)
16359         # NonStop-UX NCC 3.20
16360         # FIXME: insert proper C++ library support
16361         ld_shlibs_CXX=no
16362         ;;
16363       *)
16364         # FIXME: insert proper C++ library support
16365         ld_shlibs_CXX=no
16366         ;;
16367     esac
16368     ;;
16369   vxworks*)
16370     # FIXME: insert proper C++ library support
16371     ld_shlibs_CXX=no
16372     ;;
16373   *)
16374     # FIXME: insert proper C++ library support
16375     ld_shlibs_CXX=no
16376     ;;
16377 esac
16378 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16379 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16380 test "$ld_shlibs_CXX" = no && can_build_shared=no
16381
16382 GCC_CXX="$GXX"
16383 LD_CXX="$LD"
16384
16385
16386 cat > conftest.$ac_ext <<EOF
16387 class Foo
16388 {
16389 public:
16390   Foo (void) { a = 0; }
16391 private:
16392   int a;
16393 };
16394 EOF
16395
16396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16397   (eval $ac_compile) 2>&5
16398   ac_status=$?
16399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400   (exit $ac_status); }; then
16401   # Parse the compiler output and extract the necessary
16402   # objects, libraries and library flags.
16403
16404   # Sentinel used to keep track of whether or not we are before
16405   # the conftest object file.
16406   pre_test_object_deps_done=no
16407
16408   # The `*' in the case matches for architectures that use `case' in
16409   # $output_verbose_cmd can trigger glob expansion during the loop
16410   # eval without this substitution.
16411   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16412
16413   for p in `eval $output_verbose_link_cmd`; do
16414     case $p in
16415
16416     -L* | -R* | -l*)
16417        # Some compilers place space between "-{L,R}" and the path.
16418        # Remove the space.
16419        if test $p = "-L" \
16420           || test $p = "-R"; then
16421          prev=$p
16422          continue
16423        else
16424          prev=
16425        fi
16426
16427        if test "$pre_test_object_deps_done" = no; then
16428          case $p in
16429          -L* | -R*)
16430            # Internal compiler library paths should come after those
16431            # provided the user.  The postdeps already come after the
16432            # user supplied libs so there is no need to process them.
16433            if test -z "$compiler_lib_search_path_CXX"; then
16434              compiler_lib_search_path_CXX="${prev}${p}"
16435            else
16436              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16437            fi
16438            ;;
16439          # The "-l" case would never come before the object being
16440          # linked, so don't bother handling this case.
16441          esac
16442        else
16443          if test -z "$postdeps_CXX"; then
16444            postdeps_CXX="${prev}${p}"
16445          else
16446            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16447          fi
16448        fi
16449        ;;
16450
16451     *.$objext)
16452        # This assumes that the test object file only shows up
16453        # once in the compiler output.
16454        if test "$p" = "conftest.$objext"; then
16455          pre_test_object_deps_done=yes
16456          continue
16457        fi
16458
16459        if test "$pre_test_object_deps_done" = no; then
16460          if test -z "$predep_objects_CXX"; then
16461            predep_objects_CXX="$p"
16462          else
16463            predep_objects_CXX="$predep_objects_CXX $p"
16464          fi
16465        else
16466          if test -z "$postdep_objects_CXX"; then
16467            postdep_objects_CXX="$p"
16468          else
16469            postdep_objects_CXX="$postdep_objects_CXX $p"
16470          fi
16471        fi
16472        ;;
16473
16474     *) ;; # Ignore the rest.
16475
16476     esac
16477   done
16478
16479   # Clean up.
16480   rm -f a.out a.exe
16481 else
16482   echo "libtool.m4: error: problem compiling CXX test program"
16483 fi
16484
16485 $rm -f confest.$objext
16486
16487 case " $postdeps_CXX " in
16488 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16489 esac
16490
16491 lt_prog_compiler_wl_CXX=
16492 lt_prog_compiler_pic_CXX=
16493 lt_prog_compiler_static_CXX=
16494
16495 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16496 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16497
16498   # C++ specific cases for pic, static, wl, etc.
16499   if test "$GXX" = yes; then
16500     lt_prog_compiler_wl_CXX='-Wl,'
16501     lt_prog_compiler_static_CXX='-static'
16502
16503     case $host_os in
16504     aix*)
16505       # All AIX code is PIC.
16506       if test "$host_cpu" = ia64; then
16507         # AIX 5 now supports IA64 processor
16508         lt_prog_compiler_static_CXX='-Bstatic'
16509       fi
16510       ;;
16511     amigaos*)
16512       # FIXME: we need at least 68020 code to build shared libraries, but
16513       # adding the `-m68020' flag to GCC prevents building anything better,
16514       # like `-m68040'.
16515       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16516       ;;
16517     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16518       # PIC is the default for these OSes.
16519       ;;
16520     mingw* | os2* | pw32*)
16521       # This hack is so that the source file can tell whether it is being
16522       # built for inclusion in a dll (and should export symbols for example).
16523       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16524       ;;
16525     darwin* | rhapsody*)
16526       # PIC is the default on this platform
16527       # Common symbols not allowed in MH_DYLIB files
16528       lt_prog_compiler_pic_CXX='-fno-common'
16529       ;;
16530     *djgpp*)
16531       # DJGPP does not support shared libraries at all
16532       lt_prog_compiler_pic_CXX=
16533       ;;
16534     sysv4*MP*)
16535       if test -d /usr/nec; then
16536         lt_prog_compiler_pic_CXX=-Kconform_pic
16537       fi
16538       ;;
16539     hpux*)
16540       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16541       # not for PA HP-UX.
16542       case "$host_cpu" in
16543       hppa*64*|ia64*)
16544         ;;
16545       *)
16546         lt_prog_compiler_pic_CXX='-fPIC'
16547         ;;
16548       esac
16549       ;;
16550     *)
16551       lt_prog_compiler_pic_CXX='-fPIC'
16552       ;;
16553     esac
16554   else
16555     case $host_os in
16556       aix4* | aix5*)
16557         # All AIX code is PIC.
16558         if test "$host_cpu" = ia64; then
16559           # AIX 5 now supports IA64 processor
16560           lt_prog_compiler_static_CXX='-Bstatic'
16561         else
16562           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16563         fi
16564         ;;
16565       chorus*)
16566         case $cc_basename in
16567         cxch68)
16568           # Green Hills C++ Compiler
16569           # _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"
16570           ;;
16571         esac
16572         ;;
16573        darwin*)
16574          # PIC is the default on this platform
16575          # Common symbols not allowed in MH_DYLIB files
16576          case "$cc_basename" in
16577            xlc*)
16578            lt_prog_compiler_pic_CXX='-qnocommon'
16579            lt_prog_compiler_wl_CXX='-Wl,'
16580            ;;
16581          esac
16582        ;;
16583       dgux*)
16584         case $cc_basename in
16585           ec++)
16586             lt_prog_compiler_pic_CXX='-KPIC'
16587             ;;
16588           ghcx)
16589             # Green Hills C++ Compiler
16590             lt_prog_compiler_pic_CXX='-pic'
16591             ;;
16592           *)
16593             ;;
16594         esac
16595         ;;
16596       freebsd* | kfreebsd*-gnu)
16597         # FreeBSD uses GNU C++
16598         ;;
16599       hpux9* | hpux10* | hpux11*)
16600         case $cc_basename in
16601           CC)
16602             lt_prog_compiler_wl_CXX='-Wl,'
16603             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16604             if test "$host_cpu" != ia64; then
16605               lt_prog_compiler_pic_CXX='+Z'
16606             fi
16607             ;;
16608           aCC)
16609             lt_prog_compiler_wl_CXX='-Wl,'
16610             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16611             case "$host_cpu" in
16612             hppa*64*|ia64*)
16613               # +Z the default
16614               ;;
16615             *)
16616               lt_prog_compiler_pic_CXX='+Z'
16617               ;;
16618             esac
16619             ;;
16620           *)
16621             ;;
16622         esac
16623         ;;
16624       irix5* | irix6* | nonstopux*)
16625         case $cc_basename in
16626           CC)
16627             lt_prog_compiler_wl_CXX='-Wl,'
16628             lt_prog_compiler_static_CXX='-non_shared'
16629             # CC pic flag -KPIC is the default.
16630             ;;
16631           *)
16632             ;;
16633         esac
16634         ;;
16635       linux*)
16636         case $cc_basename in
16637           KCC)
16638             # KAI C++ Compiler
16639             lt_prog_compiler_wl_CXX='--backend -Wl,'
16640             lt_prog_compiler_pic_CXX='-fPIC'
16641             ;;
16642           icpc)
16643             # Intel C++
16644             lt_prog_compiler_wl_CXX='-Wl,'
16645             lt_prog_compiler_pic_CXX='-KPIC'
16646             lt_prog_compiler_static_CXX='-static'
16647             ;;
16648           cxx)
16649             # Compaq C++
16650             # Make sure the PIC flag is empty.  It appears that all Alpha
16651             # Linux and Compaq Tru64 Unix objects are PIC.
16652             lt_prog_compiler_pic_CXX=
16653             lt_prog_compiler_static_CXX='-non_shared'
16654             ;;
16655           *)
16656             ;;
16657         esac
16658         ;;
16659       lynxos*)
16660         ;;
16661       m88k*)
16662         ;;
16663       mvs*)
16664         case $cc_basename in
16665           cxx)
16666             lt_prog_compiler_pic_CXX='-W c,exportall'
16667             ;;
16668           *)
16669             ;;
16670         esac
16671         ;;
16672       netbsd*)
16673         ;;
16674       osf3* | osf4* | osf5*)
16675         case $cc_basename in
16676           KCC)
16677             lt_prog_compiler_wl_CXX='--backend -Wl,'
16678             ;;
16679           RCC)
16680             # Rational C++ 2.4.1
16681             lt_prog_compiler_pic_CXX='-pic'
16682             ;;
16683           cxx)
16684             # Digital/Compaq C++
16685             lt_prog_compiler_wl_CXX='-Wl,'
16686             # Make sure the PIC flag is empty.  It appears that all Alpha
16687             # Linux and Compaq Tru64 Unix objects are PIC.
16688             lt_prog_compiler_pic_CXX=
16689             lt_prog_compiler_static_CXX='-non_shared'
16690             ;;
16691           *)
16692             ;;
16693         esac
16694         ;;
16695       psos*)
16696         ;;
16697       sco*)
16698         case $cc_basename in
16699           CC)
16700             lt_prog_compiler_pic_CXX='-fPIC'
16701             ;;
16702           *)
16703             ;;
16704         esac
16705         ;;
16706       solaris*)
16707         case $cc_basename in
16708           CC)
16709             # Sun C++ 4.2, 5.x and Centerline C++
16710             lt_prog_compiler_pic_CXX='-KPIC'
16711             lt_prog_compiler_static_CXX='-Bstatic'
16712             lt_prog_compiler_wl_CXX='-Qoption ld '
16713             ;;
16714           gcx)
16715             # Green Hills C++ Compiler
16716             lt_prog_compiler_pic_CXX='-PIC'
16717             ;;
16718           *)
16719             ;;
16720         esac
16721         ;;
16722       sunos4*)
16723         case $cc_basename in
16724           CC)
16725             # Sun C++ 4.x
16726             lt_prog_compiler_pic_CXX='-pic'
16727             lt_prog_compiler_static_CXX='-Bstatic'
16728             ;;
16729           lcc)
16730             # Lucid
16731             lt_prog_compiler_pic_CXX='-pic'
16732             ;;
16733           *)
16734             ;;
16735         esac
16736         ;;
16737       tandem*)
16738         case $cc_basename in
16739           NCC)
16740             # NonStop-UX NCC 3.20
16741             lt_prog_compiler_pic_CXX='-KPIC'
16742             ;;
16743           *)
16744             ;;
16745         esac
16746         ;;
16747       unixware*)
16748         ;;
16749       vxworks*)
16750         ;;
16751       *)
16752         lt_prog_compiler_can_build_shared_CXX=no
16753         ;;
16754     esac
16755   fi
16756
16757 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16758 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16759
16760 #
16761 # Check to make sure the PIC flag actually works.
16762 #
16763 if test -n "$lt_prog_compiler_pic_CXX"; then
16764
16765 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16766 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16767 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16768   echo $ECHO_N "(cached) $ECHO_C" >&6
16769 else
16770   lt_prog_compiler_pic_works_CXX=no
16771   ac_outfile=conftest.$ac_objext
16772    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16773    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16774    # Insert the option either (1) after the last *FLAGS variable, or
16775    # (2) before a word containing "conftest.", or (3) at the end.
16776    # Note that $ac_compile itself does not contain backslashes and begins
16777    # with a dollar sign (not a hyphen), so the echo should work correctly.
16778    # The option is referenced via a variable to avoid confusing sed.
16779    lt_compile=`echo "$ac_compile" | $SED \
16780    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16781    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16782    -e 's:$: $lt_compiler_flag:'`
16783    (eval echo "\"\$as_me:16783: $lt_compile\"" >&5)
16784    (eval "$lt_compile" 2>conftest.err)
16785    ac_status=$?
16786    cat conftest.err >&5
16787    echo "$as_me:16787: \$? = $ac_status" >&5
16788    if (exit $ac_status) && test -s "$ac_outfile"; then
16789      # The compiler can only warn and ignore the option if not recognized
16790      # So say no if there are warnings
16791      if test ! -s conftest.err; then
16792        lt_prog_compiler_pic_works_CXX=yes
16793      fi
16794    fi
16795    $rm conftest*
16796
16797 fi
16798 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16799 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16800
16801 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16802     case $lt_prog_compiler_pic_CXX in
16803      "" | " "*) ;;
16804      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16805      esac
16806 else
16807     lt_prog_compiler_pic_CXX=
16808      lt_prog_compiler_can_build_shared_CXX=no
16809 fi
16810
16811 fi
16812 case "$host_os" in
16813   # For platforms which do not support PIC, -DPIC is meaningless:
16814   *djgpp*)
16815     lt_prog_compiler_pic_CXX=
16816     ;;
16817   *)
16818     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16819     ;;
16820 esac
16821
16822 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16823 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16824 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16825   echo $ECHO_N "(cached) $ECHO_C" >&6
16826 else
16827   lt_cv_prog_compiler_c_o_CXX=no
16828    $rm -r conftest 2>/dev/null
16829    mkdir conftest
16830    cd conftest
16831    mkdir out
16832    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16833
16834    lt_compiler_flag="-o out/conftest2.$ac_objext"
16835    # Insert the option either (1) after the last *FLAGS variable, or
16836    # (2) before a word containing "conftest.", or (3) at the end.
16837    # Note that $ac_compile itself does not contain backslashes and begins
16838    # with a dollar sign (not a hyphen), so the echo should work correctly.
16839    lt_compile=`echo "$ac_compile" | $SED \
16840    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16841    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16842    -e 's:$: $lt_compiler_flag:'`
16843    (eval echo "\"\$as_me:16843: $lt_compile\"" >&5)
16844    (eval "$lt_compile" 2>out/conftest.err)
16845    ac_status=$?
16846    cat out/conftest.err >&5
16847    echo "$as_me:16847: \$? = $ac_status" >&5
16848    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16849    then
16850      # The compiler can only warn and ignore the option if not recognized
16851      # So say no if there are warnings
16852      if test ! -s out/conftest.err; then
16853        lt_cv_prog_compiler_c_o_CXX=yes
16854      fi
16855    fi
16856    chmod u+w .
16857    $rm conftest*
16858    # SGI C++ compiler will create directory out/ii_files/ for
16859    # template instantiation
16860    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16861    $rm out/* && rmdir out
16862    cd ..
16863    rmdir conftest
16864    $rm conftest*
16865
16866 fi
16867 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16868 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16869
16870
16871 hard_links="nottested"
16872 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16873   # do not overwrite the value of need_locks provided by the user
16874   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16875 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16876   hard_links=yes
16877   $rm conftest*
16878   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16879   touch conftest.a
16880   ln conftest.a conftest.b 2>&5 || hard_links=no
16881   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16882   echo "$as_me:$LINENO: result: $hard_links" >&5
16883 echo "${ECHO_T}$hard_links" >&6
16884   if test "$hard_links" = no; then
16885     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16886 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16887     need_locks=warn
16888   fi
16889 else
16890   need_locks=no
16891 fi
16892
16893 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16894 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16895
16896   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16897   case $host_os in
16898   aix4* | aix5*)
16899     # If we're using GNU nm, then we don't want the "-C" option.
16900     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16901     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16902       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'
16903     else
16904       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'
16905     fi
16906     ;;
16907   pw32*)
16908     export_symbols_cmds_CXX="$ltdll_cmds"
16909   ;;
16910   cygwin* | mingw*)
16911     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16912   ;;
16913   *)
16914     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16915   ;;
16916   esac
16917
16918 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16919 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16920 test "$ld_shlibs_CXX" = no && can_build_shared=no
16921
16922 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16923 if test "$GCC" = yes; then
16924   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16925 fi
16926
16927 #
16928 # Do we need to explicitly link libc?
16929 #
16930 case "x$archive_cmds_need_lc_CXX" in
16931 x|xyes)
16932   # Assume -lc should be added
16933   archive_cmds_need_lc_CXX=yes
16934
16935   if test "$enable_shared" = yes && test "$GCC" = yes; then
16936     case $archive_cmds_CXX in
16937     *'~'*)
16938       # FIXME: we may have to deal with multi-command sequences.
16939       ;;
16940     '$CC '*)
16941       # Test whether the compiler implicitly links with -lc since on some
16942       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16943       # to ld, don't add -lc before -lgcc.
16944       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16945 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16946       $rm conftest*
16947       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16948
16949       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16950   (eval $ac_compile) 2>&5
16951   ac_status=$?
16952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953   (exit $ac_status); } 2>conftest.err; then
16954         soname=conftest
16955         lib=conftest
16956         libobjs=conftest.$ac_objext
16957         deplibs=
16958         wl=$lt_prog_compiler_wl_CXX
16959         compiler_flags=-v
16960         linker_flags=-v
16961         verstring=
16962         output_objdir=.
16963         libname=conftest
16964         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16965         allow_undefined_flag_CXX=
16966         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16967   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16968   ac_status=$?
16969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970   (exit $ac_status); }
16971         then
16972           archive_cmds_need_lc_CXX=no
16973         else
16974           archive_cmds_need_lc_CXX=yes
16975         fi
16976         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16977       else
16978         cat conftest.err 1>&5
16979       fi
16980       $rm conftest*
16981       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16982 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16983       ;;
16984     esac
16985   fi
16986   ;;
16987 esac
16988
16989 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16990 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16991 library_names_spec=
16992 libname_spec='lib$name'
16993 soname_spec=
16994 shrext_cmds=".so"
16995 postinstall_cmds=
16996 postuninstall_cmds=
16997 finish_cmds=
16998 finish_eval=
16999 shlibpath_var=
17000 shlibpath_overrides_runpath=unknown
17001 version_type=none
17002 dynamic_linker="$host_os ld.so"
17003 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17004 if test "$GCC" = yes; then
17005   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17006   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17007     # if the path contains ";" then we assume it to be the separator
17008     # otherwise default to the standard path separator (i.e. ":") - it is
17009     # assumed that no part of a normal pathname contains ";" but that should
17010     # okay in the real world where ";" in dirpaths is itself problematic.
17011     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17012   else
17013     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17014   fi
17015 else
17016   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17017 fi
17018 need_lib_prefix=unknown
17019 hardcode_into_libs=no
17020
17021 # when you set need_version to no, make sure it does not cause -set_version
17022 # flags to be left without arguments
17023 need_version=unknown
17024
17025 case $host_os in
17026 aix3*)
17027   version_type=linux
17028   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17029   shlibpath_var=LIBPATH
17030
17031   # AIX 3 has no versioning support, so we append a major version to the name.
17032   soname_spec='${libname}${release}${shared_ext}$major'
17033   ;;
17034
17035 aix4* | aix5*)
17036   version_type=linux
17037   need_lib_prefix=no
17038   need_version=no
17039   hardcode_into_libs=yes
17040   if test "$host_cpu" = ia64; then
17041     # AIX 5 supports IA64
17042     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17043     shlibpath_var=LD_LIBRARY_PATH
17044   else
17045     # With GCC up to 2.95.x, collect2 would create an import file
17046     # for dependence libraries.  The import file would start with
17047     # the line `#! .'.  This would cause the generated library to
17048     # depend on `.', always an invalid library.  This was fixed in
17049     # development snapshots of GCC prior to 3.0.
17050     case $host_os in
17051       aix4 | aix4.[01] | aix4.[01].*)
17052       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17053            echo ' yes '
17054            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17055         :
17056       else
17057         can_build_shared=no
17058       fi
17059       ;;
17060     esac
17061     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17062     # soname into executable. Probably we can add versioning support to
17063     # collect2, so additional links can be useful in future.
17064     if test "$aix_use_runtimelinking" = yes; then
17065       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17066       # instead of lib<name>.a to let people know that these are not
17067       # typical AIX shared libraries.
17068       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069     else
17070       # We preserve .a as extension for shared libraries through AIX4.2
17071       # and later when we are not doing run time linking.
17072       library_names_spec='${libname}${release}.a $libname.a'
17073       soname_spec='${libname}${release}${shared_ext}$major'
17074     fi
17075     shlibpath_var=LIBPATH
17076   fi
17077   ;;
17078
17079 amigaos*)
17080   library_names_spec='$libname.ixlibrary $libname.a'
17081   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17082   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'
17083   ;;
17084
17085 beos*)
17086   library_names_spec='${libname}${shared_ext}'
17087   dynamic_linker="$host_os ld.so"
17088   shlibpath_var=LIBRARY_PATH
17089   ;;
17090
17091 bsdi[45]*)
17092   version_type=linux
17093   need_version=no
17094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17095   soname_spec='${libname}${release}${shared_ext}$major'
17096   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17097   shlibpath_var=LD_LIBRARY_PATH
17098   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17099   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17100   # the default ld.so.conf also contains /usr/contrib/lib and
17101   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17102   # libtool to hard-code these into programs
17103   ;;
17104
17105 cygwin* | mingw* | pw32*)
17106   version_type=windows
17107   shrext_cmds=".dll"
17108   need_version=no
17109   need_lib_prefix=no
17110
17111   case $GCC,$host_os in
17112   yes,cygwin* | yes,mingw* | yes,pw32*)
17113     library_names_spec='$libname.dll.a'
17114     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17115     postinstall_cmds='base_file=`basename \${file}`~
17116       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17117       dldir=$destdir/`dirname \$dlpath`~
17118       test -d \$dldir || mkdir -p \$dldir~
17119       $install_prog $dir/$dlname \$dldir/$dlname'
17120     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17121       dlpath=$dir/\$dldll~
17122        $rm \$dlpath'
17123     shlibpath_overrides_runpath=yes
17124
17125     case $host_os in
17126     cygwin*)
17127       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17128       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17129       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17130       ;;
17131     mingw*)
17132       # MinGW DLLs use traditional 'lib' prefix
17133       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17134       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17135       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17136         # It is most probably a Windows format PATH printed by
17137         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17138         # path with ; separators, and with drive letters. We can handle the
17139         # drive letters (cygwin fileutils understands them), so leave them,
17140         # especially as we might pass files found there to a mingw objdump,
17141         # which wouldn't understand a cygwinified path. Ahh.
17142         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17143       else
17144         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17145       fi
17146       ;;
17147     pw32*)
17148       # pw32 DLLs use 'pw' prefix rather than 'lib'
17149       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17150       ;;
17151     esac
17152     ;;
17153
17154   *)
17155     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17156     ;;
17157   esac
17158   dynamic_linker='Win32 ld.exe'
17159   # FIXME: first we should search . and the directory the executable is in
17160   shlibpath_var=PATH
17161   ;;
17162
17163 darwin* | rhapsody*)
17164   dynamic_linker="$host_os dyld"
17165   version_type=darwin
17166   need_lib_prefix=no
17167   need_version=no
17168   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17169   soname_spec='${libname}${release}${major}$shared_ext'
17170   shlibpath_overrides_runpath=yes
17171   shlibpath_var=DYLD_LIBRARY_PATH
17172   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17173   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17174   if test "$GCC" = yes; then
17175     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"`
17176   else
17177     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17178   fi
17179   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17180   ;;
17181
17182 dgux*)
17183   version_type=linux
17184   need_lib_prefix=no
17185   need_version=no
17186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17187   soname_spec='${libname}${release}${shared_ext}$major'
17188   shlibpath_var=LD_LIBRARY_PATH
17189   ;;
17190
17191 freebsd1*)
17192   dynamic_linker=no
17193   ;;
17194
17195 kfreebsd*-gnu)
17196   version_type=linux
17197   need_lib_prefix=no
17198   need_version=no
17199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17200   soname_spec='${libname}${release}${shared_ext}$major'
17201   shlibpath_var=LD_LIBRARY_PATH
17202   shlibpath_overrides_runpath=no
17203   hardcode_into_libs=yes
17204   dynamic_linker='GNU ld.so'
17205   ;;
17206
17207 freebsd*)
17208   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17209   version_type=freebsd-$objformat
17210   case $version_type in
17211     freebsd-elf*)
17212       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17213       need_version=no
17214       need_lib_prefix=no
17215       ;;
17216     freebsd-*)
17217       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17218       need_version=yes
17219       ;;
17220   esac
17221   shlibpath_var=LD_LIBRARY_PATH
17222   case $host_os in
17223   freebsd2*)
17224     shlibpath_overrides_runpath=yes
17225     ;;
17226   freebsd3.01* | freebsdelf3.01*)
17227     shlibpath_overrides_runpath=yes
17228     hardcode_into_libs=yes
17229     ;;
17230   *) # from 3.2 on
17231     shlibpath_overrides_runpath=no
17232     hardcode_into_libs=yes
17233     ;;
17234   esac
17235   ;;
17236
17237 gnu*)
17238   version_type=linux
17239   need_lib_prefix=no
17240   need_version=no
17241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17242   soname_spec='${libname}${release}${shared_ext}$major'
17243   shlibpath_var=LD_LIBRARY_PATH
17244   hardcode_into_libs=yes
17245   ;;
17246
17247 hpux9* | hpux10* | hpux11*)
17248   # Give a soname corresponding to the major version so that dld.sl refuses to
17249   # link against other versions.
17250   version_type=sunos
17251   need_lib_prefix=no
17252   need_version=no
17253   case "$host_cpu" in
17254   ia64*)
17255     shrext_cmds='.so'
17256     hardcode_into_libs=yes
17257     dynamic_linker="$host_os dld.so"
17258     shlibpath_var=LD_LIBRARY_PATH
17259     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17260     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17261     soname_spec='${libname}${release}${shared_ext}$major'
17262     if test "X$HPUX_IA64_MODE" = X32; then
17263       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17264     else
17265       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17266     fi
17267     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17268     ;;
17269    hppa*64*)
17270      shrext_cmds='.sl'
17271      hardcode_into_libs=yes
17272      dynamic_linker="$host_os dld.sl"
17273      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17274      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17275      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17276      soname_spec='${libname}${release}${shared_ext}$major'
17277      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17278      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17279      ;;
17280    *)
17281     shrext_cmds='.sl'
17282     dynamic_linker="$host_os dld.sl"
17283     shlibpath_var=SHLIB_PATH
17284     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17285     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17286     soname_spec='${libname}${release}${shared_ext}$major'
17287     ;;
17288   esac
17289   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17290   postinstall_cmds='chmod 555 $lib'
17291   ;;
17292
17293 irix5* | irix6* | nonstopux*)
17294   case $host_os in
17295     nonstopux*) version_type=nonstopux ;;
17296     *)
17297         if test "$lt_cv_prog_gnu_ld" = yes; then
17298                 version_type=linux
17299         else
17300                 version_type=irix
17301         fi ;;
17302   esac
17303   need_lib_prefix=no
17304   need_version=no
17305   soname_spec='${libname}${release}${shared_ext}$major'
17306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17307   case $host_os in
17308   irix5* | nonstopux*)
17309     libsuff= shlibsuff=
17310     ;;
17311   *)
17312     case $LD in # libtool.m4 will add one of these switches to LD
17313     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17314       libsuff= shlibsuff= libmagic=32-bit;;
17315     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17316       libsuff=32 shlibsuff=N32 libmagic=N32;;
17317     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17318       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17319     *) libsuff= shlibsuff= libmagic=never-match;;
17320     esac
17321     ;;
17322   esac
17323   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17324   shlibpath_overrides_runpath=no
17325   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17326   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17327   hardcode_into_libs=yes
17328   ;;
17329
17330 # No shared lib support for Linux oldld, aout, or coff.
17331 linux*oldld* | linux*aout* | linux*coff*)
17332   dynamic_linker=no
17333   ;;
17334
17335 # This must be Linux ELF.
17336 linux*)
17337   version_type=linux
17338   need_lib_prefix=no
17339   need_version=no
17340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17341   soname_spec='${libname}${release}${shared_ext}$major'
17342   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17343   shlibpath_var=LD_LIBRARY_PATH
17344   shlibpath_overrides_runpath=no
17345   # This implies no fast_install, which is unacceptable.
17346   # Some rework will be needed to allow for fast_install
17347   # before this can be enabled.
17348   hardcode_into_libs=yes
17349
17350   # Append ld.so.conf contents to the search path
17351   if test -f /etc/ld.so.conf; then
17352     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17353     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17354   fi
17355
17356   # We used to test for /lib/ld.so.1 and disable shared libraries on
17357   # powerpc, because MkLinux only supported shared libraries with the
17358   # GNU dynamic linker.  Since this was broken with cross compilers,
17359   # most powerpc-linux boxes support dynamic linking these days and
17360   # people can always --disable-shared, the test was removed, and we
17361   # assume the GNU/Linux dynamic linker is in use.
17362   dynamic_linker='GNU/Linux ld.so'
17363   ;;
17364
17365 knetbsd*-gnu)
17366   version_type=linux
17367   need_lib_prefix=no
17368   need_version=no
17369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17370   soname_spec='${libname}${release}${shared_ext}$major'
17371   shlibpath_var=LD_LIBRARY_PATH
17372   shlibpath_overrides_runpath=no
17373   hardcode_into_libs=yes
17374   dynamic_linker='GNU ld.so'
17375   ;;
17376
17377 netbsd*)
17378   version_type=sunos
17379   need_lib_prefix=no
17380   need_version=no
17381   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17382     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17383     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17384     dynamic_linker='NetBSD (a.out) ld.so'
17385   else
17386     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17387     soname_spec='${libname}${release}${shared_ext}$major'
17388     dynamic_linker='NetBSD ld.elf_so'
17389   fi
17390   shlibpath_var=LD_LIBRARY_PATH
17391   shlibpath_overrides_runpath=yes
17392   hardcode_into_libs=yes
17393   ;;
17394
17395 newsos6)
17396   version_type=linux
17397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17398   shlibpath_var=LD_LIBRARY_PATH
17399   shlibpath_overrides_runpath=yes
17400   ;;
17401
17402 nto-qnx*)
17403   version_type=linux
17404   need_lib_prefix=no
17405   need_version=no
17406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17407   soname_spec='${libname}${release}${shared_ext}$major'
17408   shlibpath_var=LD_LIBRARY_PATH
17409   shlibpath_overrides_runpath=yes
17410   ;;
17411
17412 openbsd*)
17413   version_type=sunos
17414   need_lib_prefix=no
17415   need_version=no
17416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17417   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17418   shlibpath_var=LD_LIBRARY_PATH
17419   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17420     case $host_os in
17421       openbsd2.[89] | openbsd2.[89].*)
17422         shlibpath_overrides_runpath=no
17423         ;;
17424       *)
17425         shlibpath_overrides_runpath=yes
17426         ;;
17427       esac
17428   else
17429     shlibpath_overrides_runpath=yes
17430   fi
17431   ;;
17432
17433 os2*)
17434   libname_spec='$name'
17435   shrext_cmds=".dll"
17436   need_lib_prefix=no
17437   library_names_spec='$libname${shared_ext} $libname.a'
17438   dynamic_linker='OS/2 ld.exe'
17439   shlibpath_var=LIBPATH
17440   ;;
17441
17442 osf3* | osf4* | osf5*)
17443   version_type=osf
17444   need_lib_prefix=no
17445   need_version=no
17446   soname_spec='${libname}${release}${shared_ext}$major'
17447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17448   shlibpath_var=LD_LIBRARY_PATH
17449   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17450   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17451   ;;
17452
17453 sco3.2v5*)
17454   version_type=osf
17455   soname_spec='${libname}${release}${shared_ext}$major'
17456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17457   shlibpath_var=LD_LIBRARY_PATH
17458   ;;
17459
17460 solaris*)
17461   version_type=linux
17462   need_lib_prefix=no
17463   need_version=no
17464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17465   soname_spec='${libname}${release}${shared_ext}$major'
17466   shlibpath_var=LD_LIBRARY_PATH
17467   shlibpath_overrides_runpath=yes
17468   hardcode_into_libs=yes
17469   # ldd complains unless libraries are executable
17470   postinstall_cmds='chmod +x $lib'
17471   ;;
17472
17473 sunos4*)
17474   version_type=sunos
17475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17476   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17477   shlibpath_var=LD_LIBRARY_PATH
17478   shlibpath_overrides_runpath=yes
17479   if test "$with_gnu_ld" = yes; then
17480     need_lib_prefix=no
17481   fi
17482   need_version=yes
17483   ;;
17484
17485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17486   version_type=linux
17487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17488   soname_spec='${libname}${release}${shared_ext}$major'
17489   shlibpath_var=LD_LIBRARY_PATH
17490   case $host_vendor in
17491     sni)
17492       shlibpath_overrides_runpath=no
17493       need_lib_prefix=no
17494       export_dynamic_flag_spec='${wl}-Blargedynsym'
17495       runpath_var=LD_RUN_PATH
17496       ;;
17497     siemens)
17498       need_lib_prefix=no
17499       ;;
17500     motorola)
17501       need_lib_prefix=no
17502       need_version=no
17503       shlibpath_overrides_runpath=no
17504       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17505       ;;
17506   esac
17507   ;;
17508
17509 sysv4*MP*)
17510   if test -d /usr/nec ;then
17511     version_type=linux
17512     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17513     soname_spec='$libname${shared_ext}.$major'
17514     shlibpath_var=LD_LIBRARY_PATH
17515   fi
17516   ;;
17517
17518 uts4*)
17519   version_type=linux
17520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17521   soname_spec='${libname}${release}${shared_ext}$major'
17522   shlibpath_var=LD_LIBRARY_PATH
17523   ;;
17524
17525 *)
17526   dynamic_linker=no
17527   ;;
17528 esac
17529 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17530 echo "${ECHO_T}$dynamic_linker" >&6
17531 test "$dynamic_linker" = no && can_build_shared=no
17532
17533 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17534 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17535 hardcode_action_CXX=
17536 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17537    test -n "$runpath_var_CXX" || \
17538    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17539
17540   # We can hardcode non-existant directories.
17541   if test "$hardcode_direct_CXX" != no &&
17542      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17543      # have to relink, otherwise we might link with an installed library
17544      # when we should be linking with a yet-to-be-installed one
17545      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17546      test "$hardcode_minus_L_CXX" != no; then
17547     # Linking always hardcodes the temporary library directory.
17548     hardcode_action_CXX=relink
17549   else
17550     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17551     hardcode_action_CXX=immediate
17552   fi
17553 else
17554   # We cannot hardcode anything, or else we can only hardcode existing
17555   # directories.
17556   hardcode_action_CXX=unsupported
17557 fi
17558 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17559 echo "${ECHO_T}$hardcode_action_CXX" >&6
17560
17561 if test "$hardcode_action_CXX" = relink; then
17562   # Fast installation is not supported
17563   enable_fast_install=no
17564 elif test "$shlibpath_overrides_runpath" = yes ||
17565      test "$enable_shared" = no; then
17566   # Fast installation is not necessary
17567   enable_fast_install=needless
17568 fi
17569
17570 striplib=
17571 old_striplib=
17572 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17573 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17574 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17575   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17576   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17577   echo "$as_me:$LINENO: result: yes" >&5
17578 echo "${ECHO_T}yes" >&6
17579 else
17580 # FIXME - insert some real tests, host_os isn't really good enough
17581   case $host_os in
17582    darwin*)
17583        if test -n "$STRIP" ; then
17584          striplib="$STRIP -x"
17585          echo "$as_me:$LINENO: result: yes" >&5
17586 echo "${ECHO_T}yes" >&6
17587        else
17588   echo "$as_me:$LINENO: result: no" >&5
17589 echo "${ECHO_T}no" >&6
17590 fi
17591        ;;
17592    *)
17593   echo "$as_me:$LINENO: result: no" >&5
17594 echo "${ECHO_T}no" >&6
17595     ;;
17596   esac
17597 fi
17598
17599 if test "x$enable_dlopen" != xyes; then
17600   enable_dlopen=unknown
17601   enable_dlopen_self=unknown
17602   enable_dlopen_self_static=unknown
17603 else
17604   lt_cv_dlopen=no
17605   lt_cv_dlopen_libs=
17606
17607   case $host_os in
17608   beos*)
17609     lt_cv_dlopen="load_add_on"
17610     lt_cv_dlopen_libs=
17611     lt_cv_dlopen_self=yes
17612     ;;
17613
17614   mingw* | pw32*)
17615     lt_cv_dlopen="LoadLibrary"
17616     lt_cv_dlopen_libs=
17617    ;;
17618
17619   cygwin*)
17620     lt_cv_dlopen="dlopen"
17621     lt_cv_dlopen_libs=
17622    ;;
17623
17624   darwin*)
17625   # if libdl is installed we need to link against it
17626     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17627 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17629   echo $ECHO_N "(cached) $ECHO_C" >&6
17630 else
17631   ac_check_lib_save_LIBS=$LIBS
17632 LIBS="-ldl  $LIBS"
17633 cat >conftest.$ac_ext <<_ACEOF
17634 /* confdefs.h.  */
17635 _ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h.  */
17639
17640 /* Override any gcc2 internal prototype to avoid an error.  */
17641 #ifdef __cplusplus
17642 extern "C"
17643 #endif
17644 /* We use char because int might match the return type of a gcc2
17645    builtin and then its argument prototype would still apply.  */
17646 char dlopen ();
17647 int
17648 main ()
17649 {
17650 dlopen ();
17651   ;
17652   return 0;
17653 }
17654 _ACEOF
17655 rm -f conftest.$ac_objext conftest$ac_exeext
17656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17657   (eval $ac_link) 2>conftest.er1
17658   ac_status=$?
17659   grep -v '^ *+' conftest.er1 >conftest.err
17660   rm -f conftest.er1
17661   cat conftest.err >&5
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); } &&
17664          { ac_try='test -z "$ac_cxx_werror_flag"
17665                          || test ! -s conftest.err'
17666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667   (eval $ac_try) 2>&5
17668   ac_status=$?
17669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670   (exit $ac_status); }; } &&
17671          { ac_try='test -s conftest$ac_exeext'
17672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17673   (eval $ac_try) 2>&5
17674   ac_status=$?
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); }; }; then
17677   ac_cv_lib_dl_dlopen=yes
17678 else
17679   echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17681
17682 ac_cv_lib_dl_dlopen=no
17683 fi
17684 rm -f conftest.err conftest.$ac_objext \
17685       conftest$ac_exeext conftest.$ac_ext
17686 LIBS=$ac_check_lib_save_LIBS
17687 fi
17688 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17689 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17690 if test $ac_cv_lib_dl_dlopen = yes; then
17691   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17692 else
17693
17694     lt_cv_dlopen="dyld"
17695     lt_cv_dlopen_libs=
17696     lt_cv_dlopen_self=yes
17697
17698 fi
17699
17700    ;;
17701
17702   *)
17703     echo "$as_me:$LINENO: checking for shl_load" >&5
17704 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17705 if test "${ac_cv_func_shl_load+set}" = set; then
17706   echo $ECHO_N "(cached) $ECHO_C" >&6
17707 else
17708   cat >conftest.$ac_ext <<_ACEOF
17709 /* confdefs.h.  */
17710 _ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h.  */
17714 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17716 #define shl_load innocuous_shl_load
17717
17718 /* System header to define __stub macros and hopefully few prototypes,
17719     which can conflict with char shl_load (); below.
17720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17721     <limits.h> exists even on freestanding compilers.  */
17722
17723 #ifdef __STDC__
17724 # include <limits.h>
17725 #else
17726 # include <assert.h>
17727 #endif
17728
17729 #undef shl_load
17730
17731 /* Override any gcc2 internal prototype to avoid an error.  */
17732 #ifdef __cplusplus
17733 extern "C"
17734 {
17735 #endif
17736 /* We use char because int might match the return type of a gcc2
17737    builtin and then its argument prototype would still apply.  */
17738 char shl_load ();
17739 /* The GNU C library defines this for functions which it implements
17740     to always fail with ENOSYS.  Some functions are actually named
17741     something starting with __ and the normal name is an alias.  */
17742 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17743 choke me
17744 #else
17745 char (*f) () = shl_load;
17746 #endif
17747 #ifdef __cplusplus
17748 }
17749 #endif
17750
17751 int
17752 main ()
17753 {
17754 return f != shl_load;
17755   ;
17756   return 0;
17757 }
17758 _ACEOF
17759 rm -f conftest.$ac_objext conftest$ac_exeext
17760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17761   (eval $ac_link) 2>conftest.er1
17762   ac_status=$?
17763   grep -v '^ *+' conftest.er1 >conftest.err
17764   rm -f conftest.er1
17765   cat conftest.err >&5
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); } &&
17768          { ac_try='test -z "$ac_cxx_werror_flag"
17769                          || test ! -s conftest.err'
17770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771   (eval $ac_try) 2>&5
17772   ac_status=$?
17773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774   (exit $ac_status); }; } &&
17775          { ac_try='test -s conftest$ac_exeext'
17776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777   (eval $ac_try) 2>&5
17778   ac_status=$?
17779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780   (exit $ac_status); }; }; then
17781   ac_cv_func_shl_load=yes
17782 else
17783   echo "$as_me: failed program was:" >&5
17784 sed 's/^/| /' conftest.$ac_ext >&5
17785
17786 ac_cv_func_shl_load=no
17787 fi
17788 rm -f conftest.err conftest.$ac_objext \
17789       conftest$ac_exeext conftest.$ac_ext
17790 fi
17791 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17792 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17793 if test $ac_cv_func_shl_load = yes; then
17794   lt_cv_dlopen="shl_load"
17795 else
17796   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17797 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17798 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17799   echo $ECHO_N "(cached) $ECHO_C" >&6
17800 else
17801   ac_check_lib_save_LIBS=$LIBS
17802 LIBS="-ldld  $LIBS"
17803 cat >conftest.$ac_ext <<_ACEOF
17804 /* confdefs.h.  */
17805 _ACEOF
17806 cat confdefs.h >>conftest.$ac_ext
17807 cat >>conftest.$ac_ext <<_ACEOF
17808 /* end confdefs.h.  */
17809
17810 /* Override any gcc2 internal prototype to avoid an error.  */
17811 #ifdef __cplusplus
17812 extern "C"
17813 #endif
17814 /* We use char because int might match the return type of a gcc2
17815    builtin and then its argument prototype would still apply.  */
17816 char shl_load ();
17817 int
17818 main ()
17819 {
17820 shl_load ();
17821   ;
17822   return 0;
17823 }
17824 _ACEOF
17825 rm -f conftest.$ac_objext conftest$ac_exeext
17826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17827   (eval $ac_link) 2>conftest.er1
17828   ac_status=$?
17829   grep -v '^ *+' conftest.er1 >conftest.err
17830   rm -f conftest.er1
17831   cat conftest.err >&5
17832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833   (exit $ac_status); } &&
17834          { ac_try='test -z "$ac_cxx_werror_flag"
17835                          || test ! -s conftest.err'
17836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837   (eval $ac_try) 2>&5
17838   ac_status=$?
17839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840   (exit $ac_status); }; } &&
17841          { ac_try='test -s conftest$ac_exeext'
17842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843   (eval $ac_try) 2>&5
17844   ac_status=$?
17845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846   (exit $ac_status); }; }; then
17847   ac_cv_lib_dld_shl_load=yes
17848 else
17849   echo "$as_me: failed program was:" >&5
17850 sed 's/^/| /' conftest.$ac_ext >&5
17851
17852 ac_cv_lib_dld_shl_load=no
17853 fi
17854 rm -f conftest.err conftest.$ac_objext \
17855       conftest$ac_exeext conftest.$ac_ext
17856 LIBS=$ac_check_lib_save_LIBS
17857 fi
17858 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17859 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17860 if test $ac_cv_lib_dld_shl_load = yes; then
17861   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17862 else
17863   echo "$as_me:$LINENO: checking for dlopen" >&5
17864 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17865 if test "${ac_cv_func_dlopen+set}" = set; then
17866   echo $ECHO_N "(cached) $ECHO_C" >&6
17867 else
17868   cat >conftest.$ac_ext <<_ACEOF
17869 /* confdefs.h.  */
17870 _ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h.  */
17874 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17876 #define dlopen innocuous_dlopen
17877
17878 /* System header to define __stub macros and hopefully few prototypes,
17879     which can conflict with char dlopen (); below.
17880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17881     <limits.h> exists even on freestanding compilers.  */
17882
17883 #ifdef __STDC__
17884 # include <limits.h>
17885 #else
17886 # include <assert.h>
17887 #endif
17888
17889 #undef dlopen
17890
17891 /* Override any gcc2 internal prototype to avoid an error.  */
17892 #ifdef __cplusplus
17893 extern "C"
17894 {
17895 #endif
17896 /* We use char because int might match the return type of a gcc2
17897    builtin and then its argument prototype would still apply.  */
17898 char dlopen ();
17899 /* The GNU C library defines this for functions which it implements
17900     to always fail with ENOSYS.  Some functions are actually named
17901     something starting with __ and the normal name is an alias.  */
17902 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17903 choke me
17904 #else
17905 char (*f) () = dlopen;
17906 #endif
17907 #ifdef __cplusplus
17908 }
17909 #endif
17910
17911 int
17912 main ()
17913 {
17914 return f != dlopen;
17915   ;
17916   return 0;
17917 }
17918 _ACEOF
17919 rm -f conftest.$ac_objext conftest$ac_exeext
17920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17921   (eval $ac_link) 2>conftest.er1
17922   ac_status=$?
17923   grep -v '^ *+' conftest.er1 >conftest.err
17924   rm -f conftest.er1
17925   cat conftest.err >&5
17926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927   (exit $ac_status); } &&
17928          { ac_try='test -z "$ac_cxx_werror_flag"
17929                          || test ! -s conftest.err'
17930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931   (eval $ac_try) 2>&5
17932   ac_status=$?
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); }; } &&
17935          { ac_try='test -s conftest$ac_exeext'
17936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937   (eval $ac_try) 2>&5
17938   ac_status=$?
17939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940   (exit $ac_status); }; }; then
17941   ac_cv_func_dlopen=yes
17942 else
17943   echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17945
17946 ac_cv_func_dlopen=no
17947 fi
17948 rm -f conftest.err conftest.$ac_objext \
17949       conftest$ac_exeext conftest.$ac_ext
17950 fi
17951 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17952 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17953 if test $ac_cv_func_dlopen = yes; then
17954   lt_cv_dlopen="dlopen"
17955 else
17956   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17957 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17958 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17959   echo $ECHO_N "(cached) $ECHO_C" >&6
17960 else
17961   ac_check_lib_save_LIBS=$LIBS
17962 LIBS="-ldl  $LIBS"
17963 cat >conftest.$ac_ext <<_ACEOF
17964 /* confdefs.h.  */
17965 _ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h.  */
17969
17970 /* Override any gcc2 internal prototype to avoid an error.  */
17971 #ifdef __cplusplus
17972 extern "C"
17973 #endif
17974 /* We use char because int might match the return type of a gcc2
17975    builtin and then its argument prototype would still apply.  */
17976 char dlopen ();
17977 int
17978 main ()
17979 {
17980 dlopen ();
17981   ;
17982   return 0;
17983 }
17984 _ACEOF
17985 rm -f conftest.$ac_objext conftest$ac_exeext
17986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17987   (eval $ac_link) 2>conftest.er1
17988   ac_status=$?
17989   grep -v '^ *+' conftest.er1 >conftest.err
17990   rm -f conftest.er1
17991   cat conftest.err >&5
17992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993   (exit $ac_status); } &&
17994          { ac_try='test -z "$ac_cxx_werror_flag"
17995                          || test ! -s conftest.err'
17996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997   (eval $ac_try) 2>&5
17998   ac_status=$?
17999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); }; } &&
18001          { ac_try='test -s conftest$ac_exeext'
18002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003   (eval $ac_try) 2>&5
18004   ac_status=$?
18005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006   (exit $ac_status); }; }; then
18007   ac_cv_lib_dl_dlopen=yes
18008 else
18009   echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18011
18012 ac_cv_lib_dl_dlopen=no
18013 fi
18014 rm -f conftest.err conftest.$ac_objext \
18015       conftest$ac_exeext conftest.$ac_ext
18016 LIBS=$ac_check_lib_save_LIBS
18017 fi
18018 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18019 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18020 if test $ac_cv_lib_dl_dlopen = yes; then
18021   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18022 else
18023   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18024 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18025 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18026   echo $ECHO_N "(cached) $ECHO_C" >&6
18027 else
18028   ac_check_lib_save_LIBS=$LIBS
18029 LIBS="-lsvld  $LIBS"
18030 cat >conftest.$ac_ext <<_ACEOF
18031 /* confdefs.h.  */
18032 _ACEOF
18033 cat confdefs.h >>conftest.$ac_ext
18034 cat >>conftest.$ac_ext <<_ACEOF
18035 /* end confdefs.h.  */
18036
18037 /* Override any gcc2 internal prototype to avoid an error.  */
18038 #ifdef __cplusplus
18039 extern "C"
18040 #endif
18041 /* We use char because int might match the return type of a gcc2
18042    builtin and then its argument prototype would still apply.  */
18043 char dlopen ();
18044 int
18045 main ()
18046 {
18047 dlopen ();
18048   ;
18049   return 0;
18050 }
18051 _ACEOF
18052 rm -f conftest.$ac_objext conftest$ac_exeext
18053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18054   (eval $ac_link) 2>conftest.er1
18055   ac_status=$?
18056   grep -v '^ *+' conftest.er1 >conftest.err
18057   rm -f conftest.er1
18058   cat conftest.err >&5
18059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060   (exit $ac_status); } &&
18061          { ac_try='test -z "$ac_cxx_werror_flag"
18062                          || test ! -s conftest.err'
18063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064   (eval $ac_try) 2>&5
18065   ac_status=$?
18066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067   (exit $ac_status); }; } &&
18068          { ac_try='test -s conftest$ac_exeext'
18069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070   (eval $ac_try) 2>&5
18071   ac_status=$?
18072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073   (exit $ac_status); }; }; then
18074   ac_cv_lib_svld_dlopen=yes
18075 else
18076   echo "$as_me: failed program was:" >&5
18077 sed 's/^/| /' conftest.$ac_ext >&5
18078
18079 ac_cv_lib_svld_dlopen=no
18080 fi
18081 rm -f conftest.err conftest.$ac_objext \
18082       conftest$ac_exeext conftest.$ac_ext
18083 LIBS=$ac_check_lib_save_LIBS
18084 fi
18085 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18086 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18087 if test $ac_cv_lib_svld_dlopen = yes; then
18088   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18089 else
18090   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18091 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18092 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18093   echo $ECHO_N "(cached) $ECHO_C" >&6
18094 else
18095   ac_check_lib_save_LIBS=$LIBS
18096 LIBS="-ldld  $LIBS"
18097 cat >conftest.$ac_ext <<_ACEOF
18098 /* confdefs.h.  */
18099 _ACEOF
18100 cat confdefs.h >>conftest.$ac_ext
18101 cat >>conftest.$ac_ext <<_ACEOF
18102 /* end confdefs.h.  */
18103
18104 /* Override any gcc2 internal prototype to avoid an error.  */
18105 #ifdef __cplusplus
18106 extern "C"
18107 #endif
18108 /* We use char because int might match the return type of a gcc2
18109    builtin and then its argument prototype would still apply.  */
18110 char dld_link ();
18111 int
18112 main ()
18113 {
18114 dld_link ();
18115   ;
18116   return 0;
18117 }
18118 _ACEOF
18119 rm -f conftest.$ac_objext conftest$ac_exeext
18120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18121   (eval $ac_link) 2>conftest.er1
18122   ac_status=$?
18123   grep -v '^ *+' conftest.er1 >conftest.err
18124   rm -f conftest.er1
18125   cat conftest.err >&5
18126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127   (exit $ac_status); } &&
18128          { ac_try='test -z "$ac_cxx_werror_flag"
18129                          || test ! -s conftest.err'
18130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131   (eval $ac_try) 2>&5
18132   ac_status=$?
18133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134   (exit $ac_status); }; } &&
18135          { ac_try='test -s conftest$ac_exeext'
18136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18137   (eval $ac_try) 2>&5
18138   ac_status=$?
18139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140   (exit $ac_status); }; }; then
18141   ac_cv_lib_dld_dld_link=yes
18142 else
18143   echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18145
18146 ac_cv_lib_dld_dld_link=no
18147 fi
18148 rm -f conftest.err conftest.$ac_objext \
18149       conftest$ac_exeext conftest.$ac_ext
18150 LIBS=$ac_check_lib_save_LIBS
18151 fi
18152 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18153 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18154 if test $ac_cv_lib_dld_dld_link = yes; then
18155   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18156 fi
18157
18158
18159 fi
18160
18161
18162 fi
18163
18164
18165 fi
18166
18167
18168 fi
18169
18170
18171 fi
18172
18173     ;;
18174   esac
18175
18176   if test "x$lt_cv_dlopen" != xno; then
18177     enable_dlopen=yes
18178   else
18179     enable_dlopen=no
18180   fi
18181
18182   case $lt_cv_dlopen in
18183   dlopen)
18184     save_CPPFLAGS="$CPPFLAGS"
18185     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18186
18187     save_LDFLAGS="$LDFLAGS"
18188     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18189
18190     save_LIBS="$LIBS"
18191     LIBS="$lt_cv_dlopen_libs $LIBS"
18192
18193     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18194 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18195 if test "${lt_cv_dlopen_self+set}" = set; then
18196   echo $ECHO_N "(cached) $ECHO_C" >&6
18197 else
18198           if test "$cross_compiling" = yes; then :
18199   lt_cv_dlopen_self=cross
18200 else
18201   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18202   lt_status=$lt_dlunknown
18203   cat > conftest.$ac_ext <<EOF
18204 #line 18204 "configure"
18205 #include "confdefs.h"
18206
18207 #if HAVE_DLFCN_H
18208 #include <dlfcn.h>
18209 #endif
18210
18211 #include <stdio.h>
18212
18213 #ifdef RTLD_GLOBAL
18214 #  define LT_DLGLOBAL           RTLD_GLOBAL
18215 #else
18216 #  ifdef DL_GLOBAL
18217 #    define LT_DLGLOBAL         DL_GLOBAL
18218 #  else
18219 #    define LT_DLGLOBAL         0
18220 #  endif
18221 #endif
18222
18223 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18224    find out it does not work in some platform. */
18225 #ifndef LT_DLLAZY_OR_NOW
18226 #  ifdef RTLD_LAZY
18227 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18228 #  else
18229 #    ifdef DL_LAZY
18230 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18231 #    else
18232 #      ifdef RTLD_NOW
18233 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18234 #      else
18235 #        ifdef DL_NOW
18236 #          define LT_DLLAZY_OR_NOW      DL_NOW
18237 #        else
18238 #          define LT_DLLAZY_OR_NOW      0
18239 #        endif
18240 #      endif
18241 #    endif
18242 #  endif
18243 #endif
18244
18245 #ifdef __cplusplus
18246 extern "C" void exit (int);
18247 #endif
18248
18249 void fnord() { int i=42;}
18250 int main ()
18251 {
18252   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18253   int status = $lt_dlunknown;
18254
18255   if (self)
18256     {
18257       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18258       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18259       /* dlclose (self); */
18260     }
18261
18262     exit (status);
18263 }
18264 EOF
18265   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18266   (eval $ac_link) 2>&5
18267   ac_status=$?
18268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18270     (./conftest; exit; ) 2>/dev/null
18271     lt_status=$?
18272     case x$lt_status in
18273       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18274       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18275       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18276     esac
18277   else :
18278     # compilation failed
18279     lt_cv_dlopen_self=no
18280   fi
18281 fi
18282 rm -fr conftest*
18283
18284
18285 fi
18286 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18287 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18288
18289     if test "x$lt_cv_dlopen_self" = xyes; then
18290       LDFLAGS="$LDFLAGS $link_static_flag"
18291       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18292 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18293 if test "${lt_cv_dlopen_self_static+set}" = set; then
18294   echo $ECHO_N "(cached) $ECHO_C" >&6
18295 else
18296           if test "$cross_compiling" = yes; then :
18297   lt_cv_dlopen_self_static=cross
18298 else
18299   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18300   lt_status=$lt_dlunknown
18301   cat > conftest.$ac_ext <<EOF
18302 #line 18302 "configure"
18303 #include "confdefs.h"
18304
18305 #if HAVE_DLFCN_H
18306 #include <dlfcn.h>
18307 #endif
18308
18309 #include <stdio.h>
18310
18311 #ifdef RTLD_GLOBAL
18312 #  define LT_DLGLOBAL           RTLD_GLOBAL
18313 #else
18314 #  ifdef DL_GLOBAL
18315 #    define LT_DLGLOBAL         DL_GLOBAL
18316 #  else
18317 #    define LT_DLGLOBAL         0
18318 #  endif
18319 #endif
18320
18321 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18322    find out it does not work in some platform. */
18323 #ifndef LT_DLLAZY_OR_NOW
18324 #  ifdef RTLD_LAZY
18325 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18326 #  else
18327 #    ifdef DL_LAZY
18328 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18329 #    else
18330 #      ifdef RTLD_NOW
18331 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18332 #      else
18333 #        ifdef DL_NOW
18334 #          define LT_DLLAZY_OR_NOW      DL_NOW
18335 #        else
18336 #          define LT_DLLAZY_OR_NOW      0
18337 #        endif
18338 #      endif
18339 #    endif
18340 #  endif
18341 #endif
18342
18343 #ifdef __cplusplus
18344 extern "C" void exit (int);
18345 #endif
18346
18347 void fnord() { int i=42;}
18348 int main ()
18349 {
18350   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18351   int status = $lt_dlunknown;
18352
18353   if (self)
18354     {
18355       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18356       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18357       /* dlclose (self); */
18358     }
18359
18360     exit (status);
18361 }
18362 EOF
18363   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18364   (eval $ac_link) 2>&5
18365   ac_status=$?
18366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18368     (./conftest; exit; ) 2>/dev/null
18369     lt_status=$?
18370     case x$lt_status in
18371       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18372       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18373       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18374     esac
18375   else :
18376     # compilation failed
18377     lt_cv_dlopen_self_static=no
18378   fi
18379 fi
18380 rm -fr conftest*
18381
18382
18383 fi
18384 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18385 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18386     fi
18387
18388     CPPFLAGS="$save_CPPFLAGS"
18389     LDFLAGS="$save_LDFLAGS"
18390     LIBS="$save_LIBS"
18391     ;;
18392   esac
18393
18394   case $lt_cv_dlopen_self in
18395   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18396   *) enable_dlopen_self=unknown ;;
18397   esac
18398
18399   case $lt_cv_dlopen_self_static in
18400   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18401   *) enable_dlopen_self_static=unknown ;;
18402   esac
18403 fi
18404
18405
18406 # The else clause should only fire when bootstrapping the
18407 # libtool distribution, otherwise you forgot to ship ltmain.sh
18408 # with your package, and you will get complaints that there are
18409 # no rules to generate ltmain.sh.
18410 if test -f "$ltmain"; then
18411   # See if we are running on zsh, and set the options which allow our commands through
18412   # without removal of \ escapes.
18413   if test -n "${ZSH_VERSION+set}" ; then
18414     setopt NO_GLOB_SUBST
18415   fi
18416   # Now quote all the things that may contain metacharacters while being
18417   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18418   # variables and quote the copies for generation of the libtool script.
18419   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18420     SED SHELL STRIP \
18421     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18422     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18423     deplibs_check_method reload_flag reload_cmds need_locks \
18424     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18425     lt_cv_sys_global_symbol_to_c_name_address \
18426     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18427     old_postinstall_cmds old_postuninstall_cmds \
18428     compiler_CXX \
18429     CC_CXX \
18430     LD_CXX \
18431     lt_prog_compiler_wl_CXX \
18432     lt_prog_compiler_pic_CXX \
18433     lt_prog_compiler_static_CXX \
18434     lt_prog_compiler_no_builtin_flag_CXX \
18435     export_dynamic_flag_spec_CXX \
18436     thread_safe_flag_spec_CXX \
18437     whole_archive_flag_spec_CXX \
18438     enable_shared_with_static_runtimes_CXX \
18439     old_archive_cmds_CXX \
18440     old_archive_from_new_cmds_CXX \
18441     predep_objects_CXX \
18442     postdep_objects_CXX \
18443     predeps_CXX \
18444     postdeps_CXX \
18445     compiler_lib_search_path_CXX \
18446     archive_cmds_CXX \
18447     archive_expsym_cmds_CXX \
18448     postinstall_cmds_CXX \
18449     postuninstall_cmds_CXX \
18450     old_archive_from_expsyms_cmds_CXX \
18451     allow_undefined_flag_CXX \
18452     no_undefined_flag_CXX \
18453     export_symbols_cmds_CXX \
18454     hardcode_libdir_flag_spec_CXX \
18455     hardcode_libdir_flag_spec_ld_CXX \
18456     hardcode_libdir_separator_CXX \
18457     hardcode_automatic_CXX \
18458     module_cmds_CXX \
18459     module_expsym_cmds_CXX \
18460     lt_cv_prog_compiler_c_o_CXX \
18461     exclude_expsyms_CXX \
18462     include_expsyms_CXX; do
18463
18464     case $var in
18465     old_archive_cmds_CXX | \
18466     old_archive_from_new_cmds_CXX | \
18467     archive_cmds_CXX | \
18468     archive_expsym_cmds_CXX | \
18469     module_cmds_CXX | \
18470     module_expsym_cmds_CXX | \
18471     old_archive_from_expsyms_cmds_CXX | \
18472     export_symbols_cmds_CXX | \
18473     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18474     postinstall_cmds | postuninstall_cmds | \
18475     old_postinstall_cmds | old_postuninstall_cmds | \
18476     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18477       # Double-quote double-evaled strings.
18478       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18479       ;;
18480     *)
18481       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18482       ;;
18483     esac
18484   done
18485
18486   case $lt_echo in
18487   *'\$0 --fallback-echo"')
18488     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18489     ;;
18490   esac
18491
18492 cfgfile="$ofile"
18493
18494   cat <<__EOF__ >> "$cfgfile"
18495 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18496
18497 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18498
18499 # Shell to use when invoking shell scripts.
18500 SHELL=$lt_SHELL
18501
18502 # Whether or not to build shared libraries.
18503 build_libtool_libs=$enable_shared
18504
18505 # Whether or not to build static libraries.
18506 build_old_libs=$enable_static
18507
18508 # Whether or not to add -lc for building shared libraries.
18509 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18510
18511 # Whether or not to disallow shared libs when runtime libs are static
18512 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18513
18514 # Whether or not to optimize for fast installation.
18515 fast_install=$enable_fast_install
18516
18517 # The host system.
18518 host_alias=$host_alias
18519 host=$host
18520
18521 # An echo program that does not interpret backslashes.
18522 echo=$lt_echo
18523
18524 # The archiver.
18525 AR=$lt_AR
18526 AR_FLAGS=$lt_AR_FLAGS
18527
18528 # A C compiler.
18529 LTCC=$lt_LTCC
18530
18531 # A language-specific compiler.
18532 CC=$lt_compiler_CXX
18533
18534 # Is the compiler the GNU C compiler?
18535 with_gcc=$GCC_CXX
18536
18537 # An ERE matcher.
18538 EGREP=$lt_EGREP
18539
18540 # The linker used to build libraries.
18541 LD=$lt_LD_CXX
18542
18543 # Whether we need hard or soft links.
18544 LN_S=$lt_LN_S
18545
18546 # A BSD-compatible nm program.
18547 NM=$lt_NM
18548
18549 # A symbol stripping program
18550 STRIP=$lt_STRIP
18551
18552 # Used to examine libraries when file_magic_cmd begins "file"
18553 MAGIC_CMD=$MAGIC_CMD
18554
18555 # Used on cygwin: DLL creation program.
18556 DLLTOOL="$DLLTOOL"
18557
18558 # Used on cygwin: object dumper.
18559 OBJDUMP="$OBJDUMP"
18560
18561 # Used on cygwin: assembler.
18562 AS="$AS"
18563
18564 # The name of the directory that contains temporary libtool files.
18565 objdir=$objdir
18566
18567 # How to create reloadable object files.
18568 reload_flag=$lt_reload_flag
18569 reload_cmds=$lt_reload_cmds
18570
18571 # How to pass a linker flag through the compiler.
18572 wl=$lt_lt_prog_compiler_wl_CXX
18573
18574 # Object file suffix (normally "o").
18575 objext="$ac_objext"
18576
18577 # Old archive suffix (normally "a").
18578 libext="$libext"
18579
18580 # Shared library suffix (normally ".so").
18581 shrext_cmds='$shrext_cmds'
18582
18583 # Executable file suffix (normally "").
18584 exeext="$exeext"
18585
18586 # Additional compiler flags for building library objects.
18587 pic_flag=$lt_lt_prog_compiler_pic_CXX
18588 pic_mode=$pic_mode
18589
18590 # What is the maximum length of a command?
18591 max_cmd_len=$lt_cv_sys_max_cmd_len
18592
18593 # Does compiler simultaneously support -c and -o options?
18594 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18595
18596 # Must we lock files when doing compilation ?
18597 need_locks=$lt_need_locks
18598
18599 # Do we need the lib prefix for modules?
18600 need_lib_prefix=$need_lib_prefix
18601
18602 # Do we need a version for libraries?
18603 need_version=$need_version
18604
18605 # Whether dlopen is supported.
18606 dlopen_support=$enable_dlopen
18607
18608 # Whether dlopen of programs is supported.
18609 dlopen_self=$enable_dlopen_self
18610
18611 # Whether dlopen of statically linked programs is supported.
18612 dlopen_self_static=$enable_dlopen_self_static
18613
18614 # Compiler flag to prevent dynamic linking.
18615 link_static_flag=$lt_lt_prog_compiler_static_CXX
18616
18617 # Compiler flag to turn off builtin functions.
18618 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18619
18620 # Compiler flag to allow reflexive dlopens.
18621 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18622
18623 # Compiler flag to generate shared objects directly from archives.
18624 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18625
18626 # Compiler flag to generate thread-safe objects.
18627 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18628
18629 # Library versioning type.
18630 version_type=$version_type
18631
18632 # Format of library name prefix.
18633 libname_spec=$lt_libname_spec
18634
18635 # List of archive names.  First name is the real one, the rest are links.
18636 # The last name is the one that the linker finds with -lNAME.
18637 library_names_spec=$lt_library_names_spec
18638
18639 # The coded name of the library, if different from the real name.
18640 soname_spec=$lt_soname_spec
18641
18642 # Commands used to build and install an old-style archive.
18643 RANLIB=$lt_RANLIB
18644 old_archive_cmds=$lt_old_archive_cmds_CXX
18645 old_postinstall_cmds=$lt_old_postinstall_cmds
18646 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18647
18648 # Create an old-style archive from a shared archive.
18649 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18650
18651 # Create a temporary old-style archive to link instead of a shared archive.
18652 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18653
18654 # Commands used to build and install a shared archive.
18655 archive_cmds=$lt_archive_cmds_CXX
18656 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18657 postinstall_cmds=$lt_postinstall_cmds
18658 postuninstall_cmds=$lt_postuninstall_cmds
18659
18660 # Commands used to build a loadable module (assumed same as above if empty)
18661 module_cmds=$lt_module_cmds_CXX
18662 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18663
18664 # Commands to strip libraries.
18665 old_striplib=$lt_old_striplib
18666 striplib=$lt_striplib
18667
18668 # Dependencies to place before the objects being linked to create a
18669 # shared library.
18670 predep_objects=$lt_predep_objects_CXX
18671
18672 # Dependencies to place after the objects being linked to create a
18673 # shared library.
18674 postdep_objects=$lt_postdep_objects_CXX
18675
18676 # Dependencies to place before the objects being linked to create a
18677 # shared library.
18678 predeps=$lt_predeps_CXX
18679
18680 # Dependencies to place after the objects being linked to create a
18681 # shared library.
18682 postdeps=$lt_postdeps_CXX
18683
18684 # The library search path used internally by the compiler when linking
18685 # a shared library.
18686 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18687
18688 # Method to check whether dependent libraries are shared objects.
18689 deplibs_check_method=$lt_deplibs_check_method
18690
18691 # Command to use when deplibs_check_method == file_magic.
18692 file_magic_cmd=$lt_file_magic_cmd
18693
18694 # Flag that allows shared libraries with undefined symbols to be built.
18695 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18696
18697 # Flag that forces no undefined symbols.
18698 no_undefined_flag=$lt_no_undefined_flag_CXX
18699
18700 # Commands used to finish a libtool library installation in a directory.
18701 finish_cmds=$lt_finish_cmds
18702
18703 # Same as above, but a single script fragment to be evaled but not shown.
18704 finish_eval=$lt_finish_eval
18705
18706 # Take the output of nm and produce a listing of raw symbols and C names.
18707 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18708
18709 # Transform the output of nm in a proper C declaration
18710 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18711
18712 # Transform the output of nm in a C name address pair
18713 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18714
18715 # This is the shared library runtime path variable.
18716 runpath_var=$runpath_var
18717
18718 # This is the shared library path variable.
18719 shlibpath_var=$shlibpath_var
18720
18721 # Is shlibpath searched before the hard-coded library search path?
18722 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18723
18724 # How to hardcode a shared library path into an executable.
18725 hardcode_action=$hardcode_action_CXX
18726
18727 # Whether we should hardcode library paths into libraries.
18728 hardcode_into_libs=$hardcode_into_libs
18729
18730 # Flag to hardcode \$libdir into a binary during linking.
18731 # This must work even if \$libdir does not exist.
18732 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18733
18734 # If ld is used when linking, flag to hardcode \$libdir into
18735 # a binary during linking. This must work even if \$libdir does
18736 # not exist.
18737 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18738
18739 # Whether we need a single -rpath flag with a separated argument.
18740 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18741
18742 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18743 # resulting binary.
18744 hardcode_direct=$hardcode_direct_CXX
18745
18746 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18747 # resulting binary.
18748 hardcode_minus_L=$hardcode_minus_L_CXX
18749
18750 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18751 # the resulting binary.
18752 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18753
18754 # Set to yes if building a shared library automatically hardcodes DIR into the library
18755 # and all subsequent libraries and executables linked against it.
18756 hardcode_automatic=$hardcode_automatic_CXX
18757
18758 # Variables whose values should be saved in libtool wrapper scripts and
18759 # restored at relink time.
18760 variables_saved_for_relink="$variables_saved_for_relink"
18761
18762 # Whether libtool must link a program against all its dependency libraries.
18763 link_all_deplibs=$link_all_deplibs_CXX
18764
18765 # Compile-time system search path for libraries
18766 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18767
18768 # Run-time system search path for libraries
18769 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18770
18771 # Fix the shell variable \$srcfile for the compiler.
18772 fix_srcfile_path="$fix_srcfile_path_CXX"
18773
18774 # Set to yes if exported symbols are required.
18775 always_export_symbols=$always_export_symbols_CXX
18776
18777 # The commands to list exported symbols.
18778 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18779
18780 # The commands to extract the exported symbol list from a shared archive.
18781 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18782
18783 # Symbols that should not be listed in the preloaded symbols.
18784 exclude_expsyms=$lt_exclude_expsyms_CXX
18785
18786 # Symbols that must always be exported.
18787 include_expsyms=$lt_include_expsyms_CXX
18788
18789 # ### END LIBTOOL TAG CONFIG: $tagname
18790
18791 __EOF__
18792
18793
18794 else
18795   # If there is no Makefile yet, we rely on a make rule to execute
18796   # `config.status --recheck' to rerun these tests and create the
18797   # libtool script then.
18798   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18799   if test -f "$ltmain_in"; then
18800     test -f Makefile && make "$ltmain"
18801   fi
18802 fi
18803
18804
18805 ac_ext=c
18806 ac_cpp='$CPP $CPPFLAGS'
18807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18810
18811 CC=$lt_save_CC
18812 LDCXX=$LD
18813 LD=$lt_save_LD
18814 GCC=$lt_save_GCC
18815 with_gnu_ldcxx=$with_gnu_ld
18816 with_gnu_ld=$lt_save_with_gnu_ld
18817 lt_cv_path_LDCXX=$lt_cv_path_LD
18818 lt_cv_path_LD=$lt_save_path_LD
18819 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18820 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18821
18822         else
18823           tagname=""
18824         fi
18825         ;;
18826
18827       F77)
18828         if test -n "$F77" && test "X$F77" != "Xno"; then
18829
18830 ac_ext=f
18831 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18832 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18833 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18834
18835
18836 archive_cmds_need_lc_F77=no
18837 allow_undefined_flag_F77=
18838 always_export_symbols_F77=no
18839 archive_expsym_cmds_F77=
18840 export_dynamic_flag_spec_F77=
18841 hardcode_direct_F77=no
18842 hardcode_libdir_flag_spec_F77=
18843 hardcode_libdir_flag_spec_ld_F77=
18844 hardcode_libdir_separator_F77=
18845 hardcode_minus_L_F77=no
18846 hardcode_automatic_F77=no
18847 module_cmds_F77=
18848 module_expsym_cmds_F77=
18849 link_all_deplibs_F77=unknown
18850 old_archive_cmds_F77=$old_archive_cmds
18851 no_undefined_flag_F77=
18852 whole_archive_flag_spec_F77=
18853 enable_shared_with_static_runtimes_F77=no
18854
18855 # Source file extension for f77 test sources.
18856 ac_ext=f
18857
18858 # Object file extension for compiled f77 test sources.
18859 objext=o
18860 objext_F77=$objext
18861
18862 # Code to be used in simple compile tests
18863 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18864
18865 # Code to be used in simple link tests
18866 lt_simple_link_test_code="      program t\n      end\n"
18867
18868 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18869
18870 # If no C compiler was specified, use CC.
18871 LTCC=${LTCC-"$CC"}
18872
18873 # Allow CC to be a program name with arguments.
18874 compiler=$CC
18875
18876
18877 # Allow CC to be a program name with arguments.
18878 lt_save_CC="$CC"
18879 CC=${F77-"f77"}
18880 compiler=$CC
18881 compiler_F77=$CC
18882 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18883
18884 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18885 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18886 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18887 echo "${ECHO_T}$can_build_shared" >&6
18888
18889 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18890 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18891 test "$can_build_shared" = "no" && enable_shared=no
18892
18893 # On AIX, shared libraries and static libraries use the same namespace, and
18894 # are all built from PIC.
18895 case "$host_os" in
18896 aix3*)
18897   test "$enable_shared" = yes && enable_static=no
18898   if test -n "$RANLIB"; then
18899     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18900     postinstall_cmds='$RANLIB $lib'
18901   fi
18902   ;;
18903 aix4* | aix5*)
18904   test "$enable_shared" = yes && enable_static=no
18905   ;;
18906 esac
18907 echo "$as_me:$LINENO: result: $enable_shared" >&5
18908 echo "${ECHO_T}$enable_shared" >&6
18909
18910 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18911 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18912 # Make sure either enable_shared or enable_static is yes.
18913 test "$enable_shared" = yes || enable_static=yes
18914 echo "$as_me:$LINENO: result: $enable_static" >&5
18915 echo "${ECHO_T}$enable_static" >&6
18916
18917 test "$ld_shlibs_F77" = no && can_build_shared=no
18918
18919 GCC_F77="$G77"
18920 LD_F77="$LD"
18921
18922 lt_prog_compiler_wl_F77=
18923 lt_prog_compiler_pic_F77=
18924 lt_prog_compiler_static_F77=
18925
18926 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18927 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18928
18929   if test "$GCC" = yes; then
18930     lt_prog_compiler_wl_F77='-Wl,'
18931     lt_prog_compiler_static_F77='-static'
18932
18933     case $host_os in
18934       aix*)
18935       # All AIX code is PIC.
18936       if test "$host_cpu" = ia64; then
18937         # AIX 5 now supports IA64 processor
18938         lt_prog_compiler_static_F77='-Bstatic'
18939       fi
18940       ;;
18941
18942     amigaos*)
18943       # FIXME: we need at least 68020 code to build shared libraries, but
18944       # adding the `-m68020' flag to GCC prevents building anything better,
18945       # like `-m68040'.
18946       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18947       ;;
18948
18949     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18950       # PIC is the default for these OSes.
18951       ;;
18952
18953     mingw* | pw32* | os2*)
18954       # This hack is so that the source file can tell whether it is being
18955       # built for inclusion in a dll (and should export symbols for example).
18956       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18957       ;;
18958
18959     darwin* | rhapsody*)
18960       # PIC is the default on this platform
18961       # Common symbols not allowed in MH_DYLIB files
18962       lt_prog_compiler_pic_F77='-fno-common'
18963       ;;
18964
18965     msdosdjgpp*)
18966       # Just because we use GCC doesn't mean we suddenly get shared libraries
18967       # on systems that don't support them.
18968       lt_prog_compiler_can_build_shared_F77=no
18969       enable_shared=no
18970       ;;
18971
18972     sysv4*MP*)
18973       if test -d /usr/nec; then
18974         lt_prog_compiler_pic_F77=-Kconform_pic
18975       fi
18976       ;;
18977
18978     hpux*)
18979       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18980       # not for PA HP-UX.
18981       case "$host_cpu" in
18982       hppa*64*|ia64*)
18983         # +Z the default
18984         ;;
18985       *)
18986         lt_prog_compiler_pic_F77='-fPIC'
18987         ;;
18988       esac
18989       ;;
18990
18991     *)
18992       lt_prog_compiler_pic_F77='-fPIC'
18993       ;;
18994     esac
18995   else
18996     # PORTME Check for flag to pass linker flags through the system compiler.
18997     case $host_os in
18998     aix*)
18999       lt_prog_compiler_wl_F77='-Wl,'
19000       if test "$host_cpu" = ia64; then
19001         # AIX 5 now supports IA64 processor
19002         lt_prog_compiler_static_F77='-Bstatic'
19003       else
19004         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19005       fi
19006       ;;
19007       darwin*)
19008         # PIC is the default on this platform
19009         # Common symbols not allowed in MH_DYLIB files
19010        case "$cc_basename" in
19011          xlc*)
19012          lt_prog_compiler_pic_F77='-qnocommon'
19013          lt_prog_compiler_wl_F77='-Wl,'
19014          ;;
19015        esac
19016        ;;
19017
19018     mingw* | pw32* | os2*)
19019       # This hack is so that the source file can tell whether it is being
19020       # built for inclusion in a dll (and should export symbols for example).
19021       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19022       ;;
19023
19024     hpux9* | hpux10* | hpux11*)
19025       lt_prog_compiler_wl_F77='-Wl,'
19026       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19027       # not for PA HP-UX.
19028       case "$host_cpu" in
19029       hppa*64*|ia64*)
19030         # +Z the default
19031         ;;
19032       *)
19033         lt_prog_compiler_pic_F77='+Z'
19034         ;;
19035       esac
19036       # Is there a better lt_prog_compiler_static that works with the bundled CC?
19037       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19038       ;;
19039
19040     irix5* | irix6* | nonstopux*)
19041       lt_prog_compiler_wl_F77='-Wl,'
19042       # PIC (with -KPIC) is the default.
19043       lt_prog_compiler_static_F77='-non_shared'
19044       ;;
19045
19046     newsos6)
19047       lt_prog_compiler_pic_F77='-KPIC'
19048       lt_prog_compiler_static_F77='-Bstatic'
19049       ;;
19050
19051     linux*)
19052       case $CC in
19053       icc* | ecc*)
19054         lt_prog_compiler_wl_F77='-Wl,'
19055         lt_prog_compiler_pic_F77='-KPIC'
19056         lt_prog_compiler_static_F77='-static'
19057         ;;
19058       ccc*)
19059         lt_prog_compiler_wl_F77='-Wl,'
19060         # All Alpha code is PIC.
19061         lt_prog_compiler_static_F77='-non_shared'
19062         ;;
19063       esac
19064       ;;
19065
19066     osf3* | osf4* | osf5*)
19067       lt_prog_compiler_wl_F77='-Wl,'
19068       # All OSF/1 code is PIC.
19069       lt_prog_compiler_static_F77='-non_shared'
19070       ;;
19071
19072     sco3.2v5*)
19073       lt_prog_compiler_pic_F77='-Kpic'
19074       lt_prog_compiler_static_F77='-dn'
19075       ;;
19076
19077     solaris*)
19078       lt_prog_compiler_wl_F77='-Wl,'
19079       lt_prog_compiler_pic_F77='-KPIC'
19080       lt_prog_compiler_static_F77='-Bstatic'
19081       ;;
19082
19083     sunos4*)
19084       lt_prog_compiler_wl_F77='-Qoption ld '
19085       lt_prog_compiler_pic_F77='-PIC'
19086       lt_prog_compiler_static_F77='-Bstatic'
19087       ;;
19088
19089     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19090       lt_prog_compiler_wl_F77='-Wl,'
19091       lt_prog_compiler_pic_F77='-KPIC'
19092       lt_prog_compiler_static_F77='-Bstatic'
19093       ;;
19094
19095     sysv4*MP*)
19096       if test -d /usr/nec ;then
19097         lt_prog_compiler_pic_F77='-Kconform_pic'
19098         lt_prog_compiler_static_F77='-Bstatic'
19099       fi
19100       ;;
19101
19102     uts4*)
19103       lt_prog_compiler_pic_F77='-pic'
19104       lt_prog_compiler_static_F77='-Bstatic'
19105       ;;
19106
19107     *)
19108       lt_prog_compiler_can_build_shared_F77=no
19109       ;;
19110     esac
19111   fi
19112
19113 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19114 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19115
19116 #
19117 # Check to make sure the PIC flag actually works.
19118 #
19119 if test -n "$lt_prog_compiler_pic_F77"; then
19120
19121 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19122 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19123 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19124   echo $ECHO_N "(cached) $ECHO_C" >&6
19125 else
19126   lt_prog_compiler_pic_works_F77=no
19127   ac_outfile=conftest.$ac_objext
19128    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19129    lt_compiler_flag="$lt_prog_compiler_pic_F77"
19130    # Insert the option either (1) after the last *FLAGS variable, or
19131    # (2) before a word containing "conftest.", or (3) at the end.
19132    # Note that $ac_compile itself does not contain backslashes and begins
19133    # with a dollar sign (not a hyphen), so the echo should work correctly.
19134    # The option is referenced via a variable to avoid confusing sed.
19135    lt_compile=`echo "$ac_compile" | $SED \
19136    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19137    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19138    -e 's:$: $lt_compiler_flag:'`
19139    (eval echo "\"\$as_me:19139: $lt_compile\"" >&5)
19140    (eval "$lt_compile" 2>conftest.err)
19141    ac_status=$?
19142    cat conftest.err >&5
19143    echo "$as_me:19143: \$? = $ac_status" >&5
19144    if (exit $ac_status) && test -s "$ac_outfile"; then
19145      # The compiler can only warn and ignore the option if not recognized
19146      # So say no if there are warnings
19147      if test ! -s conftest.err; then
19148        lt_prog_compiler_pic_works_F77=yes
19149      fi
19150    fi
19151    $rm conftest*
19152
19153 fi
19154 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19155 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19156
19157 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19158     case $lt_prog_compiler_pic_F77 in
19159      "" | " "*) ;;
19160      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19161      esac
19162 else
19163     lt_prog_compiler_pic_F77=
19164      lt_prog_compiler_can_build_shared_F77=no
19165 fi
19166
19167 fi
19168 case "$host_os" in
19169   # For platforms which do not support PIC, -DPIC is meaningless:
19170   *djgpp*)
19171     lt_prog_compiler_pic_F77=
19172     ;;
19173   *)
19174     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19175     ;;
19176 esac
19177
19178 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19179 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19180 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19181   echo $ECHO_N "(cached) $ECHO_C" >&6
19182 else
19183   lt_cv_prog_compiler_c_o_F77=no
19184    $rm -r conftest 2>/dev/null
19185    mkdir conftest
19186    cd conftest
19187    mkdir out
19188    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19189
19190    lt_compiler_flag="-o out/conftest2.$ac_objext"
19191    # Insert the option either (1) after the last *FLAGS variable, or
19192    # (2) before a word containing "conftest.", or (3) at the end.
19193    # Note that $ac_compile itself does not contain backslashes and begins
19194    # with a dollar sign (not a hyphen), so the echo should work correctly.
19195    lt_compile=`echo "$ac_compile" | $SED \
19196    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19197    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19198    -e 's:$: $lt_compiler_flag:'`
19199    (eval echo "\"\$as_me:19199: $lt_compile\"" >&5)
19200    (eval "$lt_compile" 2>out/conftest.err)
19201    ac_status=$?
19202    cat out/conftest.err >&5
19203    echo "$as_me:19203: \$? = $ac_status" >&5
19204    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19205    then
19206      # The compiler can only warn and ignore the option if not recognized
19207      # So say no if there are warnings
19208      if test ! -s out/conftest.err; then
19209        lt_cv_prog_compiler_c_o_F77=yes
19210      fi
19211    fi
19212    chmod u+w .
19213    $rm conftest*
19214    # SGI C++ compiler will create directory out/ii_files/ for
19215    # template instantiation
19216    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19217    $rm out/* && rmdir out
19218    cd ..
19219    rmdir conftest
19220    $rm conftest*
19221
19222 fi
19223 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19224 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19225
19226
19227 hard_links="nottested"
19228 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19229   # do not overwrite the value of need_locks provided by the user
19230   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19231 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19232   hard_links=yes
19233   $rm conftest*
19234   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19235   touch conftest.a
19236   ln conftest.a conftest.b 2>&5 || hard_links=no
19237   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19238   echo "$as_me:$LINENO: result: $hard_links" >&5
19239 echo "${ECHO_T}$hard_links" >&6
19240   if test "$hard_links" = no; then
19241     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19242 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19243     need_locks=warn
19244   fi
19245 else
19246   need_locks=no
19247 fi
19248
19249 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19250 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19251
19252   runpath_var=
19253   allow_undefined_flag_F77=
19254   enable_shared_with_static_runtimes_F77=no
19255   archive_cmds_F77=
19256   archive_expsym_cmds_F77=
19257   old_archive_From_new_cmds_F77=
19258   old_archive_from_expsyms_cmds_F77=
19259   export_dynamic_flag_spec_F77=
19260   whole_archive_flag_spec_F77=
19261   thread_safe_flag_spec_F77=
19262   hardcode_libdir_flag_spec_F77=
19263   hardcode_libdir_flag_spec_ld_F77=
19264   hardcode_libdir_separator_F77=
19265   hardcode_direct_F77=no
19266   hardcode_minus_L_F77=no
19267   hardcode_shlibpath_var_F77=unsupported
19268   link_all_deplibs_F77=unknown
19269   hardcode_automatic_F77=no
19270   module_cmds_F77=
19271   module_expsym_cmds_F77=
19272   always_export_symbols_F77=no
19273   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19274   # include_expsyms should be a list of space-separated symbols to be *always*
19275   # included in the symbol list
19276   include_expsyms_F77=
19277   # exclude_expsyms can be an extended regexp of symbols to exclude
19278   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19279   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19280   # as well as any symbol that contains `d'.
19281   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19282   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19283   # platforms (ab)use it in PIC code, but their linkers get confused if
19284   # the symbol is explicitly referenced.  Since portable code cannot
19285   # rely on this symbol name, it's probably fine to never include it in
19286   # preloaded symbol tables.
19287   extract_expsyms_cmds=
19288
19289   case $host_os in
19290   cygwin* | mingw* | pw32*)
19291     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19292     # When not using gcc, we currently assume that we are using
19293     # Microsoft Visual C++.
19294     if test "$GCC" != yes; then
19295       with_gnu_ld=no
19296     fi
19297     ;;
19298   openbsd*)
19299     with_gnu_ld=no
19300     ;;
19301   esac
19302
19303   ld_shlibs_F77=yes
19304   if test "$with_gnu_ld" = yes; then
19305     # If archive_cmds runs LD, not CC, wlarc should be empty
19306     wlarc='${wl}'
19307
19308     # See if GNU ld supports shared libraries.
19309     case $host_os in
19310     aix3* | aix4* | aix5*)
19311       # On AIX/PPC, the GNU linker is very broken
19312       if test "$host_cpu" != ia64; then
19313         ld_shlibs_F77=no
19314         cat <<EOF 1>&2
19315
19316 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19317 *** to be unable to reliably create shared libraries on AIX.
19318 *** Therefore, libtool is disabling shared libraries support.  If you
19319 *** really care for shared libraries, you may want to modify your PATH
19320 *** so that a non-GNU linker is found, and then restart.
19321
19322 EOF
19323       fi
19324       ;;
19325
19326     amigaos*)
19327       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)'
19328       hardcode_libdir_flag_spec_F77='-L$libdir'
19329       hardcode_minus_L_F77=yes
19330
19331       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19332       # that the semantics of dynamic libraries on AmigaOS, at least up
19333       # to version 4, is to share data among multiple programs linked
19334       # with the same dynamic library.  Since this doesn't match the
19335       # behavior of shared libraries on other platforms, we can't use
19336       # them.
19337       ld_shlibs_F77=no
19338       ;;
19339
19340     beos*)
19341       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19342         allow_undefined_flag_F77=unsupported
19343         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19344         # support --undefined.  This deserves some investigation.  FIXME
19345         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19346       else
19347         ld_shlibs_F77=no
19348       fi
19349       ;;
19350
19351     cygwin* | mingw* | pw32*)
19352       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19353       # as there is no search path for DLLs.
19354       hardcode_libdir_flag_spec_F77='-L$libdir'
19355       allow_undefined_flag_F77=unsupported
19356       always_export_symbols_F77=no
19357       enable_shared_with_static_runtimes_F77=yes
19358       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19359
19360       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19361         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19362         # If the export-symbols file already is a .def file (1st line
19363         # is EXPORTS), use it as is; otherwise, prepend...
19364         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19365           cp $export_symbols $output_objdir/$soname.def;
19366         else
19367           echo EXPORTS > $output_objdir/$soname.def;
19368           cat $export_symbols >> $output_objdir/$soname.def;
19369         fi~
19370         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19371       else
19372         ld_shlibs=no
19373       fi
19374       ;;
19375
19376     netbsd*)
19377       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19378         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19379         wlarc=
19380       else
19381         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19382         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19383       fi
19384       ;;
19385
19386     solaris* | sysv5*)
19387       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19388         ld_shlibs_F77=no
19389         cat <<EOF 1>&2
19390
19391 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19392 *** create shared libraries on Solaris systems.  Therefore, libtool
19393 *** is disabling shared libraries support.  We urge you to upgrade GNU
19394 *** binutils to release 2.9.1 or newer.  Another option is to modify
19395 *** your PATH or compiler configuration so that the native linker is
19396 *** used, and then restart.
19397
19398 EOF
19399       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19400         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19401         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19402       else
19403         ld_shlibs_F77=no
19404       fi
19405       ;;
19406
19407     sunos4*)
19408       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19409       wlarc=
19410       hardcode_direct_F77=yes
19411       hardcode_shlibpath_var_F77=no
19412       ;;
19413
19414   linux*)
19415     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19416         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19417         archive_cmds_F77="$tmp_archive_cmds"
19418       supports_anon_versioning=no
19419       case `$LD -v 2>/dev/null` in
19420         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19421         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19422         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19423         *\ 2.11.*) ;; # other 2.11 versions
19424         *) supports_anon_versioning=yes ;;
19425       esac
19426       if test $supports_anon_versioning = yes; then
19427         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19428 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19429 $echo "local: *; };" >> $output_objdir/$libname.ver~
19430         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19431       else
19432         archive_expsym_cmds_F77="$tmp_archive_cmds"
19433       fi
19434     else
19435       ld_shlibs_F77=no
19436     fi
19437     ;;
19438
19439     *)
19440       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19441         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19442         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19443       else
19444         ld_shlibs_F77=no
19445       fi
19446       ;;
19447     esac
19448
19449     if test "$ld_shlibs_F77" = yes; then
19450       runpath_var=LD_RUN_PATH
19451       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19452       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19453       # ancient GNU ld didn't support --whole-archive et. al.
19454       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19455         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19456       else
19457         whole_archive_flag_spec_F77=
19458       fi
19459     fi
19460   else
19461     # PORTME fill in a description of your system's linker (not GNU ld)
19462     case $host_os in
19463     aix3*)
19464       allow_undefined_flag_F77=unsupported
19465       always_export_symbols_F77=yes
19466       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'
19467       # Note: this linker hardcodes the directories in LIBPATH if there
19468       # are no directories specified by -L.
19469       hardcode_minus_L_F77=yes
19470       if test "$GCC" = yes && test -z "$link_static_flag"; then
19471         # Neither direct hardcoding nor static linking is supported with a
19472         # broken collect2.
19473         hardcode_direct_F77=unsupported
19474       fi
19475       ;;
19476
19477     aix4* | aix5*)
19478       if test "$host_cpu" = ia64; then
19479         # On IA64, the linker does run time linking by default, so we don't
19480         # have to do anything special.
19481         aix_use_runtimelinking=no
19482         exp_sym_flag='-Bexport'
19483         no_entry_flag=""
19484       else
19485         # If we're using GNU nm, then we don't want the "-C" option.
19486         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19487         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19488           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'
19489         else
19490           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'
19491         fi
19492         aix_use_runtimelinking=no
19493
19494         # Test if we are trying to use run time linking or normal
19495         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19496         # need to do runtime linking.
19497         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19498           for ld_flag in $LDFLAGS; do
19499           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19500             aix_use_runtimelinking=yes
19501             break
19502           fi
19503           done
19504         esac
19505
19506         exp_sym_flag='-bexport'
19507         no_entry_flag='-bnoentry'
19508       fi
19509
19510       # When large executables or shared objects are built, AIX ld can
19511       # have problems creating the table of contents.  If linking a library
19512       # or program results in "error TOC overflow" add -mminimal-toc to
19513       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19514       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19515
19516       archive_cmds_F77=''
19517       hardcode_direct_F77=yes
19518       hardcode_libdir_separator_F77=':'
19519       link_all_deplibs_F77=yes
19520
19521       if test "$GCC" = yes; then
19522         case $host_os in aix4.012|aix4.012.*)
19523         # We only want to do this on AIX 4.2 and lower, the check
19524         # below for broken collect2 doesn't work under 4.3+
19525           collect2name=`${CC} -print-prog-name=collect2`
19526           if test -f "$collect2name" && \
19527            strings "$collect2name" | grep resolve_lib_name >/dev/null
19528           then
19529           # We have reworked collect2
19530           hardcode_direct_F77=yes
19531           else
19532           # We have old collect2
19533           hardcode_direct_F77=unsupported
19534           # It fails to find uninstalled libraries when the uninstalled
19535           # path is not listed in the libpath.  Setting hardcode_minus_L
19536           # to unsupported forces relinking
19537           hardcode_minus_L_F77=yes
19538           hardcode_libdir_flag_spec_F77='-L$libdir'
19539           hardcode_libdir_separator_F77=
19540           fi
19541         esac
19542         shared_flag='-shared'
19543       else
19544         # not using gcc
19545         if test "$host_cpu" = ia64; then
19546         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19547         # chokes on -Wl,-G. The following line is correct:
19548           shared_flag='-G'
19549         else
19550         if test "$aix_use_runtimelinking" = yes; then
19551             shared_flag='${wl}-G'
19552           else
19553             shared_flag='${wl}-bM:SRE'
19554         fi
19555         fi
19556       fi
19557
19558       # It seems that -bexpall does not export symbols beginning with
19559       # underscore (_), so it is better to generate a list of symbols to export.
19560       always_export_symbols_F77=yes
19561       if test "$aix_use_runtimelinking" = yes; then
19562         # Warning - without using the other runtime loading flags (-brtl),
19563         # -berok will link without error, but may produce a broken library.
19564         allow_undefined_flag_F77='-berok'
19565        # Determine the default libpath from the value encoded in an empty executable.
19566        cat >conftest.$ac_ext <<_ACEOF
19567       program main
19568
19569       end
19570 _ACEOF
19571 rm -f conftest.$ac_objext conftest$ac_exeext
19572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19573   (eval $ac_link) 2>conftest.er1
19574   ac_status=$?
19575   grep -v '^ *+' conftest.er1 >conftest.err
19576   rm -f conftest.er1
19577   cat conftest.err >&5
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); } &&
19580          { ac_try='test -z "$ac_f77_werror_flag"
19581                          || test ! -s conftest.err'
19582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583   (eval $ac_try) 2>&5
19584   ac_status=$?
19585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); }; } &&
19587          { ac_try='test -s conftest$ac_exeext'
19588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589   (eval $ac_try) 2>&5
19590   ac_status=$?
19591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592   (exit $ac_status); }; }; then
19593
19594 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19595 }'`
19596 # Check for a 64-bit object if we didn't find anything.
19597 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; }
19598 }'`; fi
19599 else
19600   echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19602
19603 fi
19604 rm -f conftest.err conftest.$ac_objext \
19605       conftest$ac_exeext conftest.$ac_ext
19606 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19607
19608        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19609         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"
19610        else
19611         if test "$host_cpu" = ia64; then
19612           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19613           allow_undefined_flag_F77="-z nodefs"
19614           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"
19615         else
19616          # Determine the default libpath from the value encoded in an empty executable.
19617          cat >conftest.$ac_ext <<_ACEOF
19618       program main
19619
19620       end
19621 _ACEOF
19622 rm -f conftest.$ac_objext conftest$ac_exeext
19623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19624   (eval $ac_link) 2>conftest.er1
19625   ac_status=$?
19626   grep -v '^ *+' conftest.er1 >conftest.err
19627   rm -f conftest.er1
19628   cat conftest.err >&5
19629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630   (exit $ac_status); } &&
19631          { ac_try='test -z "$ac_f77_werror_flag"
19632                          || test ! -s conftest.err'
19633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634   (eval $ac_try) 2>&5
19635   ac_status=$?
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); }; } &&
19638          { ac_try='test -s conftest$ac_exeext'
19639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640   (eval $ac_try) 2>&5
19641   ac_status=$?
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); }; }; then
19644
19645 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19646 }'`
19647 # Check for a 64-bit object if we didn't find anything.
19648 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; }
19649 }'`; fi
19650 else
19651   echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19653
19654 fi
19655 rm -f conftest.err conftest.$ac_objext \
19656       conftest$ac_exeext conftest.$ac_ext
19657 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19658
19659          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19660           # Warning - without using the other run time loading flags,
19661           # -berok will link without error, but may produce a broken library.
19662           no_undefined_flag_F77=' ${wl}-bernotok'
19663           allow_undefined_flag_F77=' ${wl}-berok'
19664           # -bexpall does not export symbols beginning with underscore (_)
19665           always_export_symbols_F77=yes
19666           # Exported symbols can be pulled into shared objects from archives
19667           whole_archive_flag_spec_F77=' '
19668           archive_cmds_need_lc_F77=yes
19669           # This is similar to how AIX traditionally builds it's shared libraries.
19670           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'
19671         fi
19672       fi
19673       ;;
19674
19675     amigaos*)
19676       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)'
19677       hardcode_libdir_flag_spec_F77='-L$libdir'
19678       hardcode_minus_L_F77=yes
19679       # see comment about different semantics on the GNU ld section
19680       ld_shlibs_F77=no
19681       ;;
19682
19683     bsdi[45]*)
19684       export_dynamic_flag_spec_F77=-rdynamic
19685       ;;
19686
19687     cygwin* | mingw* | pw32*)
19688       # When not using gcc, we currently assume that we are using
19689       # Microsoft Visual C++.
19690       # hardcode_libdir_flag_spec is actually meaningless, as there is
19691       # no search path for DLLs.
19692       hardcode_libdir_flag_spec_F77=' '
19693       allow_undefined_flag_F77=unsupported
19694       # Tell ltmain to make .lib files, not .a files.
19695       libext=lib
19696       # Tell ltmain to make .dll files, not .so files.
19697       shrext_cmds=".dll"
19698       # FIXME: Setting linknames here is a bad hack.
19699       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19700       # The linker will automatically build a .lib file if we build a DLL.
19701       old_archive_From_new_cmds_F77='true'
19702       # FIXME: Should let the user specify the lib program.
19703       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19704       fix_srcfile_path='`cygpath -w "$srcfile"`'
19705       enable_shared_with_static_runtimes_F77=yes
19706       ;;
19707
19708     darwin* | rhapsody*)
19709       case "$host_os" in
19710         rhapsody* | darwin1.[012])
19711          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19712          ;;
19713        *) # Darwin 1.3 on
19714          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19715            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19716          else
19717            case ${MACOSX_DEPLOYMENT_TARGET} in
19718              10.[012])
19719                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19720                ;;
19721              10.*)
19722                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19723                ;;
19724            esac
19725          fi
19726          ;;
19727       esac
19728       archive_cmds_need_lc_F77=no
19729       hardcode_direct_F77=no
19730       hardcode_automatic_F77=yes
19731       hardcode_shlibpath_var_F77=unsupported
19732       whole_archive_flag_spec_F77=''
19733       link_all_deplibs_F77=yes
19734     if test "$GCC" = yes ; then
19735         output_verbose_link_cmd='echo'
19736         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19737       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19738       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19739       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}'
19740       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}'
19741     else
19742       case "$cc_basename" in
19743         xlc*)
19744          output_verbose_link_cmd='echo'
19745          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19746          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19747           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19748          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}'
19749           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}'
19750           ;;
19751        *)
19752          ld_shlibs_F77=no
19753           ;;
19754       esac
19755     fi
19756       ;;
19757
19758     dgux*)
19759       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19760       hardcode_libdir_flag_spec_F77='-L$libdir'
19761       hardcode_shlibpath_var_F77=no
19762       ;;
19763
19764     freebsd1*)
19765       ld_shlibs_F77=no
19766       ;;
19767
19768     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19769     # support.  Future versions do this automatically, but an explicit c++rt0.o
19770     # does not break anything, and helps significantly (at the cost of a little
19771     # extra space).
19772     freebsd2.2*)
19773       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19774       hardcode_libdir_flag_spec_F77='-R$libdir'
19775       hardcode_direct_F77=yes
19776       hardcode_shlibpath_var_F77=no
19777       ;;
19778
19779     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19780     freebsd2*)
19781       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19782       hardcode_direct_F77=yes
19783       hardcode_minus_L_F77=yes
19784       hardcode_shlibpath_var_F77=no
19785       ;;
19786
19787     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19788     freebsd* | kfreebsd*-gnu)
19789       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19790       hardcode_libdir_flag_spec_F77='-R$libdir'
19791       hardcode_direct_F77=yes
19792       hardcode_shlibpath_var_F77=no
19793       ;;
19794
19795     hpux9*)
19796       if test "$GCC" = yes; then
19797         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'
19798       else
19799         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'
19800       fi
19801       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19802       hardcode_libdir_separator_F77=:
19803       hardcode_direct_F77=yes
19804
19805       # hardcode_minus_L: Not really in the search PATH,
19806       # but as the default location of the library.
19807       hardcode_minus_L_F77=yes
19808       export_dynamic_flag_spec_F77='${wl}-E'
19809       ;;
19810
19811     hpux10* | hpux11*)
19812       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19813         case "$host_cpu" in
19814         hppa*64*|ia64*)
19815           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19816           ;;
19817         *)
19818           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19819           ;;
19820         esac
19821       else
19822         case "$host_cpu" in
19823         hppa*64*|ia64*)
19824           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19825           ;;
19826         *)
19827           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19828           ;;
19829         esac
19830       fi
19831       if test "$with_gnu_ld" = no; then
19832         case "$host_cpu" in
19833         hppa*64*)
19834           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19835           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19836           hardcode_libdir_separator_F77=:
19837           hardcode_direct_F77=no
19838           hardcode_shlibpath_var_F77=no
19839           ;;
19840         ia64*)
19841           hardcode_libdir_flag_spec_F77='-L$libdir'
19842           hardcode_direct_F77=no
19843           hardcode_shlibpath_var_F77=no
19844
19845           # hardcode_minus_L: Not really in the search PATH,
19846           # but as the default location of the library.
19847           hardcode_minus_L_F77=yes
19848           ;;
19849         *)
19850           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19851           hardcode_libdir_separator_F77=:
19852           hardcode_direct_F77=yes
19853           export_dynamic_flag_spec_F77='${wl}-E'
19854
19855           # hardcode_minus_L: Not really in the search PATH,
19856           # but as the default location of the library.
19857           hardcode_minus_L_F77=yes
19858           ;;
19859         esac
19860       fi
19861       ;;
19862
19863     irix5* | irix6* | nonstopux*)
19864       if test "$GCC" = yes; then
19865         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'
19866       else
19867         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'
19868         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19869       fi
19870       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19871       hardcode_libdir_separator_F77=:
19872       link_all_deplibs_F77=yes
19873       ;;
19874
19875     netbsd*)
19876       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19877         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19878       else
19879         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19880       fi
19881       hardcode_libdir_flag_spec_F77='-R$libdir'
19882       hardcode_direct_F77=yes
19883       hardcode_shlibpath_var_F77=no
19884       ;;
19885
19886     newsos6)
19887       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19888       hardcode_direct_F77=yes
19889       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19890       hardcode_libdir_separator_F77=:
19891       hardcode_shlibpath_var_F77=no
19892       ;;
19893
19894     openbsd*)
19895       hardcode_direct_F77=yes
19896       hardcode_shlibpath_var_F77=no
19897       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19898         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19899         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19900         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19901         export_dynamic_flag_spec_F77='${wl}-E'
19902       else
19903        case $host_os in
19904          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19905            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19906            hardcode_libdir_flag_spec_F77='-R$libdir'
19907            ;;
19908          *)
19909            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19910            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19911            ;;
19912        esac
19913       fi
19914       ;;
19915
19916     os2*)
19917       hardcode_libdir_flag_spec_F77='-L$libdir'
19918       hardcode_minus_L_F77=yes
19919       allow_undefined_flag_F77=unsupported
19920       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'
19921       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19922       ;;
19923
19924     osf3*)
19925       if test "$GCC" = yes; then
19926         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19927         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'
19928       else
19929         allow_undefined_flag_F77=' -expect_unresolved \*'
19930         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'
19931       fi
19932       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19933       hardcode_libdir_separator_F77=:
19934       ;;
19935
19936     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19937       if test "$GCC" = yes; then
19938         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19939         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'
19940         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19941       else
19942         allow_undefined_flag_F77=' -expect_unresolved \*'
19943         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'
19944         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~
19945         $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'
19946
19947         # Both c and cxx compiler support -rpath directly
19948         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19949       fi
19950       hardcode_libdir_separator_F77=:
19951       ;;
19952
19953     sco3.2v5*)
19954       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19955       hardcode_shlibpath_var_F77=no
19956       export_dynamic_flag_spec_F77='${wl}-Bexport'
19957       runpath_var=LD_RUN_PATH
19958       hardcode_runpath_var=yes
19959       ;;
19960
19961     solaris*)
19962       no_undefined_flag_F77=' -z text'
19963       if test "$GCC" = yes; then
19964         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19965         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19966           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19967       else
19968         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19969         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19970         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19971       fi
19972       hardcode_libdir_flag_spec_F77='-R$libdir'
19973       hardcode_shlibpath_var_F77=no
19974       case $host_os in
19975       solaris2.[0-5] | solaris2.[0-5].*) ;;
19976       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19977         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19978       esac
19979       link_all_deplibs_F77=yes
19980       ;;
19981
19982     sunos4*)
19983       if test "x$host_vendor" = xsequent; then
19984         # Use $CC to link under sequent, because it throws in some extra .o
19985         # files that make .init and .fini sections work.
19986         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19987       else
19988         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19989       fi
19990       hardcode_libdir_flag_spec_F77='-L$libdir'
19991       hardcode_direct_F77=yes
19992       hardcode_minus_L_F77=yes
19993       hardcode_shlibpath_var_F77=no
19994       ;;
19995
19996     sysv4)
19997       case $host_vendor in
19998         sni)
19999           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20000           hardcode_direct_F77=yes # is this really true???
20001         ;;
20002         siemens)
20003           ## LD is ld it makes a PLAMLIB
20004           ## CC just makes a GrossModule.
20005           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20006           reload_cmds_F77='$CC -r -o $output$reload_objs'
20007           hardcode_direct_F77=no
20008         ;;
20009         motorola)
20010           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20011           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20012         ;;
20013       esac
20014       runpath_var='LD_RUN_PATH'
20015       hardcode_shlibpath_var_F77=no
20016       ;;
20017
20018     sysv4.3*)
20019       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20020       hardcode_shlibpath_var_F77=no
20021       export_dynamic_flag_spec_F77='-Bexport'
20022       ;;
20023
20024     sysv4*MP*)
20025       if test -d /usr/nec; then
20026         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20027         hardcode_shlibpath_var_F77=no
20028         runpath_var=LD_RUN_PATH
20029         hardcode_runpath_var=yes
20030         ld_shlibs_F77=yes
20031       fi
20032       ;;
20033
20034     sysv4.2uw2*)
20035       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20036       hardcode_direct_F77=yes
20037       hardcode_minus_L_F77=no
20038       hardcode_shlibpath_var_F77=no
20039       hardcode_runpath_var=yes
20040       runpath_var=LD_RUN_PATH
20041       ;;
20042
20043    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
20044       no_undefined_flag_F77='${wl}-z ${wl}text'
20045       if test "$GCC" = yes; then
20046         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20047       else
20048         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20049       fi
20050       runpath_var='LD_RUN_PATH'
20051       hardcode_shlibpath_var_F77=no
20052       ;;
20053
20054     sysv5*)
20055       no_undefined_flag_F77=' -z text'
20056       # $CC -shared without GNU ld will not create a library from C++
20057       # object files and a static libstdc++, better avoid it by now
20058       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20059       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20060                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20061       hardcode_libdir_flag_spec_F77=
20062       hardcode_shlibpath_var_F77=no
20063       runpath_var='LD_RUN_PATH'
20064       ;;
20065
20066     uts4*)
20067       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20068       hardcode_libdir_flag_spec_F77='-L$libdir'
20069       hardcode_shlibpath_var_F77=no
20070       ;;
20071
20072     *)
20073       ld_shlibs_F77=no
20074       ;;
20075     esac
20076   fi
20077
20078 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20079 echo "${ECHO_T}$ld_shlibs_F77" >&6
20080 test "$ld_shlibs_F77" = no && can_build_shared=no
20081
20082 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20083 if test "$GCC" = yes; then
20084   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20085 fi
20086
20087 #
20088 # Do we need to explicitly link libc?
20089 #
20090 case "x$archive_cmds_need_lc_F77" in
20091 x|xyes)
20092   # Assume -lc should be added
20093   archive_cmds_need_lc_F77=yes
20094
20095   if test "$enable_shared" = yes && test "$GCC" = yes; then
20096     case $archive_cmds_F77 in
20097     *'~'*)
20098       # FIXME: we may have to deal with multi-command sequences.
20099       ;;
20100     '$CC '*)
20101       # Test whether the compiler implicitly links with -lc since on some
20102       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20103       # to ld, don't add -lc before -lgcc.
20104       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20105 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20106       $rm conftest*
20107       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20108
20109       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20110   (eval $ac_compile) 2>&5
20111   ac_status=$?
20112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113   (exit $ac_status); } 2>conftest.err; then
20114         soname=conftest
20115         lib=conftest
20116         libobjs=conftest.$ac_objext
20117         deplibs=
20118         wl=$lt_prog_compiler_wl_F77
20119         compiler_flags=-v
20120         linker_flags=-v
20121         verstring=
20122         output_objdir=.
20123         libname=conftest
20124         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20125         allow_undefined_flag_F77=
20126         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20127   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20128   ac_status=$?
20129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130   (exit $ac_status); }
20131         then
20132           archive_cmds_need_lc_F77=no
20133         else
20134           archive_cmds_need_lc_F77=yes
20135         fi
20136         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20137       else
20138         cat conftest.err 1>&5
20139       fi
20140       $rm conftest*
20141       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20142 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20143       ;;
20144     esac
20145   fi
20146   ;;
20147 esac
20148
20149 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20150 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20151 library_names_spec=
20152 libname_spec='lib$name'
20153 soname_spec=
20154 shrext_cmds=".so"
20155 postinstall_cmds=
20156 postuninstall_cmds=
20157 finish_cmds=
20158 finish_eval=
20159 shlibpath_var=
20160 shlibpath_overrides_runpath=unknown
20161 version_type=none
20162 dynamic_linker="$host_os ld.so"
20163 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20164 if test "$GCC" = yes; then
20165   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20166   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20167     # if the path contains ";" then we assume it to be the separator
20168     # otherwise default to the standard path separator (i.e. ":") - it is
20169     # assumed that no part of a normal pathname contains ";" but that should
20170     # okay in the real world where ";" in dirpaths is itself problematic.
20171     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20172   else
20173     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20174   fi
20175 else
20176   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20177 fi
20178 need_lib_prefix=unknown
20179 hardcode_into_libs=no
20180
20181 # when you set need_version to no, make sure it does not cause -set_version
20182 # flags to be left without arguments
20183 need_version=unknown
20184
20185 case $host_os in
20186 aix3*)
20187   version_type=linux
20188   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20189   shlibpath_var=LIBPATH
20190
20191   # AIX 3 has no versioning support, so we append a major version to the name.
20192   soname_spec='${libname}${release}${shared_ext}$major'
20193   ;;
20194
20195 aix4* | aix5*)
20196   version_type=linux
20197   need_lib_prefix=no
20198   need_version=no
20199   hardcode_into_libs=yes
20200   if test "$host_cpu" = ia64; then
20201     # AIX 5 supports IA64
20202     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20203     shlibpath_var=LD_LIBRARY_PATH
20204   else
20205     # With GCC up to 2.95.x, collect2 would create an import file
20206     # for dependence libraries.  The import file would start with
20207     # the line `#! .'.  This would cause the generated library to
20208     # depend on `.', always an invalid library.  This was fixed in
20209     # development snapshots of GCC prior to 3.0.
20210     case $host_os in
20211       aix4 | aix4.[01] | aix4.[01].*)
20212       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20213            echo ' yes '
20214            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20215         :
20216       else
20217         can_build_shared=no
20218       fi
20219       ;;
20220     esac
20221     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20222     # soname into executable. Probably we can add versioning support to
20223     # collect2, so additional links can be useful in future.
20224     if test "$aix_use_runtimelinking" = yes; then
20225       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20226       # instead of lib<name>.a to let people know that these are not
20227       # typical AIX shared libraries.
20228       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20229     else
20230       # We preserve .a as extension for shared libraries through AIX4.2
20231       # and later when we are not doing run time linking.
20232       library_names_spec='${libname}${release}.a $libname.a'
20233       soname_spec='${libname}${release}${shared_ext}$major'
20234     fi
20235     shlibpath_var=LIBPATH
20236   fi
20237   ;;
20238
20239 amigaos*)
20240   library_names_spec='$libname.ixlibrary $libname.a'
20241   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20242   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'
20243   ;;
20244
20245 beos*)
20246   library_names_spec='${libname}${shared_ext}'
20247   dynamic_linker="$host_os ld.so"
20248   shlibpath_var=LIBRARY_PATH
20249   ;;
20250
20251 bsdi[45]*)
20252   version_type=linux
20253   need_version=no
20254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20255   soname_spec='${libname}${release}${shared_ext}$major'
20256   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20257   shlibpath_var=LD_LIBRARY_PATH
20258   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20259   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20260   # the default ld.so.conf also contains /usr/contrib/lib and
20261   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20262   # libtool to hard-code these into programs
20263   ;;
20264
20265 cygwin* | mingw* | pw32*)
20266   version_type=windows
20267   shrext_cmds=".dll"
20268   need_version=no
20269   need_lib_prefix=no
20270
20271   case $GCC,$host_os in
20272   yes,cygwin* | yes,mingw* | yes,pw32*)
20273     library_names_spec='$libname.dll.a'
20274     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20275     postinstall_cmds='base_file=`basename \${file}`~
20276       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20277       dldir=$destdir/`dirname \$dlpath`~
20278       test -d \$dldir || mkdir -p \$dldir~
20279       $install_prog $dir/$dlname \$dldir/$dlname'
20280     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20281       dlpath=$dir/\$dldll~
20282        $rm \$dlpath'
20283     shlibpath_overrides_runpath=yes
20284
20285     case $host_os in
20286     cygwin*)
20287       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20288       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20289       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20290       ;;
20291     mingw*)
20292       # MinGW DLLs use traditional 'lib' prefix
20293       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20294       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20295       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20296         # It is most probably a Windows format PATH printed by
20297         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20298         # path with ; separators, and with drive letters. We can handle the
20299         # drive letters (cygwin fileutils understands them), so leave them,
20300         # especially as we might pass files found there to a mingw objdump,
20301         # which wouldn't understand a cygwinified path. Ahh.
20302         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20303       else
20304         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20305       fi
20306       ;;
20307     pw32*)
20308       # pw32 DLLs use 'pw' prefix rather than 'lib'
20309       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20310       ;;
20311     esac
20312     ;;
20313
20314   *)
20315     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20316     ;;
20317   esac
20318   dynamic_linker='Win32 ld.exe'
20319   # FIXME: first we should search . and the directory the executable is in
20320   shlibpath_var=PATH
20321   ;;
20322
20323 darwin* | rhapsody*)
20324   dynamic_linker="$host_os dyld"
20325   version_type=darwin
20326   need_lib_prefix=no
20327   need_version=no
20328   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20329   soname_spec='${libname}${release}${major}$shared_ext'
20330   shlibpath_overrides_runpath=yes
20331   shlibpath_var=DYLD_LIBRARY_PATH
20332   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20333   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20334   if test "$GCC" = yes; then
20335     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"`
20336   else
20337     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20338   fi
20339   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20340   ;;
20341
20342 dgux*)
20343   version_type=linux
20344   need_lib_prefix=no
20345   need_version=no
20346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20347   soname_spec='${libname}${release}${shared_ext}$major'
20348   shlibpath_var=LD_LIBRARY_PATH
20349   ;;
20350
20351 freebsd1*)
20352   dynamic_linker=no
20353   ;;
20354
20355 kfreebsd*-gnu)
20356   version_type=linux
20357   need_lib_prefix=no
20358   need_version=no
20359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20360   soname_spec='${libname}${release}${shared_ext}$major'
20361   shlibpath_var=LD_LIBRARY_PATH
20362   shlibpath_overrides_runpath=no
20363   hardcode_into_libs=yes
20364   dynamic_linker='GNU ld.so'
20365   ;;
20366
20367 freebsd*)
20368   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20369   version_type=freebsd-$objformat
20370   case $version_type in
20371     freebsd-elf*)
20372       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20373       need_version=no
20374       need_lib_prefix=no
20375       ;;
20376     freebsd-*)
20377       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20378       need_version=yes
20379       ;;
20380   esac
20381   shlibpath_var=LD_LIBRARY_PATH
20382   case $host_os in
20383   freebsd2*)
20384     shlibpath_overrides_runpath=yes
20385     ;;
20386   freebsd3.01* | freebsdelf3.01*)
20387     shlibpath_overrides_runpath=yes
20388     hardcode_into_libs=yes
20389     ;;
20390   *) # from 3.2 on
20391     shlibpath_overrides_runpath=no
20392     hardcode_into_libs=yes
20393     ;;
20394   esac
20395   ;;
20396
20397 gnu*)
20398   version_type=linux
20399   need_lib_prefix=no
20400   need_version=no
20401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20402   soname_spec='${libname}${release}${shared_ext}$major'
20403   shlibpath_var=LD_LIBRARY_PATH
20404   hardcode_into_libs=yes
20405   ;;
20406
20407 hpux9* | hpux10* | hpux11*)
20408   # Give a soname corresponding to the major version so that dld.sl refuses to
20409   # link against other versions.
20410   version_type=sunos
20411   need_lib_prefix=no
20412   need_version=no
20413   case "$host_cpu" in
20414   ia64*)
20415     shrext_cmds='.so'
20416     hardcode_into_libs=yes
20417     dynamic_linker="$host_os dld.so"
20418     shlibpath_var=LD_LIBRARY_PATH
20419     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20420     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20421     soname_spec='${libname}${release}${shared_ext}$major'
20422     if test "X$HPUX_IA64_MODE" = X32; then
20423       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20424     else
20425       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20426     fi
20427     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20428     ;;
20429    hppa*64*)
20430      shrext_cmds='.sl'
20431      hardcode_into_libs=yes
20432      dynamic_linker="$host_os dld.sl"
20433      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20434      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20435      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20436      soname_spec='${libname}${release}${shared_ext}$major'
20437      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20438      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20439      ;;
20440    *)
20441     shrext_cmds='.sl'
20442     dynamic_linker="$host_os dld.sl"
20443     shlibpath_var=SHLIB_PATH
20444     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20445     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20446     soname_spec='${libname}${release}${shared_ext}$major'
20447     ;;
20448   esac
20449   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20450   postinstall_cmds='chmod 555 $lib'
20451   ;;
20452
20453 irix5* | irix6* | nonstopux*)
20454   case $host_os in
20455     nonstopux*) version_type=nonstopux ;;
20456     *)
20457         if test "$lt_cv_prog_gnu_ld" = yes; then
20458                 version_type=linux
20459         else
20460                 version_type=irix
20461         fi ;;
20462   esac
20463   need_lib_prefix=no
20464   need_version=no
20465   soname_spec='${libname}${release}${shared_ext}$major'
20466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20467   case $host_os in
20468   irix5* | nonstopux*)
20469     libsuff= shlibsuff=
20470     ;;
20471   *)
20472     case $LD in # libtool.m4 will add one of these switches to LD
20473     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20474       libsuff= shlibsuff= libmagic=32-bit;;
20475     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20476       libsuff=32 shlibsuff=N32 libmagic=N32;;
20477     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20478       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20479     *) libsuff= shlibsuff= libmagic=never-match;;
20480     esac
20481     ;;
20482   esac
20483   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20484   shlibpath_overrides_runpath=no
20485   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20486   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20487   hardcode_into_libs=yes
20488   ;;
20489
20490 # No shared lib support for Linux oldld, aout, or coff.
20491 linux*oldld* | linux*aout* | linux*coff*)
20492   dynamic_linker=no
20493   ;;
20494
20495 # This must be Linux ELF.
20496 linux*)
20497   version_type=linux
20498   need_lib_prefix=no
20499   need_version=no
20500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20501   soname_spec='${libname}${release}${shared_ext}$major'
20502   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20503   shlibpath_var=LD_LIBRARY_PATH
20504   shlibpath_overrides_runpath=no
20505   # This implies no fast_install, which is unacceptable.
20506   # Some rework will be needed to allow for fast_install
20507   # before this can be enabled.
20508   hardcode_into_libs=yes
20509
20510   # Append ld.so.conf contents to the search path
20511   if test -f /etc/ld.so.conf; then
20512     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20513     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20514   fi
20515
20516   # We used to test for /lib/ld.so.1 and disable shared libraries on
20517   # powerpc, because MkLinux only supported shared libraries with the
20518   # GNU dynamic linker.  Since this was broken with cross compilers,
20519   # most powerpc-linux boxes support dynamic linking these days and
20520   # people can always --disable-shared, the test was removed, and we
20521   # assume the GNU/Linux dynamic linker is in use.
20522   dynamic_linker='GNU/Linux ld.so'
20523   ;;
20524
20525 knetbsd*-gnu)
20526   version_type=linux
20527   need_lib_prefix=no
20528   need_version=no
20529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20530   soname_spec='${libname}${release}${shared_ext}$major'
20531   shlibpath_var=LD_LIBRARY_PATH
20532   shlibpath_overrides_runpath=no
20533   hardcode_into_libs=yes
20534   dynamic_linker='GNU ld.so'
20535   ;;
20536
20537 netbsd*)
20538   version_type=sunos
20539   need_lib_prefix=no
20540   need_version=no
20541   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20542     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20543     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20544     dynamic_linker='NetBSD (a.out) ld.so'
20545   else
20546     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20547     soname_spec='${libname}${release}${shared_ext}$major'
20548     dynamic_linker='NetBSD ld.elf_so'
20549   fi
20550   shlibpath_var=LD_LIBRARY_PATH
20551   shlibpath_overrides_runpath=yes
20552   hardcode_into_libs=yes
20553   ;;
20554
20555 newsos6)
20556   version_type=linux
20557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20558   shlibpath_var=LD_LIBRARY_PATH
20559   shlibpath_overrides_runpath=yes
20560   ;;
20561
20562 nto-qnx*)
20563   version_type=linux
20564   need_lib_prefix=no
20565   need_version=no
20566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20567   soname_spec='${libname}${release}${shared_ext}$major'
20568   shlibpath_var=LD_LIBRARY_PATH
20569   shlibpath_overrides_runpath=yes
20570   ;;
20571
20572 openbsd*)
20573   version_type=sunos
20574   need_lib_prefix=no
20575   need_version=no
20576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20577   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20578   shlibpath_var=LD_LIBRARY_PATH
20579   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20580     case $host_os in
20581       openbsd2.[89] | openbsd2.[89].*)
20582         shlibpath_overrides_runpath=no
20583         ;;
20584       *)
20585         shlibpath_overrides_runpath=yes
20586         ;;
20587       esac
20588   else
20589     shlibpath_overrides_runpath=yes
20590   fi
20591   ;;
20592
20593 os2*)
20594   libname_spec='$name'
20595   shrext_cmds=".dll"
20596   need_lib_prefix=no
20597   library_names_spec='$libname${shared_ext} $libname.a'
20598   dynamic_linker='OS/2 ld.exe'
20599   shlibpath_var=LIBPATH
20600   ;;
20601
20602 osf3* | osf4* | osf5*)
20603   version_type=osf
20604   need_lib_prefix=no
20605   need_version=no
20606   soname_spec='${libname}${release}${shared_ext}$major'
20607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20608   shlibpath_var=LD_LIBRARY_PATH
20609   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20610   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20611   ;;
20612
20613 sco3.2v5*)
20614   version_type=osf
20615   soname_spec='${libname}${release}${shared_ext}$major'
20616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20617   shlibpath_var=LD_LIBRARY_PATH
20618   ;;
20619
20620 solaris*)
20621   version_type=linux
20622   need_lib_prefix=no
20623   need_version=no
20624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20625   soname_spec='${libname}${release}${shared_ext}$major'
20626   shlibpath_var=LD_LIBRARY_PATH
20627   shlibpath_overrides_runpath=yes
20628   hardcode_into_libs=yes
20629   # ldd complains unless libraries are executable
20630   postinstall_cmds='chmod +x $lib'
20631   ;;
20632
20633 sunos4*)
20634   version_type=sunos
20635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20636   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20637   shlibpath_var=LD_LIBRARY_PATH
20638   shlibpath_overrides_runpath=yes
20639   if test "$with_gnu_ld" = yes; then
20640     need_lib_prefix=no
20641   fi
20642   need_version=yes
20643   ;;
20644
20645 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20646   version_type=linux
20647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20648   soname_spec='${libname}${release}${shared_ext}$major'
20649   shlibpath_var=LD_LIBRARY_PATH
20650   case $host_vendor in
20651     sni)
20652       shlibpath_overrides_runpath=no
20653       need_lib_prefix=no
20654       export_dynamic_flag_spec='${wl}-Blargedynsym'
20655       runpath_var=LD_RUN_PATH
20656       ;;
20657     siemens)
20658       need_lib_prefix=no
20659       ;;
20660     motorola)
20661       need_lib_prefix=no
20662       need_version=no
20663       shlibpath_overrides_runpath=no
20664       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20665       ;;
20666   esac
20667   ;;
20668
20669 sysv4*MP*)
20670   if test -d /usr/nec ;then
20671     version_type=linux
20672     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20673     soname_spec='$libname${shared_ext}.$major'
20674     shlibpath_var=LD_LIBRARY_PATH
20675   fi
20676   ;;
20677
20678 uts4*)
20679   version_type=linux
20680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20681   soname_spec='${libname}${release}${shared_ext}$major'
20682   shlibpath_var=LD_LIBRARY_PATH
20683   ;;
20684
20685 *)
20686   dynamic_linker=no
20687   ;;
20688 esac
20689 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20690 echo "${ECHO_T}$dynamic_linker" >&6
20691 test "$dynamic_linker" = no && can_build_shared=no
20692
20693 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20694 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20695 hardcode_action_F77=
20696 if test -n "$hardcode_libdir_flag_spec_F77" || \
20697    test -n "$runpath_var_F77" || \
20698    test "X$hardcode_automatic_F77" = "Xyes" ; then
20699
20700   # We can hardcode non-existant directories.
20701   if test "$hardcode_direct_F77" != no &&
20702      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20703      # have to relink, otherwise we might link with an installed library
20704      # when we should be linking with a yet-to-be-installed one
20705      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20706      test "$hardcode_minus_L_F77" != no; then
20707     # Linking always hardcodes the temporary library directory.
20708     hardcode_action_F77=relink
20709   else
20710     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20711     hardcode_action_F77=immediate
20712   fi
20713 else
20714   # We cannot hardcode anything, or else we can only hardcode existing
20715   # directories.
20716   hardcode_action_F77=unsupported
20717 fi
20718 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20719 echo "${ECHO_T}$hardcode_action_F77" >&6
20720
20721 if test "$hardcode_action_F77" = relink; then
20722   # Fast installation is not supported
20723   enable_fast_install=no
20724 elif test "$shlibpath_overrides_runpath" = yes ||
20725      test "$enable_shared" = no; then
20726   # Fast installation is not necessary
20727   enable_fast_install=needless
20728 fi
20729
20730 striplib=
20731 old_striplib=
20732 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20733 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20734 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20735   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20736   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20737   echo "$as_me:$LINENO: result: yes" >&5
20738 echo "${ECHO_T}yes" >&6
20739 else
20740 # FIXME - insert some real tests, host_os isn't really good enough
20741   case $host_os in
20742    darwin*)
20743        if test -n "$STRIP" ; then
20744          striplib="$STRIP -x"
20745          echo "$as_me:$LINENO: result: yes" >&5
20746 echo "${ECHO_T}yes" >&6
20747        else
20748   echo "$as_me:$LINENO: result: no" >&5
20749 echo "${ECHO_T}no" >&6
20750 fi
20751        ;;
20752    *)
20753   echo "$as_me:$LINENO: result: no" >&5
20754 echo "${ECHO_T}no" >&6
20755     ;;
20756   esac
20757 fi
20758
20759
20760
20761 # The else clause should only fire when bootstrapping the
20762 # libtool distribution, otherwise you forgot to ship ltmain.sh
20763 # with your package, and you will get complaints that there are
20764 # no rules to generate ltmain.sh.
20765 if test -f "$ltmain"; then
20766   # See if we are running on zsh, and set the options which allow our commands through
20767   # without removal of \ escapes.
20768   if test -n "${ZSH_VERSION+set}" ; then
20769     setopt NO_GLOB_SUBST
20770   fi
20771   # Now quote all the things that may contain metacharacters while being
20772   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20773   # variables and quote the copies for generation of the libtool script.
20774   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20775     SED SHELL STRIP \
20776     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20777     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20778     deplibs_check_method reload_flag reload_cmds need_locks \
20779     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20780     lt_cv_sys_global_symbol_to_c_name_address \
20781     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20782     old_postinstall_cmds old_postuninstall_cmds \
20783     compiler_F77 \
20784     CC_F77 \
20785     LD_F77 \
20786     lt_prog_compiler_wl_F77 \
20787     lt_prog_compiler_pic_F77 \
20788     lt_prog_compiler_static_F77 \
20789     lt_prog_compiler_no_builtin_flag_F77 \
20790     export_dynamic_flag_spec_F77 \
20791     thread_safe_flag_spec_F77 \
20792     whole_archive_flag_spec_F77 \
20793     enable_shared_with_static_runtimes_F77 \
20794     old_archive_cmds_F77 \
20795     old_archive_from_new_cmds_F77 \
20796     predep_objects_F77 \
20797     postdep_objects_F77 \
20798     predeps_F77 \
20799     postdeps_F77 \
20800     compiler_lib_search_path_F77 \
20801     archive_cmds_F77 \
20802     archive_expsym_cmds_F77 \
20803     postinstall_cmds_F77 \
20804     postuninstall_cmds_F77 \
20805     old_archive_from_expsyms_cmds_F77 \
20806     allow_undefined_flag_F77 \
20807     no_undefined_flag_F77 \
20808     export_symbols_cmds_F77 \
20809     hardcode_libdir_flag_spec_F77 \
20810     hardcode_libdir_flag_spec_ld_F77 \
20811     hardcode_libdir_separator_F77 \
20812     hardcode_automatic_F77 \
20813     module_cmds_F77 \
20814     module_expsym_cmds_F77 \
20815     lt_cv_prog_compiler_c_o_F77 \
20816     exclude_expsyms_F77 \
20817     include_expsyms_F77; do
20818
20819     case $var in
20820     old_archive_cmds_F77 | \
20821     old_archive_from_new_cmds_F77 | \
20822     archive_cmds_F77 | \
20823     archive_expsym_cmds_F77 | \
20824     module_cmds_F77 | \
20825     module_expsym_cmds_F77 | \
20826     old_archive_from_expsyms_cmds_F77 | \
20827     export_symbols_cmds_F77 | \
20828     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20829     postinstall_cmds | postuninstall_cmds | \
20830     old_postinstall_cmds | old_postuninstall_cmds | \
20831     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20832       # Double-quote double-evaled strings.
20833       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20834       ;;
20835     *)
20836       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20837       ;;
20838     esac
20839   done
20840
20841   case $lt_echo in
20842   *'\$0 --fallback-echo"')
20843     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20844     ;;
20845   esac
20846
20847 cfgfile="$ofile"
20848
20849   cat <<__EOF__ >> "$cfgfile"
20850 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20851
20852 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20853
20854 # Shell to use when invoking shell scripts.
20855 SHELL=$lt_SHELL
20856
20857 # Whether or not to build shared libraries.
20858 build_libtool_libs=$enable_shared
20859
20860 # Whether or not to build static libraries.
20861 build_old_libs=$enable_static
20862
20863 # Whether or not to add -lc for building shared libraries.
20864 build_libtool_need_lc=$archive_cmds_need_lc_F77
20865
20866 # Whether or not to disallow shared libs when runtime libs are static
20867 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20868
20869 # Whether or not to optimize for fast installation.
20870 fast_install=$enable_fast_install
20871
20872 # The host system.
20873 host_alias=$host_alias
20874 host=$host
20875
20876 # An echo program that does not interpret backslashes.
20877 echo=$lt_echo
20878
20879 # The archiver.
20880 AR=$lt_AR
20881 AR_FLAGS=$lt_AR_FLAGS
20882
20883 # A C compiler.
20884 LTCC=$lt_LTCC
20885
20886 # A language-specific compiler.
20887 CC=$lt_compiler_F77
20888
20889 # Is the compiler the GNU C compiler?
20890 with_gcc=$GCC_F77
20891
20892 # An ERE matcher.
20893 EGREP=$lt_EGREP
20894
20895 # The linker used to build libraries.
20896 LD=$lt_LD_F77
20897
20898 # Whether we need hard or soft links.
20899 LN_S=$lt_LN_S
20900
20901 # A BSD-compatible nm program.
20902 NM=$lt_NM
20903
20904 # A symbol stripping program
20905 STRIP=$lt_STRIP
20906
20907 # Used to examine libraries when file_magic_cmd begins "file"
20908 MAGIC_CMD=$MAGIC_CMD
20909
20910 # Used on cygwin: DLL creation program.
20911 DLLTOOL="$DLLTOOL"
20912
20913 # Used on cygwin: object dumper.
20914 OBJDUMP="$OBJDUMP"
20915
20916 # Used on cygwin: assembler.
20917 AS="$AS"
20918
20919 # The name of the directory that contains temporary libtool files.
20920 objdir=$objdir
20921
20922 # How to create reloadable object files.
20923 reload_flag=$lt_reload_flag
20924 reload_cmds=$lt_reload_cmds
20925
20926 # How to pass a linker flag through the compiler.
20927 wl=$lt_lt_prog_compiler_wl_F77
20928
20929 # Object file suffix (normally "o").
20930 objext="$ac_objext"
20931
20932 # Old archive suffix (normally "a").
20933 libext="$libext"
20934
20935 # Shared library suffix (normally ".so").
20936 shrext_cmds='$shrext_cmds'
20937
20938 # Executable file suffix (normally "").
20939 exeext="$exeext"
20940
20941 # Additional compiler flags for building library objects.
20942 pic_flag=$lt_lt_prog_compiler_pic_F77
20943 pic_mode=$pic_mode
20944
20945 # What is the maximum length of a command?
20946 max_cmd_len=$lt_cv_sys_max_cmd_len
20947
20948 # Does compiler simultaneously support -c and -o options?
20949 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20950
20951 # Must we lock files when doing compilation ?
20952 need_locks=$lt_need_locks
20953
20954 # Do we need the lib prefix for modules?
20955 need_lib_prefix=$need_lib_prefix
20956
20957 # Do we need a version for libraries?
20958 need_version=$need_version
20959
20960 # Whether dlopen is supported.
20961 dlopen_support=$enable_dlopen
20962
20963 # Whether dlopen of programs is supported.
20964 dlopen_self=$enable_dlopen_self
20965
20966 # Whether dlopen of statically linked programs is supported.
20967 dlopen_self_static=$enable_dlopen_self_static
20968
20969 # Compiler flag to prevent dynamic linking.
20970 link_static_flag=$lt_lt_prog_compiler_static_F77
20971
20972 # Compiler flag to turn off builtin functions.
20973 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20974
20975 # Compiler flag to allow reflexive dlopens.
20976 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20977
20978 # Compiler flag to generate shared objects directly from archives.
20979 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20980
20981 # Compiler flag to generate thread-safe objects.
20982 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20983
20984 # Library versioning type.
20985 version_type=$version_type
20986
20987 # Format of library name prefix.
20988 libname_spec=$lt_libname_spec
20989
20990 # List of archive names.  First name is the real one, the rest are links.
20991 # The last name is the one that the linker finds with -lNAME.
20992 library_names_spec=$lt_library_names_spec
20993
20994 # The coded name of the library, if different from the real name.
20995 soname_spec=$lt_soname_spec
20996
20997 # Commands used to build and install an old-style archive.
20998 RANLIB=$lt_RANLIB
20999 old_archive_cmds=$lt_old_archive_cmds_F77
21000 old_postinstall_cmds=$lt_old_postinstall_cmds
21001 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21002
21003 # Create an old-style archive from a shared archive.
21004 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21005
21006 # Create a temporary old-style archive to link instead of a shared archive.
21007 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21008
21009 # Commands used to build and install a shared archive.
21010 archive_cmds=$lt_archive_cmds_F77
21011 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21012 postinstall_cmds=$lt_postinstall_cmds
21013 postuninstall_cmds=$lt_postuninstall_cmds
21014
21015 # Commands used to build a loadable module (assumed same as above if empty)
21016 module_cmds=$lt_module_cmds_F77
21017 module_expsym_cmds=$lt_module_expsym_cmds_F77
21018
21019 # Commands to strip libraries.
21020 old_striplib=$lt_old_striplib
21021 striplib=$lt_striplib
21022
21023 # Dependencies to place before the objects being linked to create a
21024 # shared library.
21025 predep_objects=$lt_predep_objects_F77
21026
21027 # Dependencies to place after the objects being linked to create a
21028 # shared library.
21029 postdep_objects=$lt_postdep_objects_F77
21030
21031 # Dependencies to place before the objects being linked to create a
21032 # shared library.
21033 predeps=$lt_predeps_F77
21034
21035 # Dependencies to place after the objects being linked to create a
21036 # shared library.
21037 postdeps=$lt_postdeps_F77
21038
21039 # The library search path used internally by the compiler when linking
21040 # a shared library.
21041 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21042
21043 # Method to check whether dependent libraries are shared objects.
21044 deplibs_check_method=$lt_deplibs_check_method
21045
21046 # Command to use when deplibs_check_method == file_magic.
21047 file_magic_cmd=$lt_file_magic_cmd
21048
21049 # Flag that allows shared libraries with undefined symbols to be built.
21050 allow_undefined_flag=$lt_allow_undefined_flag_F77
21051
21052 # Flag that forces no undefined symbols.
21053 no_undefined_flag=$lt_no_undefined_flag_F77
21054
21055 # Commands used to finish a libtool library installation in a directory.
21056 finish_cmds=$lt_finish_cmds
21057
21058 # Same as above, but a single script fragment to be evaled but not shown.
21059 finish_eval=$lt_finish_eval
21060
21061 # Take the output of nm and produce a listing of raw symbols and C names.
21062 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21063
21064 # Transform the output of nm in a proper C declaration
21065 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21066
21067 # Transform the output of nm in a C name address pair
21068 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21069
21070 # This is the shared library runtime path variable.
21071 runpath_var=$runpath_var
21072
21073 # This is the shared library path variable.
21074 shlibpath_var=$shlibpath_var
21075
21076 # Is shlibpath searched before the hard-coded library search path?
21077 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21078
21079 # How to hardcode a shared library path into an executable.
21080 hardcode_action=$hardcode_action_F77
21081
21082 # Whether we should hardcode library paths into libraries.
21083 hardcode_into_libs=$hardcode_into_libs
21084
21085 # Flag to hardcode \$libdir into a binary during linking.
21086 # This must work even if \$libdir does not exist.
21087 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21088
21089 # If ld is used when linking, flag to hardcode \$libdir into
21090 # a binary during linking. This must work even if \$libdir does
21091 # not exist.
21092 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21093
21094 # Whether we need a single -rpath flag with a separated argument.
21095 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21096
21097 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21098 # resulting binary.
21099 hardcode_direct=$hardcode_direct_F77
21100
21101 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21102 # resulting binary.
21103 hardcode_minus_L=$hardcode_minus_L_F77
21104
21105 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21106 # the resulting binary.
21107 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21108
21109 # Set to yes if building a shared library automatically hardcodes DIR into the library
21110 # and all subsequent libraries and executables linked against it.
21111 hardcode_automatic=$hardcode_automatic_F77
21112
21113 # Variables whose values should be saved in libtool wrapper scripts and
21114 # restored at relink time.
21115 variables_saved_for_relink="$variables_saved_for_relink"
21116
21117 # Whether libtool must link a program against all its dependency libraries.
21118 link_all_deplibs=$link_all_deplibs_F77
21119
21120 # Compile-time system search path for libraries
21121 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21122
21123 # Run-time system search path for libraries
21124 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21125
21126 # Fix the shell variable \$srcfile for the compiler.
21127 fix_srcfile_path="$fix_srcfile_path_F77"
21128
21129 # Set to yes if exported symbols are required.
21130 always_export_symbols=$always_export_symbols_F77
21131
21132 # The commands to list exported symbols.
21133 export_symbols_cmds=$lt_export_symbols_cmds_F77
21134
21135 # The commands to extract the exported symbol list from a shared archive.
21136 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21137
21138 # Symbols that should not be listed in the preloaded symbols.
21139 exclude_expsyms=$lt_exclude_expsyms_F77
21140
21141 # Symbols that must always be exported.
21142 include_expsyms=$lt_include_expsyms_F77
21143
21144 # ### END LIBTOOL TAG CONFIG: $tagname
21145
21146 __EOF__
21147
21148
21149 else
21150   # If there is no Makefile yet, we rely on a make rule to execute
21151   # `config.status --recheck' to rerun these tests and create the
21152   # libtool script then.
21153   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21154   if test -f "$ltmain_in"; then
21155     test -f Makefile && make "$ltmain"
21156   fi
21157 fi
21158
21159
21160 ac_ext=c
21161 ac_cpp='$CPP $CPPFLAGS'
21162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21165
21166 CC="$lt_save_CC"
21167
21168         else
21169           tagname=""
21170         fi
21171         ;;
21172
21173       GCJ)
21174         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21175           ac_ext=c
21176 ac_cpp='$CPP $CPPFLAGS'
21177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21180
21181
21182 # Source file extension for Java test sources.
21183 ac_ext=java
21184
21185 # Object file extension for compiled Java test sources.
21186 objext=o
21187 objext_GCJ=$objext
21188
21189 # Code to be used in simple compile tests
21190 lt_simple_compile_test_code="class foo {}\n"
21191
21192 # Code to be used in simple link tests
21193 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21194
21195 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21196
21197 # If no C compiler was specified, use CC.
21198 LTCC=${LTCC-"$CC"}
21199
21200 # Allow CC to be a program name with arguments.
21201 compiler=$CC
21202
21203
21204 # Allow CC to be a program name with arguments.
21205 lt_save_CC="$CC"
21206 CC=${GCJ-"gcj"}
21207 compiler=$CC
21208 compiler_GCJ=$CC
21209
21210 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21211 archive_cmds_need_lc_GCJ=no
21212
21213
21214 lt_prog_compiler_no_builtin_flag_GCJ=
21215
21216 if test "$GCC" = yes; then
21217   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21218
21219
21220 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21221 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21222 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21223   echo $ECHO_N "(cached) $ECHO_C" >&6
21224 else
21225   lt_cv_prog_compiler_rtti_exceptions=no
21226   ac_outfile=conftest.$ac_objext
21227    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21228    lt_compiler_flag="-fno-rtti -fno-exceptions"
21229    # Insert the option either (1) after the last *FLAGS variable, or
21230    # (2) before a word containing "conftest.", or (3) at the end.
21231    # Note that $ac_compile itself does not contain backslashes and begins
21232    # with a dollar sign (not a hyphen), so the echo should work correctly.
21233    # The option is referenced via a variable to avoid confusing sed.
21234    lt_compile=`echo "$ac_compile" | $SED \
21235    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21236    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21237    -e 's:$: $lt_compiler_flag:'`
21238    (eval echo "\"\$as_me:21238: $lt_compile\"" >&5)
21239    (eval "$lt_compile" 2>conftest.err)
21240    ac_status=$?
21241    cat conftest.err >&5
21242    echo "$as_me:21242: \$? = $ac_status" >&5
21243    if (exit $ac_status) && test -s "$ac_outfile"; then
21244      # The compiler can only warn and ignore the option if not recognized
21245      # So say no if there are warnings
21246      if test ! -s conftest.err; then
21247        lt_cv_prog_compiler_rtti_exceptions=yes
21248      fi
21249    fi
21250    $rm conftest*
21251
21252 fi
21253 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21254 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21255
21256 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21257     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21258 else
21259     :
21260 fi
21261
21262 fi
21263
21264 lt_prog_compiler_wl_GCJ=
21265 lt_prog_compiler_pic_GCJ=
21266 lt_prog_compiler_static_GCJ=
21267
21268 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21269 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21270
21271   if test "$GCC" = yes; then
21272     lt_prog_compiler_wl_GCJ='-Wl,'
21273     lt_prog_compiler_static_GCJ='-static'
21274
21275     case $host_os in
21276       aix*)
21277       # All AIX code is PIC.
21278       if test "$host_cpu" = ia64; then
21279         # AIX 5 now supports IA64 processor
21280         lt_prog_compiler_static_GCJ='-Bstatic'
21281       fi
21282       ;;
21283
21284     amigaos*)
21285       # FIXME: we need at least 68020 code to build shared libraries, but
21286       # adding the `-m68020' flag to GCC prevents building anything better,
21287       # like `-m68040'.
21288       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21289       ;;
21290
21291     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21292       # PIC is the default for these OSes.
21293       ;;
21294
21295     mingw* | pw32* | os2*)
21296       # This hack is so that the source file can tell whether it is being
21297       # built for inclusion in a dll (and should export symbols for example).
21298       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21299       ;;
21300
21301     darwin* | rhapsody*)
21302       # PIC is the default on this platform
21303       # Common symbols not allowed in MH_DYLIB files
21304       lt_prog_compiler_pic_GCJ='-fno-common'
21305       ;;
21306
21307     msdosdjgpp*)
21308       # Just because we use GCC doesn't mean we suddenly get shared libraries
21309       # on systems that don't support them.
21310       lt_prog_compiler_can_build_shared_GCJ=no
21311       enable_shared=no
21312       ;;
21313
21314     sysv4*MP*)
21315       if test -d /usr/nec; then
21316         lt_prog_compiler_pic_GCJ=-Kconform_pic
21317       fi
21318       ;;
21319
21320     hpux*)
21321       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21322       # not for PA HP-UX.
21323       case "$host_cpu" in
21324       hppa*64*|ia64*)
21325         # +Z the default
21326         ;;
21327       *)
21328         lt_prog_compiler_pic_GCJ='-fPIC'
21329         ;;
21330       esac
21331       ;;
21332
21333     *)
21334       lt_prog_compiler_pic_GCJ='-fPIC'
21335       ;;
21336     esac
21337   else
21338     # PORTME Check for flag to pass linker flags through the system compiler.
21339     case $host_os in
21340     aix*)
21341       lt_prog_compiler_wl_GCJ='-Wl,'
21342       if test "$host_cpu" = ia64; then
21343         # AIX 5 now supports IA64 processor
21344         lt_prog_compiler_static_GCJ='-Bstatic'
21345       else
21346         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21347       fi
21348       ;;
21349       darwin*)
21350         # PIC is the default on this platform
21351         # Common symbols not allowed in MH_DYLIB files
21352        case "$cc_basename" in
21353          xlc*)
21354          lt_prog_compiler_pic_GCJ='-qnocommon'
21355          lt_prog_compiler_wl_GCJ='-Wl,'
21356          ;;
21357        esac
21358        ;;
21359
21360     mingw* | pw32* | os2*)
21361       # This hack is so that the source file can tell whether it is being
21362       # built for inclusion in a dll (and should export symbols for example).
21363       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21364       ;;
21365
21366     hpux9* | hpux10* | hpux11*)
21367       lt_prog_compiler_wl_GCJ='-Wl,'
21368       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21369       # not for PA HP-UX.
21370       case "$host_cpu" in
21371       hppa*64*|ia64*)
21372         # +Z the default
21373         ;;
21374       *)
21375         lt_prog_compiler_pic_GCJ='+Z'
21376         ;;
21377       esac
21378       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21379       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21380       ;;
21381
21382     irix5* | irix6* | nonstopux*)
21383       lt_prog_compiler_wl_GCJ='-Wl,'
21384       # PIC (with -KPIC) is the default.
21385       lt_prog_compiler_static_GCJ='-non_shared'
21386       ;;
21387
21388     newsos6)
21389       lt_prog_compiler_pic_GCJ='-KPIC'
21390       lt_prog_compiler_static_GCJ='-Bstatic'
21391       ;;
21392
21393     linux*)
21394       case $CC in
21395       icc* | ecc*)
21396         lt_prog_compiler_wl_GCJ='-Wl,'
21397         lt_prog_compiler_pic_GCJ='-KPIC'
21398         lt_prog_compiler_static_GCJ='-static'
21399         ;;
21400       ccc*)
21401         lt_prog_compiler_wl_GCJ='-Wl,'
21402         # All Alpha code is PIC.
21403         lt_prog_compiler_static_GCJ='-non_shared'
21404         ;;
21405       esac
21406       ;;
21407
21408     osf3* | osf4* | osf5*)
21409       lt_prog_compiler_wl_GCJ='-Wl,'
21410       # All OSF/1 code is PIC.
21411       lt_prog_compiler_static_GCJ='-non_shared'
21412       ;;
21413
21414     sco3.2v5*)
21415       lt_prog_compiler_pic_GCJ='-Kpic'
21416       lt_prog_compiler_static_GCJ='-dn'
21417       ;;
21418
21419     solaris*)
21420       lt_prog_compiler_wl_GCJ='-Wl,'
21421       lt_prog_compiler_pic_GCJ='-KPIC'
21422       lt_prog_compiler_static_GCJ='-Bstatic'
21423       ;;
21424
21425     sunos4*)
21426       lt_prog_compiler_wl_GCJ='-Qoption ld '
21427       lt_prog_compiler_pic_GCJ='-PIC'
21428       lt_prog_compiler_static_GCJ='-Bstatic'
21429       ;;
21430
21431     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21432       lt_prog_compiler_wl_GCJ='-Wl,'
21433       lt_prog_compiler_pic_GCJ='-KPIC'
21434       lt_prog_compiler_static_GCJ='-Bstatic'
21435       ;;
21436
21437     sysv4*MP*)
21438       if test -d /usr/nec ;then
21439         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21440         lt_prog_compiler_static_GCJ='-Bstatic'
21441       fi
21442       ;;
21443
21444     uts4*)
21445       lt_prog_compiler_pic_GCJ='-pic'
21446       lt_prog_compiler_static_GCJ='-Bstatic'
21447       ;;
21448
21449     *)
21450       lt_prog_compiler_can_build_shared_GCJ=no
21451       ;;
21452     esac
21453   fi
21454
21455 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21456 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21457
21458 #
21459 # Check to make sure the PIC flag actually works.
21460 #
21461 if test -n "$lt_prog_compiler_pic_GCJ"; then
21462
21463 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21464 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21465 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21466   echo $ECHO_N "(cached) $ECHO_C" >&6
21467 else
21468   lt_prog_compiler_pic_works_GCJ=no
21469   ac_outfile=conftest.$ac_objext
21470    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21471    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21472    # Insert the option either (1) after the last *FLAGS variable, or
21473    # (2) before a word containing "conftest.", or (3) at the end.
21474    # Note that $ac_compile itself does not contain backslashes and begins
21475    # with a dollar sign (not a hyphen), so the echo should work correctly.
21476    # The option is referenced via a variable to avoid confusing sed.
21477    lt_compile=`echo "$ac_compile" | $SED \
21478    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21479    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21480    -e 's:$: $lt_compiler_flag:'`
21481    (eval echo "\"\$as_me:21481: $lt_compile\"" >&5)
21482    (eval "$lt_compile" 2>conftest.err)
21483    ac_status=$?
21484    cat conftest.err >&5
21485    echo "$as_me:21485: \$? = $ac_status" >&5
21486    if (exit $ac_status) && test -s "$ac_outfile"; then
21487      # The compiler can only warn and ignore the option if not recognized
21488      # So say no if there are warnings
21489      if test ! -s conftest.err; then
21490        lt_prog_compiler_pic_works_GCJ=yes
21491      fi
21492    fi
21493    $rm conftest*
21494
21495 fi
21496 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21497 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21498
21499 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21500     case $lt_prog_compiler_pic_GCJ in
21501      "" | " "*) ;;
21502      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21503      esac
21504 else
21505     lt_prog_compiler_pic_GCJ=
21506      lt_prog_compiler_can_build_shared_GCJ=no
21507 fi
21508
21509 fi
21510 case "$host_os" in
21511   # For platforms which do not support PIC, -DPIC is meaningless:
21512   *djgpp*)
21513     lt_prog_compiler_pic_GCJ=
21514     ;;
21515   *)
21516     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21517     ;;
21518 esac
21519
21520 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21521 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21522 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21523   echo $ECHO_N "(cached) $ECHO_C" >&6
21524 else
21525   lt_cv_prog_compiler_c_o_GCJ=no
21526    $rm -r conftest 2>/dev/null
21527    mkdir conftest
21528    cd conftest
21529    mkdir out
21530    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21531
21532    lt_compiler_flag="-o out/conftest2.$ac_objext"
21533    # Insert the option either (1) after the last *FLAGS variable, or
21534    # (2) before a word containing "conftest.", or (3) at the end.
21535    # Note that $ac_compile itself does not contain backslashes and begins
21536    # with a dollar sign (not a hyphen), so the echo should work correctly.
21537    lt_compile=`echo "$ac_compile" | $SED \
21538    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21539    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21540    -e 's:$: $lt_compiler_flag:'`
21541    (eval echo "\"\$as_me:21541: $lt_compile\"" >&5)
21542    (eval "$lt_compile" 2>out/conftest.err)
21543    ac_status=$?
21544    cat out/conftest.err >&5
21545    echo "$as_me:21545: \$? = $ac_status" >&5
21546    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21547    then
21548      # The compiler can only warn and ignore the option if not recognized
21549      # So say no if there are warnings
21550      if test ! -s out/conftest.err; then
21551        lt_cv_prog_compiler_c_o_GCJ=yes
21552      fi
21553    fi
21554    chmod u+w .
21555    $rm conftest*
21556    # SGI C++ compiler will create directory out/ii_files/ for
21557    # template instantiation
21558    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21559    $rm out/* && rmdir out
21560    cd ..
21561    rmdir conftest
21562    $rm conftest*
21563
21564 fi
21565 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21566 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21567
21568
21569 hard_links="nottested"
21570 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21571   # do not overwrite the value of need_locks provided by the user
21572   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21573 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21574   hard_links=yes
21575   $rm conftest*
21576   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21577   touch conftest.a
21578   ln conftest.a conftest.b 2>&5 || hard_links=no
21579   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21580   echo "$as_me:$LINENO: result: $hard_links" >&5
21581 echo "${ECHO_T}$hard_links" >&6
21582   if test "$hard_links" = no; then
21583     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21584 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21585     need_locks=warn
21586   fi
21587 else
21588   need_locks=no
21589 fi
21590
21591 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21592 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21593
21594   runpath_var=
21595   allow_undefined_flag_GCJ=
21596   enable_shared_with_static_runtimes_GCJ=no
21597   archive_cmds_GCJ=
21598   archive_expsym_cmds_GCJ=
21599   old_archive_From_new_cmds_GCJ=
21600   old_archive_from_expsyms_cmds_GCJ=
21601   export_dynamic_flag_spec_GCJ=
21602   whole_archive_flag_spec_GCJ=
21603   thread_safe_flag_spec_GCJ=
21604   hardcode_libdir_flag_spec_GCJ=
21605   hardcode_libdir_flag_spec_ld_GCJ=
21606   hardcode_libdir_separator_GCJ=
21607   hardcode_direct_GCJ=no
21608   hardcode_minus_L_GCJ=no
21609   hardcode_shlibpath_var_GCJ=unsupported
21610   link_all_deplibs_GCJ=unknown
21611   hardcode_automatic_GCJ=no
21612   module_cmds_GCJ=
21613   module_expsym_cmds_GCJ=
21614   always_export_symbols_GCJ=no
21615   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21616   # include_expsyms should be a list of space-separated symbols to be *always*
21617   # included in the symbol list
21618   include_expsyms_GCJ=
21619   # exclude_expsyms can be an extended regexp of symbols to exclude
21620   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21621   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21622   # as well as any symbol that contains `d'.
21623   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21624   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21625   # platforms (ab)use it in PIC code, but their linkers get confused if
21626   # the symbol is explicitly referenced.  Since portable code cannot
21627   # rely on this symbol name, it's probably fine to never include it in
21628   # preloaded symbol tables.
21629   extract_expsyms_cmds=
21630
21631   case $host_os in
21632   cygwin* | mingw* | pw32*)
21633     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21634     # When not using gcc, we currently assume that we are using
21635     # Microsoft Visual C++.
21636     if test "$GCC" != yes; then
21637       with_gnu_ld=no
21638     fi
21639     ;;
21640   openbsd*)
21641     with_gnu_ld=no
21642     ;;
21643   esac
21644
21645   ld_shlibs_GCJ=yes
21646   if test "$with_gnu_ld" = yes; then
21647     # If archive_cmds runs LD, not CC, wlarc should be empty
21648     wlarc='${wl}'
21649
21650     # See if GNU ld supports shared libraries.
21651     case $host_os in
21652     aix3* | aix4* | aix5*)
21653       # On AIX/PPC, the GNU linker is very broken
21654       if test "$host_cpu" != ia64; then
21655         ld_shlibs_GCJ=no
21656         cat <<EOF 1>&2
21657
21658 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21659 *** to be unable to reliably create shared libraries on AIX.
21660 *** Therefore, libtool is disabling shared libraries support.  If you
21661 *** really care for shared libraries, you may want to modify your PATH
21662 *** so that a non-GNU linker is found, and then restart.
21663
21664 EOF
21665       fi
21666       ;;
21667
21668     amigaos*)
21669       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)'
21670       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21671       hardcode_minus_L_GCJ=yes
21672
21673       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21674       # that the semantics of dynamic libraries on AmigaOS, at least up
21675       # to version 4, is to share data among multiple programs linked
21676       # with the same dynamic library.  Since this doesn't match the
21677       # behavior of shared libraries on other platforms, we can't use
21678       # them.
21679       ld_shlibs_GCJ=no
21680       ;;
21681
21682     beos*)
21683       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21684         allow_undefined_flag_GCJ=unsupported
21685         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21686         # support --undefined.  This deserves some investigation.  FIXME
21687         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21688       else
21689         ld_shlibs_GCJ=no
21690       fi
21691       ;;
21692
21693     cygwin* | mingw* | pw32*)
21694       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21695       # as there is no search path for DLLs.
21696       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21697       allow_undefined_flag_GCJ=unsupported
21698       always_export_symbols_GCJ=no
21699       enable_shared_with_static_runtimes_GCJ=yes
21700       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21701
21702       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21703         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21704         # If the export-symbols file already is a .def file (1st line
21705         # is EXPORTS), use it as is; otherwise, prepend...
21706         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21707           cp $export_symbols $output_objdir/$soname.def;
21708         else
21709           echo EXPORTS > $output_objdir/$soname.def;
21710           cat $export_symbols >> $output_objdir/$soname.def;
21711         fi~
21712         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21713       else
21714         ld_shlibs=no
21715       fi
21716       ;;
21717
21718     netbsd*)
21719       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21720         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21721         wlarc=
21722       else
21723         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21724         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21725       fi
21726       ;;
21727
21728     solaris* | sysv5*)
21729       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21730         ld_shlibs_GCJ=no
21731         cat <<EOF 1>&2
21732
21733 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21734 *** create shared libraries on Solaris systems.  Therefore, libtool
21735 *** is disabling shared libraries support.  We urge you to upgrade GNU
21736 *** binutils to release 2.9.1 or newer.  Another option is to modify
21737 *** your PATH or compiler configuration so that the native linker is
21738 *** used, and then restart.
21739
21740 EOF
21741       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21742         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21743         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21744       else
21745         ld_shlibs_GCJ=no
21746       fi
21747       ;;
21748
21749     sunos4*)
21750       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21751       wlarc=
21752       hardcode_direct_GCJ=yes
21753       hardcode_shlibpath_var_GCJ=no
21754       ;;
21755
21756   linux*)
21757     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21758         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21759         archive_cmds_GCJ="$tmp_archive_cmds"
21760       supports_anon_versioning=no
21761       case `$LD -v 2>/dev/null` in
21762         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21763         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21764         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21765         *\ 2.11.*) ;; # other 2.11 versions
21766         *) supports_anon_versioning=yes ;;
21767       esac
21768       if test $supports_anon_versioning = yes; then
21769         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21770 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21771 $echo "local: *; };" >> $output_objdir/$libname.ver~
21772         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21773       else
21774         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21775       fi
21776     else
21777       ld_shlibs_GCJ=no
21778     fi
21779     ;;
21780
21781     *)
21782       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21783         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21784         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21785       else
21786         ld_shlibs_GCJ=no
21787       fi
21788       ;;
21789     esac
21790
21791     if test "$ld_shlibs_GCJ" = yes; then
21792       runpath_var=LD_RUN_PATH
21793       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21794       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21795       # ancient GNU ld didn't support --whole-archive et. al.
21796       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21797         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21798       else
21799         whole_archive_flag_spec_GCJ=
21800       fi
21801     fi
21802   else
21803     # PORTME fill in a description of your system's linker (not GNU ld)
21804     case $host_os in
21805     aix3*)
21806       allow_undefined_flag_GCJ=unsupported
21807       always_export_symbols_GCJ=yes
21808       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'
21809       # Note: this linker hardcodes the directories in LIBPATH if there
21810       # are no directories specified by -L.
21811       hardcode_minus_L_GCJ=yes
21812       if test "$GCC" = yes && test -z "$link_static_flag"; then
21813         # Neither direct hardcoding nor static linking is supported with a
21814         # broken collect2.
21815         hardcode_direct_GCJ=unsupported
21816       fi
21817       ;;
21818
21819     aix4* | aix5*)
21820       if test "$host_cpu" = ia64; then
21821         # On IA64, the linker does run time linking by default, so we don't
21822         # have to do anything special.
21823         aix_use_runtimelinking=no
21824         exp_sym_flag='-Bexport'
21825         no_entry_flag=""
21826       else
21827         # If we're using GNU nm, then we don't want the "-C" option.
21828         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21829         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21830           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'
21831         else
21832           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'
21833         fi
21834         aix_use_runtimelinking=no
21835
21836         # Test if we are trying to use run time linking or normal
21837         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21838         # need to do runtime linking.
21839         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21840           for ld_flag in $LDFLAGS; do
21841           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21842             aix_use_runtimelinking=yes
21843             break
21844           fi
21845           done
21846         esac
21847
21848         exp_sym_flag='-bexport'
21849         no_entry_flag='-bnoentry'
21850       fi
21851
21852       # When large executables or shared objects are built, AIX ld can
21853       # have problems creating the table of contents.  If linking a library
21854       # or program results in "error TOC overflow" add -mminimal-toc to
21855       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21856       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21857
21858       archive_cmds_GCJ=''
21859       hardcode_direct_GCJ=yes
21860       hardcode_libdir_separator_GCJ=':'
21861       link_all_deplibs_GCJ=yes
21862
21863       if test "$GCC" = yes; then
21864         case $host_os in aix4.012|aix4.012.*)
21865         # We only want to do this on AIX 4.2 and lower, the check
21866         # below for broken collect2 doesn't work under 4.3+
21867           collect2name=`${CC} -print-prog-name=collect2`
21868           if test -f "$collect2name" && \
21869            strings "$collect2name" | grep resolve_lib_name >/dev/null
21870           then
21871           # We have reworked collect2
21872           hardcode_direct_GCJ=yes
21873           else
21874           # We have old collect2
21875           hardcode_direct_GCJ=unsupported
21876           # It fails to find uninstalled libraries when the uninstalled
21877           # path is not listed in the libpath.  Setting hardcode_minus_L
21878           # to unsupported forces relinking
21879           hardcode_minus_L_GCJ=yes
21880           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21881           hardcode_libdir_separator_GCJ=
21882           fi
21883         esac
21884         shared_flag='-shared'
21885       else
21886         # not using gcc
21887         if test "$host_cpu" = ia64; then
21888         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21889         # chokes on -Wl,-G. The following line is correct:
21890           shared_flag='-G'
21891         else
21892         if test "$aix_use_runtimelinking" = yes; then
21893             shared_flag='${wl}-G'
21894           else
21895             shared_flag='${wl}-bM:SRE'
21896         fi
21897         fi
21898       fi
21899
21900       # It seems that -bexpall does not export symbols beginning with
21901       # underscore (_), so it is better to generate a list of symbols to export.
21902       always_export_symbols_GCJ=yes
21903       if test "$aix_use_runtimelinking" = yes; then
21904         # Warning - without using the other runtime loading flags (-brtl),
21905         # -berok will link without error, but may produce a broken library.
21906         allow_undefined_flag_GCJ='-berok'
21907        # Determine the default libpath from the value encoded in an empty executable.
21908        cat >conftest.$ac_ext <<_ACEOF
21909 /* confdefs.h.  */
21910 _ACEOF
21911 cat confdefs.h >>conftest.$ac_ext
21912 cat >>conftest.$ac_ext <<_ACEOF
21913 /* end confdefs.h.  */
21914
21915 int
21916 main ()
21917 {
21918
21919   ;
21920   return 0;
21921 }
21922 _ACEOF
21923 rm -f conftest.$ac_objext conftest$ac_exeext
21924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21925   (eval $ac_link) 2>conftest.er1
21926   ac_status=$?
21927   grep -v '^ *+' conftest.er1 >conftest.err
21928   rm -f conftest.er1
21929   cat conftest.err >&5
21930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931   (exit $ac_status); } &&
21932          { ac_try='test -z "$ac_c_werror_flag"
21933                          || test ! -s conftest.err'
21934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21935   (eval $ac_try) 2>&5
21936   ac_status=$?
21937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938   (exit $ac_status); }; } &&
21939          { ac_try='test -s conftest$ac_exeext'
21940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21941   (eval $ac_try) 2>&5
21942   ac_status=$?
21943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944   (exit $ac_status); }; }; then
21945
21946 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21947 }'`
21948 # Check for a 64-bit object if we didn't find anything.
21949 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; }
21950 }'`; fi
21951 else
21952   echo "$as_me: failed program was:" >&5
21953 sed 's/^/| /' conftest.$ac_ext >&5
21954
21955 fi
21956 rm -f conftest.err conftest.$ac_objext \
21957       conftest$ac_exeext conftest.$ac_ext
21958 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21959
21960        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21961         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"
21962        else
21963         if test "$host_cpu" = ia64; then
21964           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21965           allow_undefined_flag_GCJ="-z nodefs"
21966           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"
21967         else
21968          # Determine the default libpath from the value encoded in an empty executable.
21969          cat >conftest.$ac_ext <<_ACEOF
21970 /* confdefs.h.  */
21971 _ACEOF
21972 cat confdefs.h >>conftest.$ac_ext
21973 cat >>conftest.$ac_ext <<_ACEOF
21974 /* end confdefs.h.  */
21975
21976 int
21977 main ()
21978 {
21979
21980   ;
21981   return 0;
21982 }
21983 _ACEOF
21984 rm -f conftest.$ac_objext conftest$ac_exeext
21985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21986   (eval $ac_link) 2>conftest.er1
21987   ac_status=$?
21988   grep -v '^ *+' conftest.er1 >conftest.err
21989   rm -f conftest.er1
21990   cat conftest.err >&5
21991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992   (exit $ac_status); } &&
21993          { ac_try='test -z "$ac_c_werror_flag"
21994                          || test ! -s conftest.err'
21995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21996   (eval $ac_try) 2>&5
21997   ac_status=$?
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); }; } &&
22000          { ac_try='test -s conftest$ac_exeext'
22001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002   (eval $ac_try) 2>&5
22003   ac_status=$?
22004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005   (exit $ac_status); }; }; then
22006
22007 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22008 }'`
22009 # Check for a 64-bit object if we didn't find anything.
22010 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; }
22011 }'`; fi
22012 else
22013   echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22015
22016 fi
22017 rm -f conftest.err conftest.$ac_objext \
22018       conftest$ac_exeext conftest.$ac_ext
22019 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22020
22021          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22022           # Warning - without using the other run time loading flags,
22023           # -berok will link without error, but may produce a broken library.
22024           no_undefined_flag_GCJ=' ${wl}-bernotok'
22025           allow_undefined_flag_GCJ=' ${wl}-berok'
22026           # -bexpall does not export symbols beginning with underscore (_)
22027           always_export_symbols_GCJ=yes
22028           # Exported symbols can be pulled into shared objects from archives
22029           whole_archive_flag_spec_GCJ=' '
22030           archive_cmds_need_lc_GCJ=yes
22031           # This is similar to how AIX traditionally builds it's shared libraries.
22032           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'
22033         fi
22034       fi
22035       ;;
22036
22037     amigaos*)
22038       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)'
22039       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22040       hardcode_minus_L_GCJ=yes
22041       # see comment about different semantics on the GNU ld section
22042       ld_shlibs_GCJ=no
22043       ;;
22044
22045     bsdi[45]*)
22046       export_dynamic_flag_spec_GCJ=-rdynamic
22047       ;;
22048
22049     cygwin* | mingw* | pw32*)
22050       # When not using gcc, we currently assume that we are using
22051       # Microsoft Visual C++.
22052       # hardcode_libdir_flag_spec is actually meaningless, as there is
22053       # no search path for DLLs.
22054       hardcode_libdir_flag_spec_GCJ=' '
22055       allow_undefined_flag_GCJ=unsupported
22056       # Tell ltmain to make .lib files, not .a files.
22057       libext=lib
22058       # Tell ltmain to make .dll files, not .so files.
22059       shrext_cmds=".dll"
22060       # FIXME: Setting linknames here is a bad hack.
22061       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22062       # The linker will automatically build a .lib file if we build a DLL.
22063       old_archive_From_new_cmds_GCJ='true'
22064       # FIXME: Should let the user specify the lib program.
22065       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22066       fix_srcfile_path='`cygpath -w "$srcfile"`'
22067       enable_shared_with_static_runtimes_GCJ=yes
22068       ;;
22069
22070     darwin* | rhapsody*)
22071       case "$host_os" in
22072         rhapsody* | darwin1.[012])
22073          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22074          ;;
22075        *) # Darwin 1.3 on
22076          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22077            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22078          else
22079            case ${MACOSX_DEPLOYMENT_TARGET} in
22080              10.[012])
22081                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22082                ;;
22083              10.*)
22084                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22085                ;;
22086            esac
22087          fi
22088          ;;
22089       esac
22090       archive_cmds_need_lc_GCJ=no
22091       hardcode_direct_GCJ=no
22092       hardcode_automatic_GCJ=yes
22093       hardcode_shlibpath_var_GCJ=unsupported
22094       whole_archive_flag_spec_GCJ=''
22095       link_all_deplibs_GCJ=yes
22096     if test "$GCC" = yes ; then
22097         output_verbose_link_cmd='echo'
22098         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22099       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22100       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22101       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}'
22102       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}'
22103     else
22104       case "$cc_basename" in
22105         xlc*)
22106          output_verbose_link_cmd='echo'
22107          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22108          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22109           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22110          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}'
22111           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}'
22112           ;;
22113        *)
22114          ld_shlibs_GCJ=no
22115           ;;
22116       esac
22117     fi
22118       ;;
22119
22120     dgux*)
22121       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22122       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22123       hardcode_shlibpath_var_GCJ=no
22124       ;;
22125
22126     freebsd1*)
22127       ld_shlibs_GCJ=no
22128       ;;
22129
22130     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22131     # support.  Future versions do this automatically, but an explicit c++rt0.o
22132     # does not break anything, and helps significantly (at the cost of a little
22133     # extra space).
22134     freebsd2.2*)
22135       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22136       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22137       hardcode_direct_GCJ=yes
22138       hardcode_shlibpath_var_GCJ=no
22139       ;;
22140
22141     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22142     freebsd2*)
22143       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22144       hardcode_direct_GCJ=yes
22145       hardcode_minus_L_GCJ=yes
22146       hardcode_shlibpath_var_GCJ=no
22147       ;;
22148
22149     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22150     freebsd* | kfreebsd*-gnu)
22151       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22152       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22153       hardcode_direct_GCJ=yes
22154       hardcode_shlibpath_var_GCJ=no
22155       ;;
22156
22157     hpux9*)
22158       if test "$GCC" = yes; then
22159         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'
22160       else
22161         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'
22162       fi
22163       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22164       hardcode_libdir_separator_GCJ=:
22165       hardcode_direct_GCJ=yes
22166
22167       # hardcode_minus_L: Not really in the search PATH,
22168       # but as the default location of the library.
22169       hardcode_minus_L_GCJ=yes
22170       export_dynamic_flag_spec_GCJ='${wl}-E'
22171       ;;
22172
22173     hpux10* | hpux11*)
22174       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22175         case "$host_cpu" in
22176         hppa*64*|ia64*)
22177           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22178           ;;
22179         *)
22180           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22181           ;;
22182         esac
22183       else
22184         case "$host_cpu" in
22185         hppa*64*|ia64*)
22186           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22187           ;;
22188         *)
22189           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22190           ;;
22191         esac
22192       fi
22193       if test "$with_gnu_ld" = no; then
22194         case "$host_cpu" in
22195         hppa*64*)
22196           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22197           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22198           hardcode_libdir_separator_GCJ=:
22199           hardcode_direct_GCJ=no
22200           hardcode_shlibpath_var_GCJ=no
22201           ;;
22202         ia64*)
22203           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22204           hardcode_direct_GCJ=no
22205           hardcode_shlibpath_var_GCJ=no
22206
22207           # hardcode_minus_L: Not really in the search PATH,
22208           # but as the default location of the library.
22209           hardcode_minus_L_GCJ=yes
22210           ;;
22211         *)
22212           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22213           hardcode_libdir_separator_GCJ=:
22214           hardcode_direct_GCJ=yes
22215           export_dynamic_flag_spec_GCJ='${wl}-E'
22216
22217           # hardcode_minus_L: Not really in the search PATH,
22218           # but as the default location of the library.
22219           hardcode_minus_L_GCJ=yes
22220           ;;
22221         esac
22222       fi
22223       ;;
22224
22225     irix5* | irix6* | nonstopux*)
22226       if test "$GCC" = yes; then
22227         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'
22228       else
22229         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'
22230         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22231       fi
22232       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22233       hardcode_libdir_separator_GCJ=:
22234       link_all_deplibs_GCJ=yes
22235       ;;
22236
22237     netbsd*)
22238       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22239         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22240       else
22241         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22242       fi
22243       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22244       hardcode_direct_GCJ=yes
22245       hardcode_shlibpath_var_GCJ=no
22246       ;;
22247
22248     newsos6)
22249       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22250       hardcode_direct_GCJ=yes
22251       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22252       hardcode_libdir_separator_GCJ=:
22253       hardcode_shlibpath_var_GCJ=no
22254       ;;
22255
22256     openbsd*)
22257       hardcode_direct_GCJ=yes
22258       hardcode_shlibpath_var_GCJ=no
22259       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22260         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22261         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22262         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22263         export_dynamic_flag_spec_GCJ='${wl}-E'
22264       else
22265        case $host_os in
22266          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22267            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22268            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22269            ;;
22270          *)
22271            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22272            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22273            ;;
22274        esac
22275       fi
22276       ;;
22277
22278     os2*)
22279       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22280       hardcode_minus_L_GCJ=yes
22281       allow_undefined_flag_GCJ=unsupported
22282       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'
22283       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22284       ;;
22285
22286     osf3*)
22287       if test "$GCC" = yes; then
22288         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22289         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'
22290       else
22291         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22292         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'
22293       fi
22294       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22295       hardcode_libdir_separator_GCJ=:
22296       ;;
22297
22298     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22299       if test "$GCC" = yes; then
22300         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22301         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'
22302         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22303       else
22304         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22305         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'
22306         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~
22307         $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'
22308
22309         # Both c and cxx compiler support -rpath directly
22310         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22311       fi
22312       hardcode_libdir_separator_GCJ=:
22313       ;;
22314
22315     sco3.2v5*)
22316       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22317       hardcode_shlibpath_var_GCJ=no
22318       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22319       runpath_var=LD_RUN_PATH
22320       hardcode_runpath_var=yes
22321       ;;
22322
22323     solaris*)
22324       no_undefined_flag_GCJ=' -z text'
22325       if test "$GCC" = yes; then
22326         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22327         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22328           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22329       else
22330         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22331         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22332         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22333       fi
22334       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22335       hardcode_shlibpath_var_GCJ=no
22336       case $host_os in
22337       solaris2.[0-5] | solaris2.[0-5].*) ;;
22338       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22339         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22340       esac
22341       link_all_deplibs_GCJ=yes
22342       ;;
22343
22344     sunos4*)
22345       if test "x$host_vendor" = xsequent; then
22346         # Use $CC to link under sequent, because it throws in some extra .o
22347         # files that make .init and .fini sections work.
22348         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22349       else
22350         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22351       fi
22352       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22353       hardcode_direct_GCJ=yes
22354       hardcode_minus_L_GCJ=yes
22355       hardcode_shlibpath_var_GCJ=no
22356       ;;
22357
22358     sysv4)
22359       case $host_vendor in
22360         sni)
22361           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22362           hardcode_direct_GCJ=yes # is this really true???
22363         ;;
22364         siemens)
22365           ## LD is ld it makes a PLAMLIB
22366           ## CC just makes a GrossModule.
22367           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22368           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22369           hardcode_direct_GCJ=no
22370         ;;
22371         motorola)
22372           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22373           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22374         ;;
22375       esac
22376       runpath_var='LD_RUN_PATH'
22377       hardcode_shlibpath_var_GCJ=no
22378       ;;
22379
22380     sysv4.3*)
22381       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22382       hardcode_shlibpath_var_GCJ=no
22383       export_dynamic_flag_spec_GCJ='-Bexport'
22384       ;;
22385
22386     sysv4*MP*)
22387       if test -d /usr/nec; then
22388         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22389         hardcode_shlibpath_var_GCJ=no
22390         runpath_var=LD_RUN_PATH
22391         hardcode_runpath_var=yes
22392         ld_shlibs_GCJ=yes
22393       fi
22394       ;;
22395
22396     sysv4.2uw2*)
22397       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22398       hardcode_direct_GCJ=yes
22399       hardcode_minus_L_GCJ=no
22400       hardcode_shlibpath_var_GCJ=no
22401       hardcode_runpath_var=yes
22402       runpath_var=LD_RUN_PATH
22403       ;;
22404
22405    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22406       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22407       if test "$GCC" = yes; then
22408         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22409       else
22410         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22411       fi
22412       runpath_var='LD_RUN_PATH'
22413       hardcode_shlibpath_var_GCJ=no
22414       ;;
22415
22416     sysv5*)
22417       no_undefined_flag_GCJ=' -z text'
22418       # $CC -shared without GNU ld will not create a library from C++
22419       # object files and a static libstdc++, better avoid it by now
22420       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22421       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22422                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22423       hardcode_libdir_flag_spec_GCJ=
22424       hardcode_shlibpath_var_GCJ=no
22425       runpath_var='LD_RUN_PATH'
22426       ;;
22427
22428     uts4*)
22429       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22430       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22431       hardcode_shlibpath_var_GCJ=no
22432       ;;
22433
22434     *)
22435       ld_shlibs_GCJ=no
22436       ;;
22437     esac
22438   fi
22439
22440 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22441 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22442 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22443
22444 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22445 if test "$GCC" = yes; then
22446   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22447 fi
22448
22449 #
22450 # Do we need to explicitly link libc?
22451 #
22452 case "x$archive_cmds_need_lc_GCJ" in
22453 x|xyes)
22454   # Assume -lc should be added
22455   archive_cmds_need_lc_GCJ=yes
22456
22457   if test "$enable_shared" = yes && test "$GCC" = yes; then
22458     case $archive_cmds_GCJ in
22459     *'~'*)
22460       # FIXME: we may have to deal with multi-command sequences.
22461       ;;
22462     '$CC '*)
22463       # Test whether the compiler implicitly links with -lc since on some
22464       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22465       # to ld, don't add -lc before -lgcc.
22466       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22467 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22468       $rm conftest*
22469       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22470
22471       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22472   (eval $ac_compile) 2>&5
22473   ac_status=$?
22474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475   (exit $ac_status); } 2>conftest.err; then
22476         soname=conftest
22477         lib=conftest
22478         libobjs=conftest.$ac_objext
22479         deplibs=
22480         wl=$lt_prog_compiler_wl_GCJ
22481         compiler_flags=-v
22482         linker_flags=-v
22483         verstring=
22484         output_objdir=.
22485         libname=conftest
22486         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22487         allow_undefined_flag_GCJ=
22488         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22489   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22490   ac_status=$?
22491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492   (exit $ac_status); }
22493         then
22494           archive_cmds_need_lc_GCJ=no
22495         else
22496           archive_cmds_need_lc_GCJ=yes
22497         fi
22498         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22499       else
22500         cat conftest.err 1>&5
22501       fi
22502       $rm conftest*
22503       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22504 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22505       ;;
22506     esac
22507   fi
22508   ;;
22509 esac
22510
22511 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22512 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22513 library_names_spec=
22514 libname_spec='lib$name'
22515 soname_spec=
22516 shrext_cmds=".so"
22517 postinstall_cmds=
22518 postuninstall_cmds=
22519 finish_cmds=
22520 finish_eval=
22521 shlibpath_var=
22522 shlibpath_overrides_runpath=unknown
22523 version_type=none
22524 dynamic_linker="$host_os ld.so"
22525 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22526 if test "$GCC" = yes; then
22527   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22528   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22529     # if the path contains ";" then we assume it to be the separator
22530     # otherwise default to the standard path separator (i.e. ":") - it is
22531     # assumed that no part of a normal pathname contains ";" but that should
22532     # okay in the real world where ";" in dirpaths is itself problematic.
22533     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22534   else
22535     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22536   fi
22537 else
22538   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22539 fi
22540 need_lib_prefix=unknown
22541 hardcode_into_libs=no
22542
22543 # when you set need_version to no, make sure it does not cause -set_version
22544 # flags to be left without arguments
22545 need_version=unknown
22546
22547 case $host_os in
22548 aix3*)
22549   version_type=linux
22550   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22551   shlibpath_var=LIBPATH
22552
22553   # AIX 3 has no versioning support, so we append a major version to the name.
22554   soname_spec='${libname}${release}${shared_ext}$major'
22555   ;;
22556
22557 aix4* | aix5*)
22558   version_type=linux
22559   need_lib_prefix=no
22560   need_version=no
22561   hardcode_into_libs=yes
22562   if test "$host_cpu" = ia64; then
22563     # AIX 5 supports IA64
22564     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22565     shlibpath_var=LD_LIBRARY_PATH
22566   else
22567     # With GCC up to 2.95.x, collect2 would create an import file
22568     # for dependence libraries.  The import file would start with
22569     # the line `#! .'.  This would cause the generated library to
22570     # depend on `.', always an invalid library.  This was fixed in
22571     # development snapshots of GCC prior to 3.0.
22572     case $host_os in
22573       aix4 | aix4.[01] | aix4.[01].*)
22574       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22575            echo ' yes '
22576            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22577         :
22578       else
22579         can_build_shared=no
22580       fi
22581       ;;
22582     esac
22583     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22584     # soname into executable. Probably we can add versioning support to
22585     # collect2, so additional links can be useful in future.
22586     if test "$aix_use_runtimelinking" = yes; then
22587       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22588       # instead of lib<name>.a to let people know that these are not
22589       # typical AIX shared libraries.
22590       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22591     else
22592       # We preserve .a as extension for shared libraries through AIX4.2
22593       # and later when we are not doing run time linking.
22594       library_names_spec='${libname}${release}.a $libname.a'
22595       soname_spec='${libname}${release}${shared_ext}$major'
22596     fi
22597     shlibpath_var=LIBPATH
22598   fi
22599   ;;
22600
22601 amigaos*)
22602   library_names_spec='$libname.ixlibrary $libname.a'
22603   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22604   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'
22605   ;;
22606
22607 beos*)
22608   library_names_spec='${libname}${shared_ext}'
22609   dynamic_linker="$host_os ld.so"
22610   shlibpath_var=LIBRARY_PATH
22611   ;;
22612
22613 bsdi[45]*)
22614   version_type=linux
22615   need_version=no
22616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22617   soname_spec='${libname}${release}${shared_ext}$major'
22618   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22619   shlibpath_var=LD_LIBRARY_PATH
22620   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22621   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22622   # the default ld.so.conf also contains /usr/contrib/lib and
22623   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22624   # libtool to hard-code these into programs
22625   ;;
22626
22627 cygwin* | mingw* | pw32*)
22628   version_type=windows
22629   shrext_cmds=".dll"
22630   need_version=no
22631   need_lib_prefix=no
22632
22633   case $GCC,$host_os in
22634   yes,cygwin* | yes,mingw* | yes,pw32*)
22635     library_names_spec='$libname.dll.a'
22636     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22637     postinstall_cmds='base_file=`basename \${file}`~
22638       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22639       dldir=$destdir/`dirname \$dlpath`~
22640       test -d \$dldir || mkdir -p \$dldir~
22641       $install_prog $dir/$dlname \$dldir/$dlname'
22642     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22643       dlpath=$dir/\$dldll~
22644        $rm \$dlpath'
22645     shlibpath_overrides_runpath=yes
22646
22647     case $host_os in
22648     cygwin*)
22649       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22650       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22651       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22652       ;;
22653     mingw*)
22654       # MinGW DLLs use traditional 'lib' prefix
22655       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22656       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22657       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22658         # It is most probably a Windows format PATH printed by
22659         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22660         # path with ; separators, and with drive letters. We can handle the
22661         # drive letters (cygwin fileutils understands them), so leave them,
22662         # especially as we might pass files found there to a mingw objdump,
22663         # which wouldn't understand a cygwinified path. Ahh.
22664         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22665       else
22666         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22667       fi
22668       ;;
22669     pw32*)
22670       # pw32 DLLs use 'pw' prefix rather than 'lib'
22671       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22672       ;;
22673     esac
22674     ;;
22675
22676   *)
22677     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22678     ;;
22679   esac
22680   dynamic_linker='Win32 ld.exe'
22681   # FIXME: first we should search . and the directory the executable is in
22682   shlibpath_var=PATH
22683   ;;
22684
22685 darwin* | rhapsody*)
22686   dynamic_linker="$host_os dyld"
22687   version_type=darwin
22688   need_lib_prefix=no
22689   need_version=no
22690   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22691   soname_spec='${libname}${release}${major}$shared_ext'
22692   shlibpath_overrides_runpath=yes
22693   shlibpath_var=DYLD_LIBRARY_PATH
22694   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22695   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22696   if test "$GCC" = yes; then
22697     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"`
22698   else
22699     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22700   fi
22701   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22702   ;;
22703
22704 dgux*)
22705   version_type=linux
22706   need_lib_prefix=no
22707   need_version=no
22708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22709   soname_spec='${libname}${release}${shared_ext}$major'
22710   shlibpath_var=LD_LIBRARY_PATH
22711   ;;
22712
22713 freebsd1*)
22714   dynamic_linker=no
22715   ;;
22716
22717 kfreebsd*-gnu)
22718   version_type=linux
22719   need_lib_prefix=no
22720   need_version=no
22721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22722   soname_spec='${libname}${release}${shared_ext}$major'
22723   shlibpath_var=LD_LIBRARY_PATH
22724   shlibpath_overrides_runpath=no
22725   hardcode_into_libs=yes
22726   dynamic_linker='GNU ld.so'
22727   ;;
22728
22729 freebsd*)
22730   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22731   version_type=freebsd-$objformat
22732   case $version_type in
22733     freebsd-elf*)
22734       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22735       need_version=no
22736       need_lib_prefix=no
22737       ;;
22738     freebsd-*)
22739       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22740       need_version=yes
22741       ;;
22742   esac
22743   shlibpath_var=LD_LIBRARY_PATH
22744   case $host_os in
22745   freebsd2*)
22746     shlibpath_overrides_runpath=yes
22747     ;;
22748   freebsd3.01* | freebsdelf3.01*)
22749     shlibpath_overrides_runpath=yes
22750     hardcode_into_libs=yes
22751     ;;
22752   *) # from 3.2 on
22753     shlibpath_overrides_runpath=no
22754     hardcode_into_libs=yes
22755     ;;
22756   esac
22757   ;;
22758
22759 gnu*)
22760   version_type=linux
22761   need_lib_prefix=no
22762   need_version=no
22763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22764   soname_spec='${libname}${release}${shared_ext}$major'
22765   shlibpath_var=LD_LIBRARY_PATH
22766   hardcode_into_libs=yes
22767   ;;
22768
22769 hpux9* | hpux10* | hpux11*)
22770   # Give a soname corresponding to the major version so that dld.sl refuses to
22771   # link against other versions.
22772   version_type=sunos
22773   need_lib_prefix=no
22774   need_version=no
22775   case "$host_cpu" in
22776   ia64*)
22777     shrext_cmds='.so'
22778     hardcode_into_libs=yes
22779     dynamic_linker="$host_os dld.so"
22780     shlibpath_var=LD_LIBRARY_PATH
22781     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22782     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22783     soname_spec='${libname}${release}${shared_ext}$major'
22784     if test "X$HPUX_IA64_MODE" = X32; then
22785       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22786     else
22787       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22788     fi
22789     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22790     ;;
22791    hppa*64*)
22792      shrext_cmds='.sl'
22793      hardcode_into_libs=yes
22794      dynamic_linker="$host_os dld.sl"
22795      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22796      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22797      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22798      soname_spec='${libname}${release}${shared_ext}$major'
22799      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22800      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22801      ;;
22802    *)
22803     shrext_cmds='.sl'
22804     dynamic_linker="$host_os dld.sl"
22805     shlibpath_var=SHLIB_PATH
22806     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22807     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22808     soname_spec='${libname}${release}${shared_ext}$major'
22809     ;;
22810   esac
22811   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22812   postinstall_cmds='chmod 555 $lib'
22813   ;;
22814
22815 irix5* | irix6* | nonstopux*)
22816   case $host_os in
22817     nonstopux*) version_type=nonstopux ;;
22818     *)
22819         if test "$lt_cv_prog_gnu_ld" = yes; then
22820                 version_type=linux
22821         else
22822                 version_type=irix
22823         fi ;;
22824   esac
22825   need_lib_prefix=no
22826   need_version=no
22827   soname_spec='${libname}${release}${shared_ext}$major'
22828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22829   case $host_os in
22830   irix5* | nonstopux*)
22831     libsuff= shlibsuff=
22832     ;;
22833   *)
22834     case $LD in # libtool.m4 will add one of these switches to LD
22835     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22836       libsuff= shlibsuff= libmagic=32-bit;;
22837     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22838       libsuff=32 shlibsuff=N32 libmagic=N32;;
22839     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22840       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22841     *) libsuff= shlibsuff= libmagic=never-match;;
22842     esac
22843     ;;
22844   esac
22845   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22846   shlibpath_overrides_runpath=no
22847   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22848   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22849   hardcode_into_libs=yes
22850   ;;
22851
22852 # No shared lib support for Linux oldld, aout, or coff.
22853 linux*oldld* | linux*aout* | linux*coff*)
22854   dynamic_linker=no
22855   ;;
22856
22857 # This must be Linux ELF.
22858 linux*)
22859   version_type=linux
22860   need_lib_prefix=no
22861   need_version=no
22862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22863   soname_spec='${libname}${release}${shared_ext}$major'
22864   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22865   shlibpath_var=LD_LIBRARY_PATH
22866   shlibpath_overrides_runpath=no
22867   # This implies no fast_install, which is unacceptable.
22868   # Some rework will be needed to allow for fast_install
22869   # before this can be enabled.
22870   hardcode_into_libs=yes
22871
22872   # Append ld.so.conf contents to the search path
22873   if test -f /etc/ld.so.conf; then
22874     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22875     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22876   fi
22877
22878   # We used to test for /lib/ld.so.1 and disable shared libraries on
22879   # powerpc, because MkLinux only supported shared libraries with the
22880   # GNU dynamic linker.  Since this was broken with cross compilers,
22881   # most powerpc-linux boxes support dynamic linking these days and
22882   # people can always --disable-shared, the test was removed, and we
22883   # assume the GNU/Linux dynamic linker is in use.
22884   dynamic_linker='GNU/Linux ld.so'
22885   ;;
22886
22887 knetbsd*-gnu)
22888   version_type=linux
22889   need_lib_prefix=no
22890   need_version=no
22891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22892   soname_spec='${libname}${release}${shared_ext}$major'
22893   shlibpath_var=LD_LIBRARY_PATH
22894   shlibpath_overrides_runpath=no
22895   hardcode_into_libs=yes
22896   dynamic_linker='GNU ld.so'
22897   ;;
22898
22899 netbsd*)
22900   version_type=sunos
22901   need_lib_prefix=no
22902   need_version=no
22903   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22905     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22906     dynamic_linker='NetBSD (a.out) ld.so'
22907   else
22908     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22909     soname_spec='${libname}${release}${shared_ext}$major'
22910     dynamic_linker='NetBSD ld.elf_so'
22911   fi
22912   shlibpath_var=LD_LIBRARY_PATH
22913   shlibpath_overrides_runpath=yes
22914   hardcode_into_libs=yes
22915   ;;
22916
22917 newsos6)
22918   version_type=linux
22919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22920   shlibpath_var=LD_LIBRARY_PATH
22921   shlibpath_overrides_runpath=yes
22922   ;;
22923
22924 nto-qnx*)
22925   version_type=linux
22926   need_lib_prefix=no
22927   need_version=no
22928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22929   soname_spec='${libname}${release}${shared_ext}$major'
22930   shlibpath_var=LD_LIBRARY_PATH
22931   shlibpath_overrides_runpath=yes
22932   ;;
22933
22934 openbsd*)
22935   version_type=sunos
22936   need_lib_prefix=no
22937   need_version=no
22938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22939   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22940   shlibpath_var=LD_LIBRARY_PATH
22941   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22942     case $host_os in
22943       openbsd2.[89] | openbsd2.[89].*)
22944         shlibpath_overrides_runpath=no
22945         ;;
22946       *)
22947         shlibpath_overrides_runpath=yes
22948         ;;
22949       esac
22950   else
22951     shlibpath_overrides_runpath=yes
22952   fi
22953   ;;
22954
22955 os2*)
22956   libname_spec='$name'
22957   shrext_cmds=".dll"
22958   need_lib_prefix=no
22959   library_names_spec='$libname${shared_ext} $libname.a'
22960   dynamic_linker='OS/2 ld.exe'
22961   shlibpath_var=LIBPATH
22962   ;;
22963
22964 osf3* | osf4* | osf5*)
22965   version_type=osf
22966   need_lib_prefix=no
22967   need_version=no
22968   soname_spec='${libname}${release}${shared_ext}$major'
22969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22970   shlibpath_var=LD_LIBRARY_PATH
22971   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22972   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22973   ;;
22974
22975 sco3.2v5*)
22976   version_type=osf
22977   soname_spec='${libname}${release}${shared_ext}$major'
22978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22979   shlibpath_var=LD_LIBRARY_PATH
22980   ;;
22981
22982 solaris*)
22983   version_type=linux
22984   need_lib_prefix=no
22985   need_version=no
22986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22987   soname_spec='${libname}${release}${shared_ext}$major'
22988   shlibpath_var=LD_LIBRARY_PATH
22989   shlibpath_overrides_runpath=yes
22990   hardcode_into_libs=yes
22991   # ldd complains unless libraries are executable
22992   postinstall_cmds='chmod +x $lib'
22993   ;;
22994
22995 sunos4*)
22996   version_type=sunos
22997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22998   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22999   shlibpath_var=LD_LIBRARY_PATH
23000   shlibpath_overrides_runpath=yes
23001   if test "$with_gnu_ld" = yes; then
23002     need_lib_prefix=no
23003   fi
23004   need_version=yes
23005   ;;
23006
23007 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23008   version_type=linux
23009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23010   soname_spec='${libname}${release}${shared_ext}$major'
23011   shlibpath_var=LD_LIBRARY_PATH
23012   case $host_vendor in
23013     sni)
23014       shlibpath_overrides_runpath=no
23015       need_lib_prefix=no
23016       export_dynamic_flag_spec='${wl}-Blargedynsym'
23017       runpath_var=LD_RUN_PATH
23018       ;;
23019     siemens)
23020       need_lib_prefix=no
23021       ;;
23022     motorola)
23023       need_lib_prefix=no
23024       need_version=no
23025       shlibpath_overrides_runpath=no
23026       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23027       ;;
23028   esac
23029   ;;
23030
23031 sysv4*MP*)
23032   if test -d /usr/nec ;then
23033     version_type=linux
23034     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23035     soname_spec='$libname${shared_ext}.$major'
23036     shlibpath_var=LD_LIBRARY_PATH
23037   fi
23038   ;;
23039
23040 uts4*)
23041   version_type=linux
23042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23043   soname_spec='${libname}${release}${shared_ext}$major'
23044   shlibpath_var=LD_LIBRARY_PATH
23045   ;;
23046
23047 *)
23048   dynamic_linker=no
23049   ;;
23050 esac
23051 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23052 echo "${ECHO_T}$dynamic_linker" >&6
23053 test "$dynamic_linker" = no && can_build_shared=no
23054
23055 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23056 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23057 hardcode_action_GCJ=
23058 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23059    test -n "$runpath_var_GCJ" || \
23060    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23061
23062   # We can hardcode non-existant directories.
23063   if test "$hardcode_direct_GCJ" != no &&
23064      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23065      # have to relink, otherwise we might link with an installed library
23066      # when we should be linking with a yet-to-be-installed one
23067      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23068      test "$hardcode_minus_L_GCJ" != no; then
23069     # Linking always hardcodes the temporary library directory.
23070     hardcode_action_GCJ=relink
23071   else
23072     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23073     hardcode_action_GCJ=immediate
23074   fi
23075 else
23076   # We cannot hardcode anything, or else we can only hardcode existing
23077   # directories.
23078   hardcode_action_GCJ=unsupported
23079 fi
23080 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23081 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23082
23083 if test "$hardcode_action_GCJ" = relink; then
23084   # Fast installation is not supported
23085   enable_fast_install=no
23086 elif test "$shlibpath_overrides_runpath" = yes ||
23087      test "$enable_shared" = no; then
23088   # Fast installation is not necessary
23089   enable_fast_install=needless
23090 fi
23091
23092 striplib=
23093 old_striplib=
23094 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23095 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23096 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23097   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23098   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23099   echo "$as_me:$LINENO: result: yes" >&5
23100 echo "${ECHO_T}yes" >&6
23101 else
23102 # FIXME - insert some real tests, host_os isn't really good enough
23103   case $host_os in
23104    darwin*)
23105        if test -n "$STRIP" ; then
23106          striplib="$STRIP -x"
23107          echo "$as_me:$LINENO: result: yes" >&5
23108 echo "${ECHO_T}yes" >&6
23109        else
23110   echo "$as_me:$LINENO: result: no" >&5
23111 echo "${ECHO_T}no" >&6
23112 fi
23113        ;;
23114    *)
23115   echo "$as_me:$LINENO: result: no" >&5
23116 echo "${ECHO_T}no" >&6
23117     ;;
23118   esac
23119 fi
23120
23121 if test "x$enable_dlopen" != xyes; then
23122   enable_dlopen=unknown
23123   enable_dlopen_self=unknown
23124   enable_dlopen_self_static=unknown
23125 else
23126   lt_cv_dlopen=no
23127   lt_cv_dlopen_libs=
23128
23129   case $host_os in
23130   beos*)
23131     lt_cv_dlopen="load_add_on"
23132     lt_cv_dlopen_libs=
23133     lt_cv_dlopen_self=yes
23134     ;;
23135
23136   mingw* | pw32*)
23137     lt_cv_dlopen="LoadLibrary"
23138     lt_cv_dlopen_libs=
23139    ;;
23140
23141   cygwin*)
23142     lt_cv_dlopen="dlopen"
23143     lt_cv_dlopen_libs=
23144    ;;
23145
23146   darwin*)
23147   # if libdl is installed we need to link against it
23148     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23149 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23150 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23151   echo $ECHO_N "(cached) $ECHO_C" >&6
23152 else
23153   ac_check_lib_save_LIBS=$LIBS
23154 LIBS="-ldl  $LIBS"
23155 cat >conftest.$ac_ext <<_ACEOF
23156 /* confdefs.h.  */
23157 _ACEOF
23158 cat confdefs.h >>conftest.$ac_ext
23159 cat >>conftest.$ac_ext <<_ACEOF
23160 /* end confdefs.h.  */
23161
23162 /* Override any gcc2 internal prototype to avoid an error.  */
23163 #ifdef __cplusplus
23164 extern "C"
23165 #endif
23166 /* We use char because int might match the return type of a gcc2
23167    builtin and then its argument prototype would still apply.  */
23168 char dlopen ();
23169 int
23170 main ()
23171 {
23172 dlopen ();
23173   ;
23174   return 0;
23175 }
23176 _ACEOF
23177 rm -f conftest.$ac_objext conftest$ac_exeext
23178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23179   (eval $ac_link) 2>conftest.er1
23180   ac_status=$?
23181   grep -v '^ *+' conftest.er1 >conftest.err
23182   rm -f conftest.er1
23183   cat conftest.err >&5
23184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185   (exit $ac_status); } &&
23186          { ac_try='test -z "$ac_c_werror_flag"
23187                          || test ! -s conftest.err'
23188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189   (eval $ac_try) 2>&5
23190   ac_status=$?
23191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192   (exit $ac_status); }; } &&
23193          { ac_try='test -s conftest$ac_exeext'
23194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23195   (eval $ac_try) 2>&5
23196   ac_status=$?
23197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198   (exit $ac_status); }; }; then
23199   ac_cv_lib_dl_dlopen=yes
23200 else
23201   echo "$as_me: failed program was:" >&5
23202 sed 's/^/| /' conftest.$ac_ext >&5
23203
23204 ac_cv_lib_dl_dlopen=no
23205 fi
23206 rm -f conftest.err conftest.$ac_objext \
23207       conftest$ac_exeext conftest.$ac_ext
23208 LIBS=$ac_check_lib_save_LIBS
23209 fi
23210 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23211 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23212 if test $ac_cv_lib_dl_dlopen = yes; then
23213   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23214 else
23215
23216     lt_cv_dlopen="dyld"
23217     lt_cv_dlopen_libs=
23218     lt_cv_dlopen_self=yes
23219
23220 fi
23221
23222    ;;
23223
23224   *)
23225     echo "$as_me:$LINENO: checking for shl_load" >&5
23226 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23227 if test "${ac_cv_func_shl_load+set}" = set; then
23228   echo $ECHO_N "(cached) $ECHO_C" >&6
23229 else
23230   cat >conftest.$ac_ext <<_ACEOF
23231 /* confdefs.h.  */
23232 _ACEOF
23233 cat confdefs.h >>conftest.$ac_ext
23234 cat >>conftest.$ac_ext <<_ACEOF
23235 /* end confdefs.h.  */
23236 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23238 #define shl_load innocuous_shl_load
23239
23240 /* System header to define __stub macros and hopefully few prototypes,
23241     which can conflict with char shl_load (); below.
23242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23243     <limits.h> exists even on freestanding compilers.  */
23244
23245 #ifdef __STDC__
23246 # include <limits.h>
23247 #else
23248 # include <assert.h>
23249 #endif
23250
23251 #undef shl_load
23252
23253 /* Override any gcc2 internal prototype to avoid an error.  */
23254 #ifdef __cplusplus
23255 extern "C"
23256 {
23257 #endif
23258 /* We use char because int might match the return type of a gcc2
23259    builtin and then its argument prototype would still apply.  */
23260 char shl_load ();
23261 /* The GNU C library defines this for functions which it implements
23262     to always fail with ENOSYS.  Some functions are actually named
23263     something starting with __ and the normal name is an alias.  */
23264 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23265 choke me
23266 #else
23267 char (*f) () = shl_load;
23268 #endif
23269 #ifdef __cplusplus
23270 }
23271 #endif
23272
23273 int
23274 main ()
23275 {
23276 return f != shl_load;
23277   ;
23278   return 0;
23279 }
23280 _ACEOF
23281 rm -f conftest.$ac_objext conftest$ac_exeext
23282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23283   (eval $ac_link) 2>conftest.er1
23284   ac_status=$?
23285   grep -v '^ *+' conftest.er1 >conftest.err
23286   rm -f conftest.er1
23287   cat conftest.err >&5
23288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289   (exit $ac_status); } &&
23290          { ac_try='test -z "$ac_c_werror_flag"
23291                          || test ! -s conftest.err'
23292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23293   (eval $ac_try) 2>&5
23294   ac_status=$?
23295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296   (exit $ac_status); }; } &&
23297          { ac_try='test -s conftest$ac_exeext'
23298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23299   (eval $ac_try) 2>&5
23300   ac_status=$?
23301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302   (exit $ac_status); }; }; then
23303   ac_cv_func_shl_load=yes
23304 else
23305   echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23307
23308 ac_cv_func_shl_load=no
23309 fi
23310 rm -f conftest.err conftest.$ac_objext \
23311       conftest$ac_exeext conftest.$ac_ext
23312 fi
23313 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23314 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23315 if test $ac_cv_func_shl_load = yes; then
23316   lt_cv_dlopen="shl_load"
23317 else
23318   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23319 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23320 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23321   echo $ECHO_N "(cached) $ECHO_C" >&6
23322 else
23323   ac_check_lib_save_LIBS=$LIBS
23324 LIBS="-ldld  $LIBS"
23325 cat >conftest.$ac_ext <<_ACEOF
23326 /* confdefs.h.  */
23327 _ACEOF
23328 cat confdefs.h >>conftest.$ac_ext
23329 cat >>conftest.$ac_ext <<_ACEOF
23330 /* end confdefs.h.  */
23331
23332 /* Override any gcc2 internal prototype to avoid an error.  */
23333 #ifdef __cplusplus
23334 extern "C"
23335 #endif
23336 /* We use char because int might match the return type of a gcc2
23337    builtin and then its argument prototype would still apply.  */
23338 char shl_load ();
23339 int
23340 main ()
23341 {
23342 shl_load ();
23343   ;
23344   return 0;
23345 }
23346 _ACEOF
23347 rm -f conftest.$ac_objext conftest$ac_exeext
23348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23349   (eval $ac_link) 2>conftest.er1
23350   ac_status=$?
23351   grep -v '^ *+' conftest.er1 >conftest.err
23352   rm -f conftest.er1
23353   cat conftest.err >&5
23354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355   (exit $ac_status); } &&
23356          { ac_try='test -z "$ac_c_werror_flag"
23357                          || test ! -s conftest.err'
23358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359   (eval $ac_try) 2>&5
23360   ac_status=$?
23361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362   (exit $ac_status); }; } &&
23363          { ac_try='test -s conftest$ac_exeext'
23364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23365   (eval $ac_try) 2>&5
23366   ac_status=$?
23367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368   (exit $ac_status); }; }; then
23369   ac_cv_lib_dld_shl_load=yes
23370 else
23371   echo "$as_me: failed program was:" >&5
23372 sed 's/^/| /' conftest.$ac_ext >&5
23373
23374 ac_cv_lib_dld_shl_load=no
23375 fi
23376 rm -f conftest.err conftest.$ac_objext \
23377       conftest$ac_exeext conftest.$ac_ext
23378 LIBS=$ac_check_lib_save_LIBS
23379 fi
23380 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23381 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23382 if test $ac_cv_lib_dld_shl_load = yes; then
23383   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23384 else
23385   echo "$as_me:$LINENO: checking for dlopen" >&5
23386 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23387 if test "${ac_cv_func_dlopen+set}" = set; then
23388   echo $ECHO_N "(cached) $ECHO_C" >&6
23389 else
23390   cat >conftest.$ac_ext <<_ACEOF
23391 /* confdefs.h.  */
23392 _ACEOF
23393 cat confdefs.h >>conftest.$ac_ext
23394 cat >>conftest.$ac_ext <<_ACEOF
23395 /* end confdefs.h.  */
23396 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23398 #define dlopen innocuous_dlopen
23399
23400 /* System header to define __stub macros and hopefully few prototypes,
23401     which can conflict with char dlopen (); below.
23402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23403     <limits.h> exists even on freestanding compilers.  */
23404
23405 #ifdef __STDC__
23406 # include <limits.h>
23407 #else
23408 # include <assert.h>
23409 #endif
23410
23411 #undef dlopen
23412
23413 /* Override any gcc2 internal prototype to avoid an error.  */
23414 #ifdef __cplusplus
23415 extern "C"
23416 {
23417 #endif
23418 /* We use char because int might match the return type of a gcc2
23419    builtin and then its argument prototype would still apply.  */
23420 char dlopen ();
23421 /* The GNU C library defines this for functions which it implements
23422     to always fail with ENOSYS.  Some functions are actually named
23423     something starting with __ and the normal name is an alias.  */
23424 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23425 choke me
23426 #else
23427 char (*f) () = dlopen;
23428 #endif
23429 #ifdef __cplusplus
23430 }
23431 #endif
23432
23433 int
23434 main ()
23435 {
23436 return f != dlopen;
23437   ;
23438   return 0;
23439 }
23440 _ACEOF
23441 rm -f conftest.$ac_objext conftest$ac_exeext
23442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23443   (eval $ac_link) 2>conftest.er1
23444   ac_status=$?
23445   grep -v '^ *+' conftest.er1 >conftest.err
23446   rm -f conftest.er1
23447   cat conftest.err >&5
23448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449   (exit $ac_status); } &&
23450          { ac_try='test -z "$ac_c_werror_flag"
23451                          || test ! -s conftest.err'
23452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23453   (eval $ac_try) 2>&5
23454   ac_status=$?
23455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456   (exit $ac_status); }; } &&
23457          { ac_try='test -s conftest$ac_exeext'
23458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23459   (eval $ac_try) 2>&5
23460   ac_status=$?
23461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462   (exit $ac_status); }; }; then
23463   ac_cv_func_dlopen=yes
23464 else
23465   echo "$as_me: failed program was:" >&5
23466 sed 's/^/| /' conftest.$ac_ext >&5
23467
23468 ac_cv_func_dlopen=no
23469 fi
23470 rm -f conftest.err conftest.$ac_objext \
23471       conftest$ac_exeext conftest.$ac_ext
23472 fi
23473 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23474 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23475 if test $ac_cv_func_dlopen = yes; then
23476   lt_cv_dlopen="dlopen"
23477 else
23478   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23479 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23480 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23481   echo $ECHO_N "(cached) $ECHO_C" >&6
23482 else
23483   ac_check_lib_save_LIBS=$LIBS
23484 LIBS="-ldl  $LIBS"
23485 cat >conftest.$ac_ext <<_ACEOF
23486 /* confdefs.h.  */
23487 _ACEOF
23488 cat confdefs.h >>conftest.$ac_ext
23489 cat >>conftest.$ac_ext <<_ACEOF
23490 /* end confdefs.h.  */
23491
23492 /* Override any gcc2 internal prototype to avoid an error.  */
23493 #ifdef __cplusplus
23494 extern "C"
23495 #endif
23496 /* We use char because int might match the return type of a gcc2
23497    builtin and then its argument prototype would still apply.  */
23498 char dlopen ();
23499 int
23500 main ()
23501 {
23502 dlopen ();
23503   ;
23504   return 0;
23505 }
23506 _ACEOF
23507 rm -f conftest.$ac_objext conftest$ac_exeext
23508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23509   (eval $ac_link) 2>conftest.er1
23510   ac_status=$?
23511   grep -v '^ *+' conftest.er1 >conftest.err
23512   rm -f conftest.er1
23513   cat conftest.err >&5
23514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515   (exit $ac_status); } &&
23516          { ac_try='test -z "$ac_c_werror_flag"
23517                          || test ! -s conftest.err'
23518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23519   (eval $ac_try) 2>&5
23520   ac_status=$?
23521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522   (exit $ac_status); }; } &&
23523          { ac_try='test -s conftest$ac_exeext'
23524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23525   (eval $ac_try) 2>&5
23526   ac_status=$?
23527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528   (exit $ac_status); }; }; then
23529   ac_cv_lib_dl_dlopen=yes
23530 else
23531   echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23533
23534 ac_cv_lib_dl_dlopen=no
23535 fi
23536 rm -f conftest.err conftest.$ac_objext \
23537       conftest$ac_exeext conftest.$ac_ext
23538 LIBS=$ac_check_lib_save_LIBS
23539 fi
23540 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23541 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23542 if test $ac_cv_lib_dl_dlopen = yes; then
23543   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23544 else
23545   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23546 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23547 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23548   echo $ECHO_N "(cached) $ECHO_C" >&6
23549 else
23550   ac_check_lib_save_LIBS=$LIBS
23551 LIBS="-lsvld  $LIBS"
23552 cat >conftest.$ac_ext <<_ACEOF
23553 /* confdefs.h.  */
23554 _ACEOF
23555 cat confdefs.h >>conftest.$ac_ext
23556 cat >>conftest.$ac_ext <<_ACEOF
23557 /* end confdefs.h.  */
23558
23559 /* Override any gcc2 internal prototype to avoid an error.  */
23560 #ifdef __cplusplus
23561 extern "C"
23562 #endif
23563 /* We use char because int might match the return type of a gcc2
23564    builtin and then its argument prototype would still apply.  */
23565 char dlopen ();
23566 int
23567 main ()
23568 {
23569 dlopen ();
23570   ;
23571   return 0;
23572 }
23573 _ACEOF
23574 rm -f conftest.$ac_objext conftest$ac_exeext
23575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23576   (eval $ac_link) 2>conftest.er1
23577   ac_status=$?
23578   grep -v '^ *+' conftest.er1 >conftest.err
23579   rm -f conftest.er1
23580   cat conftest.err >&5
23581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582   (exit $ac_status); } &&
23583          { ac_try='test -z "$ac_c_werror_flag"
23584                          || test ! -s conftest.err'
23585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23586   (eval $ac_try) 2>&5
23587   ac_status=$?
23588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589   (exit $ac_status); }; } &&
23590          { ac_try='test -s conftest$ac_exeext'
23591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23592   (eval $ac_try) 2>&5
23593   ac_status=$?
23594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595   (exit $ac_status); }; }; then
23596   ac_cv_lib_svld_dlopen=yes
23597 else
23598   echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23600
23601 ac_cv_lib_svld_dlopen=no
23602 fi
23603 rm -f conftest.err conftest.$ac_objext \
23604       conftest$ac_exeext conftest.$ac_ext
23605 LIBS=$ac_check_lib_save_LIBS
23606 fi
23607 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23608 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23609 if test $ac_cv_lib_svld_dlopen = yes; then
23610   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23611 else
23612   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23613 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23614 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23615   echo $ECHO_N "(cached) $ECHO_C" >&6
23616 else
23617   ac_check_lib_save_LIBS=$LIBS
23618 LIBS="-ldld  $LIBS"
23619 cat >conftest.$ac_ext <<_ACEOF
23620 /* confdefs.h.  */
23621 _ACEOF
23622 cat confdefs.h >>conftest.$ac_ext
23623 cat >>conftest.$ac_ext <<_ACEOF
23624 /* end confdefs.h.  */
23625
23626 /* Override any gcc2 internal prototype to avoid an error.  */
23627 #ifdef __cplusplus
23628 extern "C"
23629 #endif
23630 /* We use char because int might match the return type of a gcc2
23631    builtin and then its argument prototype would still apply.  */
23632 char dld_link ();
23633 int
23634 main ()
23635 {
23636 dld_link ();
23637   ;
23638   return 0;
23639 }
23640 _ACEOF
23641 rm -f conftest.$ac_objext conftest$ac_exeext
23642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23643   (eval $ac_link) 2>conftest.er1
23644   ac_status=$?
23645   grep -v '^ *+' conftest.er1 >conftest.err
23646   rm -f conftest.er1
23647   cat conftest.err >&5
23648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649   (exit $ac_status); } &&
23650          { ac_try='test -z "$ac_c_werror_flag"
23651                          || test ! -s conftest.err'
23652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23653   (eval $ac_try) 2>&5
23654   ac_status=$?
23655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656   (exit $ac_status); }; } &&
23657          { ac_try='test -s conftest$ac_exeext'
23658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23659   (eval $ac_try) 2>&5
23660   ac_status=$?
23661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662   (exit $ac_status); }; }; then
23663   ac_cv_lib_dld_dld_link=yes
23664 else
23665   echo "$as_me: failed program was:" >&5
23666 sed 's/^/| /' conftest.$ac_ext >&5
23667
23668 ac_cv_lib_dld_dld_link=no
23669 fi
23670 rm -f conftest.err conftest.$ac_objext \
23671       conftest$ac_exeext conftest.$ac_ext
23672 LIBS=$ac_check_lib_save_LIBS
23673 fi
23674 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23675 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23676 if test $ac_cv_lib_dld_dld_link = yes; then
23677   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23678 fi
23679
23680
23681 fi
23682
23683
23684 fi
23685
23686
23687 fi
23688
23689
23690 fi
23691
23692
23693 fi
23694
23695     ;;
23696   esac
23697
23698   if test "x$lt_cv_dlopen" != xno; then
23699     enable_dlopen=yes
23700   else
23701     enable_dlopen=no
23702   fi
23703
23704   case $lt_cv_dlopen in
23705   dlopen)
23706     save_CPPFLAGS="$CPPFLAGS"
23707     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23708
23709     save_LDFLAGS="$LDFLAGS"
23710     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23711
23712     save_LIBS="$LIBS"
23713     LIBS="$lt_cv_dlopen_libs $LIBS"
23714
23715     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23716 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23717 if test "${lt_cv_dlopen_self+set}" = set; then
23718   echo $ECHO_N "(cached) $ECHO_C" >&6
23719 else
23720           if test "$cross_compiling" = yes; then :
23721   lt_cv_dlopen_self=cross
23722 else
23723   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23724   lt_status=$lt_dlunknown
23725   cat > conftest.$ac_ext <<EOF
23726 #line 23726 "configure"
23727 #include "confdefs.h"
23728
23729 #if HAVE_DLFCN_H
23730 #include <dlfcn.h>
23731 #endif
23732
23733 #include <stdio.h>
23734
23735 #ifdef RTLD_GLOBAL
23736 #  define LT_DLGLOBAL           RTLD_GLOBAL
23737 #else
23738 #  ifdef DL_GLOBAL
23739 #    define LT_DLGLOBAL         DL_GLOBAL
23740 #  else
23741 #    define LT_DLGLOBAL         0
23742 #  endif
23743 #endif
23744
23745 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23746    find out it does not work in some platform. */
23747 #ifndef LT_DLLAZY_OR_NOW
23748 #  ifdef RTLD_LAZY
23749 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23750 #  else
23751 #    ifdef DL_LAZY
23752 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23753 #    else
23754 #      ifdef RTLD_NOW
23755 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23756 #      else
23757 #        ifdef DL_NOW
23758 #          define LT_DLLAZY_OR_NOW      DL_NOW
23759 #        else
23760 #          define LT_DLLAZY_OR_NOW      0
23761 #        endif
23762 #      endif
23763 #    endif
23764 #  endif
23765 #endif
23766
23767 #ifdef __cplusplus
23768 extern "C" void exit (int);
23769 #endif
23770
23771 void fnord() { int i=42;}
23772 int main ()
23773 {
23774   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23775   int status = $lt_dlunknown;
23776
23777   if (self)
23778     {
23779       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23780       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23781       /* dlclose (self); */
23782     }
23783
23784     exit (status);
23785 }
23786 EOF
23787   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23788   (eval $ac_link) 2>&5
23789   ac_status=$?
23790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23792     (./conftest; exit; ) 2>/dev/null
23793     lt_status=$?
23794     case x$lt_status in
23795       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23796       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23797       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23798     esac
23799   else :
23800     # compilation failed
23801     lt_cv_dlopen_self=no
23802   fi
23803 fi
23804 rm -fr conftest*
23805
23806
23807 fi
23808 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23809 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23810
23811     if test "x$lt_cv_dlopen_self" = xyes; then
23812       LDFLAGS="$LDFLAGS $link_static_flag"
23813       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23814 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23815 if test "${lt_cv_dlopen_self_static+set}" = set; then
23816   echo $ECHO_N "(cached) $ECHO_C" >&6
23817 else
23818           if test "$cross_compiling" = yes; then :
23819   lt_cv_dlopen_self_static=cross
23820 else
23821   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23822   lt_status=$lt_dlunknown
23823   cat > conftest.$ac_ext <<EOF
23824 #line 23824 "configure"
23825 #include "confdefs.h"
23826
23827 #if HAVE_DLFCN_H
23828 #include <dlfcn.h>
23829 #endif
23830
23831 #include <stdio.h>
23832
23833 #ifdef RTLD_GLOBAL
23834 #  define LT_DLGLOBAL           RTLD_GLOBAL
23835 #else
23836 #  ifdef DL_GLOBAL
23837 #    define LT_DLGLOBAL         DL_GLOBAL
23838 #  else
23839 #    define LT_DLGLOBAL         0
23840 #  endif
23841 #endif
23842
23843 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23844    find out it does not work in some platform. */
23845 #ifndef LT_DLLAZY_OR_NOW
23846 #  ifdef RTLD_LAZY
23847 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23848 #  else
23849 #    ifdef DL_LAZY
23850 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23851 #    else
23852 #      ifdef RTLD_NOW
23853 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23854 #      else
23855 #        ifdef DL_NOW
23856 #          define LT_DLLAZY_OR_NOW      DL_NOW
23857 #        else
23858 #          define LT_DLLAZY_OR_NOW      0
23859 #        endif
23860 #      endif
23861 #    endif
23862 #  endif
23863 #endif
23864
23865 #ifdef __cplusplus
23866 extern "C" void exit (int);
23867 #endif
23868
23869 void fnord() { int i=42;}
23870 int main ()
23871 {
23872   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23873   int status = $lt_dlunknown;
23874
23875   if (self)
23876     {
23877       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23878       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23879       /* dlclose (self); */
23880     }
23881
23882     exit (status);
23883 }
23884 EOF
23885   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23886   (eval $ac_link) 2>&5
23887   ac_status=$?
23888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23890     (./conftest; exit; ) 2>/dev/null
23891     lt_status=$?
23892     case x$lt_status in
23893       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23894       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23895       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23896     esac
23897   else :
23898     # compilation failed
23899     lt_cv_dlopen_self_static=no
23900   fi
23901 fi
23902 rm -fr conftest*
23903
23904
23905 fi
23906 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23907 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23908     fi
23909
23910     CPPFLAGS="$save_CPPFLAGS"
23911     LDFLAGS="$save_LDFLAGS"
23912     LIBS="$save_LIBS"
23913     ;;
23914   esac
23915
23916   case $lt_cv_dlopen_self in
23917   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23918   *) enable_dlopen_self=unknown ;;
23919   esac
23920
23921   case $lt_cv_dlopen_self_static in
23922   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23923   *) enable_dlopen_self_static=unknown ;;
23924   esac
23925 fi
23926
23927
23928 # The else clause should only fire when bootstrapping the
23929 # libtool distribution, otherwise you forgot to ship ltmain.sh
23930 # with your package, and you will get complaints that there are
23931 # no rules to generate ltmain.sh.
23932 if test -f "$ltmain"; then
23933   # See if we are running on zsh, and set the options which allow our commands through
23934   # without removal of \ escapes.
23935   if test -n "${ZSH_VERSION+set}" ; then
23936     setopt NO_GLOB_SUBST
23937   fi
23938   # Now quote all the things that may contain metacharacters while being
23939   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23940   # variables and quote the copies for generation of the libtool script.
23941   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23942     SED SHELL STRIP \
23943     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23944     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23945     deplibs_check_method reload_flag reload_cmds need_locks \
23946     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23947     lt_cv_sys_global_symbol_to_c_name_address \
23948     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23949     old_postinstall_cmds old_postuninstall_cmds \
23950     compiler_GCJ \
23951     CC_GCJ \
23952     LD_GCJ \
23953     lt_prog_compiler_wl_GCJ \
23954     lt_prog_compiler_pic_GCJ \
23955     lt_prog_compiler_static_GCJ \
23956     lt_prog_compiler_no_builtin_flag_GCJ \
23957     export_dynamic_flag_spec_GCJ \
23958     thread_safe_flag_spec_GCJ \
23959     whole_archive_flag_spec_GCJ \
23960     enable_shared_with_static_runtimes_GCJ \
23961     old_archive_cmds_GCJ \
23962     old_archive_from_new_cmds_GCJ \
23963     predep_objects_GCJ \
23964     postdep_objects_GCJ \
23965     predeps_GCJ \
23966     postdeps_GCJ \
23967     compiler_lib_search_path_GCJ \
23968     archive_cmds_GCJ \
23969     archive_expsym_cmds_GCJ \
23970     postinstall_cmds_GCJ \
23971     postuninstall_cmds_GCJ \
23972     old_archive_from_expsyms_cmds_GCJ \
23973     allow_undefined_flag_GCJ \
23974     no_undefined_flag_GCJ \
23975     export_symbols_cmds_GCJ \
23976     hardcode_libdir_flag_spec_GCJ \
23977     hardcode_libdir_flag_spec_ld_GCJ \
23978     hardcode_libdir_separator_GCJ \
23979     hardcode_automatic_GCJ \
23980     module_cmds_GCJ \
23981     module_expsym_cmds_GCJ \
23982     lt_cv_prog_compiler_c_o_GCJ \
23983     exclude_expsyms_GCJ \
23984     include_expsyms_GCJ; do
23985
23986     case $var in
23987     old_archive_cmds_GCJ | \
23988     old_archive_from_new_cmds_GCJ | \
23989     archive_cmds_GCJ | \
23990     archive_expsym_cmds_GCJ | \
23991     module_cmds_GCJ | \
23992     module_expsym_cmds_GCJ | \
23993     old_archive_from_expsyms_cmds_GCJ | \
23994     export_symbols_cmds_GCJ | \
23995     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23996     postinstall_cmds | postuninstall_cmds | \
23997     old_postinstall_cmds | old_postuninstall_cmds | \
23998     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23999       # Double-quote double-evaled strings.
24000       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24001       ;;
24002     *)
24003       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24004       ;;
24005     esac
24006   done
24007
24008   case $lt_echo in
24009   *'\$0 --fallback-echo"')
24010     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24011     ;;
24012   esac
24013
24014 cfgfile="$ofile"
24015
24016   cat <<__EOF__ >> "$cfgfile"
24017 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24018
24019 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24020
24021 # Shell to use when invoking shell scripts.
24022 SHELL=$lt_SHELL
24023
24024 # Whether or not to build shared libraries.
24025 build_libtool_libs=$enable_shared
24026
24027 # Whether or not to build static libraries.
24028 build_old_libs=$enable_static
24029
24030 # Whether or not to add -lc for building shared libraries.
24031 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24032
24033 # Whether or not to disallow shared libs when runtime libs are static
24034 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24035
24036 # Whether or not to optimize for fast installation.
24037 fast_install=$enable_fast_install
24038
24039 # The host system.
24040 host_alias=$host_alias
24041 host=$host
24042
24043 # An echo program that does not interpret backslashes.
24044 echo=$lt_echo
24045
24046 # The archiver.
24047 AR=$lt_AR
24048 AR_FLAGS=$lt_AR_FLAGS
24049
24050 # A C compiler.
24051 LTCC=$lt_LTCC
24052
24053 # A language-specific compiler.
24054 CC=$lt_compiler_GCJ
24055
24056 # Is the compiler the GNU C compiler?
24057 with_gcc=$GCC_GCJ
24058
24059 # An ERE matcher.
24060 EGREP=$lt_EGREP
24061
24062 # The linker used to build libraries.
24063 LD=$lt_LD_GCJ
24064
24065 # Whether we need hard or soft links.
24066 LN_S=$lt_LN_S
24067
24068 # A BSD-compatible nm program.
24069 NM=$lt_NM
24070
24071 # A symbol stripping program
24072 STRIP=$lt_STRIP
24073
24074 # Used to examine libraries when file_magic_cmd begins "file"
24075 MAGIC_CMD=$MAGIC_CMD
24076
24077 # Used on cygwin: DLL creation program.
24078 DLLTOOL="$DLLTOOL"
24079
24080 # Used on cygwin: object dumper.
24081 OBJDUMP="$OBJDUMP"
24082
24083 # Used on cygwin: assembler.
24084 AS="$AS"
24085
24086 # The name of the directory that contains temporary libtool files.
24087 objdir=$objdir
24088
24089 # How to create reloadable object files.
24090 reload_flag=$lt_reload_flag
24091 reload_cmds=$lt_reload_cmds
24092
24093 # How to pass a linker flag through the compiler.
24094 wl=$lt_lt_prog_compiler_wl_GCJ
24095
24096 # Object file suffix (normally "o").
24097 objext="$ac_objext"
24098
24099 # Old archive suffix (normally "a").
24100 libext="$libext"
24101
24102 # Shared library suffix (normally ".so").
24103 shrext_cmds='$shrext_cmds'
24104
24105 # Executable file suffix (normally "").
24106 exeext="$exeext"
24107
24108 # Additional compiler flags for building library objects.
24109 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24110 pic_mode=$pic_mode
24111
24112 # What is the maximum length of a command?
24113 max_cmd_len=$lt_cv_sys_max_cmd_len
24114
24115 # Does compiler simultaneously support -c and -o options?
24116 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24117
24118 # Must we lock files when doing compilation ?
24119 need_locks=$lt_need_locks
24120
24121 # Do we need the lib prefix for modules?
24122 need_lib_prefix=$need_lib_prefix
24123
24124 # Do we need a version for libraries?
24125 need_version=$need_version
24126
24127 # Whether dlopen is supported.
24128 dlopen_support=$enable_dlopen
24129
24130 # Whether dlopen of programs is supported.
24131 dlopen_self=$enable_dlopen_self
24132
24133 # Whether dlopen of statically linked programs is supported.
24134 dlopen_self_static=$enable_dlopen_self_static
24135
24136 # Compiler flag to prevent dynamic linking.
24137 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24138
24139 # Compiler flag to turn off builtin functions.
24140 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24141
24142 # Compiler flag to allow reflexive dlopens.
24143 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24144
24145 # Compiler flag to generate shared objects directly from archives.
24146 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24147
24148 # Compiler flag to generate thread-safe objects.
24149 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24150
24151 # Library versioning type.
24152 version_type=$version_type
24153
24154 # Format of library name prefix.
24155 libname_spec=$lt_libname_spec
24156
24157 # List of archive names.  First name is the real one, the rest are links.
24158 # The last name is the one that the linker finds with -lNAME.
24159 library_names_spec=$lt_library_names_spec
24160
24161 # The coded name of the library, if different from the real name.
24162 soname_spec=$lt_soname_spec
24163
24164 # Commands used to build and install an old-style archive.
24165 RANLIB=$lt_RANLIB
24166 old_archive_cmds=$lt_old_archive_cmds_GCJ
24167 old_postinstall_cmds=$lt_old_postinstall_cmds
24168 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24169
24170 # Create an old-style archive from a shared archive.
24171 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24172
24173 # Create a temporary old-style archive to link instead of a shared archive.
24174 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24175
24176 # Commands used to build and install a shared archive.
24177 archive_cmds=$lt_archive_cmds_GCJ
24178 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24179 postinstall_cmds=$lt_postinstall_cmds
24180 postuninstall_cmds=$lt_postuninstall_cmds
24181
24182 # Commands used to build a loadable module (assumed same as above if empty)
24183 module_cmds=$lt_module_cmds_GCJ
24184 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24185
24186 # Commands to strip libraries.
24187 old_striplib=$lt_old_striplib
24188 striplib=$lt_striplib
24189
24190 # Dependencies to place before the objects being linked to create a
24191 # shared library.
24192 predep_objects=$lt_predep_objects_GCJ
24193
24194 # Dependencies to place after the objects being linked to create a
24195 # shared library.
24196 postdep_objects=$lt_postdep_objects_GCJ
24197
24198 # Dependencies to place before the objects being linked to create a
24199 # shared library.
24200 predeps=$lt_predeps_GCJ
24201
24202 # Dependencies to place after the objects being linked to create a
24203 # shared library.
24204 postdeps=$lt_postdeps_GCJ
24205
24206 # The library search path used internally by the compiler when linking
24207 # a shared library.
24208 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24209
24210 # Method to check whether dependent libraries are shared objects.
24211 deplibs_check_method=$lt_deplibs_check_method
24212
24213 # Command to use when deplibs_check_method == file_magic.
24214 file_magic_cmd=$lt_file_magic_cmd
24215
24216 # Flag that allows shared libraries with undefined symbols to be built.
24217 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24218
24219 # Flag that forces no undefined symbols.
24220 no_undefined_flag=$lt_no_undefined_flag_GCJ
24221
24222 # Commands used to finish a libtool library installation in a directory.
24223 finish_cmds=$lt_finish_cmds
24224
24225 # Same as above, but a single script fragment to be evaled but not shown.
24226 finish_eval=$lt_finish_eval
24227
24228 # Take the output of nm and produce a listing of raw symbols and C names.
24229 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24230
24231 # Transform the output of nm in a proper C declaration
24232 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24233
24234 # Transform the output of nm in a C name address pair
24235 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24236
24237 # This is the shared library runtime path variable.
24238 runpath_var=$runpath_var
24239
24240 # This is the shared library path variable.
24241 shlibpath_var=$shlibpath_var
24242
24243 # Is shlibpath searched before the hard-coded library search path?
24244 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24245
24246 # How to hardcode a shared library path into an executable.
24247 hardcode_action=$hardcode_action_GCJ
24248
24249 # Whether we should hardcode library paths into libraries.
24250 hardcode_into_libs=$hardcode_into_libs
24251
24252 # Flag to hardcode \$libdir into a binary during linking.
24253 # This must work even if \$libdir does not exist.
24254 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24255
24256 # If ld is used when linking, flag to hardcode \$libdir into
24257 # a binary during linking. This must work even if \$libdir does
24258 # not exist.
24259 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24260
24261 # Whether we need a single -rpath flag with a separated argument.
24262 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24263
24264 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24265 # resulting binary.
24266 hardcode_direct=$hardcode_direct_GCJ
24267
24268 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24269 # resulting binary.
24270 hardcode_minus_L=$hardcode_minus_L_GCJ
24271
24272 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24273 # the resulting binary.
24274 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24275
24276 # Set to yes if building a shared library automatically hardcodes DIR into the library
24277 # and all subsequent libraries and executables linked against it.
24278 hardcode_automatic=$hardcode_automatic_GCJ
24279
24280 # Variables whose values should be saved in libtool wrapper scripts and
24281 # restored at relink time.
24282 variables_saved_for_relink="$variables_saved_for_relink"
24283
24284 # Whether libtool must link a program against all its dependency libraries.
24285 link_all_deplibs=$link_all_deplibs_GCJ
24286
24287 # Compile-time system search path for libraries
24288 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24289
24290 # Run-time system search path for libraries
24291 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24292
24293 # Fix the shell variable \$srcfile for the compiler.
24294 fix_srcfile_path="$fix_srcfile_path_GCJ"
24295
24296 # Set to yes if exported symbols are required.
24297 always_export_symbols=$always_export_symbols_GCJ
24298
24299 # The commands to list exported symbols.
24300 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24301
24302 # The commands to extract the exported symbol list from a shared archive.
24303 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24304
24305 # Symbols that should not be listed in the preloaded symbols.
24306 exclude_expsyms=$lt_exclude_expsyms_GCJ
24307
24308 # Symbols that must always be exported.
24309 include_expsyms=$lt_include_expsyms_GCJ
24310
24311 # ### END LIBTOOL TAG CONFIG: $tagname
24312
24313 __EOF__
24314
24315
24316 else
24317   # If there is no Makefile yet, we rely on a make rule to execute
24318   # `config.status --recheck' to rerun these tests and create the
24319   # libtool script then.
24320   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24321   if test -f "$ltmain_in"; then
24322     test -f Makefile && make "$ltmain"
24323   fi
24324 fi
24325
24326
24327 ac_ext=c
24328 ac_cpp='$CPP $CPPFLAGS'
24329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24332
24333 CC="$lt_save_CC"
24334
24335         else
24336           tagname=""
24337         fi
24338         ;;
24339
24340       RC)
24341         ac_ext=c
24342 ac_cpp='$CPP $CPPFLAGS'
24343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24346
24347
24348 # Source file extension for RC test sources.
24349 ac_ext=rc
24350
24351 # Object file extension for compiled RC test sources.
24352 objext=o
24353 objext_RC=$objext
24354
24355 # Code to be used in simple compile tests
24356 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24357
24358 # Code to be used in simple link tests
24359 lt_simple_link_test_code="$lt_simple_compile_test_code"
24360
24361 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24362
24363 # If no C compiler was specified, use CC.
24364 LTCC=${LTCC-"$CC"}
24365
24366 # Allow CC to be a program name with arguments.
24367 compiler=$CC
24368
24369
24370 # Allow CC to be a program name with arguments.
24371 lt_save_CC="$CC"
24372 CC=${RC-"windres"}
24373 compiler=$CC
24374 compiler_RC=$CC
24375 lt_cv_prog_compiler_c_o_RC=yes
24376
24377 # The else clause should only fire when bootstrapping the
24378 # libtool distribution, otherwise you forgot to ship ltmain.sh
24379 # with your package, and you will get complaints that there are
24380 # no rules to generate ltmain.sh.
24381 if test -f "$ltmain"; then
24382   # See if we are running on zsh, and set the options which allow our commands through
24383   # without removal of \ escapes.
24384   if test -n "${ZSH_VERSION+set}" ; then
24385     setopt NO_GLOB_SUBST
24386   fi
24387   # Now quote all the things that may contain metacharacters while being
24388   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24389   # variables and quote the copies for generation of the libtool script.
24390   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24391     SED SHELL STRIP \
24392     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24393     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24394     deplibs_check_method reload_flag reload_cmds need_locks \
24395     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24396     lt_cv_sys_global_symbol_to_c_name_address \
24397     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24398     old_postinstall_cmds old_postuninstall_cmds \
24399     compiler_RC \
24400     CC_RC \
24401     LD_RC \
24402     lt_prog_compiler_wl_RC \
24403     lt_prog_compiler_pic_RC \
24404     lt_prog_compiler_static_RC \
24405     lt_prog_compiler_no_builtin_flag_RC \
24406     export_dynamic_flag_spec_RC \
24407     thread_safe_flag_spec_RC \
24408     whole_archive_flag_spec_RC \
24409     enable_shared_with_static_runtimes_RC \
24410     old_archive_cmds_RC \
24411     old_archive_from_new_cmds_RC \
24412     predep_objects_RC \
24413     postdep_objects_RC \
24414     predeps_RC \
24415     postdeps_RC \
24416     compiler_lib_search_path_RC \
24417     archive_cmds_RC \
24418     archive_expsym_cmds_RC \
24419     postinstall_cmds_RC \
24420     postuninstall_cmds_RC \
24421     old_archive_from_expsyms_cmds_RC \
24422     allow_undefined_flag_RC \
24423     no_undefined_flag_RC \
24424     export_symbols_cmds_RC \
24425     hardcode_libdir_flag_spec_RC \
24426     hardcode_libdir_flag_spec_ld_RC \
24427     hardcode_libdir_separator_RC \
24428     hardcode_automatic_RC \
24429     module_cmds_RC \
24430     module_expsym_cmds_RC \
24431     lt_cv_prog_compiler_c_o_RC \
24432     exclude_expsyms_RC \
24433     include_expsyms_RC; do
24434
24435     case $var in
24436     old_archive_cmds_RC | \
24437     old_archive_from_new_cmds_RC | \
24438     archive_cmds_RC | \
24439     archive_expsym_cmds_RC | \
24440     module_cmds_RC | \
24441     module_expsym_cmds_RC | \
24442     old_archive_from_expsyms_cmds_RC | \
24443     export_symbols_cmds_RC | \
24444     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24445     postinstall_cmds | postuninstall_cmds | \
24446     old_postinstall_cmds | old_postuninstall_cmds | \
24447     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24448       # Double-quote double-evaled strings.
24449       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24450       ;;
24451     *)
24452       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24453       ;;
24454     esac
24455   done
24456
24457   case $lt_echo in
24458   *'\$0 --fallback-echo"')
24459     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24460     ;;
24461   esac
24462
24463 cfgfile="$ofile"
24464
24465   cat <<__EOF__ >> "$cfgfile"
24466 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24467
24468 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24469
24470 # Shell to use when invoking shell scripts.
24471 SHELL=$lt_SHELL
24472
24473 # Whether or not to build shared libraries.
24474 build_libtool_libs=$enable_shared
24475
24476 # Whether or not to build static libraries.
24477 build_old_libs=$enable_static
24478
24479 # Whether or not to add -lc for building shared libraries.
24480 build_libtool_need_lc=$archive_cmds_need_lc_RC
24481
24482 # Whether or not to disallow shared libs when runtime libs are static
24483 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24484
24485 # Whether or not to optimize for fast installation.
24486 fast_install=$enable_fast_install
24487
24488 # The host system.
24489 host_alias=$host_alias
24490 host=$host
24491
24492 # An echo program that does not interpret backslashes.
24493 echo=$lt_echo
24494
24495 # The archiver.
24496 AR=$lt_AR
24497 AR_FLAGS=$lt_AR_FLAGS
24498
24499 # A C compiler.
24500 LTCC=$lt_LTCC
24501
24502 # A language-specific compiler.
24503 CC=$lt_compiler_RC
24504
24505 # Is the compiler the GNU C compiler?
24506 with_gcc=$GCC_RC
24507
24508 # An ERE matcher.
24509 EGREP=$lt_EGREP
24510
24511 # The linker used to build libraries.
24512 LD=$lt_LD_RC
24513
24514 # Whether we need hard or soft links.
24515 LN_S=$lt_LN_S
24516
24517 # A BSD-compatible nm program.
24518 NM=$lt_NM
24519
24520 # A symbol stripping program
24521 STRIP=$lt_STRIP
24522
24523 # Used to examine libraries when file_magic_cmd begins "file"
24524 MAGIC_CMD=$MAGIC_CMD
24525
24526 # Used on cygwin: DLL creation program.
24527 DLLTOOL="$DLLTOOL"
24528
24529 # Used on cygwin: object dumper.
24530 OBJDUMP="$OBJDUMP"
24531
24532 # Used on cygwin: assembler.
24533 AS="$AS"
24534
24535 # The name of the directory that contains temporary libtool files.
24536 objdir=$objdir
24537
24538 # How to create reloadable object files.
24539 reload_flag=$lt_reload_flag
24540 reload_cmds=$lt_reload_cmds
24541
24542 # How to pass a linker flag through the compiler.
24543 wl=$lt_lt_prog_compiler_wl_RC
24544
24545 # Object file suffix (normally "o").
24546 objext="$ac_objext"
24547
24548 # Old archive suffix (normally "a").
24549 libext="$libext"
24550
24551 # Shared library suffix (normally ".so").
24552 shrext_cmds='$shrext_cmds'
24553
24554 # Executable file suffix (normally "").
24555 exeext="$exeext"
24556
24557 # Additional compiler flags for building library objects.
24558 pic_flag=$lt_lt_prog_compiler_pic_RC
24559 pic_mode=$pic_mode
24560
24561 # What is the maximum length of a command?
24562 max_cmd_len=$lt_cv_sys_max_cmd_len
24563
24564 # Does compiler simultaneously support -c and -o options?
24565 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24566
24567 # Must we lock files when doing compilation ?
24568 need_locks=$lt_need_locks
24569
24570 # Do we need the lib prefix for modules?
24571 need_lib_prefix=$need_lib_prefix
24572
24573 # Do we need a version for libraries?
24574 need_version=$need_version
24575
24576 # Whether dlopen is supported.
24577 dlopen_support=$enable_dlopen
24578
24579 # Whether dlopen of programs is supported.
24580 dlopen_self=$enable_dlopen_self
24581
24582 # Whether dlopen of statically linked programs is supported.
24583 dlopen_self_static=$enable_dlopen_self_static
24584
24585 # Compiler flag to prevent dynamic linking.
24586 link_static_flag=$lt_lt_prog_compiler_static_RC
24587
24588 # Compiler flag to turn off builtin functions.
24589 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24590
24591 # Compiler flag to allow reflexive dlopens.
24592 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24593
24594 # Compiler flag to generate shared objects directly from archives.
24595 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24596
24597 # Compiler flag to generate thread-safe objects.
24598 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24599
24600 # Library versioning type.
24601 version_type=$version_type
24602
24603 # Format of library name prefix.
24604 libname_spec=$lt_libname_spec
24605
24606 # List of archive names.  First name is the real one, the rest are links.
24607 # The last name is the one that the linker finds with -lNAME.
24608 library_names_spec=$lt_library_names_spec
24609
24610 # The coded name of the library, if different from the real name.
24611 soname_spec=$lt_soname_spec
24612
24613 # Commands used to build and install an old-style archive.
24614 RANLIB=$lt_RANLIB
24615 old_archive_cmds=$lt_old_archive_cmds_RC
24616 old_postinstall_cmds=$lt_old_postinstall_cmds
24617 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24618
24619 # Create an old-style archive from a shared archive.
24620 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24621
24622 # Create a temporary old-style archive to link instead of a shared archive.
24623 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24624
24625 # Commands used to build and install a shared archive.
24626 archive_cmds=$lt_archive_cmds_RC
24627 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24628 postinstall_cmds=$lt_postinstall_cmds
24629 postuninstall_cmds=$lt_postuninstall_cmds
24630
24631 # Commands used to build a loadable module (assumed same as above if empty)
24632 module_cmds=$lt_module_cmds_RC
24633 module_expsym_cmds=$lt_module_expsym_cmds_RC
24634
24635 # Commands to strip libraries.
24636 old_striplib=$lt_old_striplib
24637 striplib=$lt_striplib
24638
24639 # Dependencies to place before the objects being linked to create a
24640 # shared library.
24641 predep_objects=$lt_predep_objects_RC
24642
24643 # Dependencies to place after the objects being linked to create a
24644 # shared library.
24645 postdep_objects=$lt_postdep_objects_RC
24646
24647 # Dependencies to place before the objects being linked to create a
24648 # shared library.
24649 predeps=$lt_predeps_RC
24650
24651 # Dependencies to place after the objects being linked to create a
24652 # shared library.
24653 postdeps=$lt_postdeps_RC
24654
24655 # The library search path used internally by the compiler when linking
24656 # a shared library.
24657 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24658
24659 # Method to check whether dependent libraries are shared objects.
24660 deplibs_check_method=$lt_deplibs_check_method
24661
24662 # Command to use when deplibs_check_method == file_magic.
24663 file_magic_cmd=$lt_file_magic_cmd
24664
24665 # Flag that allows shared libraries with undefined symbols to be built.
24666 allow_undefined_flag=$lt_allow_undefined_flag_RC
24667
24668 # Flag that forces no undefined symbols.
24669 no_undefined_flag=$lt_no_undefined_flag_RC
24670
24671 # Commands used to finish a libtool library installation in a directory.
24672 finish_cmds=$lt_finish_cmds
24673
24674 # Same as above, but a single script fragment to be evaled but not shown.
24675 finish_eval=$lt_finish_eval
24676
24677 # Take the output of nm and produce a listing of raw symbols and C names.
24678 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24679
24680 # Transform the output of nm in a proper C declaration
24681 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24682
24683 # Transform the output of nm in a C name address pair
24684 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24685
24686 # This is the shared library runtime path variable.
24687 runpath_var=$runpath_var
24688
24689 # This is the shared library path variable.
24690 shlibpath_var=$shlibpath_var
24691
24692 # Is shlibpath searched before the hard-coded library search path?
24693 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24694
24695 # How to hardcode a shared library path into an executable.
24696 hardcode_action=$hardcode_action_RC
24697
24698 # Whether we should hardcode library paths into libraries.
24699 hardcode_into_libs=$hardcode_into_libs
24700
24701 # Flag to hardcode \$libdir into a binary during linking.
24702 # This must work even if \$libdir does not exist.
24703 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24704
24705 # If ld is used when linking, flag to hardcode \$libdir into
24706 # a binary during linking. This must work even if \$libdir does
24707 # not exist.
24708 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24709
24710 # Whether we need a single -rpath flag with a separated argument.
24711 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24712
24713 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24714 # resulting binary.
24715 hardcode_direct=$hardcode_direct_RC
24716
24717 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24718 # resulting binary.
24719 hardcode_minus_L=$hardcode_minus_L_RC
24720
24721 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24722 # the resulting binary.
24723 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24724
24725 # Set to yes if building a shared library automatically hardcodes DIR into the library
24726 # and all subsequent libraries and executables linked against it.
24727 hardcode_automatic=$hardcode_automatic_RC
24728
24729 # Variables whose values should be saved in libtool wrapper scripts and
24730 # restored at relink time.
24731 variables_saved_for_relink="$variables_saved_for_relink"
24732
24733 # Whether libtool must link a program against all its dependency libraries.
24734 link_all_deplibs=$link_all_deplibs_RC
24735
24736 # Compile-time system search path for libraries
24737 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24738
24739 # Run-time system search path for libraries
24740 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24741
24742 # Fix the shell variable \$srcfile for the compiler.
24743 fix_srcfile_path="$fix_srcfile_path_RC"
24744
24745 # Set to yes if exported symbols are required.
24746 always_export_symbols=$always_export_symbols_RC
24747
24748 # The commands to list exported symbols.
24749 export_symbols_cmds=$lt_export_symbols_cmds_RC
24750
24751 # The commands to extract the exported symbol list from a shared archive.
24752 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24753
24754 # Symbols that should not be listed in the preloaded symbols.
24755 exclude_expsyms=$lt_exclude_expsyms_RC
24756
24757 # Symbols that must always be exported.
24758 include_expsyms=$lt_include_expsyms_RC
24759
24760 # ### END LIBTOOL TAG CONFIG: $tagname
24761
24762 __EOF__
24763
24764
24765 else
24766   # If there is no Makefile yet, we rely on a make rule to execute
24767   # `config.status --recheck' to rerun these tests and create the
24768   # libtool script then.
24769   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24770   if test -f "$ltmain_in"; then
24771     test -f Makefile && make "$ltmain"
24772   fi
24773 fi
24774
24775
24776 ac_ext=c
24777 ac_cpp='$CPP $CPPFLAGS'
24778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24781
24782 CC="$lt_save_CC"
24783
24784         ;;
24785
24786       *)
24787         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24788 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24789    { (exit 1); exit 1; }; }
24790         ;;
24791       esac
24792
24793       # Append the new tag name to the list of available tags.
24794       if test -n "$tagname" ; then
24795       available_tags="$available_tags $tagname"
24796     fi
24797     fi
24798   done
24799   IFS="$lt_save_ifs"
24800
24801   # Now substitute the updated list of available tags.
24802   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24803     mv "${ofile}T" "$ofile"
24804     chmod +x "$ofile"
24805   else
24806     rm -f "${ofile}T"
24807     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24808 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24809    { (exit 1); exit 1; }; }
24810   fi
24811 fi
24812
24813
24814
24815 # This can be used to rebuild libtool when needed
24816 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24817
24818 # Always use our own libtool.
24819 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24820
24821 # Prevent multiple expansion
24822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834
24835
24836
24837
24838
24839
24840
24841
24842
24843 if test "$lt_cv_dlopen_self" = "yes" ; then
24844
24845 cat >>confdefs.h <<\_ACEOF
24846 #define CAN_DLOPEN_SELF 1
24847 _ACEOF
24848
24849 fi
24850
24851 etags_version=`$ETAGS --version 2>&1`
24852 case "$etags_version" in
24853         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24854         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24855         *) ETAGSFLAGS="" ;;
24856 esac
24857 ETAGSFLAGS=$ETAGSFLAGS
24858
24859
24860 if test "$WITH_LLVMGCCDIR" = "default" ; then
24861   LLVMGCC="llvm-gcc${EXEEXT}"
24862   LLVMGXX="llvm-g++${EXEEXT}"
24863   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24864 set dummy $LLVMGCC; ac_word=$2
24865 echo "$as_me:$LINENO: checking for $ac_word" >&5
24866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24867 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24868   echo $ECHO_N "(cached) $ECHO_C" >&6
24869 else
24870   case $LLVMGCC in
24871   [\\/]* | ?:[\\/]*)
24872   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24873   ;;
24874   *)
24875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24876 for as_dir in $PATH
24877 do
24878   IFS=$as_save_IFS
24879   test -z "$as_dir" && as_dir=.
24880   for ac_exec_ext in '' $ac_executable_extensions; do
24881   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24882     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24884     break 2
24885   fi
24886 done
24887 done
24888
24889   ;;
24890 esac
24891 fi
24892 LLVMGCC=$ac_cv_path_LLVMGCC
24893
24894 if test -n "$LLVMGCC"; then
24895   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24896 echo "${ECHO_T}$LLVMGCC" >&6
24897 else
24898   echo "$as_me:$LINENO: result: no" >&5
24899 echo "${ECHO_T}no" >&6
24900 fi
24901
24902   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24903 set dummy $LLVMGXX; ac_word=$2
24904 echo "$as_me:$LINENO: checking for $ac_word" >&5
24905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24906 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24907   echo $ECHO_N "(cached) $ECHO_C" >&6
24908 else
24909   case $LLVMGXX in
24910   [\\/]* | ?:[\\/]*)
24911   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24912   ;;
24913   *)
24914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24915 for as_dir in $PATH
24916 do
24917   IFS=$as_save_IFS
24918   test -z "$as_dir" && as_dir=.
24919   for ac_exec_ext in '' $ac_executable_extensions; do
24920   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24921     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24923     break 2
24924   fi
24925 done
24926 done
24927
24928   ;;
24929 esac
24930 fi
24931 LLVMGXX=$ac_cv_path_LLVMGXX
24932
24933 if test -n "$LLVMGXX"; then
24934   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24935 echo "${ECHO_T}$LLVMGXX" >&6
24936 else
24937   echo "$as_me:$LINENO: result: no" >&5
24938 echo "${ECHO_T}no" >&6
24939 fi
24940
24941 else
24942   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24943   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24944   LLVMGCC=$LLVMGCC
24945
24946   LLVMGXX=$LLVMGXX
24947
24948 fi
24949
24950 echo "$as_me:$LINENO: checking tool compatibility" >&5
24951 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24952
24953 ICC=no
24954 IXX=no
24955 case $CC in
24956   icc*|icpc*)
24957     ICC=yes
24958     IXX=yes
24959     ;;
24960    *)
24961     ;;
24962 esac
24963
24964 if test "$GCC" != "yes" && test "$ICC" != "yes"
24965 then
24966   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24967 echo "$as_me: error: gcc|icc required but not found" >&2;}
24968    { (exit 1); exit 1; }; }
24969 fi
24970
24971 if test "$GXX" != "yes" && test "$IXX" != "yes"
24972 then
24973   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24974 echo "$as_me: error: g++|icc required but not found" >&2;}
24975    { (exit 1); exit 1; }; }
24976 fi
24977
24978 if test "$GCC" = "yes"
24979 then
24980   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
24981   if test "$gccmajor" -lt "3"
24982   then
24983     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24984 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24985    { (exit 1); exit 1; }; }
24986   fi
24987 fi
24988
24989 if test -z "$llvm_cv_gnu_make_command"
24990 then
24991   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24992 echo "$as_me: error: GNU Make required but not found" >&2;}
24993    { (exit 1); exit 1; }; }
24994 fi
24995
24996 echo "$as_me:$LINENO: result: ok" >&5
24997 echo "${ECHO_T}ok" >&6
24998
24999
25000
25001 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25002 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25003 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25004   echo $ECHO_N "(cached) $ECHO_C" >&6
25005 else
25006   ac_check_lib_save_LIBS=$LIBS
25007 LIBS="-lelf  $LIBS"
25008 cat >conftest.$ac_ext <<_ACEOF
25009 /* confdefs.h.  */
25010 _ACEOF
25011 cat confdefs.h >>conftest.$ac_ext
25012 cat >>conftest.$ac_ext <<_ACEOF
25013 /* end confdefs.h.  */
25014
25015 /* Override any gcc2 internal prototype to avoid an error.  */
25016 #ifdef __cplusplus
25017 extern "C"
25018 #endif
25019 /* We use char because int might match the return type of a gcc2
25020    builtin and then its argument prototype would still apply.  */
25021 char elf_begin ();
25022 int
25023 main ()
25024 {
25025 elf_begin ();
25026   ;
25027   return 0;
25028 }
25029 _ACEOF
25030 rm -f conftest.$ac_objext conftest$ac_exeext
25031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25032   (eval $ac_link) 2>conftest.er1
25033   ac_status=$?
25034   grep -v '^ *+' conftest.er1 >conftest.err
25035   rm -f conftest.er1
25036   cat conftest.err >&5
25037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038   (exit $ac_status); } &&
25039          { ac_try='test -z "$ac_c_werror_flag"
25040                          || test ! -s conftest.err'
25041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25042   (eval $ac_try) 2>&5
25043   ac_status=$?
25044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045   (exit $ac_status); }; } &&
25046          { ac_try='test -s conftest$ac_exeext'
25047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25048   (eval $ac_try) 2>&5
25049   ac_status=$?
25050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051   (exit $ac_status); }; }; then
25052   ac_cv_lib_elf_elf_begin=yes
25053 else
25054   echo "$as_me: failed program was:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25056
25057 ac_cv_lib_elf_elf_begin=no
25058 fi
25059 rm -f conftest.err conftest.$ac_objext \
25060       conftest$ac_exeext conftest.$ac_ext
25061 LIBS=$ac_check_lib_save_LIBS
25062 fi
25063 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25064 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25065 if test $ac_cv_lib_elf_elf_begin = yes; then
25066   cat >>confdefs.h <<_ACEOF
25067 #define HAVE_LIBELF 1
25068 _ACEOF
25069
25070   LIBS="-lelf $LIBS"
25071
25072 fi
25073
25074
25075 echo "$as_me:$LINENO: checking for sin in -lm" >&5
25076 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25077 if test "${ac_cv_lib_m_sin+set}" = set; then
25078   echo $ECHO_N "(cached) $ECHO_C" >&6
25079 else
25080   ac_check_lib_save_LIBS=$LIBS
25081 LIBS="-lm  $LIBS"
25082 cat >conftest.$ac_ext <<_ACEOF
25083 /* confdefs.h.  */
25084 _ACEOF
25085 cat confdefs.h >>conftest.$ac_ext
25086 cat >>conftest.$ac_ext <<_ACEOF
25087 /* end confdefs.h.  */
25088
25089 /* Override any gcc2 internal prototype to avoid an error.  */
25090 #ifdef __cplusplus
25091 extern "C"
25092 #endif
25093 /* We use char because int might match the return type of a gcc2
25094    builtin and then its argument prototype would still apply.  */
25095 char sin ();
25096 int
25097 main ()
25098 {
25099 sin ();
25100   ;
25101   return 0;
25102 }
25103 _ACEOF
25104 rm -f conftest.$ac_objext conftest$ac_exeext
25105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25106   (eval $ac_link) 2>conftest.er1
25107   ac_status=$?
25108   grep -v '^ *+' conftest.er1 >conftest.err
25109   rm -f conftest.er1
25110   cat conftest.err >&5
25111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112   (exit $ac_status); } &&
25113          { ac_try='test -z "$ac_c_werror_flag"
25114                          || test ! -s conftest.err'
25115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25116   (eval $ac_try) 2>&5
25117   ac_status=$?
25118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119   (exit $ac_status); }; } &&
25120          { ac_try='test -s conftest$ac_exeext'
25121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25122   (eval $ac_try) 2>&5
25123   ac_status=$?
25124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125   (exit $ac_status); }; }; then
25126   ac_cv_lib_m_sin=yes
25127 else
25128   echo "$as_me: failed program was:" >&5
25129 sed 's/^/| /' conftest.$ac_ext >&5
25130
25131 ac_cv_lib_m_sin=no
25132 fi
25133 rm -f conftest.err conftest.$ac_objext \
25134       conftest$ac_exeext conftest.$ac_ext
25135 LIBS=$ac_check_lib_save_LIBS
25136 fi
25137 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25138 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25139 if test $ac_cv_lib_m_sin = yes; then
25140   cat >>confdefs.h <<_ACEOF
25141 #define HAVE_LIBM 1
25142 _ACEOF
25143
25144   LIBS="-lm $LIBS"
25145
25146 fi
25147
25148 if test "$llvm_cv_os_type" == "MingW" ; then
25149
25150
25151 for ac_header in imagehlp.h psapi.h
25152 do
25153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25155   echo "$as_me:$LINENO: checking for $ac_header" >&5
25156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25158   echo $ECHO_N "(cached) $ECHO_C" >&6
25159 fi
25160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25162 else
25163   # Is the header compilable?
25164 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25166 cat >conftest.$ac_ext <<_ACEOF
25167 /* confdefs.h.  */
25168 _ACEOF
25169 cat confdefs.h >>conftest.$ac_ext
25170 cat >>conftest.$ac_ext <<_ACEOF
25171 /* end confdefs.h.  */
25172 $ac_includes_default
25173 #include <$ac_header>
25174 _ACEOF
25175 rm -f conftest.$ac_objext
25176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25177   (eval $ac_compile) 2>conftest.er1
25178   ac_status=$?
25179   grep -v '^ *+' conftest.er1 >conftest.err
25180   rm -f conftest.er1
25181   cat conftest.err >&5
25182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183   (exit $ac_status); } &&
25184          { ac_try='test -z "$ac_c_werror_flag"
25185                          || test ! -s conftest.err'
25186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25187   (eval $ac_try) 2>&5
25188   ac_status=$?
25189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190   (exit $ac_status); }; } &&
25191          { ac_try='test -s conftest.$ac_objext'
25192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193   (eval $ac_try) 2>&5
25194   ac_status=$?
25195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196   (exit $ac_status); }; }; then
25197   ac_header_compiler=yes
25198 else
25199   echo "$as_me: failed program was:" >&5
25200 sed 's/^/| /' conftest.$ac_ext >&5
25201
25202 ac_header_compiler=no
25203 fi
25204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25205 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25206 echo "${ECHO_T}$ac_header_compiler" >&6
25207
25208 # Is the header present?
25209 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25211 cat >conftest.$ac_ext <<_ACEOF
25212 /* confdefs.h.  */
25213 _ACEOF
25214 cat confdefs.h >>conftest.$ac_ext
25215 cat >>conftest.$ac_ext <<_ACEOF
25216 /* end confdefs.h.  */
25217 #include <$ac_header>
25218 _ACEOF
25219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25220   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25221   ac_status=$?
25222   grep -v '^ *+' conftest.er1 >conftest.err
25223   rm -f conftest.er1
25224   cat conftest.err >&5
25225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226   (exit $ac_status); } >/dev/null; then
25227   if test -s conftest.err; then
25228     ac_cpp_err=$ac_c_preproc_warn_flag
25229     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25230   else
25231     ac_cpp_err=
25232   fi
25233 else
25234   ac_cpp_err=yes
25235 fi
25236 if test -z "$ac_cpp_err"; then
25237   ac_header_preproc=yes
25238 else
25239   echo "$as_me: failed program was:" >&5
25240 sed 's/^/| /' conftest.$ac_ext >&5
25241
25242   ac_header_preproc=no
25243 fi
25244 rm -f conftest.err conftest.$ac_ext
25245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25246 echo "${ECHO_T}$ac_header_preproc" >&6
25247
25248 # So?  What about this header?
25249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25250   yes:no: )
25251     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25255     ac_header_preproc=yes
25256     ;;
25257   no:yes:* )
25258     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25260     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25261 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25262     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25264     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25265 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25268     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25270     (
25271       cat <<\_ASBOX
25272 ## ----------------------------------- ##
25273 ## Report this to llvmbugs@cs.uiuc.edu ##
25274 ## ----------------------------------- ##
25275 _ASBOX
25276     ) |
25277       sed "s/^/$as_me: WARNING:     /" >&2
25278     ;;
25279 esac
25280 echo "$as_me:$LINENO: checking for $ac_header" >&5
25281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25283   echo $ECHO_N "(cached) $ECHO_C" >&6
25284 else
25285   eval "$as_ac_Header=\$ac_header_preproc"
25286 fi
25287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25288 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25289
25290 fi
25291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25292   cat >>confdefs.h <<_ACEOF
25293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25294 _ACEOF
25295
25296 fi
25297
25298 done
25299
25300
25301 echo "$as_me:$LINENO: checking for SymGetOptions in -limagehlp" >&5
25302 echo $ECHO_N "checking for SymGetOptions in -limagehlp... $ECHO_C" >&6
25303 if test "${ac_cv_lib_imagehlp_SymGetOptions+set}" = set; then
25304   echo $ECHO_N "(cached) $ECHO_C" >&6
25305 else
25306   ac_check_lib_save_LIBS=$LIBS
25307 LIBS="-limagehlp  $LIBS"
25308 cat >conftest.$ac_ext <<_ACEOF
25309 /* confdefs.h.  */
25310 _ACEOF
25311 cat confdefs.h >>conftest.$ac_ext
25312 cat >>conftest.$ac_ext <<_ACEOF
25313 /* end confdefs.h.  */
25314
25315 /* Override any gcc2 internal prototype to avoid an error.  */
25316 #ifdef __cplusplus
25317 extern "C"
25318 #endif
25319 /* We use char because int might match the return type of a gcc2
25320    builtin and then its argument prototype would still apply.  */
25321 char SymGetOptions ();
25322 int
25323 main ()
25324 {
25325 SymGetOptions ();
25326   ;
25327   return 0;
25328 }
25329 _ACEOF
25330 rm -f conftest.$ac_objext conftest$ac_exeext
25331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25332   (eval $ac_link) 2>conftest.er1
25333   ac_status=$?
25334   grep -v '^ *+' conftest.er1 >conftest.err
25335   rm -f conftest.er1
25336   cat conftest.err >&5
25337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338   (exit $ac_status); } &&
25339          { ac_try='test -z "$ac_c_werror_flag"
25340                          || test ! -s conftest.err'
25341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25342   (eval $ac_try) 2>&5
25343   ac_status=$?
25344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25345   (exit $ac_status); }; } &&
25346          { ac_try='test -s conftest$ac_exeext'
25347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25348   (eval $ac_try) 2>&5
25349   ac_status=$?
25350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351   (exit $ac_status); }; }; then
25352   ac_cv_lib_imagehlp_SymGetOptions=yes
25353 else
25354   echo "$as_me: failed program was:" >&5
25355 sed 's/^/| /' conftest.$ac_ext >&5
25356
25357 ac_cv_lib_imagehlp_SymGetOptions=no
25358 fi
25359 rm -f conftest.err conftest.$ac_objext \
25360       conftest$ac_exeext conftest.$ac_ext
25361 LIBS=$ac_check_lib_save_LIBS
25362 fi
25363 echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_SymGetOptions" >&5
25364 echo "${ECHO_T}$ac_cv_lib_imagehlp_SymGetOptions" >&6
25365 if test $ac_cv_lib_imagehlp_SymGetOptions = yes; then
25366   cat >>confdefs.h <<_ACEOF
25367 #define HAVE_LIBIMAGEHLP 1
25368 _ACEOF
25369
25370   LIBS="-limagehlp $LIBS"
25371
25372 fi
25373
25374
25375 echo "$as_me:$LINENO: checking for GetProcessMemoryInfo in -lpsapi" >&5
25376 echo $ECHO_N "checking for GetProcessMemoryInfo in -lpsapi... $ECHO_C" >&6
25377 if test "${ac_cv_lib_psapi_GetProcessMemoryInfo+set}" = set; then
25378   echo $ECHO_N "(cached) $ECHO_C" >&6
25379 else
25380   ac_check_lib_save_LIBS=$LIBS
25381 LIBS="-lpsapi  $LIBS"
25382 cat >conftest.$ac_ext <<_ACEOF
25383 /* confdefs.h.  */
25384 _ACEOF
25385 cat confdefs.h >>conftest.$ac_ext
25386 cat >>conftest.$ac_ext <<_ACEOF
25387 /* end confdefs.h.  */
25388
25389 /* Override any gcc2 internal prototype to avoid an error.  */
25390 #ifdef __cplusplus
25391 extern "C"
25392 #endif
25393 /* We use char because int might match the return type of a gcc2
25394    builtin and then its argument prototype would still apply.  */
25395 char GetProcessMemoryInfo ();
25396 int
25397 main ()
25398 {
25399 GetProcessMemoryInfo ();
25400   ;
25401   return 0;
25402 }
25403 _ACEOF
25404 rm -f conftest.$ac_objext conftest$ac_exeext
25405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25406   (eval $ac_link) 2>conftest.er1
25407   ac_status=$?
25408   grep -v '^ *+' conftest.er1 >conftest.err
25409   rm -f conftest.er1
25410   cat conftest.err >&5
25411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412   (exit $ac_status); } &&
25413          { ac_try='test -z "$ac_c_werror_flag"
25414                          || test ! -s conftest.err'
25415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25416   (eval $ac_try) 2>&5
25417   ac_status=$?
25418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419   (exit $ac_status); }; } &&
25420          { ac_try='test -s conftest$ac_exeext'
25421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25422   (eval $ac_try) 2>&5
25423   ac_status=$?
25424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425   (exit $ac_status); }; }; then
25426   ac_cv_lib_psapi_GetProcessMemoryInfo=yes
25427 else
25428   echo "$as_me: failed program was:" >&5
25429 sed 's/^/| /' conftest.$ac_ext >&5
25430
25431 ac_cv_lib_psapi_GetProcessMemoryInfo=no
25432 fi
25433 rm -f conftest.err conftest.$ac_objext \
25434       conftest$ac_exeext conftest.$ac_ext
25435 LIBS=$ac_check_lib_save_LIBS
25436 fi
25437 echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_GetProcessMemoryInfo" >&5
25438 echo "${ECHO_T}$ac_cv_lib_psapi_GetProcessMemoryInfo" >&6
25439 if test $ac_cv_lib_psapi_GetProcessMemoryInfo = yes; then
25440   cat >>confdefs.h <<_ACEOF
25441 #define HAVE_LIBPSAPI 1
25442 _ACEOF
25443
25444   LIBS="-lpsapi $LIBS"
25445
25446 fi
25447
25448 fi
25449
25450 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25451 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25452 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25453   echo $ECHO_N "(cached) $ECHO_C" >&6
25454 else
25455   ac_func_search_save_LIBS=$LIBS
25456 ac_cv_search_lt_dlopen=no
25457 cat >conftest.$ac_ext <<_ACEOF
25458 /* confdefs.h.  */
25459 _ACEOF
25460 cat confdefs.h >>conftest.$ac_ext
25461 cat >>conftest.$ac_ext <<_ACEOF
25462 /* end confdefs.h.  */
25463
25464 /* Override any gcc2 internal prototype to avoid an error.  */
25465 #ifdef __cplusplus
25466 extern "C"
25467 #endif
25468 /* We use char because int might match the return type of a gcc2
25469    builtin and then its argument prototype would still apply.  */
25470 char lt_dlopen ();
25471 int
25472 main ()
25473 {
25474 lt_dlopen ();
25475   ;
25476   return 0;
25477 }
25478 _ACEOF
25479 rm -f conftest.$ac_objext conftest$ac_exeext
25480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25481   (eval $ac_link) 2>conftest.er1
25482   ac_status=$?
25483   grep -v '^ *+' conftest.er1 >conftest.err
25484   rm -f conftest.er1
25485   cat conftest.err >&5
25486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25487   (exit $ac_status); } &&
25488          { ac_try='test -z "$ac_c_werror_flag"
25489                          || test ! -s conftest.err'
25490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25491   (eval $ac_try) 2>&5
25492   ac_status=$?
25493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494   (exit $ac_status); }; } &&
25495          { ac_try='test -s conftest$ac_exeext'
25496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25497   (eval $ac_try) 2>&5
25498   ac_status=$?
25499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25500   (exit $ac_status); }; }; then
25501   ac_cv_search_lt_dlopen="none required"
25502 else
25503   echo "$as_me: failed program was:" >&5
25504 sed 's/^/| /' conftest.$ac_ext >&5
25505
25506 fi
25507 rm -f conftest.err conftest.$ac_objext \
25508       conftest$ac_exeext conftest.$ac_ext
25509 if test "$ac_cv_search_lt_dlopen" = no; then
25510   for ac_lib in ltdl; do
25511     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25512     cat >conftest.$ac_ext <<_ACEOF
25513 /* confdefs.h.  */
25514 _ACEOF
25515 cat confdefs.h >>conftest.$ac_ext
25516 cat >>conftest.$ac_ext <<_ACEOF
25517 /* end confdefs.h.  */
25518
25519 /* Override any gcc2 internal prototype to avoid an error.  */
25520 #ifdef __cplusplus
25521 extern "C"
25522 #endif
25523 /* We use char because int might match the return type of a gcc2
25524    builtin and then its argument prototype would still apply.  */
25525 char lt_dlopen ();
25526 int
25527 main ()
25528 {
25529 lt_dlopen ();
25530   ;
25531   return 0;
25532 }
25533 _ACEOF
25534 rm -f conftest.$ac_objext conftest$ac_exeext
25535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25536   (eval $ac_link) 2>conftest.er1
25537   ac_status=$?
25538   grep -v '^ *+' conftest.er1 >conftest.err
25539   rm -f conftest.er1
25540   cat conftest.err >&5
25541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542   (exit $ac_status); } &&
25543          { ac_try='test -z "$ac_c_werror_flag"
25544                          || test ! -s conftest.err'
25545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25546   (eval $ac_try) 2>&5
25547   ac_status=$?
25548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25549   (exit $ac_status); }; } &&
25550          { ac_try='test -s conftest$ac_exeext'
25551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25552   (eval $ac_try) 2>&5
25553   ac_status=$?
25554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555   (exit $ac_status); }; }; then
25556   ac_cv_search_lt_dlopen="-l$ac_lib"
25557 break
25558 else
25559   echo "$as_me: failed program was:" >&5
25560 sed 's/^/| /' conftest.$ac_ext >&5
25561
25562 fi
25563 rm -f conftest.err conftest.$ac_objext \
25564       conftest$ac_exeext conftest.$ac_ext
25565   done
25566 fi
25567 LIBS=$ac_func_search_save_LIBS
25568 fi
25569 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25570 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25571 if test "$ac_cv_search_lt_dlopen" != no; then
25572   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25573
25574 cat >>confdefs.h <<\_ACEOF
25575 #define HAVE_LT_DLOPEN 1
25576 _ACEOF
25577
25578 else
25579   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25580                            not be available" >&5
25581 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25582                            not be available" >&2;}
25583 fi
25584
25585
25586 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25587 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25588 if test "${ac_cv_search_dlopen+set}" = set; then
25589   echo $ECHO_N "(cached) $ECHO_C" >&6
25590 else
25591   ac_func_search_save_LIBS=$LIBS
25592 ac_cv_search_dlopen=no
25593 cat >conftest.$ac_ext <<_ACEOF
25594 /* confdefs.h.  */
25595 _ACEOF
25596 cat confdefs.h >>conftest.$ac_ext
25597 cat >>conftest.$ac_ext <<_ACEOF
25598 /* end confdefs.h.  */
25599
25600 /* Override any gcc2 internal prototype to avoid an error.  */
25601 #ifdef __cplusplus
25602 extern "C"
25603 #endif
25604 /* We use char because int might match the return type of a gcc2
25605    builtin and then its argument prototype would still apply.  */
25606 char dlopen ();
25607 int
25608 main ()
25609 {
25610 dlopen ();
25611   ;
25612   return 0;
25613 }
25614 _ACEOF
25615 rm -f conftest.$ac_objext conftest$ac_exeext
25616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25617   (eval $ac_link) 2>conftest.er1
25618   ac_status=$?
25619   grep -v '^ *+' conftest.er1 >conftest.err
25620   rm -f conftest.er1
25621   cat conftest.err >&5
25622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623   (exit $ac_status); } &&
25624          { ac_try='test -z "$ac_c_werror_flag"
25625                          || test ! -s conftest.err'
25626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25627   (eval $ac_try) 2>&5
25628   ac_status=$?
25629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630   (exit $ac_status); }; } &&
25631          { ac_try='test -s conftest$ac_exeext'
25632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25633   (eval $ac_try) 2>&5
25634   ac_status=$?
25635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25636   (exit $ac_status); }; }; then
25637   ac_cv_search_dlopen="none required"
25638 else
25639   echo "$as_me: failed program was:" >&5
25640 sed 's/^/| /' conftest.$ac_ext >&5
25641
25642 fi
25643 rm -f conftest.err conftest.$ac_objext \
25644       conftest$ac_exeext conftest.$ac_ext
25645 if test "$ac_cv_search_dlopen" = no; then
25646   for ac_lib in dl; do
25647     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25648     cat >conftest.$ac_ext <<_ACEOF
25649 /* confdefs.h.  */
25650 _ACEOF
25651 cat confdefs.h >>conftest.$ac_ext
25652 cat >>conftest.$ac_ext <<_ACEOF
25653 /* end confdefs.h.  */
25654
25655 /* Override any gcc2 internal prototype to avoid an error.  */
25656 #ifdef __cplusplus
25657 extern "C"
25658 #endif
25659 /* We use char because int might match the return type of a gcc2
25660    builtin and then its argument prototype would still apply.  */
25661 char dlopen ();
25662 int
25663 main ()
25664 {
25665 dlopen ();
25666   ;
25667   return 0;
25668 }
25669 _ACEOF
25670 rm -f conftest.$ac_objext conftest$ac_exeext
25671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25672   (eval $ac_link) 2>conftest.er1
25673   ac_status=$?
25674   grep -v '^ *+' conftest.er1 >conftest.err
25675   rm -f conftest.er1
25676   cat conftest.err >&5
25677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678   (exit $ac_status); } &&
25679          { ac_try='test -z "$ac_c_werror_flag"
25680                          || test ! -s conftest.err'
25681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25682   (eval $ac_try) 2>&5
25683   ac_status=$?
25684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685   (exit $ac_status); }; } &&
25686          { ac_try='test -s conftest$ac_exeext'
25687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25688   (eval $ac_try) 2>&5
25689   ac_status=$?
25690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25691   (exit $ac_status); }; }; then
25692   ac_cv_search_dlopen="-l$ac_lib"
25693 break
25694 else
25695   echo "$as_me: failed program was:" >&5
25696 sed 's/^/| /' conftest.$ac_ext >&5
25697
25698 fi
25699 rm -f conftest.err conftest.$ac_objext \
25700       conftest$ac_exeext conftest.$ac_ext
25701   done
25702 fi
25703 LIBS=$ac_func_search_save_LIBS
25704 fi
25705 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25706 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25707 if test "$ac_cv_search_dlopen" != no; then
25708   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25709
25710 cat >>confdefs.h <<\_ACEOF
25711 #define HAVE_DLOPEN 1
25712 _ACEOF
25713
25714 else
25715   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25716 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25717 fi
25718
25719
25720 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25721 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25722 if test "${ac_cv_search_mallinfo+set}" = set; then
25723   echo $ECHO_N "(cached) $ECHO_C" >&6
25724 else
25725   ac_func_search_save_LIBS=$LIBS
25726 ac_cv_search_mallinfo=no
25727 cat >conftest.$ac_ext <<_ACEOF
25728 /* confdefs.h.  */
25729 _ACEOF
25730 cat confdefs.h >>conftest.$ac_ext
25731 cat >>conftest.$ac_ext <<_ACEOF
25732 /* end confdefs.h.  */
25733
25734 /* Override any gcc2 internal prototype to avoid an error.  */
25735 #ifdef __cplusplus
25736 extern "C"
25737 #endif
25738 /* We use char because int might match the return type of a gcc2
25739    builtin and then its argument prototype would still apply.  */
25740 char mallinfo ();
25741 int
25742 main ()
25743 {
25744 mallinfo ();
25745   ;
25746   return 0;
25747 }
25748 _ACEOF
25749 rm -f conftest.$ac_objext conftest$ac_exeext
25750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25751   (eval $ac_link) 2>conftest.er1
25752   ac_status=$?
25753   grep -v '^ *+' conftest.er1 >conftest.err
25754   rm -f conftest.er1
25755   cat conftest.err >&5
25756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25757   (exit $ac_status); } &&
25758          { ac_try='test -z "$ac_c_werror_flag"
25759                          || test ! -s conftest.err'
25760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25761   (eval $ac_try) 2>&5
25762   ac_status=$?
25763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25764   (exit $ac_status); }; } &&
25765          { ac_try='test -s conftest$ac_exeext'
25766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25767   (eval $ac_try) 2>&5
25768   ac_status=$?
25769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770   (exit $ac_status); }; }; then
25771   ac_cv_search_mallinfo="none required"
25772 else
25773   echo "$as_me: failed program was:" >&5
25774 sed 's/^/| /' conftest.$ac_ext >&5
25775
25776 fi
25777 rm -f conftest.err conftest.$ac_objext \
25778       conftest$ac_exeext conftest.$ac_ext
25779 if test "$ac_cv_search_mallinfo" = no; then
25780   for ac_lib in malloc; do
25781     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25782     cat >conftest.$ac_ext <<_ACEOF
25783 /* confdefs.h.  */
25784 _ACEOF
25785 cat confdefs.h >>conftest.$ac_ext
25786 cat >>conftest.$ac_ext <<_ACEOF
25787 /* end confdefs.h.  */
25788
25789 /* Override any gcc2 internal prototype to avoid an error.  */
25790 #ifdef __cplusplus
25791 extern "C"
25792 #endif
25793 /* We use char because int might match the return type of a gcc2
25794    builtin and then its argument prototype would still apply.  */
25795 char mallinfo ();
25796 int
25797 main ()
25798 {
25799 mallinfo ();
25800   ;
25801   return 0;
25802 }
25803 _ACEOF
25804 rm -f conftest.$ac_objext conftest$ac_exeext
25805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25806   (eval $ac_link) 2>conftest.er1
25807   ac_status=$?
25808   grep -v '^ *+' conftest.er1 >conftest.err
25809   rm -f conftest.er1
25810   cat conftest.err >&5
25811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812   (exit $ac_status); } &&
25813          { ac_try='test -z "$ac_c_werror_flag"
25814                          || test ! -s conftest.err'
25815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25816   (eval $ac_try) 2>&5
25817   ac_status=$?
25818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25819   (exit $ac_status); }; } &&
25820          { ac_try='test -s conftest$ac_exeext'
25821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25822   (eval $ac_try) 2>&5
25823   ac_status=$?
25824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825   (exit $ac_status); }; }; then
25826   ac_cv_search_mallinfo="-l$ac_lib"
25827 break
25828 else
25829   echo "$as_me: failed program was:" >&5
25830 sed 's/^/| /' conftest.$ac_ext >&5
25831
25832 fi
25833 rm -f conftest.err conftest.$ac_objext \
25834       conftest$ac_exeext conftest.$ac_ext
25835   done
25836 fi
25837 LIBS=$ac_func_search_save_LIBS
25838 fi
25839 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25840 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25841 if test "$ac_cv_search_mallinfo" != no; then
25842   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25843
25844 cat >>confdefs.h <<\_ACEOF
25845 #define HAVE_MALLINFO 1
25846 _ACEOF
25847
25848 fi
25849
25850
25851 if test "$ENABLE_THREADS" -eq 1 ; then
25852
25853 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25854 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25855 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25856   echo $ECHO_N "(cached) $ECHO_C" >&6
25857 else
25858   ac_check_lib_save_LIBS=$LIBS
25859 LIBS="-lpthread  $LIBS"
25860 cat >conftest.$ac_ext <<_ACEOF
25861 /* confdefs.h.  */
25862 _ACEOF
25863 cat confdefs.h >>conftest.$ac_ext
25864 cat >>conftest.$ac_ext <<_ACEOF
25865 /* end confdefs.h.  */
25866
25867 /* Override any gcc2 internal prototype to avoid an error.  */
25868 #ifdef __cplusplus
25869 extern "C"
25870 #endif
25871 /* We use char because int might match the return type of a gcc2
25872    builtin and then its argument prototype would still apply.  */
25873 char pthread_mutex_init ();
25874 int
25875 main ()
25876 {
25877 pthread_mutex_init ();
25878   ;
25879   return 0;
25880 }
25881 _ACEOF
25882 rm -f conftest.$ac_objext conftest$ac_exeext
25883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25884   (eval $ac_link) 2>conftest.er1
25885   ac_status=$?
25886   grep -v '^ *+' conftest.er1 >conftest.err
25887   rm -f conftest.er1
25888   cat conftest.err >&5
25889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25890   (exit $ac_status); } &&
25891          { ac_try='test -z "$ac_c_werror_flag"
25892                          || test ! -s conftest.err'
25893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25894   (eval $ac_try) 2>&5
25895   ac_status=$?
25896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897   (exit $ac_status); }; } &&
25898          { ac_try='test -s conftest$ac_exeext'
25899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25900   (eval $ac_try) 2>&5
25901   ac_status=$?
25902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903   (exit $ac_status); }; }; then
25904   ac_cv_lib_pthread_pthread_mutex_init=yes
25905 else
25906   echo "$as_me: failed program was:" >&5
25907 sed 's/^/| /' conftest.$ac_ext >&5
25908
25909 ac_cv_lib_pthread_pthread_mutex_init=no
25910 fi
25911 rm -f conftest.err conftest.$ac_objext \
25912       conftest$ac_exeext conftest.$ac_ext
25913 LIBS=$ac_check_lib_save_LIBS
25914 fi
25915 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25916 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25917 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25918   cat >>confdefs.h <<_ACEOF
25919 #define HAVE_LIBPTHREAD 1
25920 _ACEOF
25921
25922   LIBS="-lpthread $LIBS"
25923
25924 fi
25925
25926   echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25927 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25928 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25929   echo $ECHO_N "(cached) $ECHO_C" >&6
25930 else
25931   ac_func_search_save_LIBS=$LIBS
25932 ac_cv_search_pthread_mutex_lock=no
25933 cat >conftest.$ac_ext <<_ACEOF
25934 /* confdefs.h.  */
25935 _ACEOF
25936 cat confdefs.h >>conftest.$ac_ext
25937 cat >>conftest.$ac_ext <<_ACEOF
25938 /* end confdefs.h.  */
25939
25940 /* Override any gcc2 internal prototype to avoid an error.  */
25941 #ifdef __cplusplus
25942 extern "C"
25943 #endif
25944 /* We use char because int might match the return type of a gcc2
25945    builtin and then its argument prototype would still apply.  */
25946 char pthread_mutex_lock ();
25947 int
25948 main ()
25949 {
25950 pthread_mutex_lock ();
25951   ;
25952   return 0;
25953 }
25954 _ACEOF
25955 rm -f conftest.$ac_objext conftest$ac_exeext
25956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25957   (eval $ac_link) 2>conftest.er1
25958   ac_status=$?
25959   grep -v '^ *+' conftest.er1 >conftest.err
25960   rm -f conftest.er1
25961   cat conftest.err >&5
25962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963   (exit $ac_status); } &&
25964          { ac_try='test -z "$ac_c_werror_flag"
25965                          || test ! -s conftest.err'
25966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25967   (eval $ac_try) 2>&5
25968   ac_status=$?
25969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25970   (exit $ac_status); }; } &&
25971          { ac_try='test -s conftest$ac_exeext'
25972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25973   (eval $ac_try) 2>&5
25974   ac_status=$?
25975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976   (exit $ac_status); }; }; then
25977   ac_cv_search_pthread_mutex_lock="none required"
25978 else
25979   echo "$as_me: failed program was:" >&5
25980 sed 's/^/| /' conftest.$ac_ext >&5
25981
25982 fi
25983 rm -f conftest.err conftest.$ac_objext \
25984       conftest$ac_exeext conftest.$ac_ext
25985 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25986   for ac_lib in pthread; do
25987     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25988     cat >conftest.$ac_ext <<_ACEOF
25989 /* confdefs.h.  */
25990 _ACEOF
25991 cat confdefs.h >>conftest.$ac_ext
25992 cat >>conftest.$ac_ext <<_ACEOF
25993 /* end confdefs.h.  */
25994
25995 /* Override any gcc2 internal prototype to avoid an error.  */
25996 #ifdef __cplusplus
25997 extern "C"
25998 #endif
25999 /* We use char because int might match the return type of a gcc2
26000    builtin and then its argument prototype would still apply.  */
26001 char pthread_mutex_lock ();
26002 int
26003 main ()
26004 {
26005 pthread_mutex_lock ();
26006   ;
26007   return 0;
26008 }
26009 _ACEOF
26010 rm -f conftest.$ac_objext conftest$ac_exeext
26011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26012   (eval $ac_link) 2>conftest.er1
26013   ac_status=$?
26014   grep -v '^ *+' conftest.er1 >conftest.err
26015   rm -f conftest.er1
26016   cat conftest.err >&5
26017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018   (exit $ac_status); } &&
26019          { ac_try='test -z "$ac_c_werror_flag"
26020                          || test ! -s conftest.err'
26021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26022   (eval $ac_try) 2>&5
26023   ac_status=$?
26024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025   (exit $ac_status); }; } &&
26026          { ac_try='test -s conftest$ac_exeext'
26027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26028   (eval $ac_try) 2>&5
26029   ac_status=$?
26030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031   (exit $ac_status); }; }; then
26032   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
26033 break
26034 else
26035   echo "$as_me: failed program was:" >&5
26036 sed 's/^/| /' conftest.$ac_ext >&5
26037
26038 fi
26039 rm -f conftest.err conftest.$ac_objext \
26040       conftest$ac_exeext conftest.$ac_ext
26041   done
26042 fi
26043 LIBS=$ac_func_search_save_LIBS
26044 fi
26045 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26046 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
26047 if test "$ac_cv_search_pthread_mutex_lock" != no; then
26048   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
26049
26050 cat >>confdefs.h <<\_ACEOF
26051 #define HAVE_PTHREAD_MUTEX_LOCK 1
26052 _ACEOF
26053
26054 fi
26055
26056 fi
26057
26058
26059
26060
26061
26062
26063
26064 ac_header_dirent=no
26065 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26066   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26067 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26068 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
26069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26070   echo $ECHO_N "(cached) $ECHO_C" >&6
26071 else
26072   cat >conftest.$ac_ext <<_ACEOF
26073 /* confdefs.h.  */
26074 _ACEOF
26075 cat confdefs.h >>conftest.$ac_ext
26076 cat >>conftest.$ac_ext <<_ACEOF
26077 /* end confdefs.h.  */
26078 #include <sys/types.h>
26079 #include <$ac_hdr>
26080
26081 int
26082 main ()
26083 {
26084 if ((DIR *) 0)
26085 return 0;
26086   ;
26087   return 0;
26088 }
26089 _ACEOF
26090 rm -f conftest.$ac_objext
26091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26092   (eval $ac_compile) 2>conftest.er1
26093   ac_status=$?
26094   grep -v '^ *+' conftest.er1 >conftest.err
26095   rm -f conftest.er1
26096   cat conftest.err >&5
26097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098   (exit $ac_status); } &&
26099          { ac_try='test -z "$ac_c_werror_flag"
26100                          || test ! -s conftest.err'
26101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26102   (eval $ac_try) 2>&5
26103   ac_status=$?
26104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105   (exit $ac_status); }; } &&
26106          { ac_try='test -s conftest.$ac_objext'
26107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26108   (eval $ac_try) 2>&5
26109   ac_status=$?
26110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111   (exit $ac_status); }; }; then
26112   eval "$as_ac_Header=yes"
26113 else
26114   echo "$as_me: failed program was:" >&5
26115 sed 's/^/| /' conftest.$ac_ext >&5
26116
26117 eval "$as_ac_Header=no"
26118 fi
26119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26120 fi
26121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26124   cat >>confdefs.h <<_ACEOF
26125 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26126 _ACEOF
26127
26128 ac_header_dirent=$ac_hdr; break
26129 fi
26130
26131 done
26132 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26133 if test $ac_header_dirent = dirent.h; then
26134   echo "$as_me:$LINENO: checking for library containing opendir" >&5
26135 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26136 if test "${ac_cv_search_opendir+set}" = set; then
26137   echo $ECHO_N "(cached) $ECHO_C" >&6
26138 else
26139   ac_func_search_save_LIBS=$LIBS
26140 ac_cv_search_opendir=no
26141 cat >conftest.$ac_ext <<_ACEOF
26142 /* confdefs.h.  */
26143 _ACEOF
26144 cat confdefs.h >>conftest.$ac_ext
26145 cat >>conftest.$ac_ext <<_ACEOF
26146 /* end confdefs.h.  */
26147
26148 /* Override any gcc2 internal prototype to avoid an error.  */
26149 #ifdef __cplusplus
26150 extern "C"
26151 #endif
26152 /* We use char because int might match the return type of a gcc2
26153    builtin and then its argument prototype would still apply.  */
26154 char opendir ();
26155 int
26156 main ()
26157 {
26158 opendir ();
26159   ;
26160   return 0;
26161 }
26162 _ACEOF
26163 rm -f conftest.$ac_objext conftest$ac_exeext
26164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26165   (eval $ac_link) 2>conftest.er1
26166   ac_status=$?
26167   grep -v '^ *+' conftest.er1 >conftest.err
26168   rm -f conftest.er1
26169   cat conftest.err >&5
26170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171   (exit $ac_status); } &&
26172          { ac_try='test -z "$ac_c_werror_flag"
26173                          || test ! -s conftest.err'
26174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26175   (eval $ac_try) 2>&5
26176   ac_status=$?
26177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178   (exit $ac_status); }; } &&
26179          { ac_try='test -s conftest$ac_exeext'
26180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181   (eval $ac_try) 2>&5
26182   ac_status=$?
26183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184   (exit $ac_status); }; }; then
26185   ac_cv_search_opendir="none required"
26186 else
26187   echo "$as_me: failed program was:" >&5
26188 sed 's/^/| /' conftest.$ac_ext >&5
26189
26190 fi
26191 rm -f conftest.err conftest.$ac_objext \
26192       conftest$ac_exeext conftest.$ac_ext
26193 if test "$ac_cv_search_opendir" = no; then
26194   for ac_lib in dir; do
26195     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26196     cat >conftest.$ac_ext <<_ACEOF
26197 /* confdefs.h.  */
26198 _ACEOF
26199 cat confdefs.h >>conftest.$ac_ext
26200 cat >>conftest.$ac_ext <<_ACEOF
26201 /* end confdefs.h.  */
26202
26203 /* Override any gcc2 internal prototype to avoid an error.  */
26204 #ifdef __cplusplus
26205 extern "C"
26206 #endif
26207 /* We use char because int might match the return type of a gcc2
26208    builtin and then its argument prototype would still apply.  */
26209 char opendir ();
26210 int
26211 main ()
26212 {
26213 opendir ();
26214   ;
26215   return 0;
26216 }
26217 _ACEOF
26218 rm -f conftest.$ac_objext conftest$ac_exeext
26219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26220   (eval $ac_link) 2>conftest.er1
26221   ac_status=$?
26222   grep -v '^ *+' conftest.er1 >conftest.err
26223   rm -f conftest.er1
26224   cat conftest.err >&5
26225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226   (exit $ac_status); } &&
26227          { ac_try='test -z "$ac_c_werror_flag"
26228                          || test ! -s conftest.err'
26229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26230   (eval $ac_try) 2>&5
26231   ac_status=$?
26232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233   (exit $ac_status); }; } &&
26234          { ac_try='test -s conftest$ac_exeext'
26235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26236   (eval $ac_try) 2>&5
26237   ac_status=$?
26238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26239   (exit $ac_status); }; }; then
26240   ac_cv_search_opendir="-l$ac_lib"
26241 break
26242 else
26243   echo "$as_me: failed program was:" >&5
26244 sed 's/^/| /' conftest.$ac_ext >&5
26245
26246 fi
26247 rm -f conftest.err conftest.$ac_objext \
26248       conftest$ac_exeext conftest.$ac_ext
26249   done
26250 fi
26251 LIBS=$ac_func_search_save_LIBS
26252 fi
26253 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26254 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26255 if test "$ac_cv_search_opendir" != no; then
26256   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26257
26258 fi
26259
26260 else
26261   echo "$as_me:$LINENO: checking for library containing opendir" >&5
26262 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26263 if test "${ac_cv_search_opendir+set}" = set; then
26264   echo $ECHO_N "(cached) $ECHO_C" >&6
26265 else
26266   ac_func_search_save_LIBS=$LIBS
26267 ac_cv_search_opendir=no
26268 cat >conftest.$ac_ext <<_ACEOF
26269 /* confdefs.h.  */
26270 _ACEOF
26271 cat confdefs.h >>conftest.$ac_ext
26272 cat >>conftest.$ac_ext <<_ACEOF
26273 /* end confdefs.h.  */
26274
26275 /* Override any gcc2 internal prototype to avoid an error.  */
26276 #ifdef __cplusplus
26277 extern "C"
26278 #endif
26279 /* We use char because int might match the return type of a gcc2
26280    builtin and then its argument prototype would still apply.  */
26281 char opendir ();
26282 int
26283 main ()
26284 {
26285 opendir ();
26286   ;
26287   return 0;
26288 }
26289 _ACEOF
26290 rm -f conftest.$ac_objext conftest$ac_exeext
26291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26292   (eval $ac_link) 2>conftest.er1
26293   ac_status=$?
26294   grep -v '^ *+' conftest.er1 >conftest.err
26295   rm -f conftest.er1
26296   cat conftest.err >&5
26297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26298   (exit $ac_status); } &&
26299          { ac_try='test -z "$ac_c_werror_flag"
26300                          || test ! -s conftest.err'
26301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26302   (eval $ac_try) 2>&5
26303   ac_status=$?
26304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305   (exit $ac_status); }; } &&
26306          { ac_try='test -s conftest$ac_exeext'
26307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26308   (eval $ac_try) 2>&5
26309   ac_status=$?
26310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311   (exit $ac_status); }; }; then
26312   ac_cv_search_opendir="none required"
26313 else
26314   echo "$as_me: failed program was:" >&5
26315 sed 's/^/| /' conftest.$ac_ext >&5
26316
26317 fi
26318 rm -f conftest.err conftest.$ac_objext \
26319       conftest$ac_exeext conftest.$ac_ext
26320 if test "$ac_cv_search_opendir" = no; then
26321   for ac_lib in x; do
26322     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26323     cat >conftest.$ac_ext <<_ACEOF
26324 /* confdefs.h.  */
26325 _ACEOF
26326 cat confdefs.h >>conftest.$ac_ext
26327 cat >>conftest.$ac_ext <<_ACEOF
26328 /* end confdefs.h.  */
26329
26330 /* Override any gcc2 internal prototype to avoid an error.  */
26331 #ifdef __cplusplus
26332 extern "C"
26333 #endif
26334 /* We use char because int might match the return type of a gcc2
26335    builtin and then its argument prototype would still apply.  */
26336 char opendir ();
26337 int
26338 main ()
26339 {
26340 opendir ();
26341   ;
26342   return 0;
26343 }
26344 _ACEOF
26345 rm -f conftest.$ac_objext conftest$ac_exeext
26346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26347   (eval $ac_link) 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_exeext'
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_cv_search_opendir="-l$ac_lib"
26368 break
26369 else
26370   echo "$as_me: failed program was:" >&5
26371 sed 's/^/| /' conftest.$ac_ext >&5
26372
26373 fi
26374 rm -f conftest.err conftest.$ac_objext \
26375       conftest$ac_exeext conftest.$ac_ext
26376   done
26377 fi
26378 LIBS=$ac_func_search_save_LIBS
26379 fi
26380 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26381 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26382 if test "$ac_cv_search_opendir" != no; then
26383   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26384
26385 fi
26386
26387 fi
26388
26389 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26390 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26391 if test "${ac_cv_header_mmap_anon+set}" = set; then
26392   echo $ECHO_N "(cached) $ECHO_C" >&6
26393 else
26394    ac_ext=c
26395 ac_cpp='$CPP $CPPFLAGS'
26396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26399
26400   cat >conftest.$ac_ext <<_ACEOF
26401 /* confdefs.h.  */
26402 _ACEOF
26403 cat confdefs.h >>conftest.$ac_ext
26404 cat >>conftest.$ac_ext <<_ACEOF
26405 /* end confdefs.h.  */
26406 #include <sys/mman.h>
26407 #include <unistd.h>
26408 #include <fcntl.h>
26409 int
26410 main ()
26411 {
26412 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26413   ;
26414   return 0;
26415 }
26416 _ACEOF
26417 rm -f conftest.$ac_objext
26418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26419   (eval $ac_compile) 2>conftest.er1
26420   ac_status=$?
26421   grep -v '^ *+' conftest.er1 >conftest.err
26422   rm -f conftest.er1
26423   cat conftest.err >&5
26424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425   (exit $ac_status); } &&
26426          { ac_try='test -z "$ac_c_werror_flag"
26427                          || test ! -s conftest.err'
26428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26429   (eval $ac_try) 2>&5
26430   ac_status=$?
26431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432   (exit $ac_status); }; } &&
26433          { ac_try='test -s conftest.$ac_objext'
26434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26435   (eval $ac_try) 2>&5
26436   ac_status=$?
26437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26438   (exit $ac_status); }; }; then
26439   ac_cv_header_mmap_anon=yes
26440 else
26441   echo "$as_me: failed program was:" >&5
26442 sed 's/^/| /' conftest.$ac_ext >&5
26443
26444 ac_cv_header_mmap_anon=no
26445 fi
26446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26447   ac_ext=c
26448 ac_cpp='$CPP $CPPFLAGS'
26449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26452
26453
26454 fi
26455 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26456 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26457 if test "$ac_cv_header_mmap_anon" = yes; then
26458
26459 cat >>confdefs.h <<\_ACEOF
26460 #define HAVE_MMAP_ANONYMOUS 1
26461 _ACEOF
26462
26463 fi
26464
26465 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26466 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26467 if test "${ac_cv_header_stat_broken+set}" = set; then
26468   echo $ECHO_N "(cached) $ECHO_C" >&6
26469 else
26470   cat >conftest.$ac_ext <<_ACEOF
26471 /* confdefs.h.  */
26472 _ACEOF
26473 cat confdefs.h >>conftest.$ac_ext
26474 cat >>conftest.$ac_ext <<_ACEOF
26475 /* end confdefs.h.  */
26476 #include <sys/types.h>
26477 #include <sys/stat.h>
26478
26479 #if defined(S_ISBLK) && defined(S_IFDIR)
26480 # if S_ISBLK (S_IFDIR)
26481 You lose.
26482 # endif
26483 #endif
26484
26485 #if defined(S_ISBLK) && defined(S_IFCHR)
26486 # if S_ISBLK (S_IFCHR)
26487 You lose.
26488 # endif
26489 #endif
26490
26491 #if defined(S_ISLNK) && defined(S_IFREG)
26492 # if S_ISLNK (S_IFREG)
26493 You lose.
26494 # endif
26495 #endif
26496
26497 #if defined(S_ISSOCK) && defined(S_IFREG)
26498 # if S_ISSOCK (S_IFREG)
26499 You lose.
26500 # endif
26501 #endif
26502
26503 _ACEOF
26504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26505   $EGREP "You lose" >/dev/null 2>&1; then
26506   ac_cv_header_stat_broken=yes
26507 else
26508   ac_cv_header_stat_broken=no
26509 fi
26510 rm -f conftest*
26511
26512 fi
26513 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26514 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26515 if test $ac_cv_header_stat_broken = yes; then
26516
26517 cat >>confdefs.h <<\_ACEOF
26518 #define STAT_MACROS_BROKEN 1
26519 _ACEOF
26520
26521 fi
26522
26523 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26524 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26525 if test "${ac_cv_header_stdc+set}" = set; then
26526   echo $ECHO_N "(cached) $ECHO_C" >&6
26527 else
26528   cat >conftest.$ac_ext <<_ACEOF
26529 /* confdefs.h.  */
26530 _ACEOF
26531 cat confdefs.h >>conftest.$ac_ext
26532 cat >>conftest.$ac_ext <<_ACEOF
26533 /* end confdefs.h.  */
26534 #include <stdlib.h>
26535 #include <stdarg.h>
26536 #include <string.h>
26537 #include <float.h>
26538
26539 int
26540 main ()
26541 {
26542
26543   ;
26544   return 0;
26545 }
26546 _ACEOF
26547 rm -f conftest.$ac_objext
26548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26549   (eval $ac_compile) 2>conftest.er1
26550   ac_status=$?
26551   grep -v '^ *+' conftest.er1 >conftest.err
26552   rm -f conftest.er1
26553   cat conftest.err >&5
26554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555   (exit $ac_status); } &&
26556          { ac_try='test -z "$ac_c_werror_flag"
26557                          || test ! -s conftest.err'
26558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26559   (eval $ac_try) 2>&5
26560   ac_status=$?
26561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562   (exit $ac_status); }; } &&
26563          { ac_try='test -s conftest.$ac_objext'
26564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26565   (eval $ac_try) 2>&5
26566   ac_status=$?
26567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568   (exit $ac_status); }; }; then
26569   ac_cv_header_stdc=yes
26570 else
26571   echo "$as_me: failed program was:" >&5
26572 sed 's/^/| /' conftest.$ac_ext >&5
26573
26574 ac_cv_header_stdc=no
26575 fi
26576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26577
26578 if test $ac_cv_header_stdc = yes; then
26579   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26580   cat >conftest.$ac_ext <<_ACEOF
26581 /* confdefs.h.  */
26582 _ACEOF
26583 cat confdefs.h >>conftest.$ac_ext
26584 cat >>conftest.$ac_ext <<_ACEOF
26585 /* end confdefs.h.  */
26586 #include <string.h>
26587
26588 _ACEOF
26589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26590   $EGREP "memchr" >/dev/null 2>&1; then
26591   :
26592 else
26593   ac_cv_header_stdc=no
26594 fi
26595 rm -f conftest*
26596
26597 fi
26598
26599 if test $ac_cv_header_stdc = yes; then
26600   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26601   cat >conftest.$ac_ext <<_ACEOF
26602 /* confdefs.h.  */
26603 _ACEOF
26604 cat confdefs.h >>conftest.$ac_ext
26605 cat >>conftest.$ac_ext <<_ACEOF
26606 /* end confdefs.h.  */
26607 #include <stdlib.h>
26608
26609 _ACEOF
26610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26611   $EGREP "free" >/dev/null 2>&1; then
26612   :
26613 else
26614   ac_cv_header_stdc=no
26615 fi
26616 rm -f conftest*
26617
26618 fi
26619
26620 if test $ac_cv_header_stdc = yes; then
26621   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26622   if test "$cross_compiling" = yes; then
26623   :
26624 else
26625   cat >conftest.$ac_ext <<_ACEOF
26626 /* confdefs.h.  */
26627 _ACEOF
26628 cat confdefs.h >>conftest.$ac_ext
26629 cat >>conftest.$ac_ext <<_ACEOF
26630 /* end confdefs.h.  */
26631 #include <ctype.h>
26632 #if ((' ' & 0x0FF) == 0x020)
26633 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26634 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26635 #else
26636 # define ISLOWER(c) \
26637                    (('a' <= (c) && (c) <= 'i') \
26638                      || ('j' <= (c) && (c) <= 'r') \
26639                      || ('s' <= (c) && (c) <= 'z'))
26640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26641 #endif
26642
26643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26644 int
26645 main ()
26646 {
26647   int i;
26648   for (i = 0; i < 256; i++)
26649     if (XOR (islower (i), ISLOWER (i))
26650         || toupper (i) != TOUPPER (i))
26651       exit(2);
26652   exit (0);
26653 }
26654 _ACEOF
26655 rm -f conftest$ac_exeext
26656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26657   (eval $ac_link) 2>&5
26658   ac_status=$?
26659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26660   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
26666   :
26667 else
26668   echo "$as_me: program exited with status $ac_status" >&5
26669 echo "$as_me: failed program was:" >&5
26670 sed 's/^/| /' conftest.$ac_ext >&5
26671
26672 ( exit $ac_status )
26673 ac_cv_header_stdc=no
26674 fi
26675 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26676 fi
26677 fi
26678 fi
26679 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26680 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26681 if test $ac_cv_header_stdc = yes; then
26682
26683 cat >>confdefs.h <<\_ACEOF
26684 #define STDC_HEADERS 1
26685 _ACEOF
26686
26687 fi
26688
26689 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26690 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26691 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26692   echo $ECHO_N "(cached) $ECHO_C" >&6
26693 else
26694   cat >conftest.$ac_ext <<_ACEOF
26695 /* confdefs.h.  */
26696 _ACEOF
26697 cat confdefs.h >>conftest.$ac_ext
26698 cat >>conftest.$ac_ext <<_ACEOF
26699 /* end confdefs.h.  */
26700 #include <sys/types.h>
26701 #include <sys/wait.h>
26702 #ifndef WEXITSTATUS
26703 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26704 #endif
26705 #ifndef WIFEXITED
26706 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26707 #endif
26708
26709 int
26710 main ()
26711 {
26712   int s;
26713   wait (&s);
26714   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26715   ;
26716   return 0;
26717 }
26718 _ACEOF
26719 rm -f conftest.$ac_objext
26720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26721   (eval $ac_compile) 2>conftest.er1
26722   ac_status=$?
26723   grep -v '^ *+' conftest.er1 >conftest.err
26724   rm -f conftest.er1
26725   cat conftest.err >&5
26726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727   (exit $ac_status); } &&
26728          { ac_try='test -z "$ac_c_werror_flag"
26729                          || test ! -s conftest.err'
26730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26731   (eval $ac_try) 2>&5
26732   ac_status=$?
26733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734   (exit $ac_status); }; } &&
26735          { ac_try='test -s conftest.$ac_objext'
26736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26737   (eval $ac_try) 2>&5
26738   ac_status=$?
26739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740   (exit $ac_status); }; }; then
26741   ac_cv_header_sys_wait_h=yes
26742 else
26743   echo "$as_me: failed program was:" >&5
26744 sed 's/^/| /' conftest.$ac_ext >&5
26745
26746 ac_cv_header_sys_wait_h=no
26747 fi
26748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26749 fi
26750 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26751 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26752 if test $ac_cv_header_sys_wait_h = yes; then
26753
26754 cat >>confdefs.h <<\_ACEOF
26755 #define HAVE_SYS_WAIT_H 1
26756 _ACEOF
26757
26758 fi
26759
26760 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26761 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26762 if test "${ac_cv_header_time+set}" = set; then
26763   echo $ECHO_N "(cached) $ECHO_C" >&6
26764 else
26765   cat >conftest.$ac_ext <<_ACEOF
26766 /* confdefs.h.  */
26767 _ACEOF
26768 cat confdefs.h >>conftest.$ac_ext
26769 cat >>conftest.$ac_ext <<_ACEOF
26770 /* end confdefs.h.  */
26771 #include <sys/types.h>
26772 #include <sys/time.h>
26773 #include <time.h>
26774
26775 int
26776 main ()
26777 {
26778 if ((struct tm *) 0)
26779 return 0;
26780   ;
26781   return 0;
26782 }
26783 _ACEOF
26784 rm -f conftest.$ac_objext
26785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26786   (eval $ac_compile) 2>conftest.er1
26787   ac_status=$?
26788   grep -v '^ *+' conftest.er1 >conftest.err
26789   rm -f conftest.er1
26790   cat conftest.err >&5
26791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792   (exit $ac_status); } &&
26793          { ac_try='test -z "$ac_c_werror_flag"
26794                          || test ! -s conftest.err'
26795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26796   (eval $ac_try) 2>&5
26797   ac_status=$?
26798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799   (exit $ac_status); }; } &&
26800          { ac_try='test -s conftest.$ac_objext'
26801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26802   (eval $ac_try) 2>&5
26803   ac_status=$?
26804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805   (exit $ac_status); }; }; then
26806   ac_cv_header_time=yes
26807 else
26808   echo "$as_me: failed program was:" >&5
26809 sed 's/^/| /' conftest.$ac_ext >&5
26810
26811 ac_cv_header_time=no
26812 fi
26813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26814 fi
26815 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26816 echo "${ECHO_T}$ac_cv_header_time" >&6
26817 if test $ac_cv_header_time = yes; then
26818
26819 cat >>confdefs.h <<\_ACEOF
26820 #define TIME_WITH_SYS_TIME 1
26821 _ACEOF
26822
26823 fi
26824
26825
26826
26827
26828
26829
26830
26831
26832 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26833 do
26834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26836   echo "$as_me:$LINENO: checking for $ac_header" >&5
26837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26839   echo $ECHO_N "(cached) $ECHO_C" >&6
26840 fi
26841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26843 else
26844   # Is the header compilable?
26845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26847 cat >conftest.$ac_ext <<_ACEOF
26848 /* confdefs.h.  */
26849 _ACEOF
26850 cat confdefs.h >>conftest.$ac_ext
26851 cat >>conftest.$ac_ext <<_ACEOF
26852 /* end confdefs.h.  */
26853 $ac_includes_default
26854 #include <$ac_header>
26855 _ACEOF
26856 rm -f conftest.$ac_objext
26857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26858   (eval $ac_compile) 2>conftest.er1
26859   ac_status=$?
26860   grep -v '^ *+' conftest.er1 >conftest.err
26861   rm -f conftest.er1
26862   cat conftest.err >&5
26863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864   (exit $ac_status); } &&
26865          { ac_try='test -z "$ac_c_werror_flag"
26866                          || test ! -s conftest.err'
26867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26868   (eval $ac_try) 2>&5
26869   ac_status=$?
26870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871   (exit $ac_status); }; } &&
26872          { ac_try='test -s conftest.$ac_objext'
26873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26874   (eval $ac_try) 2>&5
26875   ac_status=$?
26876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877   (exit $ac_status); }; }; then
26878   ac_header_compiler=yes
26879 else
26880   echo "$as_me: failed program was:" >&5
26881 sed 's/^/| /' conftest.$ac_ext >&5
26882
26883 ac_header_compiler=no
26884 fi
26885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26887 echo "${ECHO_T}$ac_header_compiler" >&6
26888
26889 # Is the header present?
26890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26892 cat >conftest.$ac_ext <<_ACEOF
26893 /* confdefs.h.  */
26894 _ACEOF
26895 cat confdefs.h >>conftest.$ac_ext
26896 cat >>conftest.$ac_ext <<_ACEOF
26897 /* end confdefs.h.  */
26898 #include <$ac_header>
26899 _ACEOF
26900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26901   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26902   ac_status=$?
26903   grep -v '^ *+' conftest.er1 >conftest.err
26904   rm -f conftest.er1
26905   cat conftest.err >&5
26906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907   (exit $ac_status); } >/dev/null; then
26908   if test -s conftest.err; then
26909     ac_cpp_err=$ac_c_preproc_warn_flag
26910     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26911   else
26912     ac_cpp_err=
26913   fi
26914 else
26915   ac_cpp_err=yes
26916 fi
26917 if test -z "$ac_cpp_err"; then
26918   ac_header_preproc=yes
26919 else
26920   echo "$as_me: failed program was:" >&5
26921 sed 's/^/| /' conftest.$ac_ext >&5
26922
26923   ac_header_preproc=no
26924 fi
26925 rm -f conftest.err conftest.$ac_ext
26926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26927 echo "${ECHO_T}$ac_header_preproc" >&6
26928
26929 # So?  What about this header?
26930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26931   yes:no: )
26932     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26936     ac_header_preproc=yes
26937     ;;
26938   no:yes:* )
26939     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26941     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26942 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26943     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26945     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26946 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26949     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26951     (
26952       cat <<\_ASBOX
26953 ## ----------------------------------- ##
26954 ## Report this to llvmbugs@cs.uiuc.edu ##
26955 ## ----------------------------------- ##
26956 _ASBOX
26957     ) |
26958       sed "s/^/$as_me: WARNING:     /" >&2
26959     ;;
26960 esac
26961 echo "$as_me:$LINENO: checking for $ac_header" >&5
26962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26964   echo $ECHO_N "(cached) $ECHO_C" >&6
26965 else
26966   eval "$as_ac_Header=\$ac_header_preproc"
26967 fi
26968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26970
26971 fi
26972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26973   cat >>confdefs.h <<_ACEOF
26974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26975 _ACEOF
26976
26977 fi
26978
26979 done
26980
26981
26982
26983
26984
26985
26986
26987 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26988 do
26989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26991   echo "$as_me:$LINENO: checking for $ac_header" >&5
26992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26994   echo $ECHO_N "(cached) $ECHO_C" >&6
26995 fi
26996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26998 else
26999   # Is the header compilable?
27000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27002 cat >conftest.$ac_ext <<_ACEOF
27003 /* confdefs.h.  */
27004 _ACEOF
27005 cat confdefs.h >>conftest.$ac_ext
27006 cat >>conftest.$ac_ext <<_ACEOF
27007 /* end confdefs.h.  */
27008 $ac_includes_default
27009 #include <$ac_header>
27010 _ACEOF
27011 rm -f conftest.$ac_objext
27012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27013   (eval $ac_compile) 2>conftest.er1
27014   ac_status=$?
27015   grep -v '^ *+' conftest.er1 >conftest.err
27016   rm -f conftest.er1
27017   cat conftest.err >&5
27018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019   (exit $ac_status); } &&
27020          { ac_try='test -z "$ac_c_werror_flag"
27021                          || test ! -s conftest.err'
27022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27023   (eval $ac_try) 2>&5
27024   ac_status=$?
27025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026   (exit $ac_status); }; } &&
27027          { ac_try='test -s conftest.$ac_objext'
27028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27029   (eval $ac_try) 2>&5
27030   ac_status=$?
27031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032   (exit $ac_status); }; }; then
27033   ac_header_compiler=yes
27034 else
27035   echo "$as_me: failed program was:" >&5
27036 sed 's/^/| /' conftest.$ac_ext >&5
27037
27038 ac_header_compiler=no
27039 fi
27040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27042 echo "${ECHO_T}$ac_header_compiler" >&6
27043
27044 # Is the header present?
27045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27047 cat >conftest.$ac_ext <<_ACEOF
27048 /* confdefs.h.  */
27049 _ACEOF
27050 cat confdefs.h >>conftest.$ac_ext
27051 cat >>conftest.$ac_ext <<_ACEOF
27052 /* end confdefs.h.  */
27053 #include <$ac_header>
27054 _ACEOF
27055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27057   ac_status=$?
27058   grep -v '^ *+' conftest.er1 >conftest.err
27059   rm -f conftest.er1
27060   cat conftest.err >&5
27061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062   (exit $ac_status); } >/dev/null; then
27063   if test -s conftest.err; then
27064     ac_cpp_err=$ac_c_preproc_warn_flag
27065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27066   else
27067     ac_cpp_err=
27068   fi
27069 else
27070   ac_cpp_err=yes
27071 fi
27072 if test -z "$ac_cpp_err"; then
27073   ac_header_preproc=yes
27074 else
27075   echo "$as_me: failed program was:" >&5
27076 sed 's/^/| /' conftest.$ac_ext >&5
27077
27078   ac_header_preproc=no
27079 fi
27080 rm -f conftest.err conftest.$ac_ext
27081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27082 echo "${ECHO_T}$ac_header_preproc" >&6
27083
27084 # So?  What about this header?
27085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27086   yes:no: )
27087     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27091     ac_header_preproc=yes
27092     ;;
27093   no:yes:* )
27094     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27096     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27097 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27098     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27100     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27101 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27104     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27106     (
27107       cat <<\_ASBOX
27108 ## ----------------------------------- ##
27109 ## Report this to llvmbugs@cs.uiuc.edu ##
27110 ## ----------------------------------- ##
27111 _ASBOX
27112     ) |
27113       sed "s/^/$as_me: WARNING:     /" >&2
27114     ;;
27115 esac
27116 echo "$as_me:$LINENO: checking for $ac_header" >&5
27117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27119   echo $ECHO_N "(cached) $ECHO_C" >&6
27120 else
27121   eval "$as_ac_Header=\$ac_header_preproc"
27122 fi
27123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27125
27126 fi
27127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27128   cat >>confdefs.h <<_ACEOF
27129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27130 _ACEOF
27131
27132 fi
27133
27134 done
27135
27136
27137
27138
27139
27140
27141 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
27142 do
27143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27145   echo "$as_me:$LINENO: checking for $ac_header" >&5
27146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27148   echo $ECHO_N "(cached) $ECHO_C" >&6
27149 fi
27150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27152 else
27153   # Is the header compilable?
27154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27156 cat >conftest.$ac_ext <<_ACEOF
27157 /* confdefs.h.  */
27158 _ACEOF
27159 cat confdefs.h >>conftest.$ac_ext
27160 cat >>conftest.$ac_ext <<_ACEOF
27161 /* end confdefs.h.  */
27162 $ac_includes_default
27163 #include <$ac_header>
27164 _ACEOF
27165 rm -f conftest.$ac_objext
27166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27167   (eval $ac_compile) 2>conftest.er1
27168   ac_status=$?
27169   grep -v '^ *+' conftest.er1 >conftest.err
27170   rm -f conftest.er1
27171   cat conftest.err >&5
27172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173   (exit $ac_status); } &&
27174          { ac_try='test -z "$ac_c_werror_flag"
27175                          || test ! -s conftest.err'
27176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27177   (eval $ac_try) 2>&5
27178   ac_status=$?
27179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180   (exit $ac_status); }; } &&
27181          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27187   ac_header_compiler=yes
27188 else
27189   echo "$as_me: failed program was:" >&5
27190 sed 's/^/| /' conftest.$ac_ext >&5
27191
27192 ac_header_compiler=no
27193 fi
27194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27196 echo "${ECHO_T}$ac_header_compiler" >&6
27197
27198 # Is the header present?
27199 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27201 cat >conftest.$ac_ext <<_ACEOF
27202 /* confdefs.h.  */
27203 _ACEOF
27204 cat confdefs.h >>conftest.$ac_ext
27205 cat >>conftest.$ac_ext <<_ACEOF
27206 /* end confdefs.h.  */
27207 #include <$ac_header>
27208 _ACEOF
27209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27210   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27211   ac_status=$?
27212   grep -v '^ *+' conftest.er1 >conftest.err
27213   rm -f conftest.er1
27214   cat conftest.err >&5
27215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216   (exit $ac_status); } >/dev/null; then
27217   if test -s conftest.err; then
27218     ac_cpp_err=$ac_c_preproc_warn_flag
27219     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27220   else
27221     ac_cpp_err=
27222   fi
27223 else
27224   ac_cpp_err=yes
27225 fi
27226 if test -z "$ac_cpp_err"; then
27227   ac_header_preproc=yes
27228 else
27229   echo "$as_me: failed program was:" >&5
27230 sed 's/^/| /' conftest.$ac_ext >&5
27231
27232   ac_header_preproc=no
27233 fi
27234 rm -f conftest.err conftest.$ac_ext
27235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27236 echo "${ECHO_T}$ac_header_preproc" >&6
27237
27238 # So?  What about this header?
27239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27240   yes:no: )
27241     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27243     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27245     ac_header_preproc=yes
27246     ;;
27247   no:yes:* )
27248     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27250     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27251 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27252     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27254     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27255 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27256     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27258     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27260     (
27261       cat <<\_ASBOX
27262 ## ----------------------------------- ##
27263 ## Report this to llvmbugs@cs.uiuc.edu ##
27264 ## ----------------------------------- ##
27265 _ASBOX
27266     ) |
27267       sed "s/^/$as_me: WARNING:     /" >&2
27268     ;;
27269 esac
27270 echo "$as_me:$LINENO: checking for $ac_header" >&5
27271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27273   echo $ECHO_N "(cached) $ECHO_C" >&6
27274 else
27275   eval "$as_ac_Header=\$ac_header_preproc"
27276 fi
27277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27279
27280 fi
27281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27282   cat >>confdefs.h <<_ACEOF
27283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27284 _ACEOF
27285
27286 fi
27287
27288 done
27289
27290
27291 for ac_header in malloc/malloc.h
27292 do
27293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27295   echo "$as_me:$LINENO: checking for $ac_header" >&5
27296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27298   echo $ECHO_N "(cached) $ECHO_C" >&6
27299 fi
27300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27302 else
27303   # Is the header compilable?
27304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27306 cat >conftest.$ac_ext <<_ACEOF
27307 /* confdefs.h.  */
27308 _ACEOF
27309 cat confdefs.h >>conftest.$ac_ext
27310 cat >>conftest.$ac_ext <<_ACEOF
27311 /* end confdefs.h.  */
27312 $ac_includes_default
27313 #include <$ac_header>
27314 _ACEOF
27315 rm -f conftest.$ac_objext
27316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27317   (eval $ac_compile) 2>conftest.er1
27318   ac_status=$?
27319   grep -v '^ *+' conftest.er1 >conftest.err
27320   rm -f conftest.er1
27321   cat conftest.err >&5
27322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323   (exit $ac_status); } &&
27324          { ac_try='test -z "$ac_c_werror_flag"
27325                          || test ! -s conftest.err'
27326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327   (eval $ac_try) 2>&5
27328   ac_status=$?
27329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330   (exit $ac_status); }; } &&
27331          { ac_try='test -s conftest.$ac_objext'
27332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27333   (eval $ac_try) 2>&5
27334   ac_status=$?
27335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336   (exit $ac_status); }; }; then
27337   ac_header_compiler=yes
27338 else
27339   echo "$as_me: failed program was:" >&5
27340 sed 's/^/| /' conftest.$ac_ext >&5
27341
27342 ac_header_compiler=no
27343 fi
27344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27346 echo "${ECHO_T}$ac_header_compiler" >&6
27347
27348 # Is the header present?
27349 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 #include <$ac_header>
27358 _ACEOF
27359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27360   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27361   ac_status=$?
27362   grep -v '^ *+' conftest.er1 >conftest.err
27363   rm -f conftest.er1
27364   cat conftest.err >&5
27365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366   (exit $ac_status); } >/dev/null; then
27367   if test -s conftest.err; then
27368     ac_cpp_err=$ac_c_preproc_warn_flag
27369     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27370   else
27371     ac_cpp_err=
27372   fi
27373 else
27374   ac_cpp_err=yes
27375 fi
27376 if test -z "$ac_cpp_err"; then
27377   ac_header_preproc=yes
27378 else
27379   echo "$as_me: failed program was:" >&5
27380 sed 's/^/| /' conftest.$ac_ext >&5
27381
27382   ac_header_preproc=no
27383 fi
27384 rm -f conftest.err conftest.$ac_ext
27385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27386 echo "${ECHO_T}$ac_header_preproc" >&6
27387
27388 # So?  What about this header?
27389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27390   yes:no: )
27391     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27393     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27395     ac_header_preproc=yes
27396     ;;
27397   no:yes:* )
27398     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27400     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27401 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27402     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27404     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27405 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27408     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27410     (
27411       cat <<\_ASBOX
27412 ## ----------------------------------- ##
27413 ## Report this to llvmbugs@cs.uiuc.edu ##
27414 ## ----------------------------------- ##
27415 _ASBOX
27416     ) |
27417       sed "s/^/$as_me: WARNING:     /" >&2
27418     ;;
27419 esac
27420 echo "$as_me:$LINENO: checking for $ac_header" >&5
27421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27423   echo $ECHO_N "(cached) $ECHO_C" >&6
27424 else
27425   eval "$as_ac_Header=\$ac_header_preproc"
27426 fi
27427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27429
27430 fi
27431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27432   cat >>confdefs.h <<_ACEOF
27433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27434 _ACEOF
27435
27436 fi
27437
27438 done
27439
27440 if test "$ENABLE_THREADS" -eq 1 ; then
27441
27442 for ac_header in pthread.h
27443 do
27444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27446   echo "$as_me:$LINENO: checking for $ac_header" >&5
27447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27449   echo $ECHO_N "(cached) $ECHO_C" >&6
27450 fi
27451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27453 else
27454   # Is the header compilable?
27455 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27457 cat >conftest.$ac_ext <<_ACEOF
27458 /* confdefs.h.  */
27459 _ACEOF
27460 cat confdefs.h >>conftest.$ac_ext
27461 cat >>conftest.$ac_ext <<_ACEOF
27462 /* end confdefs.h.  */
27463 $ac_includes_default
27464 #include <$ac_header>
27465 _ACEOF
27466 rm -f conftest.$ac_objext
27467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27468   (eval $ac_compile) 2>conftest.er1
27469   ac_status=$?
27470   grep -v '^ *+' conftest.er1 >conftest.err
27471   rm -f conftest.er1
27472   cat conftest.err >&5
27473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474   (exit $ac_status); } &&
27475          { ac_try='test -z "$ac_c_werror_flag"
27476                          || test ! -s conftest.err'
27477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27478   (eval $ac_try) 2>&5
27479   ac_status=$?
27480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481   (exit $ac_status); }; } &&
27482          { ac_try='test -s conftest.$ac_objext'
27483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27484   (eval $ac_try) 2>&5
27485   ac_status=$?
27486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27487   (exit $ac_status); }; }; then
27488   ac_header_compiler=yes
27489 else
27490   echo "$as_me: failed program was:" >&5
27491 sed 's/^/| /' conftest.$ac_ext >&5
27492
27493 ac_header_compiler=no
27494 fi
27495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27497 echo "${ECHO_T}$ac_header_compiler" >&6
27498
27499 # Is the header present?
27500 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27502 cat >conftest.$ac_ext <<_ACEOF
27503 /* confdefs.h.  */
27504 _ACEOF
27505 cat confdefs.h >>conftest.$ac_ext
27506 cat >>conftest.$ac_ext <<_ACEOF
27507 /* end confdefs.h.  */
27508 #include <$ac_header>
27509 _ACEOF
27510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27511   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27512   ac_status=$?
27513   grep -v '^ *+' conftest.er1 >conftest.err
27514   rm -f conftest.er1
27515   cat conftest.err >&5
27516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27517   (exit $ac_status); } >/dev/null; then
27518   if test -s conftest.err; then
27519     ac_cpp_err=$ac_c_preproc_warn_flag
27520     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27521   else
27522     ac_cpp_err=
27523   fi
27524 else
27525   ac_cpp_err=yes
27526 fi
27527 if test -z "$ac_cpp_err"; then
27528   ac_header_preproc=yes
27529 else
27530   echo "$as_me: failed program was:" >&5
27531 sed 's/^/| /' conftest.$ac_ext >&5
27532
27533   ac_header_preproc=no
27534 fi
27535 rm -f conftest.err conftest.$ac_ext
27536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27537 echo "${ECHO_T}$ac_header_preproc" >&6
27538
27539 # So?  What about this header?
27540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27541   yes:no: )
27542     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27544     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27546     ac_header_preproc=yes
27547     ;;
27548   no:yes:* )
27549     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27551     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27552 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27553     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27555     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27556 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27559     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27561     (
27562       cat <<\_ASBOX
27563 ## ----------------------------------- ##
27564 ## Report this to llvmbugs@cs.uiuc.edu ##
27565 ## ----------------------------------- ##
27566 _ASBOX
27567     ) |
27568       sed "s/^/$as_me: WARNING:     /" >&2
27569     ;;
27570 esac
27571 echo "$as_me:$LINENO: checking for $ac_header" >&5
27572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27574   echo $ECHO_N "(cached) $ECHO_C" >&6
27575 else
27576   eval "$as_ac_Header=\$ac_header_preproc"
27577 fi
27578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27580
27581 fi
27582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27583   cat >>confdefs.h <<_ACEOF
27584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27585 _ACEOF
27586
27587 fi
27588
27589 done
27590
27591 fi
27592
27593
27594 echo "$as_me:$LINENO: checking for pid_t" >&5
27595 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27596 if test "${ac_cv_type_pid_t+set}" = set; then
27597   echo $ECHO_N "(cached) $ECHO_C" >&6
27598 else
27599   cat >conftest.$ac_ext <<_ACEOF
27600 /* confdefs.h.  */
27601 _ACEOF
27602 cat confdefs.h >>conftest.$ac_ext
27603 cat >>conftest.$ac_ext <<_ACEOF
27604 /* end confdefs.h.  */
27605 $ac_includes_default
27606 int
27607 main ()
27608 {
27609 if ((pid_t *) 0)
27610   return 0;
27611 if (sizeof (pid_t))
27612   return 0;
27613   ;
27614   return 0;
27615 }
27616 _ACEOF
27617 rm -f conftest.$ac_objext
27618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27619   (eval $ac_compile) 2>conftest.er1
27620   ac_status=$?
27621   grep -v '^ *+' conftest.er1 >conftest.err
27622   rm -f conftest.er1
27623   cat conftest.err >&5
27624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625   (exit $ac_status); } &&
27626          { ac_try='test -z "$ac_c_werror_flag"
27627                          || test ! -s conftest.err'
27628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27629   (eval $ac_try) 2>&5
27630   ac_status=$?
27631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632   (exit $ac_status); }; } &&
27633          { ac_try='test -s conftest.$ac_objext'
27634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27635   (eval $ac_try) 2>&5
27636   ac_status=$?
27637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638   (exit $ac_status); }; }; then
27639   ac_cv_type_pid_t=yes
27640 else
27641   echo "$as_me: failed program was:" >&5
27642 sed 's/^/| /' conftest.$ac_ext >&5
27643
27644 ac_cv_type_pid_t=no
27645 fi
27646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27647 fi
27648 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27649 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27650 if test $ac_cv_type_pid_t = yes; then
27651   :
27652 else
27653
27654 cat >>confdefs.h <<_ACEOF
27655 #define pid_t int
27656 _ACEOF
27657
27658 fi
27659
27660 echo "$as_me:$LINENO: checking for size_t" >&5
27661 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27662 if test "${ac_cv_type_size_t+set}" = set; then
27663   echo $ECHO_N "(cached) $ECHO_C" >&6
27664 else
27665   cat >conftest.$ac_ext <<_ACEOF
27666 /* confdefs.h.  */
27667 _ACEOF
27668 cat confdefs.h >>conftest.$ac_ext
27669 cat >>conftest.$ac_ext <<_ACEOF
27670 /* end confdefs.h.  */
27671 $ac_includes_default
27672 int
27673 main ()
27674 {
27675 if ((size_t *) 0)
27676   return 0;
27677 if (sizeof (size_t))
27678   return 0;
27679   ;
27680   return 0;
27681 }
27682 _ACEOF
27683 rm -f conftest.$ac_objext
27684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27685   (eval $ac_compile) 2>conftest.er1
27686   ac_status=$?
27687   grep -v '^ *+' conftest.er1 >conftest.err
27688   rm -f conftest.er1
27689   cat conftest.err >&5
27690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691   (exit $ac_status); } &&
27692          { ac_try='test -z "$ac_c_werror_flag"
27693                          || test ! -s conftest.err'
27694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27695   (eval $ac_try) 2>&5
27696   ac_status=$?
27697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27698   (exit $ac_status); }; } &&
27699          { ac_try='test -s conftest.$ac_objext'
27700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27701   (eval $ac_try) 2>&5
27702   ac_status=$?
27703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704   (exit $ac_status); }; }; then
27705   ac_cv_type_size_t=yes
27706 else
27707   echo "$as_me: failed program was:" >&5
27708 sed 's/^/| /' conftest.$ac_ext >&5
27709
27710 ac_cv_type_size_t=no
27711 fi
27712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27713 fi
27714 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27715 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27716 if test $ac_cv_type_size_t = yes; then
27717   :
27718 else
27719
27720 cat >>confdefs.h <<_ACEOF
27721 #define size_t unsigned
27722 _ACEOF
27723
27724 fi
27725
27726 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27727 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27728 if test "${ac_cv_type_signal+set}" = set; then
27729   echo $ECHO_N "(cached) $ECHO_C" >&6
27730 else
27731   cat >conftest.$ac_ext <<_ACEOF
27732 /* confdefs.h.  */
27733 _ACEOF
27734 cat confdefs.h >>conftest.$ac_ext
27735 cat >>conftest.$ac_ext <<_ACEOF
27736 /* end confdefs.h.  */
27737 #include <sys/types.h>
27738 #include <signal.h>
27739 #ifdef signal
27740 # undef signal
27741 #endif
27742 #ifdef __cplusplus
27743 extern "C" void (*signal (int, void (*)(int)))(int);
27744 #else
27745 void (*signal ()) ();
27746 #endif
27747
27748 int
27749 main ()
27750 {
27751 int i;
27752   ;
27753   return 0;
27754 }
27755 _ACEOF
27756 rm -f conftest.$ac_objext
27757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27758   (eval $ac_compile) 2>conftest.er1
27759   ac_status=$?
27760   grep -v '^ *+' conftest.er1 >conftest.err
27761   rm -f conftest.er1
27762   cat conftest.err >&5
27763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764   (exit $ac_status); } &&
27765          { ac_try='test -z "$ac_c_werror_flag"
27766                          || test ! -s conftest.err'
27767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27768   (eval $ac_try) 2>&5
27769   ac_status=$?
27770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771   (exit $ac_status); }; } &&
27772          { ac_try='test -s conftest.$ac_objext'
27773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27774   (eval $ac_try) 2>&5
27775   ac_status=$?
27776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777   (exit $ac_status); }; }; then
27778   ac_cv_type_signal=void
27779 else
27780   echo "$as_me: failed program was:" >&5
27781 sed 's/^/| /' conftest.$ac_ext >&5
27782
27783 ac_cv_type_signal=int
27784 fi
27785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27786 fi
27787 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27788 echo "${ECHO_T}$ac_cv_type_signal" >&6
27789
27790 cat >>confdefs.h <<_ACEOF
27791 #define RETSIGTYPE $ac_cv_type_signal
27792 _ACEOF
27793
27794
27795 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27796 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27797 if test "${ac_cv_struct_tm+set}" = set; then
27798   echo $ECHO_N "(cached) $ECHO_C" >&6
27799 else
27800   cat >conftest.$ac_ext <<_ACEOF
27801 /* confdefs.h.  */
27802 _ACEOF
27803 cat confdefs.h >>conftest.$ac_ext
27804 cat >>conftest.$ac_ext <<_ACEOF
27805 /* end confdefs.h.  */
27806 #include <sys/types.h>
27807 #include <time.h>
27808
27809 int
27810 main ()
27811 {
27812 struct tm *tp; tp->tm_sec;
27813   ;
27814   return 0;
27815 }
27816 _ACEOF
27817 rm -f conftest.$ac_objext
27818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27819   (eval $ac_compile) 2>conftest.er1
27820   ac_status=$?
27821   grep -v '^ *+' conftest.er1 >conftest.err
27822   rm -f conftest.er1
27823   cat conftest.err >&5
27824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825   (exit $ac_status); } &&
27826          { ac_try='test -z "$ac_c_werror_flag"
27827                          || test ! -s conftest.err'
27828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27829   (eval $ac_try) 2>&5
27830   ac_status=$?
27831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832   (exit $ac_status); }; } &&
27833          { ac_try='test -s conftest.$ac_objext'
27834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27835   (eval $ac_try) 2>&5
27836   ac_status=$?
27837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838   (exit $ac_status); }; }; then
27839   ac_cv_struct_tm=time.h
27840 else
27841   echo "$as_me: failed program was:" >&5
27842 sed 's/^/| /' conftest.$ac_ext >&5
27843
27844 ac_cv_struct_tm=sys/time.h
27845 fi
27846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27847 fi
27848 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27849 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27850 if test $ac_cv_struct_tm = sys/time.h; then
27851
27852 cat >>confdefs.h <<\_ACEOF
27853 #define TM_IN_SYS_TIME 1
27854 _ACEOF
27855
27856 fi
27857
27858 echo "$as_me:$LINENO: checking for int64_t" >&5
27859 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27860 if test "${ac_cv_type_int64_t+set}" = set; then
27861   echo $ECHO_N "(cached) $ECHO_C" >&6
27862 else
27863   cat >conftest.$ac_ext <<_ACEOF
27864 /* confdefs.h.  */
27865 _ACEOF
27866 cat confdefs.h >>conftest.$ac_ext
27867 cat >>conftest.$ac_ext <<_ACEOF
27868 /* end confdefs.h.  */
27869 $ac_includes_default
27870 int
27871 main ()
27872 {
27873 if ((int64_t *) 0)
27874   return 0;
27875 if (sizeof (int64_t))
27876   return 0;
27877   ;
27878   return 0;
27879 }
27880 _ACEOF
27881 rm -f conftest.$ac_objext
27882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27883   (eval $ac_compile) 2>conftest.er1
27884   ac_status=$?
27885   grep -v '^ *+' conftest.er1 >conftest.err
27886   rm -f conftest.er1
27887   cat conftest.err >&5
27888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889   (exit $ac_status); } &&
27890          { ac_try='test -z "$ac_c_werror_flag"
27891                          || test ! -s conftest.err'
27892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27893   (eval $ac_try) 2>&5
27894   ac_status=$?
27895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896   (exit $ac_status); }; } &&
27897          { ac_try='test -s conftest.$ac_objext'
27898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27899   (eval $ac_try) 2>&5
27900   ac_status=$?
27901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902   (exit $ac_status); }; }; then
27903   ac_cv_type_int64_t=yes
27904 else
27905   echo "$as_me: failed program was:" >&5
27906 sed 's/^/| /' conftest.$ac_ext >&5
27907
27908 ac_cv_type_int64_t=no
27909 fi
27910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27911 fi
27912 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27913 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27914 if test $ac_cv_type_int64_t = yes; then
27915
27916 cat >>confdefs.h <<_ACEOF
27917 #define HAVE_INT64_T 1
27918 _ACEOF
27919
27920
27921 else
27922   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27923 echo "$as_me: error: Type int64_t required but not found" >&2;}
27924    { (exit 1); exit 1; }; }
27925 fi
27926
27927 echo "$as_me:$LINENO: checking for uint64_t" >&5
27928 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27929 if test "${ac_cv_type_uint64_t+set}" = set; then
27930   echo $ECHO_N "(cached) $ECHO_C" >&6
27931 else
27932   cat >conftest.$ac_ext <<_ACEOF
27933 /* confdefs.h.  */
27934 _ACEOF
27935 cat confdefs.h >>conftest.$ac_ext
27936 cat >>conftest.$ac_ext <<_ACEOF
27937 /* end confdefs.h.  */
27938 $ac_includes_default
27939 int
27940 main ()
27941 {
27942 if ((uint64_t *) 0)
27943   return 0;
27944 if (sizeof (uint64_t))
27945   return 0;
27946   ;
27947   return 0;
27948 }
27949 _ACEOF
27950 rm -f conftest.$ac_objext
27951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27952   (eval $ac_compile) 2>conftest.er1
27953   ac_status=$?
27954   grep -v '^ *+' conftest.er1 >conftest.err
27955   rm -f conftest.er1
27956   cat conftest.err >&5
27957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958   (exit $ac_status); } &&
27959          { ac_try='test -z "$ac_c_werror_flag"
27960                          || test ! -s conftest.err'
27961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27962   (eval $ac_try) 2>&5
27963   ac_status=$?
27964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965   (exit $ac_status); }; } &&
27966          { ac_try='test -s conftest.$ac_objext'
27967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27968   (eval $ac_try) 2>&5
27969   ac_status=$?
27970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971   (exit $ac_status); }; }; then
27972   ac_cv_type_uint64_t=yes
27973 else
27974   echo "$as_me: failed program was:" >&5
27975 sed 's/^/| /' conftest.$ac_ext >&5
27976
27977 ac_cv_type_uint64_t=no
27978 fi
27979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27980 fi
27981 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27982 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27983 if test $ac_cv_type_uint64_t = yes; then
27984
27985 cat >>confdefs.h <<_ACEOF
27986 #define HAVE_UINT64_T 1
27987 _ACEOF
27988
27989
27990 else
27991   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27992 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27993 if test "${ac_cv_type_u_int64_t+set}" = set; then
27994   echo $ECHO_N "(cached) $ECHO_C" >&6
27995 else
27996   cat >conftest.$ac_ext <<_ACEOF
27997 /* confdefs.h.  */
27998 _ACEOF
27999 cat confdefs.h >>conftest.$ac_ext
28000 cat >>conftest.$ac_ext <<_ACEOF
28001 /* end confdefs.h.  */
28002 $ac_includes_default
28003 int
28004 main ()
28005 {
28006 if ((u_int64_t *) 0)
28007   return 0;
28008 if (sizeof (u_int64_t))
28009   return 0;
28010   ;
28011   return 0;
28012 }
28013 _ACEOF
28014 rm -f conftest.$ac_objext
28015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28016   (eval $ac_compile) 2>conftest.er1
28017   ac_status=$?
28018   grep -v '^ *+' conftest.er1 >conftest.err
28019   rm -f conftest.er1
28020   cat conftest.err >&5
28021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022   (exit $ac_status); } &&
28023          { ac_try='test -z "$ac_c_werror_flag"
28024                          || test ! -s conftest.err'
28025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28026   (eval $ac_try) 2>&5
28027   ac_status=$?
28028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029   (exit $ac_status); }; } &&
28030          { ac_try='test -s conftest.$ac_objext'
28031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28032   (eval $ac_try) 2>&5
28033   ac_status=$?
28034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035   (exit $ac_status); }; }; then
28036   ac_cv_type_u_int64_t=yes
28037 else
28038   echo "$as_me: failed program was:" >&5
28039 sed 's/^/| /' conftest.$ac_ext >&5
28040
28041 ac_cv_type_u_int64_t=no
28042 fi
28043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28044 fi
28045 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28046 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
28047 if test $ac_cv_type_u_int64_t = yes; then
28048
28049 cat >>confdefs.h <<_ACEOF
28050 #define HAVE_U_INT64_T 1
28051 _ACEOF
28052
28053
28054 else
28055   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28056 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28057    { (exit 1); exit 1; }; }
28058 fi
28059
28060 fi
28061
28062
28063
28064
28065
28066
28067
28068
28069
28070
28071 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28072 do
28073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28074 echo "$as_me:$LINENO: checking for $ac_func" >&5
28075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28076 if eval "test \"\${$as_ac_var+set}\" = set"; then
28077   echo $ECHO_N "(cached) $ECHO_C" >&6
28078 else
28079   cat >conftest.$ac_ext <<_ACEOF
28080 /* confdefs.h.  */
28081 _ACEOF
28082 cat confdefs.h >>conftest.$ac_ext
28083 cat >>conftest.$ac_ext <<_ACEOF
28084 /* end confdefs.h.  */
28085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28087 #define $ac_func innocuous_$ac_func
28088
28089 /* System header to define __stub macros and hopefully few prototypes,
28090     which can conflict with char $ac_func (); below.
28091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28092     <limits.h> exists even on freestanding compilers.  */
28093
28094 #ifdef __STDC__
28095 # include <limits.h>
28096 #else
28097 # include <assert.h>
28098 #endif
28099
28100 #undef $ac_func
28101
28102 /* Override any gcc2 internal prototype to avoid an error.  */
28103 #ifdef __cplusplus
28104 extern "C"
28105 {
28106 #endif
28107 /* We use char because int might match the return type of a gcc2
28108    builtin and then its argument prototype would still apply.  */
28109 char $ac_func ();
28110 /* The GNU C library defines this for functions which it implements
28111     to always fail with ENOSYS.  Some functions are actually named
28112     something starting with __ and the normal name is an alias.  */
28113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28114 choke me
28115 #else
28116 char (*f) () = $ac_func;
28117 #endif
28118 #ifdef __cplusplus
28119 }
28120 #endif
28121
28122 int
28123 main ()
28124 {
28125 return f != $ac_func;
28126   ;
28127   return 0;
28128 }
28129 _ACEOF
28130 rm -f conftest.$ac_objext conftest$ac_exeext
28131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28132   (eval $ac_link) 2>conftest.er1
28133   ac_status=$?
28134   grep -v '^ *+' conftest.er1 >conftest.err
28135   rm -f conftest.er1
28136   cat conftest.err >&5
28137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28138   (exit $ac_status); } &&
28139          { ac_try='test -z "$ac_c_werror_flag"
28140                          || test ! -s conftest.err'
28141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28142   (eval $ac_try) 2>&5
28143   ac_status=$?
28144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145   (exit $ac_status); }; } &&
28146          { ac_try='test -s conftest$ac_exeext'
28147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28148   (eval $ac_try) 2>&5
28149   ac_status=$?
28150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151   (exit $ac_status); }; }; then
28152   eval "$as_ac_var=yes"
28153 else
28154   echo "$as_me: failed program was:" >&5
28155 sed 's/^/| /' conftest.$ac_ext >&5
28156
28157 eval "$as_ac_var=no"
28158 fi
28159 rm -f conftest.err conftest.$ac_objext \
28160       conftest$ac_exeext conftest.$ac_ext
28161 fi
28162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28164 if test `eval echo '${'$as_ac_var'}'` = yes; then
28165   cat >>confdefs.h <<_ACEOF
28166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28167 _ACEOF
28168
28169 fi
28170 done
28171
28172
28173
28174
28175
28176
28177
28178 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28179 do
28180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28181 echo "$as_me:$LINENO: checking for $ac_func" >&5
28182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28183 if eval "test \"\${$as_ac_var+set}\" = set"; then
28184   echo $ECHO_N "(cached) $ECHO_C" >&6
28185 else
28186   cat >conftest.$ac_ext <<_ACEOF
28187 /* confdefs.h.  */
28188 _ACEOF
28189 cat confdefs.h >>conftest.$ac_ext
28190 cat >>conftest.$ac_ext <<_ACEOF
28191 /* end confdefs.h.  */
28192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28194 #define $ac_func innocuous_$ac_func
28195
28196 /* System header to define __stub macros and hopefully few prototypes,
28197     which can conflict with char $ac_func (); below.
28198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28199     <limits.h> exists even on freestanding compilers.  */
28200
28201 #ifdef __STDC__
28202 # include <limits.h>
28203 #else
28204 # include <assert.h>
28205 #endif
28206
28207 #undef $ac_func
28208
28209 /* Override any gcc2 internal prototype to avoid an error.  */
28210 #ifdef __cplusplus
28211 extern "C"
28212 {
28213 #endif
28214 /* We use char because int might match the return type of a gcc2
28215    builtin and then its argument prototype would still apply.  */
28216 char $ac_func ();
28217 /* The GNU C library defines this for functions which it implements
28218     to always fail with ENOSYS.  Some functions are actually named
28219     something starting with __ and the normal name is an alias.  */
28220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28221 choke me
28222 #else
28223 char (*f) () = $ac_func;
28224 #endif
28225 #ifdef __cplusplus
28226 }
28227 #endif
28228
28229 int
28230 main ()
28231 {
28232 return f != $ac_func;
28233   ;
28234   return 0;
28235 }
28236 _ACEOF
28237 rm -f conftest.$ac_objext conftest$ac_exeext
28238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28239   (eval $ac_link) 2>conftest.er1
28240   ac_status=$?
28241   grep -v '^ *+' conftest.er1 >conftest.err
28242   rm -f conftest.er1
28243   cat conftest.err >&5
28244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245   (exit $ac_status); } &&
28246          { ac_try='test -z "$ac_c_werror_flag"
28247                          || test ! -s conftest.err'
28248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28249   (eval $ac_try) 2>&5
28250   ac_status=$?
28251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252   (exit $ac_status); }; } &&
28253          { ac_try='test -s conftest$ac_exeext'
28254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28255   (eval $ac_try) 2>&5
28256   ac_status=$?
28257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258   (exit $ac_status); }; }; then
28259   eval "$as_ac_var=yes"
28260 else
28261   echo "$as_me: failed program was:" >&5
28262 sed 's/^/| /' conftest.$ac_ext >&5
28263
28264 eval "$as_ac_var=no"
28265 fi
28266 rm -f conftest.err conftest.$ac_objext \
28267       conftest$ac_exeext conftest.$ac_ext
28268 fi
28269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28271 if test `eval echo '${'$as_ac_var'}'` = yes; then
28272   cat >>confdefs.h <<_ACEOF
28273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28274 _ACEOF
28275
28276 fi
28277 done
28278
28279
28280
28281
28282
28283
28284
28285
28286 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
28287 do
28288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28289 echo "$as_me:$LINENO: checking for $ac_func" >&5
28290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28291 if eval "test \"\${$as_ac_var+set}\" = set"; then
28292   echo $ECHO_N "(cached) $ECHO_C" >&6
28293 else
28294   cat >conftest.$ac_ext <<_ACEOF
28295 /* confdefs.h.  */
28296 _ACEOF
28297 cat confdefs.h >>conftest.$ac_ext
28298 cat >>conftest.$ac_ext <<_ACEOF
28299 /* end confdefs.h.  */
28300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28302 #define $ac_func innocuous_$ac_func
28303
28304 /* System header to define __stub macros and hopefully few prototypes,
28305     which can conflict with char $ac_func (); below.
28306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28307     <limits.h> exists even on freestanding compilers.  */
28308
28309 #ifdef __STDC__
28310 # include <limits.h>
28311 #else
28312 # include <assert.h>
28313 #endif
28314
28315 #undef $ac_func
28316
28317 /* Override any gcc2 internal prototype to avoid an error.  */
28318 #ifdef __cplusplus
28319 extern "C"
28320 {
28321 #endif
28322 /* We use char because int might match the return type of a gcc2
28323    builtin and then its argument prototype would still apply.  */
28324 char $ac_func ();
28325 /* The GNU C library defines this for functions which it implements
28326     to always fail with ENOSYS.  Some functions are actually named
28327     something starting with __ and the normal name is an alias.  */
28328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28329 choke me
28330 #else
28331 char (*f) () = $ac_func;
28332 #endif
28333 #ifdef __cplusplus
28334 }
28335 #endif
28336
28337 int
28338 main ()
28339 {
28340 return f != $ac_func;
28341   ;
28342   return 0;
28343 }
28344 _ACEOF
28345 rm -f conftest.$ac_objext conftest$ac_exeext
28346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28347   (eval $ac_link) 2>conftest.er1
28348   ac_status=$?
28349   grep -v '^ *+' conftest.er1 >conftest.err
28350   rm -f conftest.er1
28351   cat conftest.err >&5
28352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353   (exit $ac_status); } &&
28354          { ac_try='test -z "$ac_c_werror_flag"
28355                          || test ! -s conftest.err'
28356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28357   (eval $ac_try) 2>&5
28358   ac_status=$?
28359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360   (exit $ac_status); }; } &&
28361          { ac_try='test -s conftest$ac_exeext'
28362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28363   (eval $ac_try) 2>&5
28364   ac_status=$?
28365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366   (exit $ac_status); }; }; then
28367   eval "$as_ac_var=yes"
28368 else
28369   echo "$as_me: failed program was:" >&5
28370 sed 's/^/| /' conftest.$ac_ext >&5
28371
28372 eval "$as_ac_var=no"
28373 fi
28374 rm -f conftest.err conftest.$ac_objext \
28375       conftest$ac_exeext conftest.$ac_ext
28376 fi
28377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28379 if test `eval echo '${'$as_ac_var'}'` = yes; then
28380   cat >>confdefs.h <<_ACEOF
28381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28382 _ACEOF
28383
28384 fi
28385 done
28386
28387
28388
28389
28390
28391 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28392 do
28393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28394 echo "$as_me:$LINENO: checking for $ac_func" >&5
28395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28396 if eval "test \"\${$as_ac_var+set}\" = set"; then
28397   echo $ECHO_N "(cached) $ECHO_C" >&6
28398 else
28399   cat >conftest.$ac_ext <<_ACEOF
28400 /* confdefs.h.  */
28401 _ACEOF
28402 cat confdefs.h >>conftest.$ac_ext
28403 cat >>conftest.$ac_ext <<_ACEOF
28404 /* end confdefs.h.  */
28405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28406    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28407 #define $ac_func innocuous_$ac_func
28408
28409 /* System header to define __stub macros and hopefully few prototypes,
28410     which can conflict with char $ac_func (); below.
28411     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28412     <limits.h> exists even on freestanding compilers.  */
28413
28414 #ifdef __STDC__
28415 # include <limits.h>
28416 #else
28417 # include <assert.h>
28418 #endif
28419
28420 #undef $ac_func
28421
28422 /* Override any gcc2 internal prototype to avoid an error.  */
28423 #ifdef __cplusplus
28424 extern "C"
28425 {
28426 #endif
28427 /* We use char because int might match the return type of a gcc2
28428    builtin and then its argument prototype would still apply.  */
28429 char $ac_func ();
28430 /* The GNU C library defines this for functions which it implements
28431     to always fail with ENOSYS.  Some functions are actually named
28432     something starting with __ and the normal name is an alias.  */
28433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28434 choke me
28435 #else
28436 char (*f) () = $ac_func;
28437 #endif
28438 #ifdef __cplusplus
28439 }
28440 #endif
28441
28442 int
28443 main ()
28444 {
28445 return f != $ac_func;
28446   ;
28447   return 0;
28448 }
28449 _ACEOF
28450 rm -f conftest.$ac_objext conftest$ac_exeext
28451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28452   (eval $ac_link) 2>conftest.er1
28453   ac_status=$?
28454   grep -v '^ *+' conftest.er1 >conftest.err
28455   rm -f conftest.er1
28456   cat conftest.err >&5
28457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458   (exit $ac_status); } &&
28459          { ac_try='test -z "$ac_c_werror_flag"
28460                          || test ! -s conftest.err'
28461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28462   (eval $ac_try) 2>&5
28463   ac_status=$?
28464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465   (exit $ac_status); }; } &&
28466          { ac_try='test -s conftest$ac_exeext'
28467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28468   (eval $ac_try) 2>&5
28469   ac_status=$?
28470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471   (exit $ac_status); }; }; then
28472   eval "$as_ac_var=yes"
28473 else
28474   echo "$as_me: failed program was:" >&5
28475 sed 's/^/| /' conftest.$ac_ext >&5
28476
28477 eval "$as_ac_var=no"
28478 fi
28479 rm -f conftest.err conftest.$ac_objext \
28480       conftest$ac_exeext conftest.$ac_ext
28481 fi
28482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28484 if test `eval echo '${'$as_ac_var'}'` = yes; then
28485   cat >>confdefs.h <<_ACEOF
28486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28487 _ACEOF
28488
28489 fi
28490 done
28491
28492 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28493 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28494 if test "${llvm_cv_c_printf_a+set}" = set; then
28495   echo $ECHO_N "(cached) $ECHO_C" >&6
28496 else
28497   ac_ext=c
28498 ac_cpp='$CPP $CPPFLAGS'
28499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28502
28503  if test "$cross_compiling" = yes; then
28504   llvmac_cv_c_printf_a=no
28505 else
28506   cat >conftest.$ac_ext <<_ACEOF
28507
28508   /* confdefs.h.  */
28509 _ACEOF
28510 cat confdefs.h >>conftest.$ac_ext
28511 cat >>conftest.$ac_ext <<_ACEOF
28512 /* end confdefs.h.  */
28513
28514 #include <stdio.h>
28515 #include <stdlib.h>
28516
28517 int
28518 main ()
28519 {
28520
28521 volatile double A, B;
28522 char Buffer[100];
28523 A = 1;
28524 A /= 10.0;
28525 sprintf(Buffer, "%a", A);
28526 B = atof(Buffer);
28527 if (A != B)
28528   return (1);
28529 if (A != 0x1.999999999999ap-4)
28530   return (1);
28531 return (0);
28532   ;
28533   return 0;
28534 }
28535 _ACEOF
28536 rm -f conftest$ac_exeext
28537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28538   (eval $ac_link) 2>&5
28539   ac_status=$?
28540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28543   (eval $ac_try) 2>&5
28544   ac_status=$?
28545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546   (exit $ac_status); }; }; then
28547   llvm_cv_c_printf_a=yes
28548 else
28549   echo "$as_me: program exited with status $ac_status" >&5
28550 echo "$as_me: failed program was:" >&5
28551 sed 's/^/| /' conftest.$ac_ext >&5
28552
28553 ( exit $ac_status )
28554 llvmac_cv_c_printf_a=no
28555 fi
28556 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28557 fi
28558  ac_ext=c
28559 ac_cpp='$CPP $CPPFLAGS'
28560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28563
28564 fi
28565 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28566 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28567  if test "$llvm_cv_c_printf_a" = "yes"; then
28568
28569 cat >>confdefs.h <<\_ACEOF
28570 #define HAVE_PRINTF_A 1
28571 _ACEOF
28572
28573  fi
28574
28575 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28576 # for constant arguments.  Useless!
28577 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28578 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28579 if test "${ac_cv_working_alloca_h+set}" = set; then
28580   echo $ECHO_N "(cached) $ECHO_C" >&6
28581 else
28582   cat >conftest.$ac_ext <<_ACEOF
28583 /* confdefs.h.  */
28584 _ACEOF
28585 cat confdefs.h >>conftest.$ac_ext
28586 cat >>conftest.$ac_ext <<_ACEOF
28587 /* end confdefs.h.  */
28588 #include <alloca.h>
28589 int
28590 main ()
28591 {
28592 char *p = (char *) alloca (2 * sizeof (int));
28593   ;
28594   return 0;
28595 }
28596 _ACEOF
28597 rm -f conftest.$ac_objext conftest$ac_exeext
28598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28599   (eval $ac_link) 2>conftest.er1
28600   ac_status=$?
28601   grep -v '^ *+' conftest.er1 >conftest.err
28602   rm -f conftest.er1
28603   cat conftest.err >&5
28604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605   (exit $ac_status); } &&
28606          { ac_try='test -z "$ac_c_werror_flag"
28607                          || test ! -s conftest.err'
28608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28609   (eval $ac_try) 2>&5
28610   ac_status=$?
28611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612   (exit $ac_status); }; } &&
28613          { ac_try='test -s conftest$ac_exeext'
28614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28615   (eval $ac_try) 2>&5
28616   ac_status=$?
28617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618   (exit $ac_status); }; }; then
28619   ac_cv_working_alloca_h=yes
28620 else
28621   echo "$as_me: failed program was:" >&5
28622 sed 's/^/| /' conftest.$ac_ext >&5
28623
28624 ac_cv_working_alloca_h=no
28625 fi
28626 rm -f conftest.err conftest.$ac_objext \
28627       conftest$ac_exeext conftest.$ac_ext
28628 fi
28629 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28630 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28631 if test $ac_cv_working_alloca_h = yes; then
28632
28633 cat >>confdefs.h <<\_ACEOF
28634 #define HAVE_ALLOCA_H 1
28635 _ACEOF
28636
28637 fi
28638
28639 echo "$as_me:$LINENO: checking for alloca" >&5
28640 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28641 if test "${ac_cv_func_alloca_works+set}" = set; then
28642   echo $ECHO_N "(cached) $ECHO_C" >&6
28643 else
28644   cat >conftest.$ac_ext <<_ACEOF
28645 /* confdefs.h.  */
28646 _ACEOF
28647 cat confdefs.h >>conftest.$ac_ext
28648 cat >>conftest.$ac_ext <<_ACEOF
28649 /* end confdefs.h.  */
28650 #ifdef __GNUC__
28651 # define alloca __builtin_alloca
28652 #else
28653 # ifdef _MSC_VER
28654 #  include <malloc.h>
28655 #  define alloca _alloca
28656 # else
28657 #  if HAVE_ALLOCA_H
28658 #   include <alloca.h>
28659 #  else
28660 #   ifdef _AIX
28661  #pragma alloca
28662 #   else
28663 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28664 char *alloca ();
28665 #    endif
28666 #   endif
28667 #  endif
28668 # endif
28669 #endif
28670
28671 int
28672 main ()
28673 {
28674 char *p = (char *) alloca (1);
28675   ;
28676   return 0;
28677 }
28678 _ACEOF
28679 rm -f conftest.$ac_objext conftest$ac_exeext
28680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28681   (eval $ac_link) 2>conftest.er1
28682   ac_status=$?
28683   grep -v '^ *+' conftest.er1 >conftest.err
28684   rm -f conftest.er1
28685   cat conftest.err >&5
28686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28687   (exit $ac_status); } &&
28688          { ac_try='test -z "$ac_c_werror_flag"
28689                          || test ! -s conftest.err'
28690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28691   (eval $ac_try) 2>&5
28692   ac_status=$?
28693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694   (exit $ac_status); }; } &&
28695          { ac_try='test -s conftest$ac_exeext'
28696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28697   (eval $ac_try) 2>&5
28698   ac_status=$?
28699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700   (exit $ac_status); }; }; then
28701   ac_cv_func_alloca_works=yes
28702 else
28703   echo "$as_me: failed program was:" >&5
28704 sed 's/^/| /' conftest.$ac_ext >&5
28705
28706 ac_cv_func_alloca_works=no
28707 fi
28708 rm -f conftest.err conftest.$ac_objext \
28709       conftest$ac_exeext conftest.$ac_ext
28710 fi
28711 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28712 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28713
28714 if test $ac_cv_func_alloca_works = yes; then
28715
28716 cat >>confdefs.h <<\_ACEOF
28717 #define HAVE_ALLOCA 1
28718 _ACEOF
28719
28720 else
28721   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28722 # that cause trouble.  Some versions do not even contain alloca or
28723 # contain a buggy version.  If you still want to use their alloca,
28724 # use ar to extract alloca.o from them instead of compiling alloca.c.
28725
28726 ALLOCA=alloca.$ac_objext
28727
28728 cat >>confdefs.h <<\_ACEOF
28729 #define C_ALLOCA 1
28730 _ACEOF
28731
28732
28733 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28734 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28735 if test "${ac_cv_os_cray+set}" = set; then
28736   echo $ECHO_N "(cached) $ECHO_C" >&6
28737 else
28738   cat >conftest.$ac_ext <<_ACEOF
28739 /* confdefs.h.  */
28740 _ACEOF
28741 cat confdefs.h >>conftest.$ac_ext
28742 cat >>conftest.$ac_ext <<_ACEOF
28743 /* end confdefs.h.  */
28744 #if defined(CRAY) && ! defined(CRAY2)
28745 webecray
28746 #else
28747 wenotbecray
28748 #endif
28749
28750 _ACEOF
28751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28752   $EGREP "webecray" >/dev/null 2>&1; then
28753   ac_cv_os_cray=yes
28754 else
28755   ac_cv_os_cray=no
28756 fi
28757 rm -f conftest*
28758
28759 fi
28760 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28761 echo "${ECHO_T}$ac_cv_os_cray" >&6
28762 if test $ac_cv_os_cray = yes; then
28763   for ac_func in _getb67 GETB67 getb67; do
28764     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28765 echo "$as_me:$LINENO: checking for $ac_func" >&5
28766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28767 if eval "test \"\${$as_ac_var+set}\" = set"; then
28768   echo $ECHO_N "(cached) $ECHO_C" >&6
28769 else
28770   cat >conftest.$ac_ext <<_ACEOF
28771 /* confdefs.h.  */
28772 _ACEOF
28773 cat confdefs.h >>conftest.$ac_ext
28774 cat >>conftest.$ac_ext <<_ACEOF
28775 /* end confdefs.h.  */
28776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28778 #define $ac_func innocuous_$ac_func
28779
28780 /* System header to define __stub macros and hopefully few prototypes,
28781     which can conflict with char $ac_func (); below.
28782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28783     <limits.h> exists even on freestanding compilers.  */
28784
28785 #ifdef __STDC__
28786 # include <limits.h>
28787 #else
28788 # include <assert.h>
28789 #endif
28790
28791 #undef $ac_func
28792
28793 /* Override any gcc2 internal prototype to avoid an error.  */
28794 #ifdef __cplusplus
28795 extern "C"
28796 {
28797 #endif
28798 /* We use char because int might match the return type of a gcc2
28799    builtin and then its argument prototype would still apply.  */
28800 char $ac_func ();
28801 /* The GNU C library defines this for functions which it implements
28802     to always fail with ENOSYS.  Some functions are actually named
28803     something starting with __ and the normal name is an alias.  */
28804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28805 choke me
28806 #else
28807 char (*f) () = $ac_func;
28808 #endif
28809 #ifdef __cplusplus
28810 }
28811 #endif
28812
28813 int
28814 main ()
28815 {
28816 return f != $ac_func;
28817   ;
28818   return 0;
28819 }
28820 _ACEOF
28821 rm -f conftest.$ac_objext conftest$ac_exeext
28822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28823   (eval $ac_link) 2>conftest.er1
28824   ac_status=$?
28825   grep -v '^ *+' conftest.er1 >conftest.err
28826   rm -f conftest.er1
28827   cat conftest.err >&5
28828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829   (exit $ac_status); } &&
28830          { ac_try='test -z "$ac_c_werror_flag"
28831                          || test ! -s conftest.err'
28832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28833   (eval $ac_try) 2>&5
28834   ac_status=$?
28835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836   (exit $ac_status); }; } &&
28837          { ac_try='test -s conftest$ac_exeext'
28838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28839   (eval $ac_try) 2>&5
28840   ac_status=$?
28841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842   (exit $ac_status); }; }; then
28843   eval "$as_ac_var=yes"
28844 else
28845   echo "$as_me: failed program was:" >&5
28846 sed 's/^/| /' conftest.$ac_ext >&5
28847
28848 eval "$as_ac_var=no"
28849 fi
28850 rm -f conftest.err conftest.$ac_objext \
28851       conftest$ac_exeext conftest.$ac_ext
28852 fi
28853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28855 if test `eval echo '${'$as_ac_var'}'` = yes; then
28856
28857 cat >>confdefs.h <<_ACEOF
28858 #define CRAY_STACKSEG_END $ac_func
28859 _ACEOF
28860
28861     break
28862 fi
28863
28864   done
28865 fi
28866
28867 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28868 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28869 if test "${ac_cv_c_stack_direction+set}" = set; then
28870   echo $ECHO_N "(cached) $ECHO_C" >&6
28871 else
28872   if test "$cross_compiling" = yes; then
28873   ac_cv_c_stack_direction=0
28874 else
28875   cat >conftest.$ac_ext <<_ACEOF
28876 /* confdefs.h.  */
28877 _ACEOF
28878 cat confdefs.h >>conftest.$ac_ext
28879 cat >>conftest.$ac_ext <<_ACEOF
28880 /* end confdefs.h.  */
28881 int
28882 find_stack_direction ()
28883 {
28884   static char *addr = 0;
28885   auto char dummy;
28886   if (addr == 0)
28887     {
28888       addr = &dummy;
28889       return find_stack_direction ();
28890     }
28891   else
28892     return (&dummy > addr) ? 1 : -1;
28893 }
28894
28895 int
28896 main ()
28897 {
28898   exit (find_stack_direction () < 0);
28899 }
28900 _ACEOF
28901 rm -f conftest$ac_exeext
28902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28903   (eval $ac_link) 2>&5
28904   ac_status=$?
28905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28908   (eval $ac_try) 2>&5
28909   ac_status=$?
28910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911   (exit $ac_status); }; }; then
28912   ac_cv_c_stack_direction=1
28913 else
28914   echo "$as_me: program exited with status $ac_status" >&5
28915 echo "$as_me: failed program was:" >&5
28916 sed 's/^/| /' conftest.$ac_ext >&5
28917
28918 ( exit $ac_status )
28919 ac_cv_c_stack_direction=-1
28920 fi
28921 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28922 fi
28923 fi
28924 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28925 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28926
28927 cat >>confdefs.h <<_ACEOF
28928 #define STACK_DIRECTION $ac_cv_c_stack_direction
28929 _ACEOF
28930
28931
28932 fi
28933
28934
28935 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28936 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28937 if test "${ac_cv_func_rand48+set}" = set; then
28938   echo $ECHO_N "(cached) $ECHO_C" >&6
28939 else
28940   ac_ext=cc
28941 ac_cpp='$CXXCPP $CPPFLAGS'
28942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28945
28946    cat >conftest.$ac_ext <<_ACEOF
28947 /* confdefs.h.  */
28948 _ACEOF
28949 cat confdefs.h >>conftest.$ac_ext
28950 cat >>conftest.$ac_ext <<_ACEOF
28951 /* end confdefs.h.  */
28952 #include <stdlib.h>
28953 int
28954 main ()
28955 {
28956 srand48(0);lrand48();drand48();
28957   ;
28958   return 0;
28959 }
28960 _ACEOF
28961 rm -f conftest.$ac_objext
28962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28963   (eval $ac_compile) 2>conftest.er1
28964   ac_status=$?
28965   grep -v '^ *+' conftest.er1 >conftest.err
28966   rm -f conftest.er1
28967   cat conftest.err >&5
28968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969   (exit $ac_status); } &&
28970          { ac_try='test -z "$ac_cxx_werror_flag"
28971                          || test ! -s conftest.err'
28972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28973   (eval $ac_try) 2>&5
28974   ac_status=$?
28975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976   (exit $ac_status); }; } &&
28977          { ac_try='test -s conftest.$ac_objext'
28978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28979   (eval $ac_try) 2>&5
28980   ac_status=$?
28981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28982   (exit $ac_status); }; }; then
28983   ac_cv_func_rand48=yes
28984 else
28985   echo "$as_me: failed program was:" >&5
28986 sed 's/^/| /' conftest.$ac_ext >&5
28987
28988 ac_cv_func_rand48=no
28989 fi
28990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28991   ac_ext=c
28992 ac_cpp='$CPP $CPPFLAGS'
28993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28996
28997 fi
28998 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28999 echo "${ECHO_T}$ac_cv_func_rand48" >&6
29000
29001 if test "$ac_cv_func_rand48" = "yes" ; then
29002
29003 cat >>confdefs.h <<\_ACEOF
29004 #define HAVE_RAND48 1
29005 _ACEOF
29006
29007 fi
29008
29009
29010 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29011 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
29012 if test "${ac_cv_cxx_namespaces+set}" = set; then
29013   echo $ECHO_N "(cached) $ECHO_C" >&6
29014 else
29015   ac_ext=cc
29016 ac_cpp='$CXXCPP $CPPFLAGS'
29017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29020
29021  cat >conftest.$ac_ext <<_ACEOF
29022 /* confdefs.h.  */
29023 _ACEOF
29024 cat confdefs.h >>conftest.$ac_ext
29025 cat >>conftest.$ac_ext <<_ACEOF
29026 /* end confdefs.h.  */
29027 namespace Outer { namespace Inner { int i = 0; }}
29028 int
29029 main ()
29030 {
29031 using namespace Outer::Inner; return i;
29032   ;
29033   return 0;
29034 }
29035 _ACEOF
29036 rm -f conftest.$ac_objext
29037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29038   (eval $ac_compile) 2>conftest.er1
29039   ac_status=$?
29040   grep -v '^ *+' conftest.er1 >conftest.err
29041   rm -f conftest.er1
29042   cat conftest.err >&5
29043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044   (exit $ac_status); } &&
29045          { ac_try='test -z "$ac_cxx_werror_flag"
29046                          || test ! -s conftest.err'
29047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29048   (eval $ac_try) 2>&5
29049   ac_status=$?
29050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29051   (exit $ac_status); }; } &&
29052          { ac_try='test -s conftest.$ac_objext'
29053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29054   (eval $ac_try) 2>&5
29055   ac_status=$?
29056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057   (exit $ac_status); }; }; then
29058   ac_cv_cxx_namespaces=yes
29059 else
29060   echo "$as_me: failed program was:" >&5
29061 sed 's/^/| /' conftest.$ac_ext >&5
29062
29063 ac_cv_cxx_namespaces=no
29064 fi
29065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29066  ac_ext=c
29067 ac_cpp='$CPP $CPPFLAGS'
29068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29071
29072
29073 fi
29074 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29075 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
29076 if test "$ac_cv_cxx_namespaces" = yes; then
29077
29078 cat >>confdefs.h <<\_ACEOF
29079 #define HAVE_NAMESPACES
29080 _ACEOF
29081
29082 fi
29083
29084 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29085 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
29086 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
29087   echo $ECHO_N "(cached) $ECHO_C" >&6
29088 else
29089
29090   ac_ext=cc
29091 ac_cpp='$CXXCPP $CPPFLAGS'
29092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29095
29096   cat >conftest.$ac_ext <<_ACEOF
29097 /* confdefs.h.  */
29098 _ACEOF
29099 cat confdefs.h >>conftest.$ac_ext
29100 cat >>conftest.$ac_ext <<_ACEOF
29101 /* end confdefs.h.  */
29102 #include <ext/hash_map>
29103 #ifdef HAVE_NAMESPACES
29104 using namespace std;
29105 #endif
29106 int
29107 main ()
29108 {
29109 hash_map<int, int> t;
29110   ;
29111   return 0;
29112 }
29113 _ACEOF
29114 rm -f conftest.$ac_objext
29115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29116   (eval $ac_compile) 2>conftest.er1
29117   ac_status=$?
29118   grep -v '^ *+' conftest.er1 >conftest.err
29119   rm -f conftest.er1
29120   cat conftest.err >&5
29121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122   (exit $ac_status); } &&
29123          { ac_try='test -z "$ac_cxx_werror_flag"
29124                          || test ! -s conftest.err'
29125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29126   (eval $ac_try) 2>&5
29127   ac_status=$?
29128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129   (exit $ac_status); }; } &&
29130          { ac_try='test -s conftest.$ac_objext'
29131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29132   (eval $ac_try) 2>&5
29133   ac_status=$?
29134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29135   (exit $ac_status); }; }; then
29136   ac_cv_cxx_have_std_ext_hash_map=yes
29137 else
29138   echo "$as_me: failed program was:" >&5
29139 sed 's/^/| /' conftest.$ac_ext >&5
29140
29141 ac_cv_cxx_have_std_ext_hash_map=no
29142 fi
29143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29144   ac_ext=c
29145 ac_cpp='$CPP $CPPFLAGS'
29146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29149
29150 fi
29151 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29152 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
29153  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29154  then
29155
29156 cat >>confdefs.h <<\_ACEOF
29157 #define HAVE_STD_EXT_HASH_MAP 1
29158 _ACEOF
29159
29160  else
29161
29162 cat >>confdefs.h <<\_ACEOF
29163 #define HAVE_STD_EXT_HASH_MAP 0
29164 _ACEOF
29165
29166  fi
29167
29168  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29169 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29170 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29171   echo $ECHO_N "(cached) $ECHO_C" >&6
29172 else
29173
29174   ac_ext=cc
29175 ac_cpp='$CXXCPP $CPPFLAGS'
29176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29179
29180   cat >conftest.$ac_ext <<_ACEOF
29181 /* confdefs.h.  */
29182 _ACEOF
29183 cat confdefs.h >>conftest.$ac_ext
29184 cat >>conftest.$ac_ext <<_ACEOF
29185 /* end confdefs.h.  */
29186 #include <ext/hash_map>
29187 #ifdef HAVE_NAMESPACES
29188 using namespace __gnu_cxx;
29189 #endif
29190 int
29191 main ()
29192 {
29193 hash_map<int,int> t;
29194   ;
29195   return 0;
29196 }
29197 _ACEOF
29198 rm -f conftest.$ac_objext
29199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29200   (eval $ac_compile) 2>conftest.er1
29201   ac_status=$?
29202   grep -v '^ *+' conftest.er1 >conftest.err
29203   rm -f conftest.er1
29204   cat conftest.err >&5
29205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29206   (exit $ac_status); } &&
29207          { ac_try='test -z "$ac_cxx_werror_flag"
29208                          || test ! -s conftest.err'
29209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29210   (eval $ac_try) 2>&5
29211   ac_status=$?
29212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213   (exit $ac_status); }; } &&
29214          { ac_try='test -s conftest.$ac_objext'
29215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29216   (eval $ac_try) 2>&5
29217   ac_status=$?
29218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219   (exit $ac_status); }; }; then
29220   ac_cv_cxx_have_gnu_ext_hash_map=yes
29221 else
29222   echo "$as_me: failed program was:" >&5
29223 sed 's/^/| /' conftest.$ac_ext >&5
29224
29225 ac_cv_cxx_have_gnu_ext_hash_map=no
29226 fi
29227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29228   ac_ext=c
29229 ac_cpp='$CPP $CPPFLAGS'
29230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29233
29234 fi
29235 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29236 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
29237  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29238  then
29239
29240 cat >>confdefs.h <<\_ACEOF
29241 #define HAVE_GNU_EXT_HASH_MAP 1
29242 _ACEOF
29243
29244  else
29245
29246 cat >>confdefs.h <<\_ACEOF
29247 #define HAVE_GNU_EXT_HASH_MAP 0
29248 _ACEOF
29249
29250  fi
29251
29252  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29253 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29254 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29255   echo $ECHO_N "(cached) $ECHO_C" >&6
29256 else
29257
29258   ac_ext=cc
29259 ac_cpp='$CXXCPP $CPPFLAGS'
29260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29263
29264   cat >conftest.$ac_ext <<_ACEOF
29265 /* confdefs.h.  */
29266 _ACEOF
29267 cat confdefs.h >>conftest.$ac_ext
29268 cat >>conftest.$ac_ext <<_ACEOF
29269 /* end confdefs.h.  */
29270 #include <hash_map>
29271 int
29272 main ()
29273 {
29274 hash_map<int,int> t;
29275   ;
29276   return 0;
29277 }
29278 _ACEOF
29279 rm -f conftest.$ac_objext
29280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29281   (eval $ac_compile) 2>conftest.er1
29282   ac_status=$?
29283   grep -v '^ *+' conftest.er1 >conftest.err
29284   rm -f conftest.er1
29285   cat conftest.err >&5
29286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287   (exit $ac_status); } &&
29288          { ac_try='test -z "$ac_cxx_werror_flag"
29289                          || test ! -s conftest.err'
29290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29291   (eval $ac_try) 2>&5
29292   ac_status=$?
29293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294   (exit $ac_status); }; } &&
29295          { ac_try='test -s conftest.$ac_objext'
29296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29297   (eval $ac_try) 2>&5
29298   ac_status=$?
29299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300   (exit $ac_status); }; }; then
29301   ac_cv_cxx_have_global_hash_map=yes
29302 else
29303   echo "$as_me: failed program was:" >&5
29304 sed 's/^/| /' conftest.$ac_ext >&5
29305
29306 ac_cv_cxx_have_global_hash_map=no
29307 fi
29308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29309   ac_ext=c
29310 ac_cpp='$CPP $CPPFLAGS'
29311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29314
29315 fi
29316 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29317 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29318  if test "$ac_cv_cxx_have_global_hash_map" = yes
29319  then
29320
29321 cat >>confdefs.h <<\_ACEOF
29322 #define HAVE_GLOBAL_HASH_MAP 1
29323 _ACEOF
29324
29325  else
29326
29327 cat >>confdefs.h <<\_ACEOF
29328 #define HAVE_GLOBAL_HASH_MAP 0
29329 _ACEOF
29330
29331  fi
29332
29333 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29334 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29335 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29336   echo $ECHO_N "(cached) $ECHO_C" >&6
29337 else
29338
29339   ac_ext=cc
29340 ac_cpp='$CXXCPP $CPPFLAGS'
29341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29344
29345   cat >conftest.$ac_ext <<_ACEOF
29346 /* confdefs.h.  */
29347 _ACEOF
29348 cat confdefs.h >>conftest.$ac_ext
29349 cat >>conftest.$ac_ext <<_ACEOF
29350 /* end confdefs.h.  */
29351 #include <ext/hash_set>
29352 #ifdef HAVE_NAMESPACES
29353 using namespace std;
29354 #endif
29355 int
29356 main ()
29357 {
29358 hash_set<int> t;
29359   ;
29360   return 0;
29361 }
29362 _ACEOF
29363 rm -f conftest.$ac_objext
29364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29365   (eval $ac_compile) 2>conftest.er1
29366   ac_status=$?
29367   grep -v '^ *+' conftest.er1 >conftest.err
29368   rm -f conftest.er1
29369   cat conftest.err >&5
29370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371   (exit $ac_status); } &&
29372          { ac_try='test -z "$ac_cxx_werror_flag"
29373                          || test ! -s conftest.err'
29374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29375   (eval $ac_try) 2>&5
29376   ac_status=$?
29377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378   (exit $ac_status); }; } &&
29379          { ac_try='test -s conftest.$ac_objext'
29380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29381   (eval $ac_try) 2>&5
29382   ac_status=$?
29383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384   (exit $ac_status); }; }; then
29385   ac_cv_cxx_have_std_ext_hash_set=yes
29386 else
29387   echo "$as_me: failed program was:" >&5
29388 sed 's/^/| /' conftest.$ac_ext >&5
29389
29390 ac_cv_cxx_have_std_ext_hash_set=no
29391 fi
29392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29393   ac_ext=c
29394 ac_cpp='$CPP $CPPFLAGS'
29395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29398
29399 fi
29400 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29401 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29402  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29403  then
29404
29405 cat >>confdefs.h <<\_ACEOF
29406 #define HAVE_STD_EXT_HASH_SET 1
29407 _ACEOF
29408
29409  else
29410
29411 cat >>confdefs.h <<\_ACEOF
29412 #define HAVE_STD_EXT_HASH_SET 0
29413 _ACEOF
29414
29415  fi
29416
29417  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29418 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29419 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29420   echo $ECHO_N "(cached) $ECHO_C" >&6
29421 else
29422
29423   ac_ext=cc
29424 ac_cpp='$CXXCPP $CPPFLAGS'
29425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29428
29429   cat >conftest.$ac_ext <<_ACEOF
29430 /* confdefs.h.  */
29431 _ACEOF
29432 cat confdefs.h >>conftest.$ac_ext
29433 cat >>conftest.$ac_ext <<_ACEOF
29434 /* end confdefs.h.  */
29435 #include <ext/hash_set>
29436 #ifdef HAVE_NAMESPACES
29437 using namespace __gnu_cxx;
29438 #endif
29439 int
29440 main ()
29441 {
29442 hash_set<int> t;
29443   ;
29444   return 0;
29445 }
29446 _ACEOF
29447 rm -f conftest.$ac_objext
29448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29449   (eval $ac_compile) 2>conftest.er1
29450   ac_status=$?
29451   grep -v '^ *+' conftest.er1 >conftest.err
29452   rm -f conftest.er1
29453   cat conftest.err >&5
29454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29455   (exit $ac_status); } &&
29456          { ac_try='test -z "$ac_cxx_werror_flag"
29457                          || test ! -s conftest.err'
29458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29459   (eval $ac_try) 2>&5
29460   ac_status=$?
29461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462   (exit $ac_status); }; } &&
29463          { ac_try='test -s conftest.$ac_objext'
29464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29465   (eval $ac_try) 2>&5
29466   ac_status=$?
29467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468   (exit $ac_status); }; }; then
29469   ac_cv_cxx_have_gnu_ext_hash_set=yes
29470 else
29471   echo "$as_me: failed program was:" >&5
29472 sed 's/^/| /' conftest.$ac_ext >&5
29473
29474 ac_cv_cxx_have_gnu_ext_hash_set=no
29475 fi
29476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29477   ac_ext=c
29478 ac_cpp='$CPP $CPPFLAGS'
29479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29482
29483 fi
29484 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29485 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29486  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29487  then
29488
29489 cat >>confdefs.h <<\_ACEOF
29490 #define HAVE_GNU_EXT_HASH_SET 1
29491 _ACEOF
29492
29493  else
29494
29495 cat >>confdefs.h <<\_ACEOF
29496 #define HAVE_GNU_EXT_HASH_SET 0
29497 _ACEOF
29498
29499  fi
29500
29501  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29502 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29503 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29504   echo $ECHO_N "(cached) $ECHO_C" >&6
29505 else
29506
29507   ac_ext=cc
29508 ac_cpp='$CXXCPP $CPPFLAGS'
29509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29512
29513   cat >conftest.$ac_ext <<_ACEOF
29514 /* confdefs.h.  */
29515 _ACEOF
29516 cat confdefs.h >>conftest.$ac_ext
29517 cat >>conftest.$ac_ext <<_ACEOF
29518 /* end confdefs.h.  */
29519 #include <hash_set>
29520 int
29521 main ()
29522 {
29523 hash_set<int> t; return 0;
29524   ;
29525   return 0;
29526 }
29527 _ACEOF
29528 rm -f conftest.$ac_objext
29529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29530   (eval $ac_compile) 2>conftest.er1
29531   ac_status=$?
29532   grep -v '^ *+' conftest.er1 >conftest.err
29533   rm -f conftest.er1
29534   cat conftest.err >&5
29535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536   (exit $ac_status); } &&
29537          { ac_try='test -z "$ac_cxx_werror_flag"
29538                          || test ! -s conftest.err'
29539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29540   (eval $ac_try) 2>&5
29541   ac_status=$?
29542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29543   (exit $ac_status); }; } &&
29544          { ac_try='test -s conftest.$ac_objext'
29545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29546   (eval $ac_try) 2>&5
29547   ac_status=$?
29548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549   (exit $ac_status); }; }; then
29550   ac_cv_cxx_have_global_hash_set=yes
29551 else
29552   echo "$as_me: failed program was:" >&5
29553 sed 's/^/| /' conftest.$ac_ext >&5
29554
29555 ac_cv_cxx_have_global_hash_set=no
29556 fi
29557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29558   ac_ext=c
29559 ac_cpp='$CPP $CPPFLAGS'
29560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29563
29564 fi
29565 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29566 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29567  if test "$ac_cv_cxx_have_global_hash_set" = yes
29568  then
29569
29570 cat >>confdefs.h <<\_ACEOF
29571 #define HAVE_GLOBAL_HASH_SET 1
29572 _ACEOF
29573
29574  else
29575
29576 cat >>confdefs.h <<\_ACEOF
29577 #define HAVE_GLOBAL_HASH_SET 0
29578 _ACEOF
29579
29580  fi
29581
29582 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29583 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29584 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29585   echo $ECHO_N "(cached) $ECHO_C" >&6
29586 else
29587
29588   ac_ext=cc
29589 ac_cpp='$CXXCPP $CPPFLAGS'
29590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29593
29594   cat >conftest.$ac_ext <<_ACEOF
29595 /* confdefs.h.  */
29596 _ACEOF
29597 cat confdefs.h >>conftest.$ac_ext
29598 cat >>conftest.$ac_ext <<_ACEOF
29599 /* end confdefs.h.  */
29600 #include <iterator>
29601 #ifdef HAVE_NAMESPACES
29602 using namespace std;
29603 #endif
29604 int
29605 main ()
29606 {
29607 iterator<int,int,int> t; return 0;
29608   ;
29609   return 0;
29610 }
29611 _ACEOF
29612 rm -f conftest.$ac_objext
29613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29614   (eval $ac_compile) 2>conftest.er1
29615   ac_status=$?
29616   grep -v '^ *+' conftest.er1 >conftest.err
29617   rm -f conftest.er1
29618   cat conftest.err >&5
29619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620   (exit $ac_status); } &&
29621          { ac_try='test -z "$ac_cxx_werror_flag"
29622                          || test ! -s conftest.err'
29623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29624   (eval $ac_try) 2>&5
29625   ac_status=$?
29626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627   (exit $ac_status); }; } &&
29628          { ac_try='test -s conftest.$ac_objext'
29629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29630   (eval $ac_try) 2>&5
29631   ac_status=$?
29632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633   (exit $ac_status); }; }; then
29634   ac_cv_cxx_have_std_iterator=yes
29635 else
29636   echo "$as_me: failed program was:" >&5
29637 sed 's/^/| /' conftest.$ac_ext >&5
29638
29639 ac_cv_cxx_have_std_iterator=no
29640 fi
29641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29642   ac_ext=c
29643 ac_cpp='$CPP $CPPFLAGS'
29644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29647
29648
29649 fi
29650 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29651 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29652 if test "$ac_cv_cxx_have_std_iterator" = yes
29653 then
29654
29655 cat >>confdefs.h <<\_ACEOF
29656 #define HAVE_STD_ITERATOR 1
29657 _ACEOF
29658
29659 else
29660
29661 cat >>confdefs.h <<\_ACEOF
29662 #define HAVE_STD_ITERATOR 0
29663 _ACEOF
29664
29665 fi
29666
29667 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29668 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29669 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29670   echo $ECHO_N "(cached) $ECHO_C" >&6
29671 else
29672
29673   ac_ext=cc
29674 ac_cpp='$CXXCPP $CPPFLAGS'
29675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29678
29679   cat >conftest.$ac_ext <<_ACEOF
29680 /* confdefs.h.  */
29681 _ACEOF
29682 cat confdefs.h >>conftest.$ac_ext
29683 cat >>conftest.$ac_ext <<_ACEOF
29684 /* end confdefs.h.  */
29685 #include <iterator>
29686 #ifdef HAVE_NAMESPACES
29687 using namespace std;
29688 #endif
29689 int
29690 main ()
29691 {
29692 bidirectional_iterator<int,int> t; return 0;
29693   ;
29694   return 0;
29695 }
29696 _ACEOF
29697 rm -f conftest.$ac_objext
29698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29699   (eval $ac_compile) 2>conftest.er1
29700   ac_status=$?
29701   grep -v '^ *+' conftest.er1 >conftest.err
29702   rm -f conftest.er1
29703   cat conftest.err >&5
29704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705   (exit $ac_status); } &&
29706          { ac_try='test -z "$ac_cxx_werror_flag"
29707                          || test ! -s conftest.err'
29708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29709   (eval $ac_try) 2>&5
29710   ac_status=$?
29711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29712   (exit $ac_status); }; } &&
29713          { ac_try='test -s conftest.$ac_objext'
29714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29715   (eval $ac_try) 2>&5
29716   ac_status=$?
29717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718   (exit $ac_status); }; }; then
29719   ac_cv_cxx_have_bi_iterator=yes
29720 else
29721   echo "$as_me: failed program was:" >&5
29722 sed 's/^/| /' conftest.$ac_ext >&5
29723
29724 ac_cv_cxx_have_bi_iterator=no
29725 fi
29726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29727   ac_ext=c
29728 ac_cpp='$CPP $CPPFLAGS'
29729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29732
29733
29734 fi
29735 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29736 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29737 if test "$ac_cv_cxx_have_bi_iterator" = yes
29738 then
29739
29740 cat >>confdefs.h <<\_ACEOF
29741 #define HAVE_BI_ITERATOR 1
29742 _ACEOF
29743
29744 else
29745
29746 cat >>confdefs.h <<\_ACEOF
29747 #define HAVE_BI_ITERATOR 0
29748 _ACEOF
29749
29750 fi
29751
29752 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29753 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29754 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29755   echo $ECHO_N "(cached) $ECHO_C" >&6
29756 else
29757
29758   ac_ext=cc
29759 ac_cpp='$CXXCPP $CPPFLAGS'
29760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29763
29764   cat >conftest.$ac_ext <<_ACEOF
29765 /* confdefs.h.  */
29766 _ACEOF
29767 cat confdefs.h >>conftest.$ac_ext
29768 cat >>conftest.$ac_ext <<_ACEOF
29769 /* end confdefs.h.  */
29770 #include <iterator>
29771 #ifdef HAVE_NAMESPACES
29772 using namespace std;
29773 #endif
29774 int
29775 main ()
29776 {
29777 forward_iterator<int,int> t; return 0;
29778   ;
29779   return 0;
29780 }
29781 _ACEOF
29782 rm -f conftest.$ac_objext
29783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29784   (eval $ac_compile) 2>conftest.er1
29785   ac_status=$?
29786   grep -v '^ *+' conftest.er1 >conftest.err
29787   rm -f conftest.er1
29788   cat conftest.err >&5
29789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790   (exit $ac_status); } &&
29791          { ac_try='test -z "$ac_cxx_werror_flag"
29792                          || test ! -s conftest.err'
29793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29794   (eval $ac_try) 2>&5
29795   ac_status=$?
29796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797   (exit $ac_status); }; } &&
29798          { ac_try='test -s conftest.$ac_objext'
29799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29800   (eval $ac_try) 2>&5
29801   ac_status=$?
29802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29803   (exit $ac_status); }; }; then
29804   ac_cv_cxx_have_fwd_iterator=yes
29805 else
29806   echo "$as_me: failed program was:" >&5
29807 sed 's/^/| /' conftest.$ac_ext >&5
29808
29809 ac_cv_cxx_have_fwd_iterator=no
29810 fi
29811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29812   ac_ext=c
29813 ac_cpp='$CPP $CPPFLAGS'
29814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29817
29818
29819 fi
29820 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29821 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29822 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29823 then
29824
29825 cat >>confdefs.h <<\_ACEOF
29826 #define HAVE_FWD_ITERATOR 1
29827 _ACEOF
29828
29829 else
29830
29831 cat >>confdefs.h <<\_ACEOF
29832 #define HAVE_FWD_ITERATOR 0
29833 _ACEOF
29834
29835 fi
29836
29837
29838 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29839 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29840 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29841   echo $ECHO_N "(cached) $ECHO_C" >&6
29842 else
29843   ac_ext=cc
29844 ac_cpp='$CXXCPP $CPPFLAGS'
29845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29848
29849    cat >conftest.$ac_ext <<_ACEOF
29850 /* confdefs.h.  */
29851 _ACEOF
29852 cat confdefs.h >>conftest.$ac_ext
29853 cat >>conftest.$ac_ext <<_ACEOF
29854 /* end confdefs.h.  */
29855 #include <math.h>
29856 int
29857 main ()
29858 {
29859 float f; isnan(f);
29860   ;
29861   return 0;
29862 }
29863 _ACEOF
29864 rm -f conftest.$ac_objext
29865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29866   (eval $ac_compile) 2>conftest.er1
29867   ac_status=$?
29868   grep -v '^ *+' conftest.er1 >conftest.err
29869   rm -f conftest.er1
29870   cat conftest.err >&5
29871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872   (exit $ac_status); } &&
29873          { ac_try='test -z "$ac_cxx_werror_flag"
29874                          || test ! -s conftest.err'
29875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29876   (eval $ac_try) 2>&5
29877   ac_status=$?
29878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879   (exit $ac_status); }; } &&
29880          { ac_try='test -s conftest.$ac_objext'
29881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29882   (eval $ac_try) 2>&5
29883   ac_status=$?
29884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885   (exit $ac_status); }; }; then
29886   ac_cv_func_isnan_in_math_h=yes
29887 else
29888   echo "$as_me: failed program was:" >&5
29889 sed 's/^/| /' conftest.$ac_ext >&5
29890
29891 ac_cv_func_isnan_in_math_h=no
29892 fi
29893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29894   ac_ext=c
29895 ac_cpp='$CPP $CPPFLAGS'
29896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29899
29900 fi
29901 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29902 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29903
29904
29905 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29906
29907 cat >>confdefs.h <<\_ACEOF
29908 #define HAVE_ISNAN_IN_MATH_H 1
29909 _ACEOF
29910
29911 fi
29912
29913 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29914 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29915 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29916   echo $ECHO_N "(cached) $ECHO_C" >&6
29917 else
29918   ac_ext=cc
29919 ac_cpp='$CXXCPP $CPPFLAGS'
29920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29923
29924    cat >conftest.$ac_ext <<_ACEOF
29925 /* confdefs.h.  */
29926 _ACEOF
29927 cat confdefs.h >>conftest.$ac_ext
29928 cat >>conftest.$ac_ext <<_ACEOF
29929 /* end confdefs.h.  */
29930 #include <cmath>
29931 int
29932 main ()
29933 {
29934 float f; isnan(f);
29935   ;
29936   return 0;
29937 }
29938 _ACEOF
29939 rm -f conftest.$ac_objext
29940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29941   (eval $ac_compile) 2>conftest.er1
29942   ac_status=$?
29943   grep -v '^ *+' conftest.er1 >conftest.err
29944   rm -f conftest.er1
29945   cat conftest.err >&5
29946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947   (exit $ac_status); } &&
29948          { ac_try='test -z "$ac_cxx_werror_flag"
29949                          || test ! -s conftest.err'
29950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29951   (eval $ac_try) 2>&5
29952   ac_status=$?
29953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29954   (exit $ac_status); }; } &&
29955          { ac_try='test -s conftest.$ac_objext'
29956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29957   (eval $ac_try) 2>&5
29958   ac_status=$?
29959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29960   (exit $ac_status); }; }; then
29961   ac_cv_func_isnan_in_cmath=yes
29962 else
29963   echo "$as_me: failed program was:" >&5
29964 sed 's/^/| /' conftest.$ac_ext >&5
29965
29966 ac_cv_func_isnan_in_cmath=no
29967 fi
29968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29969   ac_ext=c
29970 ac_cpp='$CPP $CPPFLAGS'
29971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29974
29975 fi
29976 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29977 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29978
29979 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29980
29981 cat >>confdefs.h <<\_ACEOF
29982 #define HAVE_ISNAN_IN_CMATH 1
29983 _ACEOF
29984
29985 fi
29986
29987 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29988 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29989 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29990   echo $ECHO_N "(cached) $ECHO_C" >&6
29991 else
29992   ac_ext=cc
29993 ac_cpp='$CXXCPP $CPPFLAGS'
29994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29997
29998    cat >conftest.$ac_ext <<_ACEOF
29999 /* confdefs.h.  */
30000 _ACEOF
30001 cat confdefs.h >>conftest.$ac_ext
30002 cat >>conftest.$ac_ext <<_ACEOF
30003 /* end confdefs.h.  */
30004 #include <cmath>
30005 int
30006 main ()
30007 {
30008 float f; std::isnan(f);
30009   ;
30010   return 0;
30011 }
30012 _ACEOF
30013 rm -f conftest.$ac_objext
30014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30015   (eval $ac_compile) 2>conftest.er1
30016   ac_status=$?
30017   grep -v '^ *+' conftest.er1 >conftest.err
30018   rm -f conftest.er1
30019   cat conftest.err >&5
30020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021   (exit $ac_status); } &&
30022          { ac_try='test -z "$ac_cxx_werror_flag"
30023                          || test ! -s conftest.err'
30024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30025   (eval $ac_try) 2>&5
30026   ac_status=$?
30027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028   (exit $ac_status); }; } &&
30029          { ac_try='test -s conftest.$ac_objext'
30030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30031   (eval $ac_try) 2>&5
30032   ac_status=$?
30033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30034   (exit $ac_status); }; }; then
30035   ac_cv_func_std_isnan_in_cmath=yes
30036 else
30037   echo "$as_me: failed program was:" >&5
30038 sed 's/^/| /' conftest.$ac_ext >&5
30039
30040 ac_cv_func_std_isnan_in_cmath=no
30041 fi
30042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30043   ac_ext=c
30044 ac_cpp='$CPP $CPPFLAGS'
30045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30048
30049 fi
30050 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30051 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
30052
30053 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30054
30055 cat >>confdefs.h <<\_ACEOF
30056 #define HAVE_STD_ISNAN_IN_CMATH 1
30057 _ACEOF
30058
30059 fi
30060
30061
30062 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30063 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
30064 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30065   echo $ECHO_N "(cached) $ECHO_C" >&6
30066 else
30067   ac_ext=cc
30068 ac_cpp='$CXXCPP $CPPFLAGS'
30069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30072
30073    cat >conftest.$ac_ext <<_ACEOF
30074 /* confdefs.h.  */
30075 _ACEOF
30076 cat confdefs.h >>conftest.$ac_ext
30077 cat >>conftest.$ac_ext <<_ACEOF
30078 /* end confdefs.h.  */
30079 #include <math.h>
30080 int
30081 main ()
30082 {
30083 float f; isinf(f);
30084   ;
30085   return 0;
30086 }
30087 _ACEOF
30088 rm -f conftest.$ac_objext
30089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30090   (eval $ac_compile) 2>conftest.er1
30091   ac_status=$?
30092   grep -v '^ *+' conftest.er1 >conftest.err
30093   rm -f conftest.er1
30094   cat conftest.err >&5
30095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096   (exit $ac_status); } &&
30097          { ac_try='test -z "$ac_cxx_werror_flag"
30098                          || test ! -s conftest.err'
30099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30100   (eval $ac_try) 2>&5
30101   ac_status=$?
30102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103   (exit $ac_status); }; } &&
30104          { ac_try='test -s conftest.$ac_objext'
30105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30106   (eval $ac_try) 2>&5
30107   ac_status=$?
30108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109   (exit $ac_status); }; }; then
30110   ac_cv_func_isinf_in_math_h=yes
30111 else
30112   echo "$as_me: failed program was:" >&5
30113 sed 's/^/| /' conftest.$ac_ext >&5
30114
30115 ac_cv_func_isinf_in_math_h=no
30116 fi
30117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30118   ac_ext=c
30119 ac_cpp='$CPP $CPPFLAGS'
30120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30123
30124 fi
30125 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30126 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
30127
30128 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30129
30130 cat >>confdefs.h <<\_ACEOF
30131 #define HAVE_ISINF_IN_MATH_H 1
30132 _ACEOF
30133
30134 fi
30135
30136 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30137 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30138 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30139   echo $ECHO_N "(cached) $ECHO_C" >&6
30140 else
30141   ac_ext=cc
30142 ac_cpp='$CXXCPP $CPPFLAGS'
30143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30146
30147    cat >conftest.$ac_ext <<_ACEOF
30148 /* confdefs.h.  */
30149 _ACEOF
30150 cat confdefs.h >>conftest.$ac_ext
30151 cat >>conftest.$ac_ext <<_ACEOF
30152 /* end confdefs.h.  */
30153 #include <cmath>
30154 int
30155 main ()
30156 {
30157 float f; isinf(f);
30158   ;
30159   return 0;
30160 }
30161 _ACEOF
30162 rm -f conftest.$ac_objext
30163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30164   (eval $ac_compile) 2>conftest.er1
30165   ac_status=$?
30166   grep -v '^ *+' conftest.er1 >conftest.err
30167   rm -f conftest.er1
30168   cat conftest.err >&5
30169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170   (exit $ac_status); } &&
30171          { ac_try='test -z "$ac_cxx_werror_flag"
30172                          || test ! -s conftest.err'
30173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30174   (eval $ac_try) 2>&5
30175   ac_status=$?
30176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177   (exit $ac_status); }; } &&
30178          { ac_try='test -s conftest.$ac_objext'
30179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30180   (eval $ac_try) 2>&5
30181   ac_status=$?
30182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183   (exit $ac_status); }; }; then
30184   ac_cv_func_isinf_in_cmath=yes
30185 else
30186   echo "$as_me: failed program was:" >&5
30187 sed 's/^/| /' conftest.$ac_ext >&5
30188
30189 ac_cv_func_isinf_in_cmath=no
30190 fi
30191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30192   ac_ext=c
30193 ac_cpp='$CPP $CPPFLAGS'
30194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30197
30198 fi
30199 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30200 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
30201
30202 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30203
30204 cat >>confdefs.h <<\_ACEOF
30205 #define HAVE_ISINF_IN_CMATH 1
30206 _ACEOF
30207
30208 fi
30209
30210 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30211 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30212 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30213   echo $ECHO_N "(cached) $ECHO_C" >&6
30214 else
30215   ac_ext=cc
30216 ac_cpp='$CXXCPP $CPPFLAGS'
30217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30220
30221    cat >conftest.$ac_ext <<_ACEOF
30222 /* confdefs.h.  */
30223 _ACEOF
30224 cat confdefs.h >>conftest.$ac_ext
30225 cat >>conftest.$ac_ext <<_ACEOF
30226 /* end confdefs.h.  */
30227 #include <cmath>
30228 int
30229 main ()
30230 {
30231 float f; std::isinf(f)}
30232   ;
30233   return 0;
30234 }
30235 _ACEOF
30236 rm -f conftest.$ac_objext
30237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30238   (eval $ac_compile) 2>conftest.er1
30239   ac_status=$?
30240   grep -v '^ *+' conftest.er1 >conftest.err
30241   rm -f conftest.er1
30242   cat conftest.err >&5
30243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244   (exit $ac_status); } &&
30245          { ac_try='test -z "$ac_cxx_werror_flag"
30246                          || test ! -s conftest.err'
30247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30248   (eval $ac_try) 2>&5
30249   ac_status=$?
30250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251   (exit $ac_status); }; } &&
30252          { ac_try='test -s conftest.$ac_objext'
30253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30254   (eval $ac_try) 2>&5
30255   ac_status=$?
30256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257   (exit $ac_status); }; }; then
30258   ac_cv_func_std_isinf_in_cmath=yes
30259 else
30260   echo "$as_me: failed program was:" >&5
30261 sed 's/^/| /' conftest.$ac_ext >&5
30262
30263 ac_cv_func_std_isinf_in_cmath=no
30264 fi
30265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30266   ac_ext=c
30267 ac_cpp='$CPP $CPPFLAGS'
30268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30271
30272 fi
30273 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30274 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
30275
30276 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
30277
30278 cat >>confdefs.h <<\_ACEOF
30279 #define HAVE_STD_ISINF_IN_CMATH 1
30280 _ACEOF
30281
30282 fi
30283
30284 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30285 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30286 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30287   echo $ECHO_N "(cached) $ECHO_C" >&6
30288 else
30289   ac_ext=cc
30290 ac_cpp='$CXXCPP $CPPFLAGS'
30291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30294
30295    cat >conftest.$ac_ext <<_ACEOF
30296 /* confdefs.h.  */
30297 _ACEOF
30298 cat confdefs.h >>conftest.$ac_ext
30299 cat >>conftest.$ac_ext <<_ACEOF
30300 /* end confdefs.h.  */
30301 #include <ieeefp.h>
30302 int
30303 main ()
30304 {
30305 float f; finite(f);
30306   ;
30307   return 0;
30308 }
30309 _ACEOF
30310 rm -f conftest.$ac_objext
30311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30312   (eval $ac_compile) 2>conftest.er1
30313   ac_status=$?
30314   grep -v '^ *+' conftest.er1 >conftest.err
30315   rm -f conftest.er1
30316   cat conftest.err >&5
30317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30318   (exit $ac_status); } &&
30319          { ac_try='test -z "$ac_cxx_werror_flag"
30320                          || test ! -s conftest.err'
30321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30322   (eval $ac_try) 2>&5
30323   ac_status=$?
30324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30325   (exit $ac_status); }; } &&
30326          { ac_try='test -s conftest.$ac_objext'
30327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30328   (eval $ac_try) 2>&5
30329   ac_status=$?
30330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331   (exit $ac_status); }; }; then
30332   ac_cv_func_finite_in_ieeefp_h=yes
30333 else
30334   echo "$as_me: failed program was:" >&5
30335 sed 's/^/| /' conftest.$ac_ext >&5
30336
30337 ac_cv_func_finite_in_ieeefp_h=no
30338 fi
30339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30340   ac_ext=c
30341 ac_cpp='$CPP $CPPFLAGS'
30342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30345
30346 fi
30347 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30348 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30349
30350 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30351
30352 cat >>confdefs.h <<\_ACEOF
30353 #define HAVE_FINITE_IN_IEEEFP_H 1
30354 _ACEOF
30355
30356 fi
30357
30358
30359
30360
30361
30362 for ac_header in stdlib.h unistd.h
30363 do
30364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30366   echo "$as_me:$LINENO: checking for $ac_header" >&5
30367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30369   echo $ECHO_N "(cached) $ECHO_C" >&6
30370 fi
30371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30373 else
30374   # Is the header compilable?
30375 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
30384 #include <$ac_header>
30385 _ACEOF
30386 rm -f conftest.$ac_objext
30387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30388   (eval $ac_compile) 2>conftest.er1
30389   ac_status=$?
30390   grep -v '^ *+' conftest.er1 >conftest.err
30391   rm -f conftest.er1
30392   cat conftest.err >&5
30393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394   (exit $ac_status); } &&
30395          { ac_try='test -z "$ac_c_werror_flag"
30396                          || test ! -s conftest.err'
30397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30398   (eval $ac_try) 2>&5
30399   ac_status=$?
30400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401   (exit $ac_status); }; } &&
30402          { ac_try='test -s conftest.$ac_objext'
30403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30404   (eval $ac_try) 2>&5
30405   ac_status=$?
30406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30407   (exit $ac_status); }; }; then
30408   ac_header_compiler=yes
30409 else
30410   echo "$as_me: failed program was:" >&5
30411 sed 's/^/| /' conftest.$ac_ext >&5
30412
30413 ac_header_compiler=no
30414 fi
30415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30417 echo "${ECHO_T}$ac_header_compiler" >&6
30418
30419 # Is the header present?
30420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30422 cat >conftest.$ac_ext <<_ACEOF
30423 /* confdefs.h.  */
30424 _ACEOF
30425 cat confdefs.h >>conftest.$ac_ext
30426 cat >>conftest.$ac_ext <<_ACEOF
30427 /* end confdefs.h.  */
30428 #include <$ac_header>
30429 _ACEOF
30430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30431   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30432   ac_status=$?
30433   grep -v '^ *+' conftest.er1 >conftest.err
30434   rm -f conftest.er1
30435   cat conftest.err >&5
30436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30437   (exit $ac_status); } >/dev/null; then
30438   if test -s conftest.err; then
30439     ac_cpp_err=$ac_c_preproc_warn_flag
30440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30441   else
30442     ac_cpp_err=
30443   fi
30444 else
30445   ac_cpp_err=yes
30446 fi
30447 if test -z "$ac_cpp_err"; then
30448   ac_header_preproc=yes
30449 else
30450   echo "$as_me: failed program was:" >&5
30451 sed 's/^/| /' conftest.$ac_ext >&5
30452
30453   ac_header_preproc=no
30454 fi
30455 rm -f conftest.err conftest.$ac_ext
30456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30457 echo "${ECHO_T}$ac_header_preproc" >&6
30458
30459 # So?  What about this header?
30460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30461   yes:no: )
30462     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30466     ac_header_preproc=yes
30467     ;;
30468   no:yes:* )
30469     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30471     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30472 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30473     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30475     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30476 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30479     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30481     (
30482       cat <<\_ASBOX
30483 ## ----------------------------------- ##
30484 ## Report this to llvmbugs@cs.uiuc.edu ##
30485 ## ----------------------------------- ##
30486 _ASBOX
30487     ) |
30488       sed "s/^/$as_me: WARNING:     /" >&2
30489     ;;
30490 esac
30491 echo "$as_me:$LINENO: checking for $ac_header" >&5
30492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30494   echo $ECHO_N "(cached) $ECHO_C" >&6
30495 else
30496   eval "$as_ac_Header=\$ac_header_preproc"
30497 fi
30498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30500
30501 fi
30502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30503   cat >>confdefs.h <<_ACEOF
30504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30505 _ACEOF
30506
30507 fi
30508
30509 done
30510
30511
30512 for ac_func in getpagesize
30513 do
30514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30515 echo "$as_me:$LINENO: checking for $ac_func" >&5
30516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30517 if eval "test \"\${$as_ac_var+set}\" = set"; then
30518   echo $ECHO_N "(cached) $ECHO_C" >&6
30519 else
30520   cat >conftest.$ac_ext <<_ACEOF
30521 /* confdefs.h.  */
30522 _ACEOF
30523 cat confdefs.h >>conftest.$ac_ext
30524 cat >>conftest.$ac_ext <<_ACEOF
30525 /* end confdefs.h.  */
30526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30528 #define $ac_func innocuous_$ac_func
30529
30530 /* System header to define __stub macros and hopefully few prototypes,
30531     which can conflict with char $ac_func (); below.
30532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30533     <limits.h> exists even on freestanding compilers.  */
30534
30535 #ifdef __STDC__
30536 # include <limits.h>
30537 #else
30538 # include <assert.h>
30539 #endif
30540
30541 #undef $ac_func
30542
30543 /* Override any gcc2 internal prototype to avoid an error.  */
30544 #ifdef __cplusplus
30545 extern "C"
30546 {
30547 #endif
30548 /* We use char because int might match the return type of a gcc2
30549    builtin and then its argument prototype would still apply.  */
30550 char $ac_func ();
30551 /* The GNU C library defines this for functions which it implements
30552     to always fail with ENOSYS.  Some functions are actually named
30553     something starting with __ and the normal name is an alias.  */
30554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30555 choke me
30556 #else
30557 char (*f) () = $ac_func;
30558 #endif
30559 #ifdef __cplusplus
30560 }
30561 #endif
30562
30563 int
30564 main ()
30565 {
30566 return f != $ac_func;
30567   ;
30568   return 0;
30569 }
30570 _ACEOF
30571 rm -f conftest.$ac_objext conftest$ac_exeext
30572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30573   (eval $ac_link) 2>conftest.er1
30574   ac_status=$?
30575   grep -v '^ *+' conftest.er1 >conftest.err
30576   rm -f conftest.er1
30577   cat conftest.err >&5
30578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30579   (exit $ac_status); } &&
30580          { ac_try='test -z "$ac_c_werror_flag"
30581                          || test ! -s conftest.err'
30582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30583   (eval $ac_try) 2>&5
30584   ac_status=$?
30585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30586   (exit $ac_status); }; } &&
30587          { ac_try='test -s conftest$ac_exeext'
30588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30589   (eval $ac_try) 2>&5
30590   ac_status=$?
30591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592   (exit $ac_status); }; }; then
30593   eval "$as_ac_var=yes"
30594 else
30595   echo "$as_me: failed program was:" >&5
30596 sed 's/^/| /' conftest.$ac_ext >&5
30597
30598 eval "$as_ac_var=no"
30599 fi
30600 rm -f conftest.err conftest.$ac_objext \
30601       conftest$ac_exeext conftest.$ac_ext
30602 fi
30603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30605 if test `eval echo '${'$as_ac_var'}'` = yes; then
30606   cat >>confdefs.h <<_ACEOF
30607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30608 _ACEOF
30609
30610 fi
30611 done
30612
30613 echo "$as_me:$LINENO: checking for working mmap" >&5
30614 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30615 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30616   echo $ECHO_N "(cached) $ECHO_C" >&6
30617 else
30618   if test "$cross_compiling" = yes; then
30619   ac_cv_func_mmap_fixed_mapped=no
30620 else
30621   cat >conftest.$ac_ext <<_ACEOF
30622 /* confdefs.h.  */
30623 _ACEOF
30624 cat confdefs.h >>conftest.$ac_ext
30625 cat >>conftest.$ac_ext <<_ACEOF
30626 /* end confdefs.h.  */
30627 $ac_includes_default
30628 /* malloc might have been renamed as rpl_malloc. */
30629 #undef malloc
30630
30631 /* Thanks to Mike Haertel and Jim Avera for this test.
30632    Here is a matrix of mmap possibilities:
30633         mmap private not fixed
30634         mmap private fixed at somewhere currently unmapped
30635         mmap private fixed at somewhere already mapped
30636         mmap shared not fixed
30637         mmap shared fixed at somewhere currently unmapped
30638         mmap shared fixed at somewhere already mapped
30639    For private mappings, we should verify that changes cannot be read()
30640    back from the file, nor mmap's back from the file at a different
30641    address.  (There have been systems where private was not correctly
30642    implemented like the infamous i386 svr4.0, and systems where the
30643    VM page cache was not coherent with the file system buffer cache
30644    like early versions of FreeBSD and possibly contemporary NetBSD.)
30645    For shared mappings, we should conversely verify that changes get
30646    propagated back to all the places they're supposed to be.
30647
30648    Grep wants private fixed already mapped.
30649    The main things grep needs to know about mmap are:
30650    * does it exist and is it safe to write into the mmap'd area
30651    * how to use it (BSD variants)  */
30652
30653 #include <fcntl.h>
30654 #include <sys/mman.h>
30655
30656 #if !STDC_HEADERS && !HAVE_STDLIB_H
30657 char *malloc ();
30658 #endif
30659
30660 /* This mess was copied from the GNU getpagesize.h.  */
30661 #if !HAVE_GETPAGESIZE
30662 /* Assume that all systems that can run configure have sys/param.h.  */
30663 # if !HAVE_SYS_PARAM_H
30664 #  define HAVE_SYS_PARAM_H 1
30665 # endif
30666
30667 # ifdef _SC_PAGESIZE
30668 #  define getpagesize() sysconf(_SC_PAGESIZE)
30669 # else /* no _SC_PAGESIZE */
30670 #  if HAVE_SYS_PARAM_H
30671 #   include <sys/param.h>
30672 #   ifdef EXEC_PAGESIZE
30673 #    define getpagesize() EXEC_PAGESIZE
30674 #   else /* no EXEC_PAGESIZE */
30675 #    ifdef NBPG
30676 #     define getpagesize() NBPG * CLSIZE
30677 #     ifndef CLSIZE
30678 #      define CLSIZE 1
30679 #     endif /* no CLSIZE */
30680 #    else /* no NBPG */
30681 #     ifdef NBPC
30682 #      define getpagesize() NBPC
30683 #     else /* no NBPC */
30684 #      ifdef PAGESIZE
30685 #       define getpagesize() PAGESIZE
30686 #      endif /* PAGESIZE */
30687 #     endif /* no NBPC */
30688 #    endif /* no NBPG */
30689 #   endif /* no EXEC_PAGESIZE */
30690 #  else /* no HAVE_SYS_PARAM_H */
30691 #   define getpagesize() 8192   /* punt totally */
30692 #  endif /* no HAVE_SYS_PARAM_H */
30693 # endif /* no _SC_PAGESIZE */
30694
30695 #endif /* no HAVE_GETPAGESIZE */
30696
30697 int
30698 main ()
30699 {
30700   char *data, *data2, *data3;
30701   int i, pagesize;
30702   int fd;
30703
30704   pagesize = getpagesize ();
30705
30706   /* First, make a file with some known garbage in it. */
30707   data = (char *) malloc (pagesize);
30708   if (!data)
30709     exit (1);
30710   for (i = 0; i < pagesize; ++i)
30711     *(data + i) = rand ();
30712   umask (0);
30713   fd = creat ("conftest.mmap", 0600);
30714   if (fd < 0)
30715     exit (1);
30716   if (write (fd, data, pagesize) != pagesize)
30717     exit (1);
30718   close (fd);
30719
30720   /* Next, try to mmap the file at a fixed address which already has
30721      something else allocated at it.  If we can, also make sure that
30722      we see the same garbage.  */
30723   fd = open ("conftest.mmap", O_RDWR);
30724   if (fd < 0)
30725     exit (1);
30726   data2 = (char *) malloc (2 * pagesize);
30727   if (!data2)
30728     exit (1);
30729   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30730   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30731                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
30732     exit (1);
30733   for (i = 0; i < pagesize; ++i)
30734     if (*(data + i) != *(data2 + i))
30735       exit (1);
30736
30737   /* Finally, make sure that changes to the mapped area do not
30738      percolate back to the file as seen by read().  (This is a bug on
30739      some variants of i386 svr4.0.)  */
30740   for (i = 0; i < pagesize; ++i)
30741     *(data2 + i) = *(data2 + i) + 1;
30742   data3 = (char *) malloc (pagesize);
30743   if (!data3)
30744     exit (1);
30745   if (read (fd, data3, pagesize) != pagesize)
30746     exit (1);
30747   for (i = 0; i < pagesize; ++i)
30748     if (*(data + i) != *(data3 + i))
30749       exit (1);
30750   close (fd);
30751   exit (0);
30752 }
30753 _ACEOF
30754 rm -f conftest$ac_exeext
30755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30756   (eval $ac_link) 2>&5
30757   ac_status=$?
30758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30759   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30761   (eval $ac_try) 2>&5
30762   ac_status=$?
30763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764   (exit $ac_status); }; }; then
30765   ac_cv_func_mmap_fixed_mapped=yes
30766 else
30767   echo "$as_me: program exited with status $ac_status" >&5
30768 echo "$as_me: failed program was:" >&5
30769 sed 's/^/| /' conftest.$ac_ext >&5
30770
30771 ( exit $ac_status )
30772 ac_cv_func_mmap_fixed_mapped=no
30773 fi
30774 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30775 fi
30776 fi
30777 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30778 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30779 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30780
30781 cat >>confdefs.h <<\_ACEOF
30782 #define HAVE_MMAP 1
30783 _ACEOF
30784
30785 fi
30786 rm -f conftest.mmap
30787
30788 echo "$as_me:$LINENO: checking for mmap of files" >&5
30789 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30790 if test "${ac_cv_func_mmap_file+set}" = set; then
30791   echo $ECHO_N "(cached) $ECHO_C" >&6
30792 else
30793    ac_ext=c
30794 ac_cpp='$CPP $CPPFLAGS'
30795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30798
30799   if test "$cross_compiling" = yes; then
30800   ac_cv_func_mmap_file=no
30801 else
30802   cat >conftest.$ac_ext <<_ACEOF
30803
30804     /* confdefs.h.  */
30805 _ACEOF
30806 cat confdefs.h >>conftest.$ac_ext
30807 cat >>conftest.$ac_ext <<_ACEOF
30808 /* end confdefs.h.  */
30809
30810 #include <sys/types.h>
30811 #include <sys/mman.h>
30812 #include <fcntl.h>
30813
30814 int
30815 main ()
30816 {
30817
30818   int fd;
30819   fd = creat ("foo",0777);
30820   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30821   unlink ("foo");
30822   return (fd != (int) MAP_FAILED);
30823   ;
30824   return 0;
30825 }
30826 _ACEOF
30827 rm -f conftest$ac_exeext
30828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30829   (eval $ac_link) 2>&5
30830   ac_status=$?
30831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30834   (eval $ac_try) 2>&5
30835   ac_status=$?
30836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837   (exit $ac_status); }; }; then
30838   ac_cv_func_mmap_file=yes
30839 else
30840   echo "$as_me: program exited with status $ac_status" >&5
30841 echo "$as_me: failed program was:" >&5
30842 sed 's/^/| /' conftest.$ac_ext >&5
30843
30844 ( exit $ac_status )
30845 ac_cv_func_mmap_file=no
30846 fi
30847 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30848 fi
30849   ac_ext=c
30850 ac_cpp='$CPP $CPPFLAGS'
30851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30854
30855
30856 fi
30857 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30858 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30859 if test "$ac_cv_func_mmap_file" = yes; then
30860
30861 cat >>confdefs.h <<\_ACEOF
30862 #define HAVE_MMAP_FILE
30863 _ACEOF
30864
30865    MMAP_FILE=yes
30866
30867 fi
30868
30869 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30870 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30871 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30872   echo $ECHO_N "(cached) $ECHO_C" >&6
30873 else
30874   if test "$llvm_cv_os_type" = "Interix" ; then
30875    ac_cv_need_dev_zero_for_mmap=yes
30876  else
30877    ac_cv_need_dev_zero_for_mmap=no
30878  fi
30879
30880 fi
30881 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30882 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30883 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30884
30885 cat >>confdefs.h <<\_ACEOF
30886 #define NEED_DEV_ZERO_FOR_MMAP 1
30887 _ACEOF
30888
30889 fi
30890 echo "$as_me:$LINENO: checking for mprotect" >&5
30891 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30892 if test "${ac_cv_func_mprotect+set}" = set; then
30893   echo $ECHO_N "(cached) $ECHO_C" >&6
30894 else
30895   cat >conftest.$ac_ext <<_ACEOF
30896 /* confdefs.h.  */
30897 _ACEOF
30898 cat confdefs.h >>conftest.$ac_ext
30899 cat >>conftest.$ac_ext <<_ACEOF
30900 /* end confdefs.h.  */
30901 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30903 #define mprotect innocuous_mprotect
30904
30905 /* System header to define __stub macros and hopefully few prototypes,
30906     which can conflict with char mprotect (); below.
30907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30908     <limits.h> exists even on freestanding compilers.  */
30909
30910 #ifdef __STDC__
30911 # include <limits.h>
30912 #else
30913 # include <assert.h>
30914 #endif
30915
30916 #undef mprotect
30917
30918 /* Override any gcc2 internal prototype to avoid an error.  */
30919 #ifdef __cplusplus
30920 extern "C"
30921 {
30922 #endif
30923 /* We use char because int might match the return type of a gcc2
30924    builtin and then its argument prototype would still apply.  */
30925 char mprotect ();
30926 /* The GNU C library defines this for functions which it implements
30927     to always fail with ENOSYS.  Some functions are actually named
30928     something starting with __ and the normal name is an alias.  */
30929 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30930 choke me
30931 #else
30932 char (*f) () = mprotect;
30933 #endif
30934 #ifdef __cplusplus
30935 }
30936 #endif
30937
30938 int
30939 main ()
30940 {
30941 return f != mprotect;
30942   ;
30943   return 0;
30944 }
30945 _ACEOF
30946 rm -f conftest.$ac_objext conftest$ac_exeext
30947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30948   (eval $ac_link) 2>conftest.er1
30949   ac_status=$?
30950   grep -v '^ *+' conftest.er1 >conftest.err
30951   rm -f conftest.er1
30952   cat conftest.err >&5
30953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954   (exit $ac_status); } &&
30955          { ac_try='test -z "$ac_c_werror_flag"
30956                          || test ! -s conftest.err'
30957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30958   (eval $ac_try) 2>&5
30959   ac_status=$?
30960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961   (exit $ac_status); }; } &&
30962          { ac_try='test -s conftest$ac_exeext'
30963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30964   (eval $ac_try) 2>&5
30965   ac_status=$?
30966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967   (exit $ac_status); }; }; then
30968   ac_cv_func_mprotect=yes
30969 else
30970   echo "$as_me: failed program was:" >&5
30971 sed 's/^/| /' conftest.$ac_ext >&5
30972
30973 ac_cv_func_mprotect=no
30974 fi
30975 rm -f conftest.err conftest.$ac_objext \
30976       conftest$ac_exeext conftest.$ac_ext
30977 fi
30978 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30979 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30980 if test $ac_cv_func_mprotect = yes; then
30981   :
30982 else
30983   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30984 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30985    { (exit 1); exit 1; }; }
30986 fi
30987
30988
30989 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30990 then
30991   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30992 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30993 fi
30994 if test "$ac_cv_func_mmap_file" = "no"
30995 then
30996   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30997 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30998 fi
30999
31000
31001 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31002 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
31003 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31004   echo $ECHO_N "(cached) $ECHO_C" >&6
31005 else
31006   llvm_cv_llvmgcc_sanity="no"
31007 if test -x "$LLVMGCC" ; then
31008   cp /dev/null conftest.c
31009   "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
31010   if test $? -eq 0 ; then
31011     llvm_cv_llvmgcc_sanity="yes"
31012   fi
31013   rm conftest.c
31014 fi
31015 fi
31016 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31017 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
31018
31019 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31020   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31021   LLVMCC1=$llvmcc1path
31022
31023   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31024   LLVMCC1PLUS=$llvmcc1pluspath
31025
31026   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31027   LLVMGCCDIR=$llvmgccdir
31028
31029   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31030   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31031   LLVMGCC_VERSION=$llvmgccversion
31032
31033   LLVMGCC_MAJVERS=$llvmgccmajvers
31034
31035 fi
31036
31037 SHLIBEXT=$libltdl_cv_shlibext
31038
31039
31040 # Translate the various configuration directories and other basic
31041 # information into substitutions that will end up in Makefile.config.in
31042 # that these configured values can be used by the makefiles
31043 if test "${prefix}" == "NONE" ; then
31044   prefix="/usr/local"
31045 fi
31046 eval LLVM_PREFIX="${prefix}";
31047 eval LLVM_BINDIR="${prefix}/bin";
31048 eval LLVM_LIBDIR="${prefix}/lib";
31049 eval LLVM_DATADIR="${prefix}/share/llvm";
31050 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31051 eval LLVM_ETCDIR="${prefix}/etc/llvm";
31052 eval LLVM_INCLUDEDIR="${prefix}/include";
31053 eval LLVM_INFODIR="${prefix}/info";
31054 eval LLVM_MANDIR="${prefix}/man";
31055 LLVM_CONFIGTIME=`date`
31056
31057
31058
31059
31060
31061
31062
31063
31064
31065
31066
31067 # Place the various directores into the config.h file as #defines so that we
31068 # can know about the installation paths within LLVM.
31069
31070 cat >>confdefs.h <<_ACEOF
31071 #define LLVM_PREFIX "$LLVM_PREFIX"
31072 _ACEOF
31073
31074
31075 cat >>confdefs.h <<_ACEOF
31076 #define LLVM_BINDIR "$LLVM_BINDIR"
31077 _ACEOF
31078
31079
31080 cat >>confdefs.h <<_ACEOF
31081 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31082 _ACEOF
31083
31084
31085 cat >>confdefs.h <<_ACEOF
31086 #define LLVM_DATADIR "$LLVM_DATADIR"
31087 _ACEOF
31088
31089
31090 cat >>confdefs.h <<_ACEOF
31091 #define LLVM_DATADIR "$LLVM_DOCSDIR"
31092 _ACEOF
31093
31094
31095 cat >>confdefs.h <<_ACEOF
31096 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31097 _ACEOF
31098
31099
31100 cat >>confdefs.h <<_ACEOF
31101 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31102 _ACEOF
31103
31104
31105 cat >>confdefs.h <<_ACEOF
31106 #define LLVM_INFODIR "$LLVM_INFODIR"
31107 _ACEOF
31108
31109
31110 cat >>confdefs.h <<_ACEOF
31111 #define LLVM_MANDIR "$LLVM_MANDIR"
31112 _ACEOF
31113
31114
31115 cat >>confdefs.h <<_ACEOF
31116 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31117 _ACEOF
31118
31119
31120
31121           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31122
31123           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31124
31125           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31126
31127           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31128
31129           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31130
31131
31132           ac_config_files="$ac_config_files Makefile.config"
31133
31134
31135           ac_config_files="$ac_config_files docs/doxygen.cfg"
31136
31137
31138           ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
31139
31140
31141           ac_config_commands="$ac_config_commands setup"
31142
31143           ac_config_commands="$ac_config_commands Makefile"
31144
31145
31146           ac_config_commands="$ac_config_commands Makefile.common"
31147
31148
31149           ac_config_commands="$ac_config_commands examples/Makefile"
31150
31151
31152           ac_config_commands="$ac_config_commands lib/Makefile"
31153
31154
31155           ac_config_commands="$ac_config_commands runtime/Makefile"
31156
31157
31158           ac_config_commands="$ac_config_commands test/Makefile"
31159
31160
31161           ac_config_commands="$ac_config_commands test/Makefile.tests"
31162
31163
31164           ac_config_commands="$ac_config_commands tools/Makefile"
31165
31166
31167           ac_config_commands="$ac_config_commands utils/Makefile"
31168
31169
31170           ac_config_commands="$ac_config_commands projects/Makefile"
31171
31172
31173
31174 cat >confcache <<\_ACEOF
31175 # This file is a shell script that caches the results of configure
31176 # tests run on this system so they can be shared between configure
31177 # scripts and configure runs, see configure's option --config-cache.
31178 # It is not useful on other systems.  If it contains results you don't
31179 # want to keep, you may remove or edit it.
31180 #
31181 # config.status only pays attention to the cache file if you give it
31182 # the --recheck option to rerun configure.
31183 #
31184 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31185 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31186 # following values.
31187
31188 _ACEOF
31189
31190 # The following way of writing the cache mishandles newlines in values,
31191 # but we know of no workaround that is simple, portable, and efficient.
31192 # So, don't put newlines in cache variables' values.
31193 # Ultrix sh set writes to stderr and can't be redirected directly,
31194 # and sets the high bit in the cache file unless we assign to the vars.
31195 {
31196   (set) 2>&1 |
31197     case `(ac_space=' '; set | grep ac_space) 2>&1` in
31198     *ac_space=\ *)
31199       # `set' does not quote correctly, so add quotes (double-quote
31200       # substitution turns \\\\ into \\, and sed turns \\ into \).
31201       sed -n \
31202         "s/'/'\\\\''/g;
31203           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31204       ;;
31205     *)
31206       # `set' quotes correctly as required by POSIX, so do not add quotes.
31207       sed -n \
31208         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31209       ;;
31210     esac;
31211 } |
31212   sed '
31213      t clear
31214      : clear
31215      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31216      t end
31217      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31218      : end' >>confcache
31219 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31220   if test -w $cache_file; then
31221     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31222     cat confcache >$cache_file
31223   else
31224     echo "not updating unwritable cache $cache_file"
31225   fi
31226 fi
31227 rm -f confcache
31228
31229 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31230 # Let make expand exec_prefix.
31231 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31232
31233 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31234 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31235 # trailing colons and then remove the whole line if VPATH becomes empty
31236 # (actually we leave an empty line to preserve line numbers).
31237 if test "x$srcdir" = x.; then
31238   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31239 s/:*\$(srcdir):*/:/;
31240 s/:*\${srcdir}:*/:/;
31241 s/:*@srcdir@:*/:/;
31242 s/^\([^=]*=[     ]*\):*/\1/;
31243 s/:*$//;
31244 s/^[^=]*=[       ]*$//;
31245 }'
31246 fi
31247
31248 DEFS=-DHAVE_CONFIG_H
31249
31250 ac_libobjs=
31251 ac_ltlibobjs=
31252 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31253   # 1. Remove the extension, and $U if already installed.
31254   ac_i=`echo "$ac_i" |
31255          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31256   # 2. Add them.
31257   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31258   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31259 done
31260 LIBOBJS=$ac_libobjs
31261
31262 LTLIBOBJS=$ac_ltlibobjs
31263
31264
31265 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31266   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31267 Usually this means the macro was only invoked conditionally." >&5
31268 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31269 Usually this means the macro was only invoked conditionally." >&2;}
31270    { (exit 1); exit 1; }; }
31271 fi
31272 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31273   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31274 Usually this means the macro was only invoked conditionally." >&5
31275 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31276 Usually this means the macro was only invoked conditionally." >&2;}
31277    { (exit 1); exit 1; }; }
31278 fi
31279
31280 : ${CONFIG_STATUS=./config.status}
31281 ac_clean_files_save=$ac_clean_files
31282 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31283 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31284 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31285 cat >$CONFIG_STATUS <<_ACEOF
31286 #! $SHELL
31287 # Generated by $as_me.
31288 # Run this file to recreate the current configuration.
31289 # Compiler output produced by configure, useful for debugging
31290 # configure, is in config.log if it exists.
31291
31292 debug=false
31293 ac_cs_recheck=false
31294 ac_cs_silent=false
31295 SHELL=\${CONFIG_SHELL-$SHELL}
31296 _ACEOF
31297
31298 cat >>$CONFIG_STATUS <<\_ACEOF
31299 ## --------------------- ##
31300 ## M4sh Initialization.  ##
31301 ## --------------------- ##
31302
31303 # Be Bourne compatible
31304 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31305   emulate sh
31306   NULLCMD=:
31307   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31308   # is contrary to our usage.  Disable this feature.
31309   alias -g '${1+"$@"}'='"$@"'
31310 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31311   set -o posix
31312 fi
31313 DUALCASE=1; export DUALCASE # for MKS sh
31314
31315 # Support unset when possible.
31316 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31317   as_unset=unset
31318 else
31319   as_unset=false
31320 fi
31321
31322
31323 # Work around bugs in pre-3.0 UWIN ksh.
31324 $as_unset ENV MAIL MAILPATH
31325 PS1='$ '
31326 PS2='> '
31327 PS4='+ '
31328
31329 # NLS nuisances.
31330 for as_var in \
31331   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31332   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31333   LC_TELEPHONE LC_TIME
31334 do
31335   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31336     eval $as_var=C; export $as_var
31337   else
31338     $as_unset $as_var
31339   fi
31340 done
31341
31342 # Required to use basename.
31343 if expr a : '\(a\)' >/dev/null 2>&1; then
31344   as_expr=expr
31345 else
31346   as_expr=false
31347 fi
31348
31349 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31350   as_basename=basename
31351 else
31352   as_basename=false
31353 fi
31354
31355
31356 # Name of the executable.
31357 as_me=`$as_basename "$0" ||
31358 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31359          X"$0" : 'X\(//\)$' \| \
31360          X"$0" : 'X\(/\)$' \| \
31361          .     : '\(.\)' 2>/dev/null ||
31362 echo X/"$0" |
31363     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31364           /^X\/\(\/\/\)$/{ s//\1/; q; }
31365           /^X\/\(\/\).*/{ s//\1/; q; }
31366           s/.*/./; q'`
31367
31368
31369 # PATH needs CR, and LINENO needs CR and PATH.
31370 # Avoid depending upon Character Ranges.
31371 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31372 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31373 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31374 as_cr_digits='0123456789'
31375 as_cr_alnum=$as_cr_Letters$as_cr_digits
31376
31377 # The user is always right.
31378 if test "${PATH_SEPARATOR+set}" != set; then
31379   echo "#! /bin/sh" >conf$$.sh
31380   echo  "exit 0"   >>conf$$.sh
31381   chmod +x conf$$.sh
31382   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31383     PATH_SEPARATOR=';'
31384   else
31385     PATH_SEPARATOR=:
31386   fi
31387   rm -f conf$$.sh
31388 fi
31389
31390
31391   as_lineno_1=$LINENO
31392   as_lineno_2=$LINENO
31393   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31394   test "x$as_lineno_1" != "x$as_lineno_2" &&
31395   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
31396   # Find who we are.  Look in the path if we contain no path at all
31397   # relative or not.
31398   case $0 in
31399     *[\\/]* ) as_myself=$0 ;;
31400     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31401 for as_dir in $PATH
31402 do
31403   IFS=$as_save_IFS
31404   test -z "$as_dir" && as_dir=.
31405   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31406 done
31407
31408        ;;
31409   esac
31410   # We did not find ourselves, most probably we were run as `sh COMMAND'
31411   # in which case we are not to be found in the path.
31412   if test "x$as_myself" = x; then
31413     as_myself=$0
31414   fi
31415   if test ! -f "$as_myself"; then
31416     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31417 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31418    { (exit 1); exit 1; }; }
31419   fi
31420   case $CONFIG_SHELL in
31421   '')
31422     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31423 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31424 do
31425   IFS=$as_save_IFS
31426   test -z "$as_dir" && as_dir=.
31427   for as_base in sh bash ksh sh5; do
31428          case $as_dir in
31429          /*)
31430            if ("$as_dir/$as_base" -c '
31431   as_lineno_1=$LINENO
31432   as_lineno_2=$LINENO
31433   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31434   test "x$as_lineno_1" != "x$as_lineno_2" &&
31435   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31436              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31437              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31438              CONFIG_SHELL=$as_dir/$as_base
31439              export CONFIG_SHELL
31440              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31441            fi;;
31442          esac
31443        done
31444 done
31445 ;;
31446   esac
31447
31448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31449   # uniformly replaced by the line number.  The first 'sed' inserts a
31450   # line-number line before each line; the second 'sed' does the real
31451   # work.  The second script uses 'N' to pair each line-number line
31452   # with the numbered line, and appends trailing '-' during
31453   # substitution so that $LINENO is not a special case at line end.
31454   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31455   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31456   sed '=' <$as_myself |
31457     sed '
31458       N
31459       s,$,-,
31460       : loop
31461       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31462       t loop
31463       s,-$,,
31464       s,^['$as_cr_digits']*\n,,
31465     ' >$as_me.lineno &&
31466   chmod +x $as_me.lineno ||
31467     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31468 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31469    { (exit 1); exit 1; }; }
31470
31471   # Don't try to exec as it changes $[0], causing all sort of problems
31472   # (the dirname of $[0] is not the place where we might find the
31473   # original and so on.  Autoconf is especially sensible to this).
31474   . ./$as_me.lineno
31475   # Exit status is that of the last command.
31476   exit
31477 }
31478
31479
31480 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31481   *c*,-n*) ECHO_N= ECHO_C='
31482 ' ECHO_T='      ' ;;
31483   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31484   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31485 esac
31486
31487 if expr a : '\(a\)' >/dev/null 2>&1; then
31488   as_expr=expr
31489 else
31490   as_expr=false
31491 fi
31492
31493 rm -f conf$$ conf$$.exe conf$$.file
31494 echo >conf$$.file
31495 if ln -s conf$$.file conf$$ 2>/dev/null; then
31496   # We could just check for DJGPP; but this test a) works b) is more generic
31497   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31498   if test -f conf$$.exe; then
31499     # Don't use ln at all; we don't have any links
31500     as_ln_s='cp -p'
31501   else
31502     as_ln_s='ln -s'
31503   fi
31504 elif ln conf$$.file conf$$ 2>/dev/null; then
31505   as_ln_s=ln
31506 else
31507   as_ln_s='cp -p'
31508 fi
31509 rm -f conf$$ conf$$.exe conf$$.file
31510
31511 if mkdir -p . 2>/dev/null; then
31512   as_mkdir_p=:
31513 else
31514   test -d ./-p && rmdir ./-p
31515   as_mkdir_p=false
31516 fi
31517
31518 as_executable_p="test -f"
31519
31520 # Sed expression to map a string onto a valid CPP name.
31521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31522
31523 # Sed expression to map a string onto a valid variable name.
31524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31525
31526
31527 # IFS
31528 # We need space, tab and new line, in precisely that order.
31529 as_nl='
31530 '
31531 IFS="   $as_nl"
31532
31533 # CDPATH.
31534 $as_unset CDPATH
31535
31536 exec 6>&1
31537
31538 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31539 # report actual input values of CONFIG_FILES etc. instead of their
31540 # values after options handling.  Logging --version etc. is OK.
31541 exec 5>>config.log
31542 {
31543   echo
31544   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31545 ## Running $as_me. ##
31546 _ASBOX
31547 } >&5
31548 cat >&5 <<_CSEOF
31549
31550 This file was extended by llvm $as_me 1.8cvs, which was
31551 generated by GNU Autoconf 2.59.  Invocation command line was
31552
31553   CONFIG_FILES    = $CONFIG_FILES
31554   CONFIG_HEADERS  = $CONFIG_HEADERS
31555   CONFIG_LINKS    = $CONFIG_LINKS
31556   CONFIG_COMMANDS = $CONFIG_COMMANDS
31557   $ $0 $@
31558
31559 _CSEOF
31560 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31561 echo >&5
31562 _ACEOF
31563
31564 # Files that config.status was made for.
31565 if test -n "$ac_config_files"; then
31566   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31567 fi
31568
31569 if test -n "$ac_config_headers"; then
31570   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31571 fi
31572
31573 if test -n "$ac_config_links"; then
31574   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31575 fi
31576
31577 if test -n "$ac_config_commands"; then
31578   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31579 fi
31580
31581 cat >>$CONFIG_STATUS <<\_ACEOF
31582
31583 ac_cs_usage="\
31584 \`$as_me' instantiates files from templates according to the
31585 current configuration.
31586
31587 Usage: $0 [OPTIONS] [FILE]...
31588
31589   -h, --help       print this help, then exit
31590   -V, --version    print version number, then exit
31591   -q, --quiet      do not print progress messages
31592   -d, --debug      don't remove temporary files
31593       --recheck    update $as_me by reconfiguring in the same conditions
31594   --file=FILE[:TEMPLATE]
31595                    instantiate the configuration file FILE
31596   --header=FILE[:TEMPLATE]
31597                    instantiate the configuration header FILE
31598
31599 Configuration files:
31600 $config_files
31601
31602 Configuration headers:
31603 $config_headers
31604
31605 Configuration commands:
31606 $config_commands
31607
31608 Report bugs to <bug-autoconf@gnu.org>."
31609 _ACEOF
31610
31611 cat >>$CONFIG_STATUS <<_ACEOF
31612 ac_cs_version="\\
31613 llvm config.status 1.8cvs
31614 configured by $0, generated by GNU Autoconf 2.59,
31615   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31616
31617 Copyright (C) 2003 Free Software Foundation, Inc.
31618 This config.status script is free software; the Free Software Foundation
31619 gives unlimited permission to copy, distribute and modify it."
31620 srcdir=$srcdir
31621 INSTALL="$INSTALL"
31622 _ACEOF
31623
31624 cat >>$CONFIG_STATUS <<\_ACEOF
31625 # If no file are specified by the user, then we need to provide default
31626 # value.  By we need to know if files were specified by the user.
31627 ac_need_defaults=:
31628 while test $# != 0
31629 do
31630   case $1 in
31631   --*=*)
31632     ac_option=`expr "x$1" : 'x\([^=]*\)='`
31633     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31634     ac_shift=:
31635     ;;
31636   -*)
31637     ac_option=$1
31638     ac_optarg=$2
31639     ac_shift=shift
31640     ;;
31641   *) # This is not an option, so the user has probably given explicit
31642      # arguments.
31643      ac_option=$1
31644      ac_need_defaults=false;;
31645   esac
31646
31647   case $ac_option in
31648   # Handling of the options.
31649 _ACEOF
31650 cat >>$CONFIG_STATUS <<\_ACEOF
31651   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31652     ac_cs_recheck=: ;;
31653   --version | --vers* | -V )
31654     echo "$ac_cs_version"; exit 0 ;;
31655   --he | --h)
31656     # Conflict between --help and --header
31657     { { echo "$as_me:$LINENO: error: ambiguous option: $1
31658 Try \`$0 --help' for more information." >&5
31659 echo "$as_me: error: ambiguous option: $1
31660 Try \`$0 --help' for more information." >&2;}
31661    { (exit 1); exit 1; }; };;
31662   --help | --hel | -h )
31663     echo "$ac_cs_usage"; exit 0 ;;
31664   --debug | --d* | -d )
31665     debug=: ;;
31666   --file | --fil | --fi | --f )
31667     $ac_shift
31668     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31669     ac_need_defaults=false;;
31670   --header | --heade | --head | --hea )
31671     $ac_shift
31672     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31673     ac_need_defaults=false;;
31674   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31675   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31676     ac_cs_silent=: ;;
31677
31678   # This is an error.
31679   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31680 Try \`$0 --help' for more information." >&5
31681 echo "$as_me: error: unrecognized option: $1
31682 Try \`$0 --help' for more information." >&2;}
31683    { (exit 1); exit 1; }; } ;;
31684
31685   *) ac_config_targets="$ac_config_targets $1" ;;
31686
31687   esac
31688   shift
31689 done
31690
31691 ac_configure_extra_args=
31692
31693 if $ac_cs_silent; then
31694   exec 6>/dev/null
31695   ac_configure_extra_args="$ac_configure_extra_args --silent"
31696 fi
31697
31698 _ACEOF
31699 cat >>$CONFIG_STATUS <<_ACEOF
31700 if \$ac_cs_recheck; then
31701   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31702   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31703 fi
31704
31705 _ACEOF
31706
31707 cat >>$CONFIG_STATUS <<_ACEOF
31708 #
31709 # INIT-COMMANDS section.
31710 #
31711
31712 llvm_src="${srcdir}"
31713
31714 _ACEOF
31715
31716
31717
31718 cat >>$CONFIG_STATUS <<\_ACEOF
31719 for ac_config_target in $ac_config_targets
31720 do
31721   case "$ac_config_target" in
31722   # Handling of arguments.
31723   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31724   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31725   "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
31726   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31727   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31728   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31729   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31730   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31731   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31732   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31733   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31734   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31735   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31736   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31737   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31738   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31739   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31740   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31741   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31742   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31743 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31744    { (exit 1); exit 1; }; };;
31745   esac
31746 done
31747
31748 # If the user did not use the arguments to specify the items to instantiate,
31749 # then the envvar interface is used.  Set only those that are not.
31750 # We use the long form for the default assignment because of an extremely
31751 # bizarre bug on SunOS 4.1.3.
31752 if $ac_need_defaults; then
31753   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31754   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31755   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31756 fi
31757
31758 # Have a temporary directory for convenience.  Make it in the build tree
31759 # simply because there is no reason to put it here, and in addition,
31760 # creating and moving files from /tmp can sometimes cause problems.
31761 # Create a temporary directory, and hook for its removal unless debugging.
31762 $debug ||
31763 {
31764   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31765   trap '{ (exit 1); exit 1; }' 1 2 13 15
31766 }
31767
31768 # Create a (secure) tmp directory for tmp files.
31769
31770 {
31771   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31772   test -n "$tmp" && test -d "$tmp"
31773 }  ||
31774 {
31775   tmp=./confstat$$-$RANDOM
31776   (umask 077 && mkdir $tmp)
31777 } ||
31778 {
31779    echo "$me: cannot create a temporary directory in ." >&2
31780    { (exit 1); exit 1; }
31781 }
31782
31783 _ACEOF
31784
31785 cat >>$CONFIG_STATUS <<_ACEOF
31786
31787 #
31788 # CONFIG_FILES section.
31789 #
31790
31791 # No need to generate the scripts if there are no CONFIG_FILES.
31792 # This happens for instance when ./config.status config.h
31793 if test -n "\$CONFIG_FILES"; then
31794   # Protect against being on the right side of a sed subst in config.status.
31795   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31796    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31797 s,@SHELL@,$SHELL,;t t
31798 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31799 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31800 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31801 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31802 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31803 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31804 s,@exec_prefix@,$exec_prefix,;t t
31805 s,@prefix@,$prefix,;t t
31806 s,@program_transform_name@,$program_transform_name,;t t
31807 s,@bindir@,$bindir,;t t
31808 s,@sbindir@,$sbindir,;t t
31809 s,@libexecdir@,$libexecdir,;t t
31810 s,@datadir@,$datadir,;t t
31811 s,@sysconfdir@,$sysconfdir,;t t
31812 s,@sharedstatedir@,$sharedstatedir,;t t
31813 s,@localstatedir@,$localstatedir,;t t
31814 s,@libdir@,$libdir,;t t
31815 s,@includedir@,$includedir,;t t
31816 s,@oldincludedir@,$oldincludedir,;t t
31817 s,@infodir@,$infodir,;t t
31818 s,@mandir@,$mandir,;t t
31819 s,@build_alias@,$build_alias,;t t
31820 s,@host_alias@,$host_alias,;t t
31821 s,@target_alias@,$target_alias,;t t
31822 s,@DEFS@,$DEFS,;t t
31823 s,@ECHO_C@,$ECHO_C,;t t
31824 s,@ECHO_N@,$ECHO_N,;t t
31825 s,@ECHO_T@,$ECHO_T,;t t
31826 s,@LIBS@,$LIBS,;t t
31827 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31828 s,@subdirs@,$subdirs,;t t
31829 s,@build@,$build,;t t
31830 s,@build_cpu@,$build_cpu,;t t
31831 s,@build_vendor@,$build_vendor,;t t
31832 s,@build_os@,$build_os,;t t
31833 s,@host@,$host,;t t
31834 s,@host_cpu@,$host_cpu,;t t
31835 s,@host_vendor@,$host_vendor,;t t
31836 s,@host_os@,$host_os,;t t
31837 s,@target@,$target,;t t
31838 s,@target_cpu@,$target_cpu,;t t
31839 s,@target_vendor@,$target_vendor,;t t
31840 s,@target_os@,$target_os,;t t
31841 s,@OS@,$OS,;t t
31842 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31843 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31844 s,@ARCH@,$ARCH,;t t
31845 s,@ENDIAN@,$ENDIAN,;t t
31846 s,@CC@,$CC,;t t
31847 s,@CFLAGS@,$CFLAGS,;t t
31848 s,@LDFLAGS@,$LDFLAGS,;t t
31849 s,@CPPFLAGS@,$CPPFLAGS,;t t
31850 s,@ac_ct_CC@,$ac_ct_CC,;t t
31851 s,@EXEEXT@,$EXEEXT,;t t
31852 s,@OBJEXT@,$OBJEXT,;t t
31853 s,@CVSBUILD@,$CVSBUILD,;t t
31854 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31855 s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
31856 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31857 s,@JIT@,$JIT,;t t
31858 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
31859 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31860 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31861 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31862 s,@CPP@,$CPP,;t t
31863 s,@CXX@,$CXX,;t t
31864 s,@CXXFLAGS@,$CXXFLAGS,;t t
31865 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31866 s,@LEX@,$LEX,;t t
31867 s,@LEXLIB@,$LEXLIB,;t t
31868 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31869 s,@FLEX@,$FLEX,;t t
31870 s,@YACC@,$YACC,;t t
31871 s,@BISON@,$BISON,;t t
31872 s,@ifGNUmake@,$ifGNUmake,;t t
31873 s,@LN_S@,$LN_S,;t t
31874 s,@CMP@,$CMP,;t t
31875 s,@CP@,$CP,;t t
31876 s,@DATE@,$DATE,;t t
31877 s,@FIND@,$FIND,;t t
31878 s,@GREP@,$GREP,;t t
31879 s,@MKDIR@,$MKDIR,;t t
31880 s,@MV@,$MV,;t t
31881 s,@RANLIB@,$RANLIB,;t t
31882 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31883 s,@RM@,$RM,;t t
31884 s,@SED@,$SED,;t t
31885 s,@TAR@,$TAR,;t t
31886 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31887 s,@GV@,$GV,;t t
31888 s,@PERL@,$PERL,;t t
31889 s,@HAVE_PERL@,$HAVE_PERL,;t t
31890 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31891 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31892 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31893 s,@BZIP2@,$BZIP2,;t t
31894 s,@DOT@,$DOT,;t t
31895 s,@DOXYGEN@,$DOXYGEN,;t t
31896 s,@ETAGS@,$ETAGS,;t t
31897 s,@GROFF@,$GROFF,;t t
31898 s,@GZIP@,$GZIP,;t t
31899 s,@POD2HTML@,$POD2HTML,;t t
31900 s,@POD2MAN@,$POD2MAN,;t t
31901 s,@RUNTEST@,$RUNTEST,;t t
31902 s,@TCLSH@,$TCLSH,;t t
31903 s,@ZIP@,$ZIP,;t t
31904 s,@EGREP@,$EGREP,;t t
31905 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31906 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31907 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31908 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31909 s,@LIBADD_DL@,$LIBADD_DL,;t t
31910 s,@ECHO@,$ECHO,;t t
31911 s,@AR@,$AR,;t t
31912 s,@ac_ct_AR@,$ac_ct_AR,;t t
31913 s,@STRIP@,$STRIP,;t t
31914 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31915 s,@CXXCPP@,$CXXCPP,;t t
31916 s,@F77@,$F77,;t t
31917 s,@FFLAGS@,$FFLAGS,;t t
31918 s,@ac_ct_F77@,$ac_ct_F77,;t t
31919 s,@LIBTOOL@,$LIBTOOL,;t t
31920 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31921 s,@LLVMGCC@,$LLVMGCC,;t t
31922 s,@LLVMGXX@,$LLVMGXX,;t t
31923 s,@ALLOCA@,$ALLOCA,;t t
31924 s,@MMAP_FILE@,$MMAP_FILE,;t t
31925 s,@LLVMCC1@,$LLVMCC1,;t t
31926 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31927 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31928 s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31929 s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
31930 s,@SHLIBEXT@,$SHLIBEXT,;t t
31931 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31932 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31933 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31934 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31935 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31936 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31937 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31938 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31939 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31940 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31941 s,@LIBOBJS@,$LIBOBJS,;t t
31942 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31943 CEOF
31944
31945 _ACEOF
31946
31947   cat >>$CONFIG_STATUS <<\_ACEOF
31948   # Split the substitutions into bite-sized pieces for seds with
31949   # small command number limits, like on Digital OSF/1 and HP-UX.
31950   ac_max_sed_lines=48
31951   ac_sed_frag=1 # Number of current file.
31952   ac_beg=1 # First line for current file.
31953   ac_end=$ac_max_sed_lines # Line after last line for current file.
31954   ac_more_lines=:
31955   ac_sed_cmds=
31956   while $ac_more_lines; do
31957     if test $ac_beg -gt 1; then
31958       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31959     else
31960       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31961     fi
31962     if test ! -s $tmp/subs.frag; then
31963       ac_more_lines=false
31964     else
31965       # The purpose of the label and of the branching condition is to
31966       # speed up the sed processing (if there are no `@' at all, there
31967       # is no need to browse any of the substitutions).
31968       # These are the two extra sed commands mentioned above.
31969       (echo ':t
31970   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31971       if test -z "$ac_sed_cmds"; then
31972         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31973       else
31974         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31975       fi
31976       ac_sed_frag=`expr $ac_sed_frag + 1`
31977       ac_beg=$ac_end
31978       ac_end=`expr $ac_end + $ac_max_sed_lines`
31979     fi
31980   done
31981   if test -z "$ac_sed_cmds"; then
31982     ac_sed_cmds=cat
31983   fi
31984 fi # test -n "$CONFIG_FILES"
31985
31986 _ACEOF
31987 cat >>$CONFIG_STATUS <<\_ACEOF
31988 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31989   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31990   case $ac_file in
31991   - | *:- | *:-:* ) # input from stdin
31992         cat >$tmp/stdin
31993         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31994         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31995   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31996         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31997   * )   ac_file_in=$ac_file.in ;;
31998   esac
31999
32000   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32001   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32002 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32003          X"$ac_file" : 'X\(//\)[^/]' \| \
32004          X"$ac_file" : 'X\(//\)$' \| \
32005          X"$ac_file" : 'X\(/\)' \| \
32006          .     : '\(.\)' 2>/dev/null ||
32007 echo X"$ac_file" |
32008     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32009           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32010           /^X\(\/\/\)$/{ s//\1/; q; }
32011           /^X\(\/\).*/{ s//\1/; q; }
32012           s/.*/./; q'`
32013   { if $as_mkdir_p; then
32014     mkdir -p "$ac_dir"
32015   else
32016     as_dir="$ac_dir"
32017     as_dirs=
32018     while test ! -d "$as_dir"; do
32019       as_dirs="$as_dir $as_dirs"
32020       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32022          X"$as_dir" : 'X\(//\)[^/]' \| \
32023          X"$as_dir" : 'X\(//\)$' \| \
32024          X"$as_dir" : 'X\(/\)' \| \
32025          .     : '\(.\)' 2>/dev/null ||
32026 echo X"$as_dir" |
32027     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32028           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32029           /^X\(\/\/\)$/{ s//\1/; q; }
32030           /^X\(\/\).*/{ s//\1/; q; }
32031           s/.*/./; q'`
32032     done
32033     test ! -n "$as_dirs" || mkdir $as_dirs
32034   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32035 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32036    { (exit 1); exit 1; }; }; }
32037
32038   ac_builddir=.
32039
32040 if test "$ac_dir" != .; then
32041   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32042   # A "../" for each directory in $ac_dir_suffix.
32043   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32044 else
32045   ac_dir_suffix= ac_top_builddir=
32046 fi
32047
32048 case $srcdir in
32049   .)  # No --srcdir option.  We are building in place.
32050     ac_srcdir=.
32051     if test -z "$ac_top_builddir"; then
32052        ac_top_srcdir=.
32053     else
32054        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32055     fi ;;
32056   [\\/]* | ?:[\\/]* )  # Absolute path.
32057     ac_srcdir=$srcdir$ac_dir_suffix;
32058     ac_top_srcdir=$srcdir ;;
32059   *) # Relative path.
32060     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32061     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32062 esac
32063
32064 # Do not use `cd foo && pwd` to compute absolute paths, because
32065 # the directories may not exist.
32066 case `pwd` in
32067 .) ac_abs_builddir="$ac_dir";;
32068 *)
32069   case "$ac_dir" in
32070   .) ac_abs_builddir=`pwd`;;
32071   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32072   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32073   esac;;
32074 esac
32075 case $ac_abs_builddir in
32076 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32077 *)
32078   case ${ac_top_builddir}. in
32079   .) ac_abs_top_builddir=$ac_abs_builddir;;
32080   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32081   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32082   esac;;
32083 esac
32084 case $ac_abs_builddir in
32085 .) ac_abs_srcdir=$ac_srcdir;;
32086 *)
32087   case $ac_srcdir in
32088   .) ac_abs_srcdir=$ac_abs_builddir;;
32089   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32090   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32091   esac;;
32092 esac
32093 case $ac_abs_builddir in
32094 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32095 *)
32096   case $ac_top_srcdir in
32097   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32098   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32099   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32100   esac;;
32101 esac
32102
32103
32104   case $INSTALL in
32105   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32106   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32107   esac
32108
32109   if test x"$ac_file" != x-; then
32110     { echo "$as_me:$LINENO: creating $ac_file" >&5
32111 echo "$as_me: creating $ac_file" >&6;}
32112     rm -f "$ac_file"
32113   fi
32114   # Let's still pretend it is `configure' which instantiates (i.e., don't
32115   # use $as_me), people would be surprised to read:
32116   #    /* config.h.  Generated by config.status.  */
32117   if test x"$ac_file" = x-; then
32118     configure_input=
32119   else
32120     configure_input="$ac_file.  "
32121   fi
32122   configure_input=$configure_input"Generated from `echo $ac_file_in |
32123                                      sed 's,.*/,,'` by configure."
32124
32125   # First look for the input files in the build tree, otherwise in the
32126   # src tree.
32127   ac_file_inputs=`IFS=:
32128     for f in $ac_file_in; do
32129       case $f in
32130       -) echo $tmp/stdin ;;
32131       [\\/$]*)
32132          # Absolute (can't be DOS-style, as IFS=:)
32133          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32134 echo "$as_me: error: cannot find input file: $f" >&2;}
32135    { (exit 1); exit 1; }; }
32136          echo "$f";;
32137       *) # Relative
32138          if test -f "$f"; then
32139            # Build tree
32140            echo "$f"
32141          elif test -f "$srcdir/$f"; then
32142            # Source tree
32143            echo "$srcdir/$f"
32144          else
32145            # /dev/null tree
32146            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32147 echo "$as_me: error: cannot find input file: $f" >&2;}
32148    { (exit 1); exit 1; }; }
32149          fi;;
32150       esac
32151     done` || { (exit 1); exit 1; }
32152 _ACEOF
32153 cat >>$CONFIG_STATUS <<_ACEOF
32154   sed "$ac_vpsub
32155 $extrasub
32156 _ACEOF
32157 cat >>$CONFIG_STATUS <<\_ACEOF
32158 :t
32159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32160 s,@configure_input@,$configure_input,;t t
32161 s,@srcdir@,$ac_srcdir,;t t
32162 s,@abs_srcdir@,$ac_abs_srcdir,;t t
32163 s,@top_srcdir@,$ac_top_srcdir,;t t
32164 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32165 s,@builddir@,$ac_builddir,;t t
32166 s,@abs_builddir@,$ac_abs_builddir,;t t
32167 s,@top_builddir@,$ac_top_builddir,;t t
32168 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32169 s,@INSTALL@,$ac_INSTALL,;t t
32170 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32171   rm -f $tmp/stdin
32172   if test x"$ac_file" != x-; then
32173     mv $tmp/out $ac_file
32174   else
32175     cat $tmp/out
32176     rm -f $tmp/out
32177   fi
32178
32179 done
32180 _ACEOF
32181 cat >>$CONFIG_STATUS <<\_ACEOF
32182
32183 #
32184 # CONFIG_HEADER section.
32185 #
32186
32187 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32188 # NAME is the cpp macro being defined and VALUE is the value it is being given.
32189 #
32190 # ac_d sets the value in "#define NAME VALUE" lines.
32191 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
32192 ac_dB='[         ].*$,\1#\2'
32193 ac_dC=' '
32194 ac_dD=',;t'
32195 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32196 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
32197 ac_uB='$,\1#\2define\3'
32198 ac_uC=' '
32199 ac_uD=',;t'
32200
32201 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32202   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32203   case $ac_file in
32204   - | *:- | *:-:* ) # input from stdin
32205         cat >$tmp/stdin
32206         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32207         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32208   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32209         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32210   * )   ac_file_in=$ac_file.in ;;
32211   esac
32212
32213   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32214 echo "$as_me: creating $ac_file" >&6;}
32215
32216   # First look for the input files in the build tree, otherwise in the
32217   # src tree.
32218   ac_file_inputs=`IFS=:
32219     for f in $ac_file_in; do
32220       case $f in
32221       -) echo $tmp/stdin ;;
32222       [\\/$]*)
32223          # Absolute (can't be DOS-style, as IFS=:)
32224          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32225 echo "$as_me: error: cannot find input file: $f" >&2;}
32226    { (exit 1); exit 1; }; }
32227          # Do quote $f, to prevent DOS paths from being IFS'd.
32228          echo "$f";;
32229       *) # Relative
32230          if test -f "$f"; then
32231            # Build tree
32232            echo "$f"
32233          elif test -f "$srcdir/$f"; then
32234            # Source tree
32235            echo "$srcdir/$f"
32236          else
32237            # /dev/null tree
32238            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32239 echo "$as_me: error: cannot find input file: $f" >&2;}
32240    { (exit 1); exit 1; }; }
32241          fi;;
32242       esac
32243     done` || { (exit 1); exit 1; }
32244   # Remove the trailing spaces.
32245   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
32246
32247 _ACEOF
32248
32249 # Transform confdefs.h into two sed scripts, `conftest.defines' and
32250 # `conftest.undefs', that substitutes the proper values into
32251 # config.h.in to produce config.h.  The first handles `#define'
32252 # templates, and the second `#undef' templates.
32253 # And first: Protect against being on the right side of a sed subst in
32254 # config.status.  Protect against being in an unquoted here document
32255 # in config.status.
32256 rm -f conftest.defines conftest.undefs
32257 # Using a here document instead of a string reduces the quoting nightmare.
32258 # Putting comments in sed scripts is not portable.
32259 #
32260 # `end' is used to avoid that the second main sed command (meant for
32261 # 0-ary CPP macros) applies to n-ary macro definitions.
32262 # See the Autoconf documentation for `clear'.
32263 cat >confdef2sed.sed <<\_ACEOF
32264 s/[\\&,]/\\&/g
32265 s,[\\$`],\\&,g
32266 t clear
32267 : clear
32268 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32269 t end
32270 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32271 : end
32272 _ACEOF
32273 # If some macros were called several times there might be several times
32274 # the same #defines, which is useless.  Nevertheless, we may not want to
32275 # sort them, since we want the *last* AC-DEFINE to be honored.
32276 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32277 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32278 rm -f confdef2sed.sed
32279
32280 # This sed command replaces #undef with comments.  This is necessary, for
32281 # example, in the case of _POSIX_SOURCE, which is predefined and required
32282 # on some systems where configure will not decide to define it.
32283 cat >>conftest.undefs <<\_ACEOF
32284 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32285 _ACEOF
32286
32287 # Break up conftest.defines because some shells have a limit on the size
32288 # of here documents, and old seds have small limits too (100 cmds).
32289 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32290 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32291 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32292 echo '  :' >>$CONFIG_STATUS
32293 rm -f conftest.tail
32294 while grep . conftest.defines >/dev/null
32295 do
32296   # Write a limited-size here document to $tmp/defines.sed.
32297   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32298   # Speed up: don't consider the non `#define' lines.
32299   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
32300   # Work around the forget-to-reset-the-flag bug.
32301   echo 't clr' >>$CONFIG_STATUS
32302   echo ': clr' >>$CONFIG_STATUS
32303   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32304   echo 'CEOF
32305   sed -f $tmp/defines.sed $tmp/in >$tmp/out
32306   rm -f $tmp/in
32307   mv $tmp/out $tmp/in
32308 ' >>$CONFIG_STATUS
32309   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32310   rm -f conftest.defines
32311   mv conftest.tail conftest.defines
32312 done
32313 rm -f conftest.defines
32314 echo '  fi # grep' >>$CONFIG_STATUS
32315 echo >>$CONFIG_STATUS
32316
32317 # Break up conftest.undefs because some shells have a limit on the size
32318 # of here documents, and old seds have small limits too (100 cmds).
32319 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
32320 rm -f conftest.tail
32321 while grep . conftest.undefs >/dev/null
32322 do
32323   # Write a limited-size here document to $tmp/undefs.sed.
32324   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32325   # Speed up: don't consider the non `#undef'
32326   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
32327   # Work around the forget-to-reset-the-flag bug.
32328   echo 't clr' >>$CONFIG_STATUS
32329   echo ': clr' >>$CONFIG_STATUS
32330   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32331   echo 'CEOF
32332   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32333   rm -f $tmp/in
32334   mv $tmp/out $tmp/in
32335 ' >>$CONFIG_STATUS
32336   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32337   rm -f conftest.undefs
32338   mv conftest.tail conftest.undefs
32339 done
32340 rm -f conftest.undefs
32341
32342 cat >>$CONFIG_STATUS <<\_ACEOF
32343   # Let's still pretend it is `configure' which instantiates (i.e., don't
32344   # use $as_me), people would be surprised to read:
32345   #    /* config.h.  Generated by config.status.  */
32346   if test x"$ac_file" = x-; then
32347     echo "/* Generated by configure.  */" >$tmp/config.h
32348   else
32349     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
32350   fi
32351   cat $tmp/in >>$tmp/config.h
32352   rm -f $tmp/in
32353   if test x"$ac_file" != x-; then
32354     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32355       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32356 echo "$as_me: $ac_file is unchanged" >&6;}
32357     else
32358       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32359 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32360          X"$ac_file" : 'X\(//\)[^/]' \| \
32361          X"$ac_file" : 'X\(//\)$' \| \
32362          X"$ac_file" : 'X\(/\)' \| \
32363          .     : '\(.\)' 2>/dev/null ||
32364 echo X"$ac_file" |
32365     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32366           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32367           /^X\(\/\/\)$/{ s//\1/; q; }
32368           /^X\(\/\).*/{ s//\1/; q; }
32369           s/.*/./; q'`
32370       { if $as_mkdir_p; then
32371     mkdir -p "$ac_dir"
32372   else
32373     as_dir="$ac_dir"
32374     as_dirs=
32375     while test ! -d "$as_dir"; do
32376       as_dirs="$as_dir $as_dirs"
32377       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32379          X"$as_dir" : 'X\(//\)[^/]' \| \
32380          X"$as_dir" : 'X\(//\)$' \| \
32381          X"$as_dir" : 'X\(/\)' \| \
32382          .     : '\(.\)' 2>/dev/null ||
32383 echo X"$as_dir" |
32384     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32385           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32386           /^X\(\/\/\)$/{ s//\1/; q; }
32387           /^X\(\/\).*/{ s//\1/; q; }
32388           s/.*/./; q'`
32389     done
32390     test ! -n "$as_dirs" || mkdir $as_dirs
32391   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32392 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32393    { (exit 1); exit 1; }; }; }
32394
32395       rm -f $ac_file
32396       mv $tmp/config.h $ac_file
32397     fi
32398   else
32399     cat $tmp/config.h
32400     rm -f $tmp/config.h
32401   fi
32402 done
32403 _ACEOF
32404 cat >>$CONFIG_STATUS <<\_ACEOF
32405
32406 #
32407 # CONFIG_COMMANDS section.
32408 #
32409 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32410   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32411   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32412   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32413 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32414          X"$ac_dest" : 'X\(//\)[^/]' \| \
32415          X"$ac_dest" : 'X\(//\)$' \| \
32416          X"$ac_dest" : 'X\(/\)' \| \
32417          .     : '\(.\)' 2>/dev/null ||
32418 echo X"$ac_dest" |
32419     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32420           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32421           /^X\(\/\/\)$/{ s//\1/; q; }
32422           /^X\(\/\).*/{ s//\1/; q; }
32423           s/.*/./; q'`
32424   { if $as_mkdir_p; then
32425     mkdir -p "$ac_dir"
32426   else
32427     as_dir="$ac_dir"
32428     as_dirs=
32429     while test ! -d "$as_dir"; do
32430       as_dirs="$as_dir $as_dirs"
32431       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32432 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32433          X"$as_dir" : 'X\(//\)[^/]' \| \
32434          X"$as_dir" : 'X\(//\)$' \| \
32435          X"$as_dir" : 'X\(/\)' \| \
32436          .     : '\(.\)' 2>/dev/null ||
32437 echo X"$as_dir" |
32438     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32439           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32440           /^X\(\/\/\)$/{ s//\1/; q; }
32441           /^X\(\/\).*/{ s//\1/; q; }
32442           s/.*/./; q'`
32443     done
32444     test ! -n "$as_dirs" || mkdir $as_dirs
32445   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32446 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32447    { (exit 1); exit 1; }; }; }
32448
32449   ac_builddir=.
32450
32451 if test "$ac_dir" != .; then
32452   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32453   # A "../" for each directory in $ac_dir_suffix.
32454   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32455 else
32456   ac_dir_suffix= ac_top_builddir=
32457 fi
32458
32459 case $srcdir in
32460   .)  # No --srcdir option.  We are building in place.
32461     ac_srcdir=.
32462     if test -z "$ac_top_builddir"; then
32463        ac_top_srcdir=.
32464     else
32465        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32466     fi ;;
32467   [\\/]* | ?:[\\/]* )  # Absolute path.
32468     ac_srcdir=$srcdir$ac_dir_suffix;
32469     ac_top_srcdir=$srcdir ;;
32470   *) # Relative path.
32471     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32472     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32473 esac
32474
32475 # Do not use `cd foo && pwd` to compute absolute paths, because
32476 # the directories may not exist.
32477 case `pwd` in
32478 .) ac_abs_builddir="$ac_dir";;
32479 *)
32480   case "$ac_dir" in
32481   .) ac_abs_builddir=`pwd`;;
32482   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32483   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32484   esac;;
32485 esac
32486 case $ac_abs_builddir in
32487 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32488 *)
32489   case ${ac_top_builddir}. in
32490   .) ac_abs_top_builddir=$ac_abs_builddir;;
32491   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32492   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32493   esac;;
32494 esac
32495 case $ac_abs_builddir in
32496 .) ac_abs_srcdir=$ac_srcdir;;
32497 *)
32498   case $ac_srcdir in
32499   .) ac_abs_srcdir=$ac_abs_builddir;;
32500   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32501   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32502   esac;;
32503 esac
32504 case $ac_abs_builddir in
32505 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32506 *)
32507   case $ac_top_srcdir in
32508   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32509   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32510   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32511   esac;;
32512 esac
32513
32514
32515   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32516 echo "$as_me: executing $ac_dest commands" >&6;}
32517   case $ac_dest in
32518     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32519    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32520     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32521    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32522     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32523    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32524     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32525    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32526     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32527    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32528     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32529    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32530     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32531    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32532     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32533    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32534     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32535    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32536     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32537    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32538   esac
32539 done
32540 _ACEOF
32541
32542 cat >>$CONFIG_STATUS <<\_ACEOF
32543
32544 { (exit 0); exit 0; }
32545 _ACEOF
32546 chmod +x $CONFIG_STATUS
32547 ac_clean_files=$ac_clean_files_save
32548
32549
32550 # configure is writing to config.log, and then calls config.status.
32551 # config.status does its own redirection, appending to config.log.
32552 # Unfortunately, on DOS this fails, as config.log is still kept open
32553 # by configure, so config.status won't be able to write to it; its
32554 # output is simply discarded.  So we exec the FD to /dev/null,
32555 # effectively closing config.log, so it can be properly (re)opened and
32556 # appended to by config.status.  When coming back to configure, we
32557 # need to make the FD available again.
32558 if test "$no_create" != yes; then
32559   ac_cs_success=:
32560   ac_config_status_args=
32561   test "$silent" = yes &&
32562     ac_config_status_args="$ac_config_status_args --quiet"
32563   exec 5>/dev/null
32564   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32565   exec 5>>config.log
32566   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32567   # would make configure fail if this is the last instruction.
32568   $ac_cs_success || { (exit 1); exit 1; }
32569 fi
32570
32571 #
32572 # CONFIG_SUBDIRS section.
32573 #
32574 if test "$no_recursion" != yes; then
32575
32576   # Remove --cache-file and --srcdir arguments so they do not pile up.
32577   ac_sub_configure_args=
32578   ac_prev=
32579   for ac_arg in $ac_configure_args; do
32580     if test -n "$ac_prev"; then
32581       ac_prev=
32582       continue
32583     fi
32584     case $ac_arg in
32585     -cache-file | --cache-file | --cache-fil | --cache-fi \
32586     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32587       ac_prev=cache_file ;;
32588     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32589     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32590     | --c=*)
32591       ;;
32592     --config-cache | -C)
32593       ;;
32594     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32595       ac_prev=srcdir ;;
32596     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32597       ;;
32598     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32599       ac_prev=prefix ;;
32600     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32601       ;;
32602     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32603     esac
32604   done
32605
32606   # Always prepend --prefix to ensure using the same prefix
32607   # in subdir configurations.
32608   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32609
32610   ac_popdir=`pwd`
32611   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32612
32613     # Do not complain, so a configure script can configure whichever
32614     # parts of a large source tree are present.
32615     test -d $srcdir/$ac_dir || continue
32616
32617     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32618 echo "$as_me: configuring in $ac_dir" >&6;}
32619     { if $as_mkdir_p; then
32620     mkdir -p "$ac_dir"
32621   else
32622     as_dir="$ac_dir"
32623     as_dirs=
32624     while test ! -d "$as_dir"; do
32625       as_dirs="$as_dir $as_dirs"
32626       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32627 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32628          X"$as_dir" : 'X\(//\)[^/]' \| \
32629          X"$as_dir" : 'X\(//\)$' \| \
32630          X"$as_dir" : 'X\(/\)' \| \
32631          .     : '\(.\)' 2>/dev/null ||
32632 echo X"$as_dir" |
32633     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32634           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32635           /^X\(\/\/\)$/{ s//\1/; q; }
32636           /^X\(\/\).*/{ s//\1/; q; }
32637           s/.*/./; q'`
32638     done
32639     test ! -n "$as_dirs" || mkdir $as_dirs
32640   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32641 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32642    { (exit 1); exit 1; }; }; }
32643
32644     ac_builddir=.
32645
32646 if test "$ac_dir" != .; then
32647   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32648   # A "../" for each directory in $ac_dir_suffix.
32649   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32650 else
32651   ac_dir_suffix= ac_top_builddir=
32652 fi
32653
32654 case $srcdir in
32655   .)  # No --srcdir option.  We are building in place.
32656     ac_srcdir=.
32657     if test -z "$ac_top_builddir"; then
32658        ac_top_srcdir=.
32659     else
32660        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32661     fi ;;
32662   [\\/]* | ?:[\\/]* )  # Absolute path.
32663     ac_srcdir=$srcdir$ac_dir_suffix;
32664     ac_top_srcdir=$srcdir ;;
32665   *) # Relative path.
32666     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32667     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32668 esac
32669
32670 # Do not use `cd foo && pwd` to compute absolute paths, because
32671 # the directories may not exist.
32672 case `pwd` in
32673 .) ac_abs_builddir="$ac_dir";;
32674 *)
32675   case "$ac_dir" in
32676   .) ac_abs_builddir=`pwd`;;
32677   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32678   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32679   esac;;
32680 esac
32681 case $ac_abs_builddir in
32682 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32683 *)
32684   case ${ac_top_builddir}. in
32685   .) ac_abs_top_builddir=$ac_abs_builddir;;
32686   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32687   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32688   esac;;
32689 esac
32690 case $ac_abs_builddir in
32691 .) ac_abs_srcdir=$ac_srcdir;;
32692 *)
32693   case $ac_srcdir in
32694   .) ac_abs_srcdir=$ac_abs_builddir;;
32695   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32696   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32697   esac;;
32698 esac
32699 case $ac_abs_builddir in
32700 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32701 *)
32702   case $ac_top_srcdir in
32703   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32704   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32705   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32706   esac;;
32707 esac
32708
32709
32710     cd $ac_dir
32711
32712     # Check for guested configure; otherwise get Cygnus style configure.
32713     if test -f $ac_srcdir/configure.gnu; then
32714       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32715     elif test -f $ac_srcdir/configure; then
32716       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32717     elif test -f $ac_srcdir/configure.in; then
32718       ac_sub_configure=$ac_configure
32719     else
32720       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32721 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32722       ac_sub_configure=
32723     fi
32724
32725     # The recursion is here.
32726     if test -n "$ac_sub_configure"; then
32727       # Make the cache file name correct relative to the subdirectory.
32728       case $cache_file in
32729       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32730       *) # Relative path.
32731         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32732       esac
32733
32734       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32735 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32736       # The eval makes quoting arguments work.
32737       eval $ac_sub_configure $ac_sub_configure_args \
32738            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32739         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32740 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32741    { (exit 1); exit 1; }; }
32742     fi
32743
32744     cd $ac_popdir
32745   done
32746 fi
32747
32748
32749 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32750  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32751 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32752  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32753 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32754  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32755 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32756  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32757 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32758  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32759 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32760 fi