Changes to support cross-compiling LLVM. The GenLibDeps.pl script needs to
[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.9cvs.
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.9cvs'
429 PACKAGE_STRING='llvm 1.9cvs'
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/privbracket"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
441 ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
442 ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
443 # Factoring default headers for most tests.
444 ac_includes_default="\
445 #include <stdio.h>
446 #if HAVE_SYS_TYPES_H
447 # include <sys/types.h>
448 #endif
449 #if HAVE_SYS_STAT_H
450 # include <sys/stat.h>
451 #endif
452 #if STDC_HEADERS
453 # include <stdlib.h>
454 # include <stddef.h>
455 #else
456 # if HAVE_STDLIB_H
457 #  include <stdlib.h>
458 # endif
459 #endif
460 #if HAVE_STRING_H
461 # if !STDC_HEADERS && HAVE_MEMORY_H
462 #  include <memory.h>
463 # endif
464 # include <string.h>
465 #endif
466 #if HAVE_STRINGS_H
467 # include <strings.h>
468 #endif
469 #if HAVE_INTTYPES_H
470 # include <inttypes.h>
471 #else
472 # if HAVE_STDINT_H
473 #  include <stdint.h>
474 # endif
475 #endif
476 #if HAVE_UNISTD_H
477 # include <unistd.h>
478 #endif"
479
480 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 LLVM_CROSS_COMPILING BUILD_CC BUILD_EXEEXT CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD EXTRA_OPTIONS CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON NM ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ DOT GV DOTTY PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 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'
481 ac_subst_files=''
482
483 # Initialize some variables set by options.
484 ac_init_help=
485 ac_init_version=false
486 # The variables have the same names as the options, with
487 # dashes changed to underlines.
488 cache_file=/dev/null
489 exec_prefix=NONE
490 no_create=
491 no_recursion=
492 prefix=NONE
493 program_prefix=NONE
494 program_suffix=NONE
495 program_transform_name=s,x,x,
496 silent=
497 site=
498 srcdir=
499 verbose=
500 x_includes=NONE
501 x_libraries=NONE
502
503 # Installation directory options.
504 # These are left unexpanded so users can "make install exec_prefix=/foo"
505 # and all the variables that are supposed to be based on exec_prefix
506 # by default will actually change.
507 # Use braces instead of parens because sh, perl, etc. also accept them.
508 bindir='${exec_prefix}/bin'
509 sbindir='${exec_prefix}/sbin'
510 libexecdir='${exec_prefix}/libexec'
511 datadir='${prefix}/share'
512 sysconfdir='${prefix}/etc'
513 sharedstatedir='${prefix}/com'
514 localstatedir='${prefix}/var'
515 libdir='${exec_prefix}/lib'
516 includedir='${prefix}/include'
517 oldincludedir='/usr/include'
518 infodir='${prefix}/info'
519 mandir='${prefix}/man'
520
521 ac_prev=
522 for ac_option
523 do
524   # If the previous option needs an argument, assign it.
525   if test -n "$ac_prev"; then
526     eval "$ac_prev=\$ac_option"
527     ac_prev=
528     continue
529   fi
530
531   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
532
533   # Accept the important Cygnus configure options, so we can diagnose typos.
534
535   case $ac_option in
536
537   -bindir | --bindir | --bindi | --bind | --bin | --bi)
538     ac_prev=bindir ;;
539   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
540     bindir=$ac_optarg ;;
541
542   -build | --build | --buil | --bui | --bu)
543     ac_prev=build_alias ;;
544   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
545     build_alias=$ac_optarg ;;
546
547   -cache-file | --cache-file | --cache-fil | --cache-fi \
548   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
549     ac_prev=cache_file ;;
550   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
551   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
552     cache_file=$ac_optarg ;;
553
554   --config-cache | -C)
555     cache_file=config.cache ;;
556
557   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
558     ac_prev=datadir ;;
559   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
560   | --da=*)
561     datadir=$ac_optarg ;;
562
563   -disable-* | --disable-*)
564     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
565     # Reject names that are not valid shell variable names.
566     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568    { (exit 1); exit 1; }; }
569     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570     eval "enable_$ac_feature=no" ;;
571
572   -enable-* | --enable-*)
573     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
574     # Reject names that are not valid shell variable names.
575     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
577    { (exit 1); exit 1; }; }
578     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579     case $ac_option in
580       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581       *) ac_optarg=yes ;;
582     esac
583     eval "enable_$ac_feature='$ac_optarg'" ;;
584
585   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
586   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
587   | --exec | --exe | --ex)
588     ac_prev=exec_prefix ;;
589   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
590   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
591   | --exec=* | --exe=* | --ex=*)
592     exec_prefix=$ac_optarg ;;
593
594   -gas | --gas | --ga | --g)
595     # Obsolete; use --with-gas.
596     with_gas=yes ;;
597
598   -help | --help | --hel | --he | -h)
599     ac_init_help=long ;;
600   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
601     ac_init_help=recursive ;;
602   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
603     ac_init_help=short ;;
604
605   -host | --host | --hos | --ho)
606     ac_prev=host_alias ;;
607   -host=* | --host=* | --hos=* | --ho=*)
608     host_alias=$ac_optarg ;;
609
610   -includedir | --includedir | --includedi | --included | --include \
611   | --includ | --inclu | --incl | --inc)
612     ac_prev=includedir ;;
613   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
614   | --includ=* | --inclu=* | --incl=* | --inc=*)
615     includedir=$ac_optarg ;;
616
617   -infodir | --infodir | --infodi | --infod | --info | --inf)
618     ac_prev=infodir ;;
619   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
620     infodir=$ac_optarg ;;
621
622   -libdir | --libdir | --libdi | --libd)
623     ac_prev=libdir ;;
624   -libdir=* | --libdir=* | --libdi=* | --libd=*)
625     libdir=$ac_optarg ;;
626
627   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
628   | --libexe | --libex | --libe)
629     ac_prev=libexecdir ;;
630   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
631   | --libexe=* | --libex=* | --libe=*)
632     libexecdir=$ac_optarg ;;
633
634   -localstatedir | --localstatedir | --localstatedi | --localstated \
635   | --localstate | --localstat | --localsta | --localst \
636   | --locals | --local | --loca | --loc | --lo)
637     ac_prev=localstatedir ;;
638   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
639   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
640   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
641     localstatedir=$ac_optarg ;;
642
643   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
644     ac_prev=mandir ;;
645   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
646     mandir=$ac_optarg ;;
647
648   -nfp | --nfp | --nf)
649     # Obsolete; use --without-fp.
650     with_fp=no ;;
651
652   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
653   | --no-cr | --no-c | -n)
654     no_create=yes ;;
655
656   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
657   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
658     no_recursion=yes ;;
659
660   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
661   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
662   | --oldin | --oldi | --old | --ol | --o)
663     ac_prev=oldincludedir ;;
664   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
665   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
666   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
667     oldincludedir=$ac_optarg ;;
668
669   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
670     ac_prev=prefix ;;
671   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
672     prefix=$ac_optarg ;;
673
674   -program-prefix | --program-prefix | --program-prefi | --program-pref \
675   | --program-pre | --program-pr | --program-p)
676     ac_prev=program_prefix ;;
677   -program-prefix=* | --program-prefix=* | --program-prefi=* \
678   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
679     program_prefix=$ac_optarg ;;
680
681   -program-suffix | --program-suffix | --program-suffi | --program-suff \
682   | --program-suf | --program-su | --program-s)
683     ac_prev=program_suffix ;;
684   -program-suffix=* | --program-suffix=* | --program-suffi=* \
685   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
686     program_suffix=$ac_optarg ;;
687
688   -program-transform-name | --program-transform-name \
689   | --program-transform-nam | --program-transform-na \
690   | --program-transform-n | --program-transform- \
691   | --program-transform | --program-transfor \
692   | --program-transfo | --program-transf \
693   | --program-trans | --program-tran \
694   | --progr-tra | --program-tr | --program-t)
695     ac_prev=program_transform_name ;;
696   -program-transform-name=* | --program-transform-name=* \
697   | --program-transform-nam=* | --program-transform-na=* \
698   | --program-transform-n=* | --program-transform-=* \
699   | --program-transform=* | --program-transfor=* \
700   | --program-transfo=* | --program-transf=* \
701   | --program-trans=* | --program-tran=* \
702   | --progr-tra=* | --program-tr=* | --program-t=*)
703     program_transform_name=$ac_optarg ;;
704
705   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
706   | -silent | --silent | --silen | --sile | --sil)
707     silent=yes ;;
708
709   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
710     ac_prev=sbindir ;;
711   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
712   | --sbi=* | --sb=*)
713     sbindir=$ac_optarg ;;
714
715   -sharedstatedir | --sharedstatedir | --sharedstatedi \
716   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
717   | --sharedst | --shareds | --shared | --share | --shar \
718   | --sha | --sh)
719     ac_prev=sharedstatedir ;;
720   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
721   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
722   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
723   | --sha=* | --sh=*)
724     sharedstatedir=$ac_optarg ;;
725
726   -site | --site | --sit)
727     ac_prev=site ;;
728   -site=* | --site=* | --sit=*)
729     site=$ac_optarg ;;
730
731   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
732     ac_prev=srcdir ;;
733   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
734     srcdir=$ac_optarg ;;
735
736   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
737   | --syscon | --sysco | --sysc | --sys | --sy)
738     ac_prev=sysconfdir ;;
739   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
740   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
741     sysconfdir=$ac_optarg ;;
742
743   -target | --target | --targe | --targ | --tar | --ta | --t)
744     ac_prev=target_alias ;;
745   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
746     target_alias=$ac_optarg ;;
747
748   -v | -verbose | --verbose | --verbos | --verbo | --verb)
749     verbose=yes ;;
750
751   -version | --version | --versio | --versi | --vers | -V)
752     ac_init_version=: ;;
753
754   -with-* | --with-*)
755     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package| sed 's/-/_/g'`
761     case $ac_option in
762       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
763       *) ac_optarg=yes ;;
764     esac
765     eval "with_$ac_package='$ac_optarg'" ;;
766
767   -without-* | --without-*)
768     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
769     # Reject names that are not valid shell variable names.
770     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
771       { echo "$as_me: error: invalid package name: $ac_package" >&2
772    { (exit 1); exit 1; }; }
773     ac_package=`echo $ac_package | sed 's/-/_/g'`
774     eval "with_$ac_package=no" ;;
775
776   --x)
777     # Obsolete; use --with-x.
778     with_x=yes ;;
779
780   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
781   | --x-incl | --x-inc | --x-in | --x-i)
782     ac_prev=x_includes ;;
783   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
784   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
785     x_includes=$ac_optarg ;;
786
787   -x-libraries | --x-libraries | --x-librarie | --x-librari \
788   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
789     ac_prev=x_libraries ;;
790   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
791   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
792     x_libraries=$ac_optarg ;;
793
794   -*) { echo "$as_me: error: unrecognized option: $ac_option
795 Try \`$0 --help' for more information." >&2
796    { (exit 1); exit 1; }; }
797     ;;
798
799   *=*)
800     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
801     # Reject names that are not valid shell variable names.
802     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
803       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
804    { (exit 1); exit 1; }; }
805     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
806     eval "$ac_envvar='$ac_optarg'"
807     export $ac_envvar ;;
808
809   *)
810     # FIXME: should be removed in autoconf 3.0.
811     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
812     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
813       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
814     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
815     ;;
816
817   esac
818 done
819
820 if test -n "$ac_prev"; then
821   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
822   { echo "$as_me: error: missing argument to $ac_option" >&2
823    { (exit 1); exit 1; }; }
824 fi
825
826 # Be sure to have absolute paths.
827 for ac_var in exec_prefix prefix
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # Be sure to have absolute paths.
838 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
839               localstatedir libdir includedir oldincludedir infodir mandir
840 do
841   eval ac_val=$`echo $ac_var`
842   case $ac_val in
843     [\\/$]* | ?:[\\/]* ) ;;
844     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845    { (exit 1); exit 1; }; };;
846   esac
847 done
848
849 # There might be people who depend on the old broken behavior: `$host'
850 # used to hold the argument of --host etc.
851 # FIXME: To remove some day.
852 build=$build_alias
853 host=$host_alias
854 target=$target_alias
855
856 # FIXME: To remove some day.
857 if test "x$host_alias" != x; then
858   if test "x$build_alias" = x; then
859     cross_compiling=maybe
860     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
861     If a cross compiler is detected then cross compile mode will be used." >&2
862   elif test "x$build_alias" != "x$host_alias"; then
863     cross_compiling=yes
864   fi
865 fi
866
867 ac_tool_prefix=
868 test -n "$host_alias" && ac_tool_prefix=$host_alias-
869
870 test "$silent" = yes && exec 6>/dev/null
871
872
873 # Find the source files, if location was not specified.
874 if test -z "$srcdir"; then
875   ac_srcdir_defaulted=yes
876   # Try the directory containing this script, then its parent.
877   ac_confdir=`(dirname "$0") 2>/dev/null ||
878 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
879          X"$0" : 'X\(//\)[^/]' \| \
880          X"$0" : 'X\(//\)$' \| \
881          X"$0" : 'X\(/\)' \| \
882          .     : '\(.\)' 2>/dev/null ||
883 echo X"$0" |
884     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
885           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
886           /^X\(\/\/\)$/{ s//\1/; q; }
887           /^X\(\/\).*/{ s//\1/; q; }
888           s/.*/./; q'`
889   srcdir=$ac_confdir
890   if test ! -r $srcdir/$ac_unique_file; then
891     srcdir=..
892   fi
893 else
894   ac_srcdir_defaulted=no
895 fi
896 if test ! -r $srcdir/$ac_unique_file; then
897   if test "$ac_srcdir_defaulted" = yes; then
898     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
899    { (exit 1); exit 1; }; }
900   else
901     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
902    { (exit 1); exit 1; }; }
903   fi
904 fi
905 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
906   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
907    { (exit 1); exit 1; }; }
908 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
909 ac_env_build_alias_set=${build_alias+set}
910 ac_env_build_alias_value=$build_alias
911 ac_cv_env_build_alias_set=${build_alias+set}
912 ac_cv_env_build_alias_value=$build_alias
913 ac_env_host_alias_set=${host_alias+set}
914 ac_env_host_alias_value=$host_alias
915 ac_cv_env_host_alias_set=${host_alias+set}
916 ac_cv_env_host_alias_value=$host_alias
917 ac_env_target_alias_set=${target_alias+set}
918 ac_env_target_alias_value=$target_alias
919 ac_cv_env_target_alias_set=${target_alias+set}
920 ac_cv_env_target_alias_value=$target_alias
921 ac_env_CC_set=${CC+set}
922 ac_env_CC_value=$CC
923 ac_cv_env_CC_set=${CC+set}
924 ac_cv_env_CC_value=$CC
925 ac_env_CFLAGS_set=${CFLAGS+set}
926 ac_env_CFLAGS_value=$CFLAGS
927 ac_cv_env_CFLAGS_set=${CFLAGS+set}
928 ac_cv_env_CFLAGS_value=$CFLAGS
929 ac_env_LDFLAGS_set=${LDFLAGS+set}
930 ac_env_LDFLAGS_value=$LDFLAGS
931 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
932 ac_cv_env_LDFLAGS_value=$LDFLAGS
933 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
934 ac_env_CPPFLAGS_value=$CPPFLAGS
935 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
936 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
937 ac_env_CPP_set=${CPP+set}
938 ac_env_CPP_value=$CPP
939 ac_cv_env_CPP_set=${CPP+set}
940 ac_cv_env_CPP_value=$CPP
941 ac_env_CXX_set=${CXX+set}
942 ac_env_CXX_value=$CXX
943 ac_cv_env_CXX_set=${CXX+set}
944 ac_cv_env_CXX_value=$CXX
945 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
946 ac_env_CXXFLAGS_value=$CXXFLAGS
947 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
948 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
949 ac_env_CXXCPP_set=${CXXCPP+set}
950 ac_env_CXXCPP_value=$CXXCPP
951 ac_cv_env_CXXCPP_set=${CXXCPP+set}
952 ac_cv_env_CXXCPP_value=$CXXCPP
953 ac_env_F77_set=${F77+set}
954 ac_env_F77_value=$F77
955 ac_cv_env_F77_set=${F77+set}
956 ac_cv_env_F77_value=$F77
957 ac_env_FFLAGS_set=${FFLAGS+set}
958 ac_env_FFLAGS_value=$FFLAGS
959 ac_cv_env_FFLAGS_set=${FFLAGS+set}
960 ac_cv_env_FFLAGS_value=$FFLAGS
961
962 #
963 # Report the --help message.
964 #
965 if test "$ac_init_help" = "long"; then
966   # Omit some internal or obsolete options to make the list less imposing.
967   # This message is too long to be a string in the A/UX 3.1 sh.
968   cat <<_ACEOF
969 \`configure' configures llvm 1.9cvs to adapt to many kinds of systems.
970
971 Usage: $0 [OPTION]... [VAR=VALUE]...
972
973 To assign environment variables (e.g., CC, CFLAGS...), specify them as
974 VAR=VALUE.  See below for descriptions of some of the useful variables.
975
976 Defaults for the options are specified in brackets.
977
978 Configuration:
979   -h, --help              display this help and exit
980       --help=short        display options specific to this package
981       --help=recursive    display the short help of all the included packages
982   -V, --version           display version information and exit
983   -q, --quiet, --silent   do not print \`checking...' messages
984       --cache-file=FILE   cache test results in FILE [disabled]
985   -C, --config-cache      alias for \`--cache-file=config.cache'
986   -n, --no-create         do not create output files
987       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
988
989 _ACEOF
990
991   cat <<_ACEOF
992 Installation directories:
993   --prefix=PREFIX         install architecture-independent files in PREFIX
994                           [$ac_default_prefix]
995   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
996                           [PREFIX]
997
998 By default, \`make install' will install all the files in
999 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1000 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001 for instance \`--prefix=\$HOME'.
1002
1003 For better control, use the options below.
1004
1005 Fine tuning of the installation directories:
1006   --bindir=DIR           user executables [EPREFIX/bin]
1007   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1008   --libexecdir=DIR       program executables [EPREFIX/libexec]
1009   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1010   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1011   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1012   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1013   --libdir=DIR           object code libraries [EPREFIX/lib]
1014   --includedir=DIR       C header files [PREFIX/include]
1015   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1016   --infodir=DIR          info documentation [PREFIX/info]
1017   --mandir=DIR           man documentation [PREFIX/man]
1018 _ACEOF
1019
1020   cat <<\_ACEOF
1021
1022 System types:
1023   --build=BUILD     configure for building on BUILD [guessed]
1024   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1025   --target=TARGET   configure for building compilers for TARGET [HOST]
1026 _ACEOF
1027 fi
1028
1029 if test -n "$ac_init_help"; then
1030   case $ac_init_help in
1031      short | recursive ) echo "Configuration of llvm 1.9cvs:";;
1032    esac
1033   cat <<\_ACEOF
1034
1035 Optional Features:
1036   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1037   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1038   --enable-optimized
1039   --enable-assertions
1040   --enable-debug-runtime
1041   --enable-jit            Enable Just In Time Compiling (default is YES)
1042   --enable-doxygen        Build doxygen documentation (default is NO)
1043   --enable-threads        Use threads if available (default is YES)
1044   --enable-targets        Build specific host targets:
1045                           all,host-only,{target-name} (default=all)
1046   --enable-ltdl-install   install libltdl
1047   --enable-shared[=PKGS]
1048                           build shared libraries [default=yes]
1049   --enable-static[=PKGS]
1050                           build static libraries [default=yes]
1051   --enable-fast-install[=PKGS]
1052                           optimize for fast installation [default=yes]
1053   --disable-libtool-lock  avoid locking (might break parallel builds)
1054
1055 Optional Packages:
1056   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1057   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1058   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1059                           searches PATH)
1060   --with-extra-options    Specify addtional options to compile LLVM with
1061   --with-tclinclude       directory where tcl headers are
1062   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1063   --with-pic              try to use only PIC/non-PIC objects [default=use
1064                           both]
1065   --with-tags[=TAGS]
1066                           include additional configurations [automatic]
1067
1068 Some influential environment variables:
1069   CC          C compiler command
1070   CFLAGS      C compiler flags
1071   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1072               nonstandard directory <lib dir>
1073   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074               headers in a nonstandard directory <include dir>
1075   CPP         C preprocessor
1076   CXX         C++ compiler command
1077   CXXFLAGS    C++ compiler flags
1078   CXXCPP      C++ preprocessor
1079   F77         Fortran 77 compiler command
1080   FFLAGS      Fortran 77 compiler flags
1081
1082 Use these variables to override the choices made by `configure' or to help
1083 it to find libraries and programs with nonstandard names/locations.
1084
1085 Report bugs to <llvmbugs@cs.uiuc.edu>.
1086 _ACEOF
1087 fi
1088
1089 if test "$ac_init_help" = "recursive"; then
1090   # If there are subdirs, report their specific --help.
1091   ac_popdir=`pwd`
1092   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093     test -d $ac_dir || continue
1094     ac_builddir=.
1095
1096 if test "$ac_dir" != .; then
1097   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098   # A "../" for each directory in $ac_dir_suffix.
1099   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1100 else
1101   ac_dir_suffix= ac_top_builddir=
1102 fi
1103
1104 case $srcdir in
1105   .)  # No --srcdir option.  We are building in place.
1106     ac_srcdir=.
1107     if test -z "$ac_top_builddir"; then
1108        ac_top_srcdir=.
1109     else
1110        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1111     fi ;;
1112   [\\/]* | ?:[\\/]* )  # Absolute path.
1113     ac_srcdir=$srcdir$ac_dir_suffix;
1114     ac_top_srcdir=$srcdir ;;
1115   *) # Relative path.
1116     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118 esac
1119
1120 # Do not use `cd foo && pwd` to compute absolute paths, because
1121 # the directories may not exist.
1122 case `pwd` in
1123 .) ac_abs_builddir="$ac_dir";;
1124 *)
1125   case "$ac_dir" in
1126   .) ac_abs_builddir=`pwd`;;
1127   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129   esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1133 *)
1134   case ${ac_top_builddir}. in
1135   .) ac_abs_top_builddir=$ac_abs_builddir;;
1136   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138   esac;;
1139 esac
1140 case $ac_abs_builddir in
1141 .) ac_abs_srcdir=$ac_srcdir;;
1142 *)
1143   case $ac_srcdir in
1144   .) ac_abs_srcdir=$ac_abs_builddir;;
1145   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147   esac;;
1148 esac
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1151 *)
1152   case $ac_top_srcdir in
1153   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1156   esac;;
1157 esac
1158
1159     cd $ac_dir
1160     # Check for guested configure; otherwise get Cygnus style configure.
1161     if test -f $ac_srcdir/configure.gnu; then
1162       echo
1163       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1164     elif test -f $ac_srcdir/configure; then
1165       echo
1166       $SHELL $ac_srcdir/configure  --help=recursive
1167     elif test -f $ac_srcdir/configure.ac ||
1168            test -f $ac_srcdir/configure.in; then
1169       echo
1170       $ac_configure --help
1171     else
1172       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1173     fi
1174     cd $ac_popdir
1175   done
1176 fi
1177
1178 test -n "$ac_init_help" && exit 0
1179 if $ac_init_version; then
1180   cat <<\_ACEOF
1181 llvm configure 1.9cvs
1182 generated by GNU Autoconf 2.59
1183
1184 Copyright (C) 2003 Free Software Foundation, Inc.
1185 This configure script is free software; the Free Software Foundation
1186 gives unlimited permission to copy, distribute and modify it.
1187
1188 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1189 _ACEOF
1190   exit 0
1191 fi
1192 exec 5>config.log
1193 cat >&5 <<_ACEOF
1194 This file contains any messages produced by compilers while
1195 running configure, to aid debugging if configure makes a mistake.
1196
1197 It was created by llvm $as_me 1.9cvs, which was
1198 generated by GNU Autoconf 2.59.  Invocation command line was
1199
1200   $ $0 $@
1201
1202 _ACEOF
1203 {
1204 cat <<_ASUNAME
1205 ## --------- ##
1206 ## Platform. ##
1207 ## --------- ##
1208
1209 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1210 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1211 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1212 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1213 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1214
1215 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1216 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1217
1218 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1219 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1220 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1221 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1222 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1223 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1224 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1225
1226 _ASUNAME
1227
1228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1229 for as_dir in $PATH
1230 do
1231   IFS=$as_save_IFS
1232   test -z "$as_dir" && as_dir=.
1233   echo "PATH: $as_dir"
1234 done
1235
1236 } >&5
1237
1238 cat >&5 <<_ACEOF
1239
1240
1241 ## ----------- ##
1242 ## Core tests. ##
1243 ## ----------- ##
1244
1245 _ACEOF
1246
1247
1248 # Keep a trace of the command line.
1249 # Strip out --no-create and --no-recursion so they do not pile up.
1250 # Strip out --silent because we don't want to record it for future runs.
1251 # Also quote any args containing shell meta-characters.
1252 # Make two passes to allow for proper duplicate-argument suppression.
1253 ac_configure_args=
1254 ac_configure_args0=
1255 ac_configure_args1=
1256 ac_sep=
1257 ac_must_keep_next=false
1258 for ac_pass in 1 2
1259 do
1260   for ac_arg
1261   do
1262     case $ac_arg in
1263     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1264     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265     | -silent | --silent | --silen | --sile | --sil)
1266       continue ;;
1267     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1269     esac
1270     case $ac_pass in
1271     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1272     2)
1273       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1274       if test $ac_must_keep_next = true; then
1275         ac_must_keep_next=false # Got value, back to normal.
1276       else
1277         case $ac_arg in
1278           *=* | --config-cache | -C | -disable-* | --disable-* \
1279           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1280           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1281           | -with-* | --with-* | -without-* | --without-* | --x)
1282             case "$ac_configure_args0 " in
1283               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1284             esac
1285             ;;
1286           -* ) ac_must_keep_next=true ;;
1287         esac
1288       fi
1289       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1290       # Get rid of the leading space.
1291       ac_sep=" "
1292       ;;
1293     esac
1294   done
1295 done
1296 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1297 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1298
1299 # When interrupted or exit'd, cleanup temporary files, and complete
1300 # config.log.  We remove comments because anyway the quotes in there
1301 # would cause problems or look ugly.
1302 # WARNING: Be sure not to use single quotes in there, as some shells,
1303 # such as our DU 5.0 friend, will then `close' the trap.
1304 trap 'exit_status=$?
1305   # Save into config.log some information that might help in debugging.
1306   {
1307     echo
1308
1309     cat <<\_ASBOX
1310 ## ---------------- ##
1311 ## Cache variables. ##
1312 ## ---------------- ##
1313 _ASBOX
1314     echo
1315     # The following way of writing the cache mishandles newlines in values,
1316 {
1317   (set) 2>&1 |
1318     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1319     *ac_space=\ *)
1320       sed -n \
1321         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1322           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1323       ;;
1324     *)
1325       sed -n \
1326         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1327       ;;
1328     esac;
1329 }
1330     echo
1331
1332     cat <<\_ASBOX
1333 ## ----------------- ##
1334 ## Output variables. ##
1335 ## ----------------- ##
1336 _ASBOX
1337     echo
1338     for ac_var in $ac_subst_vars
1339     do
1340       eval ac_val=$`echo $ac_var`
1341       echo "$ac_var='"'"'$ac_val'"'"'"
1342     done | sort
1343     echo
1344
1345     if test -n "$ac_subst_files"; then
1346       cat <<\_ASBOX
1347 ## ------------- ##
1348 ## Output files. ##
1349 ## ------------- ##
1350 _ASBOX
1351       echo
1352       for ac_var in $ac_subst_files
1353       do
1354         eval ac_val=$`echo $ac_var`
1355         echo "$ac_var='"'"'$ac_val'"'"'"
1356       done | sort
1357       echo
1358     fi
1359
1360     if test -s confdefs.h; then
1361       cat <<\_ASBOX
1362 ## ----------- ##
1363 ## confdefs.h. ##
1364 ## ----------- ##
1365 _ASBOX
1366       echo
1367       sed "/^$/d" confdefs.h | sort
1368       echo
1369     fi
1370     test "$ac_signal" != 0 &&
1371       echo "$as_me: caught signal $ac_signal"
1372     echo "$as_me: exit $exit_status"
1373   } >&5
1374   rm -f core *.core &&
1375   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1376     exit $exit_status
1377      ' 0
1378 for ac_signal in 1 2 13 15; do
1379   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1380 done
1381 ac_signal=0
1382
1383 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1384 rm -rf conftest* confdefs.h
1385 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1386 echo >confdefs.h
1387
1388 # Predefined preprocessor variables.
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_NAME "$PACKAGE_NAME"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1397 _ACEOF
1398
1399
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1402 _ACEOF
1403
1404
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_STRING "$PACKAGE_STRING"
1407 _ACEOF
1408
1409
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1412 _ACEOF
1413
1414
1415 # Let the site file select an alternate cache file if it wants to.
1416 # Prefer explicitly selected file to automatically selected ones.
1417 if test -z "$CONFIG_SITE"; then
1418   if test "x$prefix" != xNONE; then
1419     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1420   else
1421     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1422   fi
1423 fi
1424 for ac_site_file in $CONFIG_SITE; do
1425   if test -r "$ac_site_file"; then
1426     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1427 echo "$as_me: loading site script $ac_site_file" >&6;}
1428     sed 's/^/| /' "$ac_site_file" >&5
1429     . "$ac_site_file"
1430   fi
1431 done
1432
1433 if test -r "$cache_file"; then
1434   # Some versions of bash will fail to source /dev/null (special
1435   # files actually), so we avoid doing that.
1436   if test -f "$cache_file"; then
1437     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1438 echo "$as_me: loading cache $cache_file" >&6;}
1439     case $cache_file in
1440       [\\/]* | ?:[\\/]* ) . $cache_file;;
1441       *)                      . ./$cache_file;;
1442     esac
1443   fi
1444 else
1445   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1446 echo "$as_me: creating cache $cache_file" >&6;}
1447   >$cache_file
1448 fi
1449
1450 # Check that the precious variables saved in the cache have kept the same
1451 # value.
1452 ac_cache_corrupted=false
1453 for ac_var in `(set) 2>&1 |
1454                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1455   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1456   eval ac_new_set=\$ac_env_${ac_var}_set
1457   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1458   eval ac_new_val="\$ac_env_${ac_var}_value"
1459   case $ac_old_set,$ac_new_set in
1460     set,)
1461       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1463       ac_cache_corrupted=: ;;
1464     ,set)
1465       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1466 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1467       ac_cache_corrupted=: ;;
1468     ,);;
1469     *)
1470       if test "x$ac_old_val" != "x$ac_new_val"; then
1471         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1472 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1473         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1474 echo "$as_me:   former value:  $ac_old_val" >&2;}
1475         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1476 echo "$as_me:   current value: $ac_new_val" >&2;}
1477         ac_cache_corrupted=:
1478       fi;;
1479   esac
1480   # Pass precious variables to config.status.
1481   if test "$ac_new_set" = set; then
1482     case $ac_new_val in
1483     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1484       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1485     *) ac_arg=$ac_var=$ac_new_val ;;
1486     esac
1487     case " $ac_configure_args " in
1488       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1489       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1490     esac
1491   fi
1492 done
1493 if $ac_cache_corrupted; then
1494   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1495 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1496   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1497 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1498    { (exit 1); exit 1; }; }
1499 fi
1500
1501 ac_ext=c
1502 ac_cpp='$CPP $CPPFLAGS'
1503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1533
1534 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1535
1536
1537
1538
1539
1540
1541
1542 ac_aux_dir=
1543 for ac_dir in autoconf $srcdir/autoconf; do
1544   if test -f $ac_dir/install-sh; then
1545     ac_aux_dir=$ac_dir
1546     ac_install_sh="$ac_aux_dir/install-sh -c"
1547     break
1548   elif test -f $ac_dir/install.sh; then
1549     ac_aux_dir=$ac_dir
1550     ac_install_sh="$ac_aux_dir/install.sh -c"
1551     break
1552   elif test -f $ac_dir/shtool; then
1553     ac_aux_dir=$ac_dir
1554     ac_install_sh="$ac_aux_dir/shtool install -c"
1555     break
1556   fi
1557 done
1558 if test -z "$ac_aux_dir"; then
1559   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1560 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1561    { (exit 1); exit 1; }; }
1562 fi
1563 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1564 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1565 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566
1567
1568 if test ${srcdir} != "." ; then
1569   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1570     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1571 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1572    { (exit 1); exit 1; }; }
1573   fi
1574 fi
1575
1576 for i in `ls ${srcdir}/projects`
1577 do
1578   if test -d ${srcdir}/projects/${i} ; then
1579     case ${i} in
1580       "CVS") ;;
1581       "sample")
1582
1583 subdirs="$subdirs projects/sample"
1584     ;;
1585       "Stacker")
1586
1587 subdirs="$subdirs projects/Stacker"
1588    ;;
1589       "privbracket")
1590
1591 subdirs="$subdirs projects/privbracket"
1592  ;;
1593       "llvm-test")
1594
1595 subdirs="$subdirs projects/llvm-test"
1596  ;;
1597       "llvm-reopt")
1598
1599 subdirs="$subdirs projects/llvm-reopt"
1600 ;;
1601       "llvm-gcc")
1602
1603 subdirs="$subdirs projects/llvm-gcc"
1604   ;;
1605       "llvm-java")
1606
1607 subdirs="$subdirs projects/llvm-java"
1608  ;;
1609       "llvm-tv")
1610
1611 subdirs="$subdirs projects/llvm-tv"
1612    ;;
1613       "llvm-poolalloc")
1614
1615 subdirs="$subdirs projects/llvm-poolalloc"
1616  ;;
1617       "llvm-kernel")
1618
1619 subdirs="$subdirs projects/llvm-kernel"
1620  ;;
1621       *)
1622         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1623 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1624         ;;
1625     esac
1626   fi
1627 done
1628
1629
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634    { (exit 1); exit 1; }; }
1635
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639   echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641   ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643   ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647    { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651    { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1656 build=$ac_cv_build
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665   echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667   ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669   ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673    { (exit 1); exit 1; }; }
1674
1675 fi
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1678 host=$ac_cv_host
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684 echo "$as_me:$LINENO: checking target system type" >&5
1685 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1686 if test "${ac_cv_target+set}" = set; then
1687   echo $ECHO_N "(cached) $ECHO_C" >&6
1688 else
1689   ac_cv_target_alias=$target_alias
1690 test "x$ac_cv_target_alias" = "x" &&
1691   ac_cv_target_alias=$ac_cv_host_alias
1692 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1693   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1694 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1695    { (exit 1); exit 1; }; }
1696
1697 fi
1698 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1699 echo "${ECHO_T}$ac_cv_target" >&6
1700 target=$ac_cv_target
1701 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1702 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1703 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1704
1705
1706 # The aliases save the names the user supplied, while $host etc.
1707 # will get canonicalized.
1708 test -n "$target_alias" &&
1709   test "$program_prefix$program_suffix$program_transform_name" = \
1710     NONENONEs,x,x, &&
1711   program_prefix=${target_alias}-
1712
1713 echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
1714 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6
1715 if test "${llvm_cv_os_type+set}" = set; then
1716   echo $ECHO_N "(cached) $ECHO_C" >&6
1717 else
1718   case $host in
1719   *-*-aix*)
1720     llvm_cv_os_type="AIX"
1721     llvm_cv_platform_type="Unix" ;;
1722   *-*-cygwin*)
1723     llvm_cv_os_type="Cygwin"
1724     llvm_cv_platform_type="Unix" ;;
1725   *-*-darwin*)
1726     llvm_cv_os_type="Darwin"
1727     llvm_cv_platform_type="Unix" ;;
1728   *-*-freebsd*)
1729     llvm_cv_os_type="FreeBSD"
1730     llvm_cv_platform_type="Unix" ;;
1731   *-*-openbsd*)
1732     llvm_cv_os_type="OpenBSD"
1733     llvm_cv_platform_type="Unix" ;;
1734   *-*-hpux*)
1735     llvm_cv_os_type="HP-UX"
1736     llvm_cv_platform_type="Unix" ;;
1737   *-*-interix*)
1738     llvm_cv_os_type="Interix"
1739     llvm_cv_platform_type="Unix" ;;
1740   *-*-linux*)
1741     llvm_cv_os_type="Linux"
1742     llvm_cv_platform_type="Unix" ;;
1743   *-*-solaris*)
1744     llvm_cv_os_type="SunOS"
1745     llvm_cv_platform_type="Unix" ;;
1746   *-*-win32*)
1747     llvm_cv_os_type="Win32"
1748     llvm_cv_platform_type="Win32" ;;
1749   *-*-mingw*)
1750     llvm_cv_os_type="MingW"
1751     llvm_cv_platform_type="Win32" ;;
1752   *)
1753     llvm_cv_os_type="Unknown"
1754     llvm_cv_platform_type="Unknown" ;;
1755 esac
1756 fi
1757 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1758 echo "${ECHO_T}$llvm_cv_os_type" >&6
1759
1760 if test "$llvm_cv_os_type" = "Unknown" ; then
1761   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1762 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1763    { (exit 1); exit 1; }; }
1764 fi
1765
1766 OS=$llvm_cv_os_type
1767
1768
1769 case $llvm_cv_platform_type in
1770   Unix)
1771
1772 cat >>confdefs.h <<\_ACEOF
1773 #define LLVM_ON_UNIX 1
1774 _ACEOF
1775
1776     LLVM_ON_UNIX=1
1777
1778     LLVM_ON_WIN32=0
1779
1780     ;;
1781   Win32)
1782
1783 cat >>confdefs.h <<\_ACEOF
1784 #define LLVM_ON_WIN32 1
1785 _ACEOF
1786
1787     LLVM_ON_UNIX=0
1788
1789     LLVM_ON_WIN32=1
1790
1791     ;;
1792 esac
1793
1794 echo "$as_me:$LINENO: checking target architecture" >&5
1795 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1796 if test "${llvm_cv_target_arch+set}" = set; then
1797   echo $ECHO_N "(cached) $ECHO_C" >&6
1798 else
1799   case $target in
1800   i?86-*)                 llvm_cv_target_arch="x86" ;;
1801   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1802   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1803   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1804   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1805   ia64-*)                 llvm_cv_target_arch="IA64" ;;
1806   *)                      llvm_cv_target_arch="Unknown" ;;
1807 esac
1808 fi
1809 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1810 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1811
1812 if test "$llvm_cv_target_arch" = "Unknown" ; then
1813   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1814 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1815 fi
1816
1817 ARCH=$llvm_cv_target_arch
1818
1819
1820 ac_ext=c
1821 ac_cpp='$CPP $CPPFLAGS'
1822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1825 if test -n "$ac_tool_prefix"; then
1826   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1827 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_CC+set}" = set; then
1831   echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833   if test -n "$CC"; then
1834   ac_cv_prog_CC="$CC" # Let the user override the test.
1835 else
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1838 do
1839   IFS=$as_save_IFS
1840   test -z "$as_dir" && as_dir=.
1841   for ac_exec_ext in '' $ac_executable_extensions; do
1842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845     break 2
1846   fi
1847 done
1848 done
1849
1850 fi
1851 fi
1852 CC=$ac_cv_prog_CC
1853 if test -n "$CC"; then
1854   echo "$as_me:$LINENO: result: $CC" >&5
1855 echo "${ECHO_T}$CC" >&6
1856 else
1857   echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 fi
1860
1861 fi
1862 if test -z "$ac_cv_prog_CC"; then
1863   ac_ct_CC=$CC
1864   # Extract the first word of "gcc", so it can be a program name with args.
1865 set dummy gcc; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869   echo $ECHO_N "(cached) $ECHO_C" >&6
1870 else
1871   if test -n "$ac_ct_CC"; then
1872   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1873 else
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 for as_dir in $PATH
1876 do
1877   IFS=$as_save_IFS
1878   test -z "$as_dir" && as_dir=.
1879   for ac_exec_ext in '' $ac_executable_extensions; do
1880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881     ac_cv_prog_ac_ct_CC="gcc"
1882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883     break 2
1884   fi
1885 done
1886 done
1887
1888 fi
1889 fi
1890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1891 if test -n "$ac_ct_CC"; then
1892   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1893 echo "${ECHO_T}$ac_ct_CC" >&6
1894 else
1895   echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1897 fi
1898
1899   CC=$ac_ct_CC
1900 else
1901   CC="$ac_cv_prog_CC"
1902 fi
1903
1904 if test -z "$CC"; then
1905   if test -n "$ac_tool_prefix"; then
1906   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1907 set dummy ${ac_tool_prefix}cc; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_CC+set}" = set; then
1911   echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913   if test -n "$CC"; then
1914   ac_cv_prog_CC="$CC" # Let the user override the test.
1915 else
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1918 do
1919   IFS=$as_save_IFS
1920   test -z "$as_dir" && as_dir=.
1921   for ac_exec_ext in '' $ac_executable_extensions; do
1922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923     ac_cv_prog_CC="${ac_tool_prefix}cc"
1924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925     break 2
1926   fi
1927 done
1928 done
1929
1930 fi
1931 fi
1932 CC=$ac_cv_prog_CC
1933 if test -n "$CC"; then
1934   echo "$as_me:$LINENO: result: $CC" >&5
1935 echo "${ECHO_T}$CC" >&6
1936 else
1937   echo "$as_me:$LINENO: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1939 fi
1940
1941 fi
1942 if test -z "$ac_cv_prog_CC"; then
1943   ac_ct_CC=$CC
1944   # Extract the first word of "cc", so it can be a program name with args.
1945 set dummy cc; ac_word=$2
1946 echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1949   echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951   if test -n "$ac_ct_CC"; then
1952   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1953 else
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 for as_dir in $PATH
1956 do
1957   IFS=$as_save_IFS
1958   test -z "$as_dir" && as_dir=.
1959   for ac_exec_ext in '' $ac_executable_extensions; do
1960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961     ac_cv_prog_ac_ct_CC="cc"
1962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963     break 2
1964   fi
1965 done
1966 done
1967
1968 fi
1969 fi
1970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1971 if test -n "$ac_ct_CC"; then
1972   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1973 echo "${ECHO_T}$ac_ct_CC" >&6
1974 else
1975   echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1977 fi
1978
1979   CC=$ac_ct_CC
1980 else
1981   CC="$ac_cv_prog_CC"
1982 fi
1983
1984 fi
1985 if test -z "$CC"; then
1986   # Extract the first word of "cc", so it can be a program name with args.
1987 set dummy cc; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991   echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993   if test -n "$CC"; then
1994   ac_cv_prog_CC="$CC" # Let the user override the test.
1995 else
1996   ac_prog_rejected=no
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
1999 do
2000   IFS=$as_save_IFS
2001   test -z "$as_dir" && as_dir=.
2002   for ac_exec_ext in '' $ac_executable_extensions; do
2003   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2005        ac_prog_rejected=yes
2006        continue
2007      fi
2008     ac_cv_prog_CC="cc"
2009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010     break 2
2011   fi
2012 done
2013 done
2014
2015 if test $ac_prog_rejected = yes; then
2016   # We found a bogon in the path, so make sure we never use it.
2017   set dummy $ac_cv_prog_CC
2018   shift
2019   if test $# != 0; then
2020     # We chose a different compiler from the bogus one.
2021     # However, it has the same basename, so the bogon will be chosen
2022     # first if we set CC to just the basename; use the full file name.
2023     shift
2024     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2025   fi
2026 fi
2027 fi
2028 fi
2029 CC=$ac_cv_prog_CC
2030 if test -n "$CC"; then
2031   echo "$as_me:$LINENO: result: $CC" >&5
2032 echo "${ECHO_T}$CC" >&6
2033 else
2034   echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2036 fi
2037
2038 fi
2039 if test -z "$CC"; then
2040   if test -n "$ac_tool_prefix"; then
2041   for ac_prog in cl
2042   do
2043     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2045 echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048   echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050   if test -n "$CC"; then
2051   ac_cv_prog_CC="$CC" # Let the user override the test.
2052 else
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 for as_dir in $PATH
2055 do
2056   IFS=$as_save_IFS
2057   test -z "$as_dir" && as_dir=.
2058   for ac_exec_ext in '' $ac_executable_extensions; do
2059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062     break 2
2063   fi
2064 done
2065 done
2066
2067 fi
2068 fi
2069 CC=$ac_cv_prog_CC
2070 if test -n "$CC"; then
2071   echo "$as_me:$LINENO: result: $CC" >&5
2072 echo "${ECHO_T}$CC" >&6
2073 else
2074   echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2076 fi
2077
2078     test -n "$CC" && break
2079   done
2080 fi
2081 if test -z "$CC"; then
2082   ac_ct_CC=$CC
2083   for ac_prog in cl
2084 do
2085   # Extract the first word of "$ac_prog", so it can be a program name with args.
2086 set dummy $ac_prog; ac_word=$2
2087 echo "$as_me:$LINENO: checking for $ac_word" >&5
2088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2090   echo $ECHO_N "(cached) $ECHO_C" >&6
2091 else
2092   if test -n "$ac_ct_CC"; then
2093   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2094 else
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 for as_dir in $PATH
2097 do
2098   IFS=$as_save_IFS
2099   test -z "$as_dir" && as_dir=.
2100   for ac_exec_ext in '' $ac_executable_extensions; do
2101   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2102     ac_cv_prog_ac_ct_CC="$ac_prog"
2103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104     break 2
2105   fi
2106 done
2107 done
2108
2109 fi
2110 fi
2111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112 if test -n "$ac_ct_CC"; then
2113   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114 echo "${ECHO_T}$ac_ct_CC" >&6
2115 else
2116   echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6
2118 fi
2119
2120   test -n "$ac_ct_CC" && break
2121 done
2122
2123   CC=$ac_ct_CC
2124 fi
2125
2126 fi
2127
2128
2129 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2130 See \`config.log' for more details." >&5
2131 echo "$as_me: error: no acceptable C compiler found in \$PATH
2132 See \`config.log' for more details." >&2;}
2133    { (exit 1); exit 1; }; }
2134
2135 # Provide some information about the compiler.
2136 echo "$as_me:$LINENO:" \
2137      "checking for C compiler version" >&5
2138 ac_compiler=`set X $ac_compile; echo $2`
2139 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2140   (eval $ac_compiler --version </dev/null >&5) 2>&5
2141   ac_status=$?
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); }
2144 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2145   (eval $ac_compiler -v </dev/null >&5) 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); }
2149 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2150   (eval $ac_compiler -V </dev/null >&5) 2>&5
2151   ac_status=$?
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); }
2154
2155 cat >conftest.$ac_ext <<_ACEOF
2156 /* confdefs.h.  */
2157 _ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h.  */
2161
2162 int
2163 main ()
2164 {
2165
2166   ;
2167   return 0;
2168 }
2169 _ACEOF
2170 ac_clean_files_save=$ac_clean_files
2171 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2172 # Try to create an executable without -o first, disregard a.out.
2173 # It will help us diagnose broken compilers, and finding out an intuition
2174 # of exeext.
2175 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2176 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2177 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2178 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2179   (eval $ac_link_default) 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); }; then
2183   # Find the output, starting from the most likely.  This scheme is
2184 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2185 # resort.
2186
2187 # Be careful to initialize this variable, since it used to be cached.
2188 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2189 ac_cv_exeext=
2190 # b.out is created by i960 compilers.
2191 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2192 do
2193   test -f "$ac_file" || continue
2194   case $ac_file in
2195     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2196         ;;
2197     conftest.$ac_ext )
2198         # This is the source file.
2199         ;;
2200     [ab].out )
2201         # We found the default executable, but exeext='' is most
2202         # certainly right.
2203         break;;
2204     *.* )
2205         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2206         # FIXME: I believe we export ac_cv_exeext for Libtool,
2207         # but it would be cool to find out if it's true.  Does anybody
2208         # maintain Libtool? --akim.
2209         export ac_cv_exeext
2210         break;;
2211     * )
2212         break;;
2213   esac
2214 done
2215 else
2216   echo "$as_me: failed program was:" >&5
2217 sed 's/^/| /' conftest.$ac_ext >&5
2218
2219 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2220 See \`config.log' for more details." >&5
2221 echo "$as_me: error: C compiler cannot create executables
2222 See \`config.log' for more details." >&2;}
2223    { (exit 77); exit 77; }; }
2224 fi
2225
2226 ac_exeext=$ac_cv_exeext
2227 echo "$as_me:$LINENO: result: $ac_file" >&5
2228 echo "${ECHO_T}$ac_file" >&6
2229
2230 # Check the compiler produces executables we can run.  If not, either
2231 # the compiler is broken, or we cross compile.
2232 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2233 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2234 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2235 # If not cross compiling, check that we can run a simple program.
2236 if test "$cross_compiling" != yes; then
2237   if { ac_try='./$ac_file'
2238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239   (eval $ac_try) 2>&5
2240   ac_status=$?
2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242   (exit $ac_status); }; }; then
2243     cross_compiling=no
2244   else
2245     if test "$cross_compiling" = maybe; then
2246         cross_compiling=yes
2247     else
2248         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2249 If you meant to cross compile, use \`--host'.
2250 See \`config.log' for more details." >&5
2251 echo "$as_me: error: cannot run C compiled programs.
2252 If you meant to cross compile, use \`--host'.
2253 See \`config.log' for more details." >&2;}
2254    { (exit 1); exit 1; }; }
2255     fi
2256   fi
2257 fi
2258 echo "$as_me:$LINENO: result: yes" >&5
2259 echo "${ECHO_T}yes" >&6
2260
2261 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2262 ac_clean_files=$ac_clean_files_save
2263 # Check the compiler produces executables we can run.  If not, either
2264 # the compiler is broken, or we cross compile.
2265 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2266 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2267 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2268 echo "${ECHO_T}$cross_compiling" >&6
2269
2270 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2271 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2273   (eval $ac_link) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; then
2277   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2278 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2279 # work properly (i.e., refer to `conftest.exe'), while it won't with
2280 # `rm'.
2281 for ac_file in conftest.exe conftest conftest.*; do
2282   test -f "$ac_file" || continue
2283   case $ac_file in
2284     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2285     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2286           export ac_cv_exeext
2287           break;;
2288     * ) break;;
2289   esac
2290 done
2291 else
2292   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2293 See \`config.log' for more details." >&5
2294 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2295 See \`config.log' for more details." >&2;}
2296    { (exit 1); exit 1; }; }
2297 fi
2298
2299 rm -f conftest$ac_cv_exeext
2300 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2301 echo "${ECHO_T}$ac_cv_exeext" >&6
2302
2303 rm -f conftest.$ac_ext
2304 EXEEXT=$ac_cv_exeext
2305 ac_exeext=$EXEEXT
2306 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2307 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2308 if test "${ac_cv_objext+set}" = set; then
2309   echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311   cat >conftest.$ac_ext <<_ACEOF
2312 /* confdefs.h.  */
2313 _ACEOF
2314 cat confdefs.h >>conftest.$ac_ext
2315 cat >>conftest.$ac_ext <<_ACEOF
2316 /* end confdefs.h.  */
2317
2318 int
2319 main ()
2320 {
2321
2322   ;
2323   return 0;
2324 }
2325 _ACEOF
2326 rm -f conftest.o conftest.obj
2327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2328   (eval $ac_compile) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; then
2332   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2333   case $ac_file in
2334     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2335     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2336        break;;
2337   esac
2338 done
2339 else
2340   echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2342
2343 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2344 See \`config.log' for more details." >&5
2345 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&2;}
2347    { (exit 1); exit 1; }; }
2348 fi
2349
2350 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2351 fi
2352 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2353 echo "${ECHO_T}$ac_cv_objext" >&6
2354 OBJEXT=$ac_cv_objext
2355 ac_objext=$OBJEXT
2356 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2357 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2358 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2359   echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361   cat >conftest.$ac_ext <<_ACEOF
2362 /* confdefs.h.  */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h.  */
2367
2368 int
2369 main ()
2370 {
2371 #ifndef __GNUC__
2372        choke me
2373 #endif
2374
2375   ;
2376   return 0;
2377 }
2378 _ACEOF
2379 rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381   (eval $ac_compile) 2>conftest.er1
2382   ac_status=$?
2383   grep -v '^ *+' conftest.er1 >conftest.err
2384   rm -f conftest.er1
2385   cat conftest.err >&5
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); } &&
2388          { ac_try='test -z "$ac_c_werror_flag"
2389                          || test ! -s conftest.err'
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); }; } &&
2395          { ac_try='test -s conftest.$ac_objext'
2396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397   (eval $ac_try) 2>&5
2398   ac_status=$?
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); }; }; then
2401   ac_compiler_gnu=yes
2402 else
2403   echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2405
2406 ac_compiler_gnu=no
2407 fi
2408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2409 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2410
2411 fi
2412 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2414 GCC=`test $ac_compiler_gnu = yes && echo yes`
2415 ac_test_CFLAGS=${CFLAGS+set}
2416 ac_save_CFLAGS=$CFLAGS
2417 CFLAGS="-g"
2418 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2419 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2420 if test "${ac_cv_prog_cc_g+set}" = set; then
2421   echo $ECHO_N "(cached) $ECHO_C" >&6
2422 else
2423   cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h.  */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h.  */
2429
2430 int
2431 main ()
2432 {
2433
2434   ;
2435   return 0;
2436 }
2437 _ACEOF
2438 rm -f conftest.$ac_objext
2439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2440   (eval $ac_compile) 2>conftest.er1
2441   ac_status=$?
2442   grep -v '^ *+' conftest.er1 >conftest.err
2443   rm -f conftest.er1
2444   cat conftest.err >&5
2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446   (exit $ac_status); } &&
2447          { ac_try='test -z "$ac_c_werror_flag"
2448                          || test ! -s conftest.err'
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); }; } &&
2454          { ac_try='test -s conftest.$ac_objext'
2455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456   (eval $ac_try) 2>&5
2457   ac_status=$?
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); }; }; then
2460   ac_cv_prog_cc_g=yes
2461 else
2462   echo "$as_me: failed program was:" >&5
2463 sed 's/^/| /' conftest.$ac_ext >&5
2464
2465 ac_cv_prog_cc_g=no
2466 fi
2467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2468 fi
2469 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2470 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2471 if test "$ac_test_CFLAGS" = set; then
2472   CFLAGS=$ac_save_CFLAGS
2473 elif test $ac_cv_prog_cc_g = yes; then
2474   if test "$GCC" = yes; then
2475     CFLAGS="-g -O2"
2476   else
2477     CFLAGS="-g"
2478   fi
2479 else
2480   if test "$GCC" = yes; then
2481     CFLAGS="-O2"
2482   else
2483     CFLAGS=
2484   fi
2485 fi
2486 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2487 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2488 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2489   echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491   ac_cv_prog_cc_stdc=no
2492 ac_save_CC=$CC
2493 cat >conftest.$ac_ext <<_ACEOF
2494 /* confdefs.h.  */
2495 _ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h.  */
2499 #include <stdarg.h>
2500 #include <stdio.h>
2501 #include <sys/types.h>
2502 #include <sys/stat.h>
2503 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2504 struct buf { int x; };
2505 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2506 static char *e (p, i)
2507      char **p;
2508      int i;
2509 {
2510   return p[i];
2511 }
2512 static char *f (char * (*g) (char **, int), char **p, ...)
2513 {
2514   char *s;
2515   va_list v;
2516   va_start (v,p);
2517   s = g (p, va_arg (v,int));
2518   va_end (v);
2519   return s;
2520 }
2521
2522 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2523    function prototypes and stuff, but not '\xHH' hex character constants.
2524    These don't provoke an error unfortunately, instead are silently treated
2525    as 'x'.  The following induces an error, until -std1 is added to get
2526    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2527    array size at least.  It's necessary to write '\x00'==0 to get something
2528    that's true only with -std1.  */
2529 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2530
2531 int test (int i, double x);
2532 struct s1 {int (*f) (int a);};
2533 struct s2 {int (*f) (double a);};
2534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2535 int argc;
2536 char **argv;
2537 int
2538 main ()
2539 {
2540 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2541   ;
2542   return 0;
2543 }
2544 _ACEOF
2545 # Don't try gcc -ansi; that turns off useful extensions and
2546 # breaks some systems' header files.
2547 # AIX                   -qlanglvl=ansi
2548 # Ultrix and OSF/1      -std1
2549 # HP-UX 10.20 and later -Ae
2550 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2551 # SVR4                  -Xc -D__EXTENSIONS__
2552 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2553 do
2554   CC="$ac_save_CC $ac_arg"
2555   rm -f conftest.$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557   (eval $ac_compile) 2>conftest.er1
2558   ac_status=$?
2559   grep -v '^ *+' conftest.er1 >conftest.err
2560   rm -f conftest.er1
2561   cat conftest.err >&5
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); } &&
2564          { ac_try='test -z "$ac_c_werror_flag"
2565                          || test ! -s conftest.err'
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); }; } &&
2571          { ac_try='test -s conftest.$ac_objext'
2572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573   (eval $ac_try) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); }; }; then
2577   ac_cv_prog_cc_stdc=$ac_arg
2578 break
2579 else
2580   echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583 fi
2584 rm -f conftest.err conftest.$ac_objext
2585 done
2586 rm -f conftest.$ac_ext conftest.$ac_objext
2587 CC=$ac_save_CC
2588
2589 fi
2590
2591 case "x$ac_cv_prog_cc_stdc" in
2592   x|xno)
2593     echo "$as_me:$LINENO: result: none needed" >&5
2594 echo "${ECHO_T}none needed" >&6 ;;
2595   *)
2596     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2597 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2598     CC="$CC $ac_cv_prog_cc_stdc" ;;
2599 esac
2600
2601 # Some people use a C++ compiler to compile C.  Since we use `exit',
2602 # in C++ we need to declare it.  In case someone uses the same compiler
2603 # for both compiling C and C++ we need to have the C++ compiler decide
2604 # the declaration of exit, since it's the most demanding environment.
2605 cat >conftest.$ac_ext <<_ACEOF
2606 #ifndef __cplusplus
2607   choke me
2608 #endif
2609 _ACEOF
2610 rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612   (eval $ac_compile) 2>conftest.er1
2613   ac_status=$?
2614   grep -v '^ *+' conftest.er1 >conftest.err
2615   rm -f conftest.er1
2616   cat conftest.err >&5
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); } &&
2619          { ac_try='test -z "$ac_c_werror_flag"
2620                          || test ! -s conftest.err'
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); }; } &&
2626          { ac_try='test -s conftest.$ac_objext'
2627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628   (eval $ac_try) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }; }; then
2632   for ac_declaration in \
2633    '' \
2634    'extern "C" void std::exit (int) throw (); using std::exit;' \
2635    'extern "C" void std::exit (int); using std::exit;' \
2636    'extern "C" void exit (int) throw ();' \
2637    'extern "C" void exit (int);' \
2638    'void exit (int);'
2639 do
2640   cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h.  */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h.  */
2646 $ac_declaration
2647 #include <stdlib.h>
2648 int
2649 main ()
2650 {
2651 exit (42);
2652   ;
2653   return 0;
2654 }
2655 _ACEOF
2656 rm -f conftest.$ac_objext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658   (eval $ac_compile) 2>conftest.er1
2659   ac_status=$?
2660   grep -v '^ *+' conftest.er1 >conftest.err
2661   rm -f conftest.er1
2662   cat conftest.err >&5
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); } &&
2665          { ac_try='test -z "$ac_c_werror_flag"
2666                          || test ! -s conftest.err'
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); }; } &&
2672          { ac_try='test -s conftest.$ac_objext'
2673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674   (eval $ac_try) 2>&5
2675   ac_status=$?
2676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677   (exit $ac_status); }; }; then
2678   :
2679 else
2680   echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2682
2683 continue
2684 fi
2685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686   cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h.  */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h.  */
2692 $ac_declaration
2693 int
2694 main ()
2695 {
2696 exit (42);
2697   ;
2698   return 0;
2699 }
2700 _ACEOF
2701 rm -f conftest.$ac_objext
2702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703   (eval $ac_compile) 2>conftest.er1
2704   ac_status=$?
2705   grep -v '^ *+' conftest.er1 >conftest.err
2706   rm -f conftest.er1
2707   cat conftest.err >&5
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); } &&
2710          { ac_try='test -z "$ac_c_werror_flag"
2711                          || test ! -s conftest.err'
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); }; } &&
2717          { ac_try='test -s conftest.$ac_objext'
2718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719   (eval $ac_try) 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); }; }; then
2723   break
2724 else
2725   echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2727
2728 fi
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730 done
2731 rm -f conftest*
2732 if test -n "$ac_declaration"; then
2733   echo '#ifdef __cplusplus' >>confdefs.h
2734   echo $ac_declaration      >>confdefs.h
2735   echo '#endif'             >>confdefs.h
2736 fi
2737
2738 else
2739   echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2741
2742 fi
2743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2744 ac_ext=c
2745 ac_cpp='$CPP $CPPFLAGS'
2746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749
2750
2751 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2752 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2753 if test "${ac_cv_c_bigendian+set}" = set; then
2754   echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756   # See if sys/param.h defines the BYTE_ORDER macro.
2757 cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h.  */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h.  */
2763 #include <sys/types.h>
2764 #include <sys/param.h>
2765
2766 int
2767 main ()
2768 {
2769 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2770  bogus endian macros
2771 #endif
2772
2773   ;
2774   return 0;
2775 }
2776 _ACEOF
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779   (eval $ac_compile) 2>conftest.er1
2780   ac_status=$?
2781   grep -v '^ *+' conftest.er1 >conftest.err
2782   rm -f conftest.er1
2783   cat conftest.err >&5
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); } &&
2786          { ac_try='test -z "$ac_c_werror_flag"
2787                          || test ! -s conftest.err'
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); }; } &&
2793          { ac_try='test -s conftest.$ac_objext'
2794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; }; then
2799   # It does; now see whether it defined to BIG_ENDIAN or not.
2800 cat >conftest.$ac_ext <<_ACEOF
2801 /* confdefs.h.  */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h.  */
2806 #include <sys/types.h>
2807 #include <sys/param.h>
2808
2809 int
2810 main ()
2811 {
2812 #if BYTE_ORDER != BIG_ENDIAN
2813  not big endian
2814 #endif
2815
2816   ;
2817   return 0;
2818 }
2819 _ACEOF
2820 rm -f conftest.$ac_objext
2821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822   (eval $ac_compile) 2>conftest.er1
2823   ac_status=$?
2824   grep -v '^ *+' conftest.er1 >conftest.err
2825   rm -f conftest.er1
2826   cat conftest.err >&5
2827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828   (exit $ac_status); } &&
2829          { ac_try='test -z "$ac_c_werror_flag"
2830                          || test ! -s conftest.err'
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); }; } &&
2836          { ac_try='test -s conftest.$ac_objext'
2837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838   (eval $ac_try) 2>&5
2839   ac_status=$?
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); }; }; then
2842   ac_cv_c_bigendian=yes
2843 else
2844   echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2846
2847 ac_cv_c_bigendian=no
2848 fi
2849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2850 else
2851   echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2853
2854 # It does not; compile a test program.
2855 if test "$cross_compiling" = yes; then
2856   # try to guess the endianness by grepping values into an object file
2857   ac_cv_c_bigendian=unknown
2858   cat >conftest.$ac_ext <<_ACEOF
2859 /* confdefs.h.  */
2860 _ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h.  */
2864 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2865 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2866 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2867 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2868 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2869 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2870 int
2871 main ()
2872 {
2873  _ascii (); _ebcdic ();
2874   ;
2875   return 0;
2876 }
2877 _ACEOF
2878 rm -f conftest.$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880   (eval $ac_compile) 2>conftest.er1
2881   ac_status=$?
2882   grep -v '^ *+' conftest.er1 >conftest.err
2883   rm -f conftest.er1
2884   cat conftest.err >&5
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); } &&
2887          { ac_try='test -z "$ac_c_werror_flag"
2888                          || test ! -s conftest.err'
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); }; } &&
2894          { ac_try='test -s conftest.$ac_objext'
2895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896   (eval $ac_try) 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; }; then
2900   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2901   ac_cv_c_bigendian=yes
2902 fi
2903 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2904   if test "$ac_cv_c_bigendian" = unknown; then
2905     ac_cv_c_bigendian=no
2906   else
2907     # finding both strings is unlikely to happen, but who knows?
2908     ac_cv_c_bigendian=unknown
2909   fi
2910 fi
2911 else
2912   echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2914
2915 fi
2916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2917 else
2918   cat >conftest.$ac_ext <<_ACEOF
2919 /* confdefs.h.  */
2920 _ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h.  */
2924 int
2925 main ()
2926 {
2927   /* Are we little or big endian?  From Harbison&Steele.  */
2928   union
2929   {
2930     long l;
2931     char c[sizeof (long)];
2932   } u;
2933   u.l = 1;
2934   exit (u.c[sizeof (long) - 1] == 1);
2935 }
2936 _ACEOF
2937 rm -f conftest$ac_exeext
2938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2939   (eval $ac_link) 2>&5
2940   ac_status=$?
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944   (eval $ac_try) 2>&5
2945   ac_status=$?
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); }; }; then
2948   ac_cv_c_bigendian=no
2949 else
2950   echo "$as_me: program exited with status $ac_status" >&5
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2953
2954 ( exit $ac_status )
2955 ac_cv_c_bigendian=yes
2956 fi
2957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2958 fi
2959 fi
2960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2961 fi
2962 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2963 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2964 case $ac_cv_c_bigendian in
2965   yes)
2966     ENDIAN=big
2967  ;;
2968   no)
2969     ENDIAN=little
2970  ;;
2971   *)
2972     { { echo "$as_me:$LINENO: error: unknown endianness
2973 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2974 echo "$as_me: error: unknown endianness
2975 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2976    { (exit 1); exit 1; }; } ;;
2977 esac
2978
2979
2980 if test "$cross_compiling" = yes; then
2981   LLVM_CROSS_COMPILING=1
2982
2983
2984 echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
2985 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6
2986 if test "${ac_cv_build_exeext+set}" = set; then
2987   echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2990   ac_cv_build_exeext=.exe
2991 else
2992   ac_build_prefix=${build_alias}-
2993
2994   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
2995 set dummy ${ac_build_prefix}gcc; ac_word=$2
2996 echo "$as_me:$LINENO: checking for $ac_word" >&5
2997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2998 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2999   echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001   if test -n "$BUILD_CC"; then
3002   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007   IFS=$as_save_IFS
3008   test -z "$as_dir" && as_dir=.
3009   for ac_exec_ext in '' $ac_executable_extensions; do
3010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3011     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
3012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013     break 2
3014   fi
3015 done
3016 done
3017
3018 fi
3019 fi
3020 BUILD_CC=$ac_cv_prog_BUILD_CC
3021 if test -n "$BUILD_CC"; then
3022   echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3023 echo "${ECHO_T}$BUILD_CC" >&6
3024 else
3025   echo "$as_me:$LINENO: result: no" >&5
3026 echo "${ECHO_T}no" >&6
3027 fi
3028
3029   if test -z "$BUILD_CC"; then
3030      # Extract the first word of "gcc", so it can be a program name with args.
3031 set dummy gcc; ac_word=$2
3032 echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3034 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3035   echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037   if test -n "$BUILD_CC"; then
3038   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3042 do
3043   IFS=$as_save_IFS
3044   test -z "$as_dir" && as_dir=.
3045   for ac_exec_ext in '' $ac_executable_extensions; do
3046   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047     ac_cv_prog_BUILD_CC="gcc"
3048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049     break 2
3050   fi
3051 done
3052 done
3053
3054 fi
3055 fi
3056 BUILD_CC=$ac_cv_prog_BUILD_CC
3057 if test -n "$BUILD_CC"; then
3058   echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3059 echo "${ECHO_T}$BUILD_CC" >&6
3060 else
3061   echo "$as_me:$LINENO: result: no" >&5
3062 echo "${ECHO_T}no" >&6
3063 fi
3064
3065      if test -z "$BUILD_CC"; then
3066        # Extract the first word of "cc", so it can be a program name with args.
3067 set dummy cc; ac_word=$2
3068 echo "$as_me:$LINENO: checking for $ac_word" >&5
3069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3070 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3071   echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073   if test -n "$BUILD_CC"; then
3074   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3075 else
3076   ac_prog_rejected=no
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080   IFS=$as_save_IFS
3081   test -z "$as_dir" && as_dir=.
3082   for ac_exec_ext in '' $ac_executable_extensions; do
3083   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3085        ac_prog_rejected=yes
3086        continue
3087      fi
3088     ac_cv_prog_BUILD_CC="cc"
3089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090     break 2
3091   fi
3092 done
3093 done
3094
3095 if test $ac_prog_rejected = yes; then
3096   # We found a bogon in the path, so make sure we never use it.
3097   set dummy $ac_cv_prog_BUILD_CC
3098   shift
3099   if test $# != 0; then
3100     # We chose a different compiler from the bogus one.
3101     # However, it has the same basename, so the bogon will be chosen
3102     # first if we set BUILD_CC to just the basename; use the full file name.
3103     shift
3104     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
3105   fi
3106 fi
3107 fi
3108 fi
3109 BUILD_CC=$ac_cv_prog_BUILD_CC
3110 if test -n "$BUILD_CC"; then
3111   echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3112 echo "${ECHO_T}$BUILD_CC" >&6
3113 else
3114   echo "$as_me:$LINENO: result: no" >&5
3115 echo "${ECHO_T}no" >&6
3116 fi
3117
3118      fi
3119   fi
3120   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3121 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3122    { (exit 1); exit 1; }; }
3123   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3124   rm -f conftest*
3125   echo 'int main () { return 0; }' > conftest.$ac_ext
3126   ac_cv_build_exeext=
3127   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
3128   (eval $ac_build_link) 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }; then
3132     for file in conftest.*; do
3133       case $file in
3134       *.c | *.o | *.obj) ;;
3135       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
3136       esac
3137     done
3138   else
3139     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
3140 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
3141    { (exit 1); exit 1; }; }
3142   fi
3143   rm -f conftest*
3144   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
3145 fi
3146 fi
3147
3148 BUILD_EXEEXT=""
3149 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
3150 echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
3151 echo "${ECHO_T}${ac_cv_build_exeext}" >&6
3152 ac_build_exeext=$BUILD_EXEEXT
3153
3154 else
3155   LLVM_CROSS_COMPILING=0
3156
3157 fi
3158
3159 if test -d "CVS" -o -d "${srcdir}/CVS"; then
3160   cvsbuild="yes"
3161   optimize="no"
3162   CVSBUILD=CVSBUILD=1
3163
3164 else
3165   cvsbuild="no"
3166   optimize="yes"
3167 fi
3168
3169
3170 # Check whether --enable-optimized or --disable-optimized was given.
3171 if test "${enable_optimized+set}" = set; then
3172   enableval="$enable_optimized"
3173
3174 else
3175   enableval=$optimize
3176 fi;
3177 if test ${enableval} = "no" ; then
3178   ENABLE_OPTIMIZED=
3179
3180 else
3181   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
3182
3183 fi
3184
3185 # Check whether --enable-assertions or --disable-assertions was given.
3186 if test "${enable_assertions+set}" = set; then
3187   enableval="$enable_assertions"
3188
3189 else
3190   enableval="yes"
3191 fi;
3192 if test ${enableval} = "yes" ; then
3193   DISABLE_ASSERTIONS=
3194
3195 else
3196   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
3197
3198 fi
3199
3200 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3201 if test "${enable_debug_runtime+set}" = set; then
3202   enableval="$enable_debug_runtime"
3203
3204 else
3205   enableval=no
3206 fi;
3207 if test ${enableval} = "no" ; then
3208   DEBUG_RUNTIME=
3209
3210 else
3211   DEBUG_RUNTIME=DEBUG_RUNTIME=1
3212
3213 fi
3214
3215 # Check whether --enable-jit or --disable-jit was given.
3216 if test "${enable_jit+set}" = set; then
3217   enableval="$enable_jit"
3218
3219 else
3220   enableval=default
3221 fi;
3222 if test ${enableval} = "no"
3223 then
3224   JIT=
3225
3226 else
3227   case "$llvm_cv_target_arch" in
3228     x86)     TARGET_HAS_JIT=1
3229  ;;
3230     Sparc)   TARGET_HAS_JIT=1
3231  ;;
3232     PowerPC) TARGET_HAS_JIT=1
3233  ;;
3234     x86_64)  TARGET_HAS_JIT=0
3235  ;;
3236     Alpha)   TARGET_HAS_JIT=1
3237  ;;
3238     IA64)    TARGET_HAS_JIT=0
3239  ;;
3240     *)       TARGET_HAS_JIT=0
3241  ;;
3242   esac
3243 fi
3244
3245 # Check whether --enable-doxygen or --disable-doxygen was given.
3246 if test "${enable_doxygen+set}" = set; then
3247   enableval="$enable_doxygen"
3248
3249 else
3250   enableval=default
3251 fi;
3252 case "$enableval" in
3253   yes) ENABLE_DOXYGEN=1
3254  ;;
3255   no)  ENABLE_DOXYGEN=0
3256  ;;
3257   default) ENABLE_DOXYGEN=0
3258  ;;
3259   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3260 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3261    { (exit 1); exit 1; }; } ;;
3262 esac
3263
3264 # Check whether --enable-threads or --disable-threads was given.
3265 if test "${enable_threads+set}" = set; then
3266   enableval="$enable_threads"
3267
3268 else
3269   enableval=yes
3270 fi;
3271 case "$enableval" in
3272   yes) ENABLE_THREADS=1
3273  ;;
3274   no)  ENABLE_THREADS=0
3275  ;;
3276   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3277 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3278    { (exit 1); exit 1; }; } ;;
3279 esac
3280
3281 cat >>confdefs.h <<_ACEOF
3282 #define ENABLE_THREADS $ENABLE_THREADS
3283 _ACEOF
3284
3285
3286 TARGETS_TO_BUILD=""
3287 # Check whether --enable-targets or --disable-targets was given.
3288 if test "${enable_targets+set}" = set; then
3289   enableval="$enable_targets"
3290
3291 else
3292   enableval=all
3293 fi;
3294 case "$enableval" in
3295   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
3296   host-only)
3297     case "$llvm_cv_target_arch" in
3298       x86)     TARGETS_TO_BUILD="X86" ;;
3299       x86_64)  TARGETS_TO_BUILD="X86" ;;
3300       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
3301       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3302       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3303       IA64)    TARGETS_TO_BUILD="IA64" ;;
3304       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3305 echo "$as_me: error: Can not set target to build" >&2;}
3306    { (exit 1); exit 1; }; } ;;
3307     esac
3308     ;;
3309   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3310       case "$a_target" in
3311         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3312         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3313         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
3314         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3315         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3316         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3317         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3318 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3319    { (exit 1); exit 1; }; } ;;
3320       esac
3321   done
3322   ;;
3323 esac
3324 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3325 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3326
3327
3328
3329 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3330 if test "${with_llvmgccdir+set}" = set; then
3331   withval="$with_llvmgccdir"
3332
3333 else
3334   withval=default
3335 fi;
3336 case "$withval" in
3337   default) WITH_LLVMGCCDIR=default ;;
3338   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
3339   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3340 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3341    { (exit 1); exit 1; }; } ;;
3342 esac
3343
3344
3345 # Check whether --with-extra-options or --without-extra-options was given.
3346 if test "${with_extra_options+set}" = set; then
3347   withval="$with_extra_options"
3348
3349 else
3350   extraopts=default
3351 fi;
3352 case "$extraopts" in
3353   default) EXTRA_OPTIONS= ;;
3354   *) EXTRA_OPTIONS=$extraopts ;;
3355 esac
3356 EXTRA_OPTIONS=$EXTRA_OPTIONS
3357
3358
3359
3360 ac_ext=c
3361 ac_cpp='$CPP $CPPFLAGS'
3362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3366 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3367 # On Suns, sometimes $CPP names a directory.
3368 if test -n "$CPP" && test -d "$CPP"; then
3369   CPP=
3370 fi
3371 if test -z "$CPP"; then
3372   if test "${ac_cv_prog_CPP+set}" = set; then
3373   echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375       # Double quotes because CPP needs to be expanded
3376     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3377     do
3378       ac_preproc_ok=false
3379 for ac_c_preproc_warn_flag in '' yes
3380 do
3381   # Use a header file that comes with gcc, so configuring glibc
3382   # with a fresh cross-compiler works.
3383   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384   # <limits.h> exists even on freestanding compilers.
3385   # On the NeXT, cc -E runs the code through the compiler's parser,
3386   # not just through cpp. "Syntax error" is here to catch this case.
3387   cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h.  */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h.  */
3393 #ifdef __STDC__
3394 # include <limits.h>
3395 #else
3396 # include <assert.h>
3397 #endif
3398                      Syntax error
3399 _ACEOF
3400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3401   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3402   ac_status=$?
3403   grep -v '^ *+' conftest.er1 >conftest.err
3404   rm -f conftest.er1
3405   cat conftest.err >&5
3406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407   (exit $ac_status); } >/dev/null; then
3408   if test -s conftest.err; then
3409     ac_cpp_err=$ac_c_preproc_warn_flag
3410     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3411   else
3412     ac_cpp_err=
3413   fi
3414 else
3415   ac_cpp_err=yes
3416 fi
3417 if test -z "$ac_cpp_err"; then
3418   :
3419 else
3420   echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423   # Broken: fails on valid input.
3424 continue
3425 fi
3426 rm -f conftest.err conftest.$ac_ext
3427
3428   # OK, works on sane cases.  Now check whether non-existent headers
3429   # can be detected and how.
3430   cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h.  */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h.  */
3436 #include <ac_nonexistent.h>
3437 _ACEOF
3438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3439   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3440   ac_status=$?
3441   grep -v '^ *+' conftest.er1 >conftest.err
3442   rm -f conftest.er1
3443   cat conftest.err >&5
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); } >/dev/null; then
3446   if test -s conftest.err; then
3447     ac_cpp_err=$ac_c_preproc_warn_flag
3448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449   else
3450     ac_cpp_err=
3451   fi
3452 else
3453   ac_cpp_err=yes
3454 fi
3455 if test -z "$ac_cpp_err"; then
3456   # Broken: success on invalid input.
3457 continue
3458 else
3459   echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462   # Passes both tests.
3463 ac_preproc_ok=:
3464 break
3465 fi
3466 rm -f conftest.err conftest.$ac_ext
3467
3468 done
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then
3472   break
3473 fi
3474
3475     done
3476     ac_cv_prog_CPP=$CPP
3477
3478 fi
3479   CPP=$ac_cv_prog_CPP
3480 else
3481   ac_cv_prog_CPP=$CPP
3482 fi
3483 echo "$as_me:$LINENO: result: $CPP" >&5
3484 echo "${ECHO_T}$CPP" >&6
3485 ac_preproc_ok=false
3486 for ac_c_preproc_warn_flag in '' yes
3487 do
3488   # Use a header file that comes with gcc, so configuring glibc
3489   # with a fresh cross-compiler works.
3490   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3491   # <limits.h> exists even on freestanding compilers.
3492   # On the NeXT, cc -E runs the code through the compiler's parser,
3493   # not just through cpp. "Syntax error" is here to catch this case.
3494   cat >conftest.$ac_ext <<_ACEOF
3495 /* confdefs.h.  */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h.  */
3500 #ifdef __STDC__
3501 # include <limits.h>
3502 #else
3503 # include <assert.h>
3504 #endif
3505                      Syntax error
3506 _ACEOF
3507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3508   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3509   ac_status=$?
3510   grep -v '^ *+' conftest.er1 >conftest.err
3511   rm -f conftest.er1
3512   cat conftest.err >&5
3513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514   (exit $ac_status); } >/dev/null; then
3515   if test -s conftest.err; then
3516     ac_cpp_err=$ac_c_preproc_warn_flag
3517     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3518   else
3519     ac_cpp_err=
3520   fi
3521 else
3522   ac_cpp_err=yes
3523 fi
3524 if test -z "$ac_cpp_err"; then
3525   :
3526 else
3527   echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3529
3530   # Broken: fails on valid input.
3531 continue
3532 fi
3533 rm -f conftest.err conftest.$ac_ext
3534
3535   # OK, works on sane cases.  Now check whether non-existent headers
3536   # can be detected and how.
3537   cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h.  */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h.  */
3543 #include <ac_nonexistent.h>
3544 _ACEOF
3545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3546   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3547   ac_status=$?
3548   grep -v '^ *+' conftest.er1 >conftest.err
3549   rm -f conftest.er1
3550   cat conftest.err >&5
3551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552   (exit $ac_status); } >/dev/null; then
3553   if test -s conftest.err; then
3554     ac_cpp_err=$ac_c_preproc_warn_flag
3555     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3556   else
3557     ac_cpp_err=
3558   fi
3559 else
3560   ac_cpp_err=yes
3561 fi
3562 if test -z "$ac_cpp_err"; then
3563   # Broken: success on invalid input.
3564 continue
3565 else
3566   echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3568
3569   # Passes both tests.
3570 ac_preproc_ok=:
3571 break
3572 fi
3573 rm -f conftest.err conftest.$ac_ext
3574
3575 done
3576 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3577 rm -f conftest.err conftest.$ac_ext
3578 if $ac_preproc_ok; then
3579   :
3580 else
3581   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3582 See \`config.log' for more details." >&5
3583 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3584 See \`config.log' for more details." >&2;}
3585    { (exit 1); exit 1; }; }
3586 fi
3587
3588 ac_ext=c
3589 ac_cpp='$CPP $CPPFLAGS'
3590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593
3594 ac_ext=c
3595 ac_cpp='$CPP $CPPFLAGS'
3596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3599 if test -n "$ac_tool_prefix"; then
3600   for ac_prog in gcc
3601   do
3602     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3604 echo "$as_me:$LINENO: checking for $ac_word" >&5
3605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3606 if test "${ac_cv_prog_CC+set}" = set; then
3607   echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609   if test -n "$CC"; then
3610   ac_cv_prog_CC="$CC" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3614 do
3615   IFS=$as_save_IFS
3616   test -z "$as_dir" && as_dir=.
3617   for ac_exec_ext in '' $ac_executable_extensions; do
3618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3621     break 2
3622   fi
3623 done
3624 done
3625
3626 fi
3627 fi
3628 CC=$ac_cv_prog_CC
3629 if test -n "$CC"; then
3630   echo "$as_me:$LINENO: result: $CC" >&5
3631 echo "${ECHO_T}$CC" >&6
3632 else
3633   echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6
3635 fi
3636
3637     test -n "$CC" && break
3638   done
3639 fi
3640 if test -z "$CC"; then
3641   ac_ct_CC=$CC
3642   for ac_prog in gcc
3643 do
3644   # Extract the first word of "$ac_prog", so it can be a program name with args.
3645 set dummy $ac_prog; ac_word=$2
3646 echo "$as_me:$LINENO: checking for $ac_word" >&5
3647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3649   echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651   if test -n "$ac_ct_CC"; then
3652   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3656 do
3657   IFS=$as_save_IFS
3658   test -z "$as_dir" && as_dir=.
3659   for ac_exec_ext in '' $ac_executable_extensions; do
3660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661     ac_cv_prog_ac_ct_CC="$ac_prog"
3662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3663     break 2
3664   fi
3665 done
3666 done
3667
3668 fi
3669 fi
3670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3671 if test -n "$ac_ct_CC"; then
3672   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3673 echo "${ECHO_T}$ac_ct_CC" >&6
3674 else
3675   echo "$as_me:$LINENO: result: no" >&5
3676 echo "${ECHO_T}no" >&6
3677 fi
3678
3679   test -n "$ac_ct_CC" && break
3680 done
3681
3682   CC=$ac_ct_CC
3683 fi
3684
3685
3686 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3687 See \`config.log' for more details." >&5
3688 echo "$as_me: error: no acceptable C compiler found in \$PATH
3689 See \`config.log' for more details." >&2;}
3690    { (exit 1); exit 1; }; }
3691
3692 # Provide some information about the compiler.
3693 echo "$as_me:$LINENO:" \
3694      "checking for C compiler version" >&5
3695 ac_compiler=`set X $ac_compile; echo $2`
3696 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3697   (eval $ac_compiler --version </dev/null >&5) 2>&5
3698   ac_status=$?
3699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700   (exit $ac_status); }
3701 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3702   (eval $ac_compiler -v </dev/null >&5) 2>&5
3703   ac_status=$?
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); }
3706 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3707   (eval $ac_compiler -V </dev/null >&5) 2>&5
3708   ac_status=$?
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); }
3711
3712 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3713 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3714 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   cat >conftest.$ac_ext <<_ACEOF
3718 /* confdefs.h.  */
3719 _ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h.  */
3723
3724 int
3725 main ()
3726 {
3727 #ifndef __GNUC__
3728        choke me
3729 #endif
3730
3731   ;
3732   return 0;
3733 }
3734 _ACEOF
3735 rm -f conftest.$ac_objext
3736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737   (eval $ac_compile) 2>conftest.er1
3738   ac_status=$?
3739   grep -v '^ *+' conftest.er1 >conftest.err
3740   rm -f conftest.er1
3741   cat conftest.err >&5
3742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743   (exit $ac_status); } &&
3744          { ac_try='test -z "$ac_c_werror_flag"
3745                          || test ! -s conftest.err'
3746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747   (eval $ac_try) 2>&5
3748   ac_status=$?
3749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750   (exit $ac_status); }; } &&
3751          { ac_try='test -s conftest.$ac_objext'
3752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753   (eval $ac_try) 2>&5
3754   ac_status=$?
3755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756   (exit $ac_status); }; }; then
3757   ac_compiler_gnu=yes
3758 else
3759   echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3761
3762 ac_compiler_gnu=no
3763 fi
3764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3765 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3766
3767 fi
3768 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3769 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3770 GCC=`test $ac_compiler_gnu = yes && echo yes`
3771 ac_test_CFLAGS=${CFLAGS+set}
3772 ac_save_CFLAGS=$CFLAGS
3773 CFLAGS="-g"
3774 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3775 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3776 if test "${ac_cv_prog_cc_g+set}" = set; then
3777   echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779   cat >conftest.$ac_ext <<_ACEOF
3780 /* confdefs.h.  */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h.  */
3785
3786 int
3787 main ()
3788 {
3789
3790   ;
3791   return 0;
3792 }
3793 _ACEOF
3794 rm -f conftest.$ac_objext
3795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3796   (eval $ac_compile) 2>conftest.er1
3797   ac_status=$?
3798   grep -v '^ *+' conftest.er1 >conftest.err
3799   rm -f conftest.er1
3800   cat conftest.err >&5
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); } &&
3803          { ac_try='test -z "$ac_c_werror_flag"
3804                          || test ! -s conftest.err'
3805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806   (eval $ac_try) 2>&5
3807   ac_status=$?
3808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809   (exit $ac_status); }; } &&
3810          { ac_try='test -s conftest.$ac_objext'
3811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812   (eval $ac_try) 2>&5
3813   ac_status=$?
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); }; }; then
3816   ac_cv_prog_cc_g=yes
3817 else
3818   echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3820
3821 ac_cv_prog_cc_g=no
3822 fi
3823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3824 fi
3825 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3826 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3827 if test "$ac_test_CFLAGS" = set; then
3828   CFLAGS=$ac_save_CFLAGS
3829 elif test $ac_cv_prog_cc_g = yes; then
3830   if test "$GCC" = yes; then
3831     CFLAGS="-g -O2"
3832   else
3833     CFLAGS="-g"
3834   fi
3835 else
3836   if test "$GCC" = yes; then
3837     CFLAGS="-O2"
3838   else
3839     CFLAGS=
3840   fi
3841 fi
3842 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3843 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3844 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3845   echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847   ac_cv_prog_cc_stdc=no
3848 ac_save_CC=$CC
3849 cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h.  */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h.  */
3855 #include <stdarg.h>
3856 #include <stdio.h>
3857 #include <sys/types.h>
3858 #include <sys/stat.h>
3859 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3860 struct buf { int x; };
3861 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3862 static char *e (p, i)
3863      char **p;
3864      int i;
3865 {
3866   return p[i];
3867 }
3868 static char *f (char * (*g) (char **, int), char **p, ...)
3869 {
3870   char *s;
3871   va_list v;
3872   va_start (v,p);
3873   s = g (p, va_arg (v,int));
3874   va_end (v);
3875   return s;
3876 }
3877
3878 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3879    function prototypes and stuff, but not '\xHH' hex character constants.
3880    These don't provoke an error unfortunately, instead are silently treated
3881    as 'x'.  The following induces an error, until -std1 is added to get
3882    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3883    array size at least.  It's necessary to write '\x00'==0 to get something
3884    that's true only with -std1.  */
3885 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3886
3887 int test (int i, double x);
3888 struct s1 {int (*f) (int a);};
3889 struct s2 {int (*f) (double a);};
3890 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3891 int argc;
3892 char **argv;
3893 int
3894 main ()
3895 {
3896 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3897   ;
3898   return 0;
3899 }
3900 _ACEOF
3901 # Don't try gcc -ansi; that turns off useful extensions and
3902 # breaks some systems' header files.
3903 # AIX                   -qlanglvl=ansi
3904 # Ultrix and OSF/1      -std1
3905 # HP-UX 10.20 and later -Ae
3906 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3907 # SVR4                  -Xc -D__EXTENSIONS__
3908 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3909 do
3910   CC="$ac_save_CC $ac_arg"
3911   rm -f conftest.$ac_objext
3912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3913   (eval $ac_compile) 2>conftest.er1
3914   ac_status=$?
3915   grep -v '^ *+' conftest.er1 >conftest.err
3916   rm -f conftest.er1
3917   cat conftest.err >&5
3918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919   (exit $ac_status); } &&
3920          { ac_try='test -z "$ac_c_werror_flag"
3921                          || test ! -s conftest.err'
3922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923   (eval $ac_try) 2>&5
3924   ac_status=$?
3925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926   (exit $ac_status); }; } &&
3927          { ac_try='test -s conftest.$ac_objext'
3928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929   (eval $ac_try) 2>&5
3930   ac_status=$?
3931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932   (exit $ac_status); }; }; then
3933   ac_cv_prog_cc_stdc=$ac_arg
3934 break
3935 else
3936   echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939 fi
3940 rm -f conftest.err conftest.$ac_objext
3941 done
3942 rm -f conftest.$ac_ext conftest.$ac_objext
3943 CC=$ac_save_CC
3944
3945 fi
3946
3947 case "x$ac_cv_prog_cc_stdc" in
3948   x|xno)
3949     echo "$as_me:$LINENO: result: none needed" >&5
3950 echo "${ECHO_T}none needed" >&6 ;;
3951   *)
3952     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3953 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3954     CC="$CC $ac_cv_prog_cc_stdc" ;;
3955 esac
3956
3957 # Some people use a C++ compiler to compile C.  Since we use `exit',
3958 # in C++ we need to declare it.  In case someone uses the same compiler
3959 # for both compiling C and C++ we need to have the C++ compiler decide
3960 # the declaration of exit, since it's the most demanding environment.
3961 cat >conftest.$ac_ext <<_ACEOF
3962 #ifndef __cplusplus
3963   choke me
3964 #endif
3965 _ACEOF
3966 rm -f conftest.$ac_objext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968   (eval $ac_compile) 2>conftest.er1
3969   ac_status=$?
3970   grep -v '^ *+' conftest.er1 >conftest.err
3971   rm -f conftest.er1
3972   cat conftest.err >&5
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); } &&
3975          { ac_try='test -z "$ac_c_werror_flag"
3976                          || test ! -s conftest.err'
3977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978   (eval $ac_try) 2>&5
3979   ac_status=$?
3980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981   (exit $ac_status); }; } &&
3982          { ac_try='test -s conftest.$ac_objext'
3983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984   (eval $ac_try) 2>&5
3985   ac_status=$?
3986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987   (exit $ac_status); }; }; then
3988   for ac_declaration in \
3989    '' \
3990    'extern "C" void std::exit (int) throw (); using std::exit;' \
3991    'extern "C" void std::exit (int); using std::exit;' \
3992    'extern "C" void exit (int) throw ();' \
3993    'extern "C" void exit (int);' \
3994    'void exit (int);'
3995 do
3996   cat >conftest.$ac_ext <<_ACEOF
3997 /* confdefs.h.  */
3998 _ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h.  */
4002 $ac_declaration
4003 #include <stdlib.h>
4004 int
4005 main ()
4006 {
4007 exit (42);
4008   ;
4009   return 0;
4010 }
4011 _ACEOF
4012 rm -f conftest.$ac_objext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4014   (eval $ac_compile) 2>conftest.er1
4015   ac_status=$?
4016   grep -v '^ *+' conftest.er1 >conftest.err
4017   rm -f conftest.er1
4018   cat conftest.err >&5
4019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020   (exit $ac_status); } &&
4021          { ac_try='test -z "$ac_c_werror_flag"
4022                          || test ! -s conftest.err'
4023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024   (eval $ac_try) 2>&5
4025   ac_status=$?
4026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027   (exit $ac_status); }; } &&
4028          { ac_try='test -s conftest.$ac_objext'
4029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030   (eval $ac_try) 2>&5
4031   ac_status=$?
4032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033   (exit $ac_status); }; }; then
4034   :
4035 else
4036   echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4038
4039 continue
4040 fi
4041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4042   cat >conftest.$ac_ext <<_ACEOF
4043 /* confdefs.h.  */
4044 _ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h.  */
4048 $ac_declaration
4049 int
4050 main ()
4051 {
4052 exit (42);
4053   ;
4054   return 0;
4055 }
4056 _ACEOF
4057 rm -f conftest.$ac_objext
4058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4059   (eval $ac_compile) 2>conftest.er1
4060   ac_status=$?
4061   grep -v '^ *+' conftest.er1 >conftest.err
4062   rm -f conftest.er1
4063   cat conftest.err >&5
4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); } &&
4066          { ac_try='test -z "$ac_c_werror_flag"
4067                          || test ! -s conftest.err'
4068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069   (eval $ac_try) 2>&5
4070   ac_status=$?
4071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072   (exit $ac_status); }; } &&
4073          { ac_try='test -s conftest.$ac_objext'
4074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075   (eval $ac_try) 2>&5
4076   ac_status=$?
4077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078   (exit $ac_status); }; }; then
4079   break
4080 else
4081   echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4083
4084 fi
4085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4086 done
4087 rm -f conftest*
4088 if test -n "$ac_declaration"; then
4089   echo '#ifdef __cplusplus' >>confdefs.h
4090   echo $ac_declaration      >>confdefs.h
4091   echo '#endif'             >>confdefs.h
4092 fi
4093
4094 else
4095   echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4097
4098 fi
4099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4100 ac_ext=c
4101 ac_cpp='$CPP $CPPFLAGS'
4102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105
4106 ac_ext=cc
4107 ac_cpp='$CXXCPP $CPPFLAGS'
4108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4111 if test -n "$ac_tool_prefix"; then
4112   for ac_prog in $CCC g++
4113   do
4114     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4116 echo "$as_me:$LINENO: checking for $ac_word" >&5
4117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4118 if test "${ac_cv_prog_CXX+set}" = set; then
4119   echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121   if test -n "$CXX"; then
4122   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4123 else
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4126 do
4127   IFS=$as_save_IFS
4128   test -z "$as_dir" && as_dir=.
4129   for ac_exec_ext in '' $ac_executable_extensions; do
4130   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4131     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133     break 2
4134   fi
4135 done
4136 done
4137
4138 fi
4139 fi
4140 CXX=$ac_cv_prog_CXX
4141 if test -n "$CXX"; then
4142   echo "$as_me:$LINENO: result: $CXX" >&5
4143 echo "${ECHO_T}$CXX" >&6
4144 else
4145   echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6
4147 fi
4148
4149     test -n "$CXX" && break
4150   done
4151 fi
4152 if test -z "$CXX"; then
4153   ac_ct_CXX=$CXX
4154   for ac_prog in $CCC g++
4155 do
4156   # Extract the first word of "$ac_prog", so it can be a program name with args.
4157 set dummy $ac_prog; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4161   echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163   if test -n "$ac_ct_CXX"; then
4164   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4168 do
4169   IFS=$as_save_IFS
4170   test -z "$as_dir" && as_dir=.
4171   for ac_exec_ext in '' $ac_executable_extensions; do
4172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173     ac_cv_prog_ac_ct_CXX="$ac_prog"
4174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175     break 2
4176   fi
4177 done
4178 done
4179
4180 fi
4181 fi
4182 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4183 if test -n "$ac_ct_CXX"; then
4184   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4185 echo "${ECHO_T}$ac_ct_CXX" >&6
4186 else
4187   echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4189 fi
4190
4191   test -n "$ac_ct_CXX" && break
4192 done
4193 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4194
4195   CXX=$ac_ct_CXX
4196 fi
4197
4198
4199 # Provide some information about the compiler.
4200 echo "$as_me:$LINENO:" \
4201      "checking for C++ compiler version" >&5
4202 ac_compiler=`set X $ac_compile; echo $2`
4203 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4204   (eval $ac_compiler --version </dev/null >&5) 2>&5
4205   ac_status=$?
4206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207   (exit $ac_status); }
4208 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4209   (eval $ac_compiler -v </dev/null >&5) 2>&5
4210   ac_status=$?
4211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212   (exit $ac_status); }
4213 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4214   (eval $ac_compiler -V </dev/null >&5) 2>&5
4215   ac_status=$?
4216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217   (exit $ac_status); }
4218
4219 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4220 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4221 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4222   echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224   cat >conftest.$ac_ext <<_ACEOF
4225 /* confdefs.h.  */
4226 _ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h.  */
4230
4231 int
4232 main ()
4233 {
4234 #ifndef __GNUC__
4235        choke me
4236 #endif
4237
4238   ;
4239   return 0;
4240 }
4241 _ACEOF
4242 rm -f conftest.$ac_objext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4244   (eval $ac_compile) 2>conftest.er1
4245   ac_status=$?
4246   grep -v '^ *+' conftest.er1 >conftest.err
4247   rm -f conftest.er1
4248   cat conftest.err >&5
4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); } &&
4251          { ac_try='test -z "$ac_cxx_werror_flag"
4252                          || test ! -s conftest.err'
4253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254   (eval $ac_try) 2>&5
4255   ac_status=$?
4256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257   (exit $ac_status); }; } &&
4258          { ac_try='test -s conftest.$ac_objext'
4259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260   (eval $ac_try) 2>&5
4261   ac_status=$?
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); }; }; then
4264   ac_compiler_gnu=yes
4265 else
4266   echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4268
4269 ac_compiler_gnu=no
4270 fi
4271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4272 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4273
4274 fi
4275 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4276 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4277 GXX=`test $ac_compiler_gnu = yes && echo yes`
4278 ac_test_CXXFLAGS=${CXXFLAGS+set}
4279 ac_save_CXXFLAGS=$CXXFLAGS
4280 CXXFLAGS="-g"
4281 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4282 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4283 if test "${ac_cv_prog_cxx_g+set}" = set; then
4284   echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286   cat >conftest.$ac_ext <<_ACEOF
4287 /* confdefs.h.  */
4288 _ACEOF
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h.  */
4292
4293 int
4294 main ()
4295 {
4296
4297   ;
4298   return 0;
4299 }
4300 _ACEOF
4301 rm -f conftest.$ac_objext
4302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4303   (eval $ac_compile) 2>conftest.er1
4304   ac_status=$?
4305   grep -v '^ *+' conftest.er1 >conftest.err
4306   rm -f conftest.er1
4307   cat conftest.err >&5
4308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309   (exit $ac_status); } &&
4310          { ac_try='test -z "$ac_cxx_werror_flag"
4311                          || test ! -s conftest.err'
4312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313   (eval $ac_try) 2>&5
4314   ac_status=$?
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); }; } &&
4317          { ac_try='test -s conftest.$ac_objext'
4318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319   (eval $ac_try) 2>&5
4320   ac_status=$?
4321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322   (exit $ac_status); }; }; then
4323   ac_cv_prog_cxx_g=yes
4324 else
4325   echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4327
4328 ac_cv_prog_cxx_g=no
4329 fi
4330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4331 fi
4332 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4333 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4334 if test "$ac_test_CXXFLAGS" = set; then
4335   CXXFLAGS=$ac_save_CXXFLAGS
4336 elif test $ac_cv_prog_cxx_g = yes; then
4337   if test "$GXX" = yes; then
4338     CXXFLAGS="-g -O2"
4339   else
4340     CXXFLAGS="-g"
4341   fi
4342 else
4343   if test "$GXX" = yes; then
4344     CXXFLAGS="-O2"
4345   else
4346     CXXFLAGS=
4347   fi
4348 fi
4349 for ac_declaration in \
4350    '' \
4351    'extern "C" void std::exit (int) throw (); using std::exit;' \
4352    'extern "C" void std::exit (int); using std::exit;' \
4353    'extern "C" void exit (int) throw ();' \
4354    'extern "C" void exit (int);' \
4355    'void exit (int);'
4356 do
4357   cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h.  */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h.  */
4363 $ac_declaration
4364 #include <stdlib.h>
4365 int
4366 main ()
4367 {
4368 exit (42);
4369   ;
4370   return 0;
4371 }
4372 _ACEOF
4373 rm -f conftest.$ac_objext
4374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375   (eval $ac_compile) 2>conftest.er1
4376   ac_status=$?
4377   grep -v '^ *+' conftest.er1 >conftest.err
4378   rm -f conftest.er1
4379   cat conftest.err >&5
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); } &&
4382          { ac_try='test -z "$ac_cxx_werror_flag"
4383                          || test ! -s conftest.err'
4384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385   (eval $ac_try) 2>&5
4386   ac_status=$?
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); }; } &&
4389          { ac_try='test -s conftest.$ac_objext'
4390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391   (eval $ac_try) 2>&5
4392   ac_status=$?
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); }; }; then
4395   :
4396 else
4397   echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4399
4400 continue
4401 fi
4402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403   cat >conftest.$ac_ext <<_ACEOF
4404 /* confdefs.h.  */
4405 _ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h.  */
4409 $ac_declaration
4410 int
4411 main ()
4412 {
4413 exit (42);
4414   ;
4415   return 0;
4416 }
4417 _ACEOF
4418 rm -f conftest.$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420   (eval $ac_compile) 2>conftest.er1
4421   ac_status=$?
4422   grep -v '^ *+' conftest.er1 >conftest.err
4423   rm -f conftest.er1
4424   cat conftest.err >&5
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); } &&
4427          { ac_try='test -z "$ac_cxx_werror_flag"
4428                          || test ! -s conftest.err'
4429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430   (eval $ac_try) 2>&5
4431   ac_status=$?
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); }; } &&
4434          { ac_try='test -s conftest.$ac_objext'
4435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436   (eval $ac_try) 2>&5
4437   ac_status=$?
4438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439   (exit $ac_status); }; }; then
4440   break
4441 else
4442   echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4444
4445 fi
4446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4447 done
4448 rm -f conftest*
4449 if test -n "$ac_declaration"; then
4450   echo '#ifdef __cplusplus' >>confdefs.h
4451   echo $ac_declaration      >>confdefs.h
4452   echo '#endif'             >>confdefs.h
4453 fi
4454
4455 ac_ext=c
4456 ac_cpp='$CPP $CPPFLAGS'
4457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460
4461 echo "$as_me:$LINENO: checking " >&5
4462 echo $ECHO_N "checking ... $ECHO_C" >&6
4463 if test "${ac_cv_has_flex+set}" = set; then
4464   echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466   for ac_prog in flex lex
4467 do
4468   # Extract the first word of "$ac_prog", so it can be a program name with args.
4469 set dummy $ac_prog; ac_word=$2
4470 echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472 if test "${ac_cv_prog_LEX+set}" = set; then
4473   echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475   if test -n "$LEX"; then
4476   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4477 else
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4480 do
4481   IFS=$as_save_IFS
4482   test -z "$as_dir" && as_dir=.
4483   for ac_exec_ext in '' $ac_executable_extensions; do
4484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485     ac_cv_prog_LEX="$ac_prog"
4486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487     break 2
4488   fi
4489 done
4490 done
4491
4492 fi
4493 fi
4494 LEX=$ac_cv_prog_LEX
4495 if test -n "$LEX"; then
4496   echo "$as_me:$LINENO: result: $LEX" >&5
4497 echo "${ECHO_T}$LEX" >&6
4498 else
4499   echo "$as_me:$LINENO: result: no" >&5
4500 echo "${ECHO_T}no" >&6
4501 fi
4502
4503   test -n "$LEX" && break
4504 done
4505 test -n "$LEX" || LEX=":"
4506
4507 if test -z "$LEXLIB"
4508 then
4509   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4510 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4511 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4512   echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514   ac_check_lib_save_LIBS=$LIBS
4515 LIBS="-lfl  $LIBS"
4516 cat >conftest.$ac_ext <<_ACEOF
4517 /* confdefs.h.  */
4518 _ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h.  */
4522
4523 /* Override any gcc2 internal prototype to avoid an error.  */
4524 #ifdef __cplusplus
4525 extern "C"
4526 #endif
4527 /* We use char because int might match the return type of a gcc2
4528    builtin and then its argument prototype would still apply.  */
4529 char yywrap ();
4530 int
4531 main ()
4532 {
4533 yywrap ();
4534   ;
4535   return 0;
4536 }
4537 _ACEOF
4538 rm -f conftest.$ac_objext conftest$ac_exeext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4540   (eval $ac_link) 2>conftest.er1
4541   ac_status=$?
4542   grep -v '^ *+' conftest.er1 >conftest.err
4543   rm -f conftest.er1
4544   cat conftest.err >&5
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); } &&
4547          { ac_try='test -z "$ac_c_werror_flag"
4548                          || test ! -s conftest.err'
4549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550   (eval $ac_try) 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); }; } &&
4554          { ac_try='test -s conftest$ac_exeext'
4555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556   (eval $ac_try) 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); }; }; then
4560   ac_cv_lib_fl_yywrap=yes
4561 else
4562   echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4564
4565 ac_cv_lib_fl_yywrap=no
4566 fi
4567 rm -f conftest.err conftest.$ac_objext \
4568       conftest$ac_exeext conftest.$ac_ext
4569 LIBS=$ac_check_lib_save_LIBS
4570 fi
4571 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4572 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4573 if test $ac_cv_lib_fl_yywrap = yes; then
4574   LEXLIB="-lfl"
4575 else
4576   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4577 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4578 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581   ac_check_lib_save_LIBS=$LIBS
4582 LIBS="-ll  $LIBS"
4583 cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h.  */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h.  */
4589
4590 /* Override any gcc2 internal prototype to avoid an error.  */
4591 #ifdef __cplusplus
4592 extern "C"
4593 #endif
4594 /* We use char because int might match the return type of a gcc2
4595    builtin and then its argument prototype would still apply.  */
4596 char yywrap ();
4597 int
4598 main ()
4599 {
4600 yywrap ();
4601   ;
4602   return 0;
4603 }
4604 _ACEOF
4605 rm -f conftest.$ac_objext conftest$ac_exeext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4607   (eval $ac_link) 2>conftest.er1
4608   ac_status=$?
4609   grep -v '^ *+' conftest.er1 >conftest.err
4610   rm -f conftest.er1
4611   cat conftest.err >&5
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); } &&
4614          { ac_try='test -z "$ac_c_werror_flag"
4615                          || test ! -s conftest.err'
4616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617   (eval $ac_try) 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }; } &&
4621          { ac_try='test -s conftest$ac_exeext'
4622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623   (eval $ac_try) 2>&5
4624   ac_status=$?
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); }; }; then
4627   ac_cv_lib_l_yywrap=yes
4628 else
4629   echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 ac_cv_lib_l_yywrap=no
4633 fi
4634 rm -f conftest.err conftest.$ac_objext \
4635       conftest$ac_exeext conftest.$ac_ext
4636 LIBS=$ac_check_lib_save_LIBS
4637 fi
4638 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4639 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4640 if test $ac_cv_lib_l_yywrap = yes; then
4641   LEXLIB="-ll"
4642 fi
4643
4644 fi
4645
4646 fi
4647
4648 if test "x$LEX" != "x:"; then
4649   echo "$as_me:$LINENO: checking lex output file root" >&5
4650 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4651 if test "${ac_cv_prog_lex_root+set}" = set; then
4652   echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654   # The minimal lex program is just a single line: %%.  But some broken lexes
4655 # (Solaris, I think it was) want two %% lines, so accommodate them.
4656 cat >conftest.l <<_ACEOF
4657 %%
4658 %%
4659 _ACEOF
4660 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4661   (eval $LEX conftest.l) 2>&5
4662   ac_status=$?
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); }
4665 if test -f lex.yy.c; then
4666   ac_cv_prog_lex_root=lex.yy
4667 elif test -f lexyy.c; then
4668   ac_cv_prog_lex_root=lexyy
4669 else
4670   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4671 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4672    { (exit 1); exit 1; }; }
4673 fi
4674 fi
4675 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4676 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4677 rm -f conftest.l
4678 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4679
4680 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4681 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4682 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4683   echo $ECHO_N "(cached) $ECHO_C" >&6
4684 else
4685   # POSIX says lex can declare yytext either as a pointer or an array; the
4686 # default is implementation-dependent. Figure out which it is, since
4687 # not all implementations provide the %pointer and %array declarations.
4688 ac_cv_prog_lex_yytext_pointer=no
4689 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4690 ac_save_LIBS=$LIBS
4691 LIBS="$LIBS $LEXLIB"
4692 cat >conftest.$ac_ext <<_ACEOF
4693 `cat $LEX_OUTPUT_ROOT.c`
4694 _ACEOF
4695 rm -f conftest.$ac_objext conftest$ac_exeext
4696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4697   (eval $ac_link) 2>conftest.er1
4698   ac_status=$?
4699   grep -v '^ *+' conftest.er1 >conftest.err
4700   rm -f conftest.er1
4701   cat conftest.err >&5
4702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703   (exit $ac_status); } &&
4704          { ac_try='test -z "$ac_c_werror_flag"
4705                          || test ! -s conftest.err'
4706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707   (eval $ac_try) 2>&5
4708   ac_status=$?
4709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710   (exit $ac_status); }; } &&
4711          { ac_try='test -s conftest$ac_exeext'
4712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713   (eval $ac_try) 2>&5
4714   ac_status=$?
4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716   (exit $ac_status); }; }; then
4717   ac_cv_prog_lex_yytext_pointer=yes
4718 else
4719   echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4721
4722 fi
4723 rm -f conftest.err conftest.$ac_objext \
4724       conftest$ac_exeext conftest.$ac_ext
4725 LIBS=$ac_save_LIBS
4726 rm -f "${LEX_OUTPUT_ROOT}.c"
4727
4728 fi
4729 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4730 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4731 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4732
4733 cat >>confdefs.h <<\_ACEOF
4734 #define YYTEXT_POINTER 1
4735 _ACEOF
4736
4737 fi
4738
4739 fi
4740
4741 fi
4742 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4743 echo "${ECHO_T}$ac_cv_has_flex" >&6
4744 if test "$LEX" != "flex"; then
4745   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4746 echo "$as_me: error: flex not found but required" >&2;}
4747    { (exit 1); exit 1; }; }
4748 else
4749   FLEX=flex
4750
4751 fi
4752
4753 echo "$as_me:$LINENO: checking " >&5
4754 echo $ECHO_N "checking ... $ECHO_C" >&6
4755 if test "${llvm_cv_has_bison+set}" = set; then
4756   echo $ECHO_N "(cached) $ECHO_C" >&6
4757 else
4758   for ac_prog in 'bison -y' byacc
4759 do
4760   # Extract the first word of "$ac_prog", so it can be a program name with args.
4761 set dummy $ac_prog; ac_word=$2
4762 echo "$as_me:$LINENO: checking for $ac_word" >&5
4763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4764 if test "${ac_cv_prog_YACC+set}" = set; then
4765   echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767   if test -n "$YACC"; then
4768   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4769 else
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773   IFS=$as_save_IFS
4774   test -z "$as_dir" && as_dir=.
4775   for ac_exec_ext in '' $ac_executable_extensions; do
4776   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4777     ac_cv_prog_YACC="$ac_prog"
4778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4779     break 2
4780   fi
4781 done
4782 done
4783
4784 fi
4785 fi
4786 YACC=$ac_cv_prog_YACC
4787 if test -n "$YACC"; then
4788   echo "$as_me:$LINENO: result: $YACC" >&5
4789 echo "${ECHO_T}$YACC" >&6
4790 else
4791   echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6
4793 fi
4794
4795   test -n "$YACC" && break
4796 done
4797 test -n "$YACC" || YACC="yacc"
4798
4799 fi
4800 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4801 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4802 if test "$YACC" != "bison -y"; then
4803   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4804 echo "$as_me: error: bison not found but required" >&2;}
4805    { (exit 1); exit 1; }; }
4806 else
4807   BISON=bison
4808
4809 fi
4810
4811 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4812 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4813 if test "${lt_cv_path_NM+set}" = set; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816   if test -n "$NM"; then
4817   # Let the user override the test.
4818   lt_cv_path_NM="$NM"
4819 else
4820   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4821   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4822     IFS="$lt_save_ifs"
4823     test -z "$ac_dir" && ac_dir=.
4824     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4825     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4826       # Check to see if the nm accepts a BSD-compat flag.
4827       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4828       #   nm: unknown option "B" ignored
4829       # Tru64's nm complains that /dev/null is an invalid object file
4830       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4831       */dev/null* | *'Invalid file or object type'*)
4832         lt_cv_path_NM="$tmp_nm -B"
4833         break
4834         ;;
4835       *)
4836         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4837         */dev/null*)
4838           lt_cv_path_NM="$tmp_nm -p"
4839           break
4840           ;;
4841         *)
4842           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4843           continue # so that we can try to find one that supports BSD flags
4844           ;;
4845         esac
4846       esac
4847     fi
4848   done
4849   IFS="$lt_save_ifs"
4850   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4851 fi
4852 fi
4853 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4854 echo "${ECHO_T}$lt_cv_path_NM" >&6
4855 NM="$lt_cv_path_NM"
4856
4857
4858
4859 echo "$as_me:$LINENO: checking for GNU make" >&5
4860 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4861 if test "${llvm_cv_gnu_make_command+set}" = set; then
4862   echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864   llvm_cv_gnu_make_command=''
4865  for a in "$MAKE" make gmake gnumake ; do
4866   if test -z "$a" ; then continue ; fi ;
4867   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4868   then
4869    llvm_cv_gnu_make_command=$a ;
4870    break;
4871   fi
4872  done
4873 fi
4874 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4875 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4876  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4877    ifGNUmake='' ;
4878  else
4879    ifGNUmake='#' ;
4880    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4881 echo "${ECHO_T}\"Not found\"" >&6;
4882  fi
4883
4884
4885 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4886 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4887 LN_S=$as_ln_s
4888 if test "$LN_S" = "ln -s"; then
4889   echo "$as_me:$LINENO: result: yes" >&5
4890 echo "${ECHO_T}yes" >&6
4891 else
4892   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4893 echo "${ECHO_T}no, using $LN_S" >&6
4894 fi
4895
4896 # Extract the first word of "cmp", so it can be a program name with args.
4897 set dummy cmp; ac_word=$2
4898 echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900 if test "${ac_cv_path_CMP+set}" = set; then
4901   echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903   case $CMP in
4904   [\\/]* | ?:[\\/]*)
4905   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4906   ;;
4907   *)
4908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4910 do
4911   IFS=$as_save_IFS
4912   test -z "$as_dir" && as_dir=.
4913   for ac_exec_ext in '' $ac_executable_extensions; do
4914   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917     break 2
4918   fi
4919 done
4920 done
4921
4922   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4923   ;;
4924 esac
4925 fi
4926 CMP=$ac_cv_path_CMP
4927
4928 if test -n "$CMP"; then
4929   echo "$as_me:$LINENO: result: $CMP" >&5
4930 echo "${ECHO_T}$CMP" >&6
4931 else
4932   echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6
4934 fi
4935
4936 # Extract the first word of "cp", so it can be a program name with args.
4937 set dummy cp; ac_word=$2
4938 echo "$as_me:$LINENO: checking for $ac_word" >&5
4939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4940 if test "${ac_cv_path_CP+set}" = set; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943   case $CP in
4944   [\\/]* | ?:[\\/]*)
4945   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4946   ;;
4947   *)
4948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4950 do
4951   IFS=$as_save_IFS
4952   test -z "$as_dir" && as_dir=.
4953   for ac_exec_ext in '' $ac_executable_extensions; do
4954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4955     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957     break 2
4958   fi
4959 done
4960 done
4961
4962   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4963   ;;
4964 esac
4965 fi
4966 CP=$ac_cv_path_CP
4967
4968 if test -n "$CP"; then
4969   echo "$as_me:$LINENO: result: $CP" >&5
4970 echo "${ECHO_T}$CP" >&6
4971 else
4972   echo "$as_me:$LINENO: result: no" >&5
4973 echo "${ECHO_T}no" >&6
4974 fi
4975
4976 # Extract the first word of "date", so it can be a program name with args.
4977 set dummy date; ac_word=$2
4978 echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4980 if test "${ac_cv_path_DATE+set}" = set; then
4981   echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983   case $DATE in
4984   [\\/]* | ?:[\\/]*)
4985   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4986   ;;
4987   *)
4988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991   IFS=$as_save_IFS
4992   test -z "$as_dir" && as_dir=.
4993   for ac_exec_ext in '' $ac_executable_extensions; do
4994   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997     break 2
4998   fi
4999 done
5000 done
5001
5002   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5003   ;;
5004 esac
5005 fi
5006 DATE=$ac_cv_path_DATE
5007
5008 if test -n "$DATE"; then
5009   echo "$as_me:$LINENO: result: $DATE" >&5
5010 echo "${ECHO_T}$DATE" >&6
5011 else
5012   echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6
5014 fi
5015
5016 # Extract the first word of "find", so it can be a program name with args.
5017 set dummy find; ac_word=$2
5018 echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5020 if test "${ac_cv_path_FIND+set}" = set; then
5021   echo $ECHO_N "(cached) $ECHO_C" >&6
5022 else
5023   case $FIND in
5024   [\\/]* | ?:[\\/]*)
5025   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5026   ;;
5027   *)
5028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5030 do
5031   IFS=$as_save_IFS
5032   test -z "$as_dir" && as_dir=.
5033   for ac_exec_ext in '' $ac_executable_extensions; do
5034   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037     break 2
5038   fi
5039 done
5040 done
5041
5042   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5043   ;;
5044 esac
5045 fi
5046 FIND=$ac_cv_path_FIND
5047
5048 if test -n "$FIND"; then
5049   echo "$as_me:$LINENO: result: $FIND" >&5
5050 echo "${ECHO_T}$FIND" >&6
5051 else
5052   echo "$as_me:$LINENO: result: no" >&5
5053 echo "${ECHO_T}no" >&6
5054 fi
5055
5056 # Extract the first word of "grep", so it can be a program name with args.
5057 set dummy grep; ac_word=$2
5058 echo "$as_me:$LINENO: checking for $ac_word" >&5
5059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5060 if test "${ac_cv_path_GREP+set}" = set; then
5061   echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063   case $GREP in
5064   [\\/]* | ?:[\\/]*)
5065   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5066   ;;
5067   *)
5068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5070 do
5071   IFS=$as_save_IFS
5072   test -z "$as_dir" && as_dir=.
5073   for ac_exec_ext in '' $ac_executable_extensions; do
5074   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5075     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077     break 2
5078   fi
5079 done
5080 done
5081
5082   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5083   ;;
5084 esac
5085 fi
5086 GREP=$ac_cv_path_GREP
5087
5088 if test -n "$GREP"; then
5089   echo "$as_me:$LINENO: result: $GREP" >&5
5090 echo "${ECHO_T}$GREP" >&6
5091 else
5092   echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6
5094 fi
5095
5096 # Extract the first word of "mkdir", so it can be a program name with args.
5097 set dummy mkdir; ac_word=$2
5098 echo "$as_me:$LINENO: checking for $ac_word" >&5
5099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5100 if test "${ac_cv_path_MKDIR+set}" = set; then
5101   echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103   case $MKDIR in
5104   [\\/]* | ?:[\\/]*)
5105   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5106   ;;
5107   *)
5108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113   for ac_exec_ext in '' $ac_executable_extensions; do
5114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117     break 2
5118   fi
5119 done
5120 done
5121
5122   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5123   ;;
5124 esac
5125 fi
5126 MKDIR=$ac_cv_path_MKDIR
5127
5128 if test -n "$MKDIR"; then
5129   echo "$as_me:$LINENO: result: $MKDIR" >&5
5130 echo "${ECHO_T}$MKDIR" >&6
5131 else
5132   echo "$as_me:$LINENO: result: no" >&5
5133 echo "${ECHO_T}no" >&6
5134 fi
5135
5136 # Extract the first word of "mv", so it can be a program name with args.
5137 set dummy mv; ac_word=$2
5138 echo "$as_me:$LINENO: checking for $ac_word" >&5
5139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5140 if test "${ac_cv_path_MV+set}" = set; then
5141   echo $ECHO_N "(cached) $ECHO_C" >&6
5142 else
5143   case $MV in
5144   [\\/]* | ?:[\\/]*)
5145   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5146   ;;
5147   *)
5148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5150 do
5151   IFS=$as_save_IFS
5152   test -z "$as_dir" && as_dir=.
5153   for ac_exec_ext in '' $ac_executable_extensions; do
5154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157     break 2
5158   fi
5159 done
5160 done
5161
5162   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5163   ;;
5164 esac
5165 fi
5166 MV=$ac_cv_path_MV
5167
5168 if test -n "$MV"; then
5169   echo "$as_me:$LINENO: result: $MV" >&5
5170 echo "${ECHO_T}$MV" >&6
5171 else
5172   echo "$as_me:$LINENO: result: no" >&5
5173 echo "${ECHO_T}no" >&6
5174 fi
5175
5176 if test -n "$ac_tool_prefix"; then
5177   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5178 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5179 echo "$as_me:$LINENO: checking for $ac_word" >&5
5180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5181 if test "${ac_cv_prog_RANLIB+set}" = set; then
5182   echo $ECHO_N "(cached) $ECHO_C" >&6
5183 else
5184   if test -n "$RANLIB"; then
5185   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5186 else
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH
5189 do
5190   IFS=$as_save_IFS
5191   test -z "$as_dir" && as_dir=.
5192   for ac_exec_ext in '' $ac_executable_extensions; do
5193   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5194     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196     break 2
5197   fi
5198 done
5199 done
5200
5201 fi
5202 fi
5203 RANLIB=$ac_cv_prog_RANLIB
5204 if test -n "$RANLIB"; then
5205   echo "$as_me:$LINENO: result: $RANLIB" >&5
5206 echo "${ECHO_T}$RANLIB" >&6
5207 else
5208   echo "$as_me:$LINENO: result: no" >&5
5209 echo "${ECHO_T}no" >&6
5210 fi
5211
5212 fi
5213 if test -z "$ac_cv_prog_RANLIB"; then
5214   ac_ct_RANLIB=$RANLIB
5215   # Extract the first word of "ranlib", so it can be a program name with args.
5216 set dummy ranlib; ac_word=$2
5217 echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5219 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5220   echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222   if test -n "$ac_ct_RANLIB"; then
5223   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5227 do
5228   IFS=$as_save_IFS
5229   test -z "$as_dir" && as_dir=.
5230   for ac_exec_ext in '' $ac_executable_extensions; do
5231   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5232     ac_cv_prog_ac_ct_RANLIB="ranlib"
5233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234     break 2
5235   fi
5236 done
5237 done
5238
5239   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5240 fi
5241 fi
5242 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5243 if test -n "$ac_ct_RANLIB"; then
5244   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5245 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5246 else
5247   echo "$as_me:$LINENO: result: no" >&5
5248 echo "${ECHO_T}no" >&6
5249 fi
5250
5251   RANLIB=$ac_ct_RANLIB
5252 else
5253   RANLIB="$ac_cv_prog_RANLIB"
5254 fi
5255
5256 # Extract the first word of "rm", so it can be a program name with args.
5257 set dummy rm; ac_word=$2
5258 echo "$as_me:$LINENO: checking for $ac_word" >&5
5259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5260 if test "${ac_cv_path_RM+set}" = set; then
5261   echo $ECHO_N "(cached) $ECHO_C" >&6
5262 else
5263   case $RM in
5264   [\\/]* | ?:[\\/]*)
5265   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5266   ;;
5267   *)
5268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5270 do
5271   IFS=$as_save_IFS
5272   test -z "$as_dir" && as_dir=.
5273   for ac_exec_ext in '' $ac_executable_extensions; do
5274   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277     break 2
5278   fi
5279 done
5280 done
5281
5282   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5283   ;;
5284 esac
5285 fi
5286 RM=$ac_cv_path_RM
5287
5288 if test -n "$RM"; then
5289   echo "$as_me:$LINENO: result: $RM" >&5
5290 echo "${ECHO_T}$RM" >&6
5291 else
5292   echo "$as_me:$LINENO: result: no" >&5
5293 echo "${ECHO_T}no" >&6
5294 fi
5295
5296 # Extract the first word of "sed", so it can be a program name with args.
5297 set dummy sed; ac_word=$2
5298 echo "$as_me:$LINENO: checking for $ac_word" >&5
5299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5300 if test "${ac_cv_path_SED+set}" = set; then
5301   echo $ECHO_N "(cached) $ECHO_C" >&6
5302 else
5303   case $SED in
5304   [\\/]* | ?:[\\/]*)
5305   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5306   ;;
5307   *)
5308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH
5310 do
5311   IFS=$as_save_IFS
5312   test -z "$as_dir" && as_dir=.
5313   for ac_exec_ext in '' $ac_executable_extensions; do
5314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5315     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5317     break 2
5318   fi
5319 done
5320 done
5321
5322   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5323   ;;
5324 esac
5325 fi
5326 SED=$ac_cv_path_SED
5327
5328 if test -n "$SED"; then
5329   echo "$as_me:$LINENO: result: $SED" >&5
5330 echo "${ECHO_T}$SED" >&6
5331 else
5332   echo "$as_me:$LINENO: result: no" >&5
5333 echo "${ECHO_T}no" >&6
5334 fi
5335
5336 # Extract the first word of "tar", so it can be a program name with args.
5337 set dummy tar; ac_word=$2
5338 echo "$as_me:$LINENO: checking for $ac_word" >&5
5339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5340 if test "${ac_cv_path_TAR+set}" = set; then
5341   echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343   case $TAR in
5344   [\\/]* | ?:[\\/]*)
5345   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5346   ;;
5347   *)
5348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351   IFS=$as_save_IFS
5352   test -z "$as_dir" && as_dir=.
5353   for ac_exec_ext in '' $ac_executable_extensions; do
5354   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357     break 2
5358   fi
5359 done
5360 done
5361
5362   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5363   ;;
5364 esac
5365 fi
5366 TAR=$ac_cv_path_TAR
5367
5368 if test -n "$TAR"; then
5369   echo "$as_me:$LINENO: result: $TAR" >&5
5370 echo "${ECHO_T}$TAR" >&6
5371 else
5372   echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6
5374 fi
5375
5376
5377 # Extract the first word of "Graphviz", so it can be a program name with args.
5378 set dummy Graphviz; 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_GRAPHVIZ+set}" = set; then
5382   echo $ECHO_N "(cached) $ECHO_C" >&6
5383 else
5384   case $GRAPHVIZ in
5385   [\\/]* | ?:[\\/]*)
5386   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # 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_GRAPHVIZ="$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_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5404   ;;
5405 esac
5406 fi
5407 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5408
5409 if test -n "$GRAPHVIZ"; then
5410   echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5411 echo "${ECHO_T}$GRAPHVIZ" >&6
5412 else
5413   echo "$as_me:$LINENO: result: no" >&5
5414 echo "${ECHO_T}no" >&6
5415 fi
5416
5417 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5418
5419 cat >>confdefs.h <<\_ACEOF
5420 #define HAVE_GRAPHVIZ 1
5421 _ACEOF
5422
5423     if test "$llvm_cv_os_type" == "MingW" ; then
5424     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5425   fi
5426
5427 cat >>confdefs.h <<_ACEOF
5428 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
5429 _ACEOF
5430
5431 fi
5432 # Extract the first word of "dot", so it can be a program name with args.
5433 set dummy dot; ac_word=$2
5434 echo "$as_me:$LINENO: checking for $ac_word" >&5
5435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5436 if test "${ac_cv_path_DOT+set}" = set; then
5437   echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439   case $DOT in
5440   [\\/]* | ?:[\\/]*)
5441   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5442   ;;
5443   *)
5444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5446 do
5447   IFS=$as_save_IFS
5448   test -z "$as_dir" && as_dir=.
5449   for ac_exec_ext in '' $ac_executable_extensions; do
5450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5453     break 2
5454   fi
5455 done
5456 done
5457
5458   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
5459   ;;
5460 esac
5461 fi
5462 DOT=$ac_cv_path_DOT
5463
5464 if test -n "$DOT"; then
5465   echo "$as_me:$LINENO: result: $DOT" >&5
5466 echo "${ECHO_T}$DOT" >&6
5467 else
5468   echo "$as_me:$LINENO: result: no" >&5
5469 echo "${ECHO_T}no" >&6
5470 fi
5471
5472 if test "$DOT" != "echo dot" ; then
5473
5474 cat >>confdefs.h <<\_ACEOF
5475 #define HAVE_DOT 1
5476 _ACEOF
5477
5478     if test "$llvm_cv_os_type" == "MingW" ; then
5479     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5480   fi
5481
5482 cat >>confdefs.h <<_ACEOF
5483 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
5484 _ACEOF
5485
5486 fi
5487 for ac_prog in gv gsview32
5488 do
5489   # Extract the first word of "$ac_prog", so it can be a program name with args.
5490 set dummy $ac_prog; ac_word=$2
5491 echo "$as_me:$LINENO: checking for $ac_word" >&5
5492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5493 if test "${ac_cv_path_GV+set}" = set; then
5494   echo $ECHO_N "(cached) $ECHO_C" >&6
5495 else
5496   case $GV in
5497   [\\/]* | ?:[\\/]*)
5498   ac_cv_path_GV="$GV" # Let the user override the test with a path.
5499   ;;
5500   *)
5501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5503 do
5504   IFS=$as_save_IFS
5505   test -z "$as_dir" && as_dir=.
5506   for ac_exec_ext in '' $ac_executable_extensions; do
5507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5510     break 2
5511   fi
5512 done
5513 done
5514
5515   ;;
5516 esac
5517 fi
5518 GV=$ac_cv_path_GV
5519
5520 if test -n "$GV"; then
5521   echo "$as_me:$LINENO: result: $GV" >&5
5522 echo "${ECHO_T}$GV" >&6
5523 else
5524   echo "$as_me:$LINENO: result: no" >&5
5525 echo "${ECHO_T}no" >&6
5526 fi
5527
5528   test -n "$GV" && break
5529 done
5530 test -n "$GV" || GV="echo gv"
5531
5532 if test "$GV" != "echo gv" ; then
5533
5534 cat >>confdefs.h <<\_ACEOF
5535 #define HAVE_GV 1
5536 _ACEOF
5537
5538     if test "$llvm_cv_os_type" == "MingW" ; then
5539     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5540   fi
5541
5542 cat >>confdefs.h <<_ACEOF
5543 #define LLVM_PATH_GV "$GV${EXEEXT}"
5544 _ACEOF
5545
5546 fi
5547 # Extract the first word of "dotty", so it can be a program name with args.
5548 set dummy dotty; ac_word=$2
5549 echo "$as_me:$LINENO: checking for $ac_word" >&5
5550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551 if test "${ac_cv_path_DOTTY+set}" = set; then
5552   echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554   case $DOTTY in
5555   [\\/]* | ?:[\\/]*)
5556   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
5557   ;;
5558   *)
5559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 for as_dir in $PATH
5561 do
5562   IFS=$as_save_IFS
5563   test -z "$as_dir" && as_dir=.
5564   for ac_exec_ext in '' $ac_executable_extensions; do
5565   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5566     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
5567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5568     break 2
5569   fi
5570 done
5571 done
5572
5573   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
5574   ;;
5575 esac
5576 fi
5577 DOTTY=$ac_cv_path_DOTTY
5578
5579 if test -n "$DOTTY"; then
5580   echo "$as_me:$LINENO: result: $DOTTY" >&5
5581 echo "${ECHO_T}$DOTTY" >&6
5582 else
5583   echo "$as_me:$LINENO: result: no" >&5
5584 echo "${ECHO_T}no" >&6
5585 fi
5586
5587 if test "$DOTTY" != "echo dotty" ; then
5588
5589 cat >>confdefs.h <<\_ACEOF
5590 #define HAVE_DOTTY 1
5591 _ACEOF
5592
5593     if test "$llvm_cv_os_type" == "MingW" ; then
5594     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5595   fi
5596
5597 cat >>confdefs.h <<_ACEOF
5598 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
5599 _ACEOF
5600
5601 fi
5602
5603
5604 # Extract the first word of "perl", so it can be a program name with args.
5605 set dummy perl; ac_word=$2
5606 echo "$as_me:$LINENO: checking for $ac_word" >&5
5607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5608 if test "${ac_cv_path_PERL+set}" = set; then
5609   echo $ECHO_N "(cached) $ECHO_C" >&6
5610 else
5611   case $PERL in
5612   [\\/]* | ?:[\\/]*)
5613   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5614   ;;
5615   *)
5616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH
5618 do
5619   IFS=$as_save_IFS
5620   test -z "$as_dir" && as_dir=.
5621   for ac_exec_ext in '' $ac_executable_extensions; do
5622   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5623     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5625     break 2
5626   fi
5627 done
5628 done
5629
5630   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5631   ;;
5632 esac
5633 fi
5634 PERL=$ac_cv_path_PERL
5635
5636 if test -n "$PERL"; then
5637   echo "$as_me:$LINENO: result: $PERL" >&5
5638 echo "${ECHO_T}$PERL" >&6
5639 else
5640   echo "$as_me:$LINENO: result: no" >&5
5641 echo "${ECHO_T}no" >&6
5642 fi
5643
5644 if test "$PERL" != "none"; then
5645   echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5646 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5647   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5648     echo "$as_me:$LINENO: result: yes" >&5
5649 echo "${ECHO_T}yes" >&6
5650   else
5651     PERL=none
5652     echo "$as_me:$LINENO: result: not found" >&5
5653 echo "${ECHO_T}not found" >&6
5654   fi
5655 fi
5656
5657
5658 if test x"$PERL" = xnone; then
5659    HAVE_PERL=0
5660
5661 else
5662    HAVE_PERL=1
5663
5664 fi
5665
5666 # Find a good install program.  We prefer a C program (faster),
5667 # so one script is as good as another.  But avoid the broken or
5668 # incompatible versions:
5669 # SysV /etc/install, /usr/sbin/install
5670 # SunOS /usr/etc/install
5671 # IRIX /sbin/install
5672 # AIX /bin/install
5673 # AmigaOS /C/install, which installs bootblocks on floppy discs
5674 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5675 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5676 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5677 # OS/2's system install, which has a completely different semantic
5678 # ./install, which can be erroneously created by make from ./install.sh.
5679 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5680 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5681 if test -z "$INSTALL"; then
5682 if test "${ac_cv_path_install+set}" = set; then
5683   echo $ECHO_N "(cached) $ECHO_C" >&6
5684 else
5685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH
5687 do
5688   IFS=$as_save_IFS
5689   test -z "$as_dir" && as_dir=.
5690   # Account for people who put trailing slashes in PATH elements.
5691 case $as_dir/ in
5692   ./ | .// | /cC/* | \
5693   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5694   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5695   /usr/ucb/* ) ;;
5696   *)
5697     # OSF1 and SCO ODT 3.0 have their own names for install.
5698     # Don't use installbsd from OSF since it installs stuff as root
5699     # by default.
5700     for ac_prog in ginstall scoinst install; do
5701       for ac_exec_ext in '' $ac_executable_extensions; do
5702         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5703           if test $ac_prog = install &&
5704             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5705             # AIX install.  It has an incompatible calling convention.
5706             :
5707           elif test $ac_prog = install &&
5708             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5709             # program-specific install script used by HP pwplus--don't use.
5710             :
5711           else
5712             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5713             break 3
5714           fi
5715         fi
5716       done
5717     done
5718     ;;
5719 esac
5720 done
5721
5722
5723 fi
5724   if test "${ac_cv_path_install+set}" = set; then
5725     INSTALL=$ac_cv_path_install
5726   else
5727     # As a last resort, use the slow shell script.  We don't cache a
5728     # path for INSTALL within a source directory, because that will
5729     # break other packages using the cache if that directory is
5730     # removed, or if the path is relative.
5731     INSTALL=$ac_install_sh
5732   fi
5733 fi
5734 echo "$as_me:$LINENO: result: $INSTALL" >&5
5735 echo "${ECHO_T}$INSTALL" >&6
5736
5737 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5738 # It thinks the first close brace ends the variable substitution.
5739 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5740
5741 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5742
5743 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5744
5745
5746 # Extract the first word of "bzip2", so it can be a program name with args.
5747 set dummy bzip2; ac_word=$2
5748 echo "$as_me:$LINENO: checking for $ac_word" >&5
5749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5750 if test "${ac_cv_path_BZIP2+set}" = set; then
5751   echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753   case $BZIP2 in
5754   [\\/]* | ?:[\\/]*)
5755   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5756   ;;
5757   *)
5758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 for as_dir in $PATH
5760 do
5761   IFS=$as_save_IFS
5762   test -z "$as_dir" && as_dir=.
5763   for ac_exec_ext in '' $ac_executable_extensions; do
5764   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5765     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5767     break 2
5768   fi
5769 done
5770 done
5771
5772   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
5773   ;;
5774 esac
5775 fi
5776 BZIP2=$ac_cv_path_BZIP2
5777
5778 if test -n "$BZIP2"; then
5779   echo "$as_me:$LINENO: result: $BZIP2" >&5
5780 echo "${ECHO_T}$BZIP2" >&6
5781 else
5782   echo "$as_me:$LINENO: result: no" >&5
5783 echo "${ECHO_T}no" >&6
5784 fi
5785
5786 # Extract the first word of "doxygen", so it can be a program name with args.
5787 set dummy doxygen; ac_word=$2
5788 echo "$as_me:$LINENO: checking for $ac_word" >&5
5789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5790 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5791   echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793   case $DOXYGEN in
5794   [\\/]* | ?:[\\/]*)
5795   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5796   ;;
5797   *)
5798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799 for as_dir in $PATH
5800 do
5801   IFS=$as_save_IFS
5802   test -z "$as_dir" && as_dir=.
5803   for ac_exec_ext in '' $ac_executable_extensions; do
5804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5805     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5807     break 2
5808   fi
5809 done
5810 done
5811
5812   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
5813   ;;
5814 esac
5815 fi
5816 DOXYGEN=$ac_cv_path_DOXYGEN
5817
5818 if test -n "$DOXYGEN"; then
5819   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5820 echo "${ECHO_T}$DOXYGEN" >&6
5821 else
5822   echo "$as_me:$LINENO: result: no" >&5
5823 echo "${ECHO_T}no" >&6
5824 fi
5825
5826 # Extract the first word of "etags", so it can be a program name with args.
5827 set dummy etags; 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_ETAGS+set}" = set; then
5831   echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833   case $ETAGS in
5834   [\\/]* | ?:[\\/]*)
5835   ac_cv_path_ETAGS="$ETAGS" # 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_ETAGS="$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_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
5853   ;;
5854 esac
5855 fi
5856 ETAGS=$ac_cv_path_ETAGS
5857
5858 if test -n "$ETAGS"; then
5859   echo "$as_me:$LINENO: result: $ETAGS" >&5
5860 echo "${ECHO_T}$ETAGS" >&6
5861 else
5862   echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6
5864 fi
5865
5866 # Extract the first word of "groff", so it can be a program name with args.
5867 set dummy groff; ac_word=$2
5868 echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5870 if test "${ac_cv_path_GROFF+set}" = set; then
5871   echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873   case $GROFF in
5874   [\\/]* | ?:[\\/]*)
5875   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5876   ;;
5877   *)
5878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5880 do
5881   IFS=$as_save_IFS
5882   test -z "$as_dir" && as_dir=.
5883   for ac_exec_ext in '' $ac_executable_extensions; do
5884   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5885     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5887     break 2
5888   fi
5889 done
5890 done
5891
5892   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
5893   ;;
5894 esac
5895 fi
5896 GROFF=$ac_cv_path_GROFF
5897
5898 if test -n "$GROFF"; then
5899   echo "$as_me:$LINENO: result: $GROFF" >&5
5900 echo "${ECHO_T}$GROFF" >&6
5901 else
5902   echo "$as_me:$LINENO: result: no" >&5
5903 echo "${ECHO_T}no" >&6
5904 fi
5905
5906 # Extract the first word of "gzip", so it can be a program name with args.
5907 set dummy gzip; ac_word=$2
5908 echo "$as_me:$LINENO: checking for $ac_word" >&5
5909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5910 if test "${ac_cv_path_GZIP+set}" = set; then
5911   echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913   case $GZIP in
5914   [\\/]* | ?:[\\/]*)
5915   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5916   ;;
5917   *)
5918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5920 do
5921   IFS=$as_save_IFS
5922   test -z "$as_dir" && as_dir=.
5923   for ac_exec_ext in '' $ac_executable_extensions; do
5924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927     break 2
5928   fi
5929 done
5930 done
5931
5932   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
5933   ;;
5934 esac
5935 fi
5936 GZIP=$ac_cv_path_GZIP
5937
5938 if test -n "$GZIP"; then
5939   echo "$as_me:$LINENO: result: $GZIP" >&5
5940 echo "${ECHO_T}$GZIP" >&6
5941 else
5942   echo "$as_me:$LINENO: result: no" >&5
5943 echo "${ECHO_T}no" >&6
5944 fi
5945
5946 # Extract the first word of "pod2html", so it can be a program name with args.
5947 set dummy pod2html; ac_word=$2
5948 echo "$as_me:$LINENO: checking for $ac_word" >&5
5949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5950 if test "${ac_cv_path_POD2HTML+set}" = set; then
5951   echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953   case $POD2HTML in
5954   [\\/]* | ?:[\\/]*)
5955   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5956   ;;
5957   *)
5958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5960 do
5961   IFS=$as_save_IFS
5962   test -z "$as_dir" && as_dir=.
5963   for ac_exec_ext in '' $ac_executable_extensions; do
5964   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5965     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967     break 2
5968   fi
5969 done
5970 done
5971
5972   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
5973   ;;
5974 esac
5975 fi
5976 POD2HTML=$ac_cv_path_POD2HTML
5977
5978 if test -n "$POD2HTML"; then
5979   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5980 echo "${ECHO_T}$POD2HTML" >&6
5981 else
5982   echo "$as_me:$LINENO: result: no" >&5
5983 echo "${ECHO_T}no" >&6
5984 fi
5985
5986 # Extract the first word of "pod2man", so it can be a program name with args.
5987 set dummy pod2man; ac_word=$2
5988 echo "$as_me:$LINENO: checking for $ac_word" >&5
5989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5990 if test "${ac_cv_path_POD2MAN+set}" = set; then
5991   echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993   case $POD2MAN in
5994   [\\/]* | ?:[\\/]*)
5995   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5996   ;;
5997   *)
5998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 for as_dir in $PATH
6000 do
6001   IFS=$as_save_IFS
6002   test -z "$as_dir" && as_dir=.
6003   for ac_exec_ext in '' $ac_executable_extensions; do
6004   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6005     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
6006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007     break 2
6008   fi
6009 done
6010 done
6011
6012   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
6013   ;;
6014 esac
6015 fi
6016 POD2MAN=$ac_cv_path_POD2MAN
6017
6018 if test -n "$POD2MAN"; then
6019   echo "$as_me:$LINENO: result: $POD2MAN" >&5
6020 echo "${ECHO_T}$POD2MAN" >&6
6021 else
6022   echo "$as_me:$LINENO: result: no" >&5
6023 echo "${ECHO_T}no" >&6
6024 fi
6025
6026 # Extract the first word of "runtest", so it can be a program name with args.
6027 set dummy runtest; ac_word=$2
6028 echo "$as_me:$LINENO: checking for $ac_word" >&5
6029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6030 if test "${ac_cv_path_RUNTEST+set}" = set; then
6031   echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033   case $RUNTEST in
6034   [\\/]* | ?:[\\/]*)
6035   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
6036   ;;
6037   *)
6038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
6041   IFS=$as_save_IFS
6042   test -z "$as_dir" && as_dir=.
6043   for ac_exec_ext in '' $ac_executable_extensions; do
6044   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6045     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
6046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6047     break 2
6048   fi
6049 done
6050 done
6051
6052   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
6053   ;;
6054 esac
6055 fi
6056 RUNTEST=$ac_cv_path_RUNTEST
6057
6058 if test -n "$RUNTEST"; then
6059   echo "$as_me:$LINENO: result: $RUNTEST" >&5
6060 echo "${ECHO_T}$RUNTEST" >&6
6061 else
6062   echo "$as_me:$LINENO: result: no" >&5
6063 echo "${ECHO_T}no" >&6
6064 fi
6065
6066
6067 no_itcl=true
6068 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
6069 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
6070
6071 # Check whether --with-tclinclude or --without-tclinclude was given.
6072 if test "${with_tclinclude+set}" = set; then
6073   withval="$with_tclinclude"
6074   with_tclinclude=${withval}
6075 else
6076   with_tclinclude=''
6077 fi;
6078 if test "${ac_cv_path_tclsh+set}" = set; then
6079   echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081
6082 if test x"${with_tclinclude}" != x ; then
6083   if test -f ${with_tclinclude}/tclsh ; then
6084     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
6085   elif test -f ${with_tclinclude}/src/tclsh ; then
6086     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
6087   else
6088     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
6089 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
6090    { (exit 1); exit 1; }; }
6091   fi
6092 fi
6093
6094 if test x"${ac_cv_path_tclsh}" = x ; then
6095   echo "$as_me:$LINENO: result: none" >&5
6096 echo "${ECHO_T}none" >&6
6097   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
6098 do
6099   # Extract the first word of "$ac_prog", so it can be a program name with args.
6100 set dummy $ac_prog; ac_word=$2
6101 echo "$as_me:$LINENO: checking for $ac_word" >&5
6102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6103 if test "${ac_cv_path_TCLSH+set}" = set; then
6104   echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106   case $TCLSH in
6107   [\\/]* | ?:[\\/]*)
6108   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
6109   ;;
6110   *)
6111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6113 do
6114   IFS=$as_save_IFS
6115   test -z "$as_dir" && as_dir=.
6116   for ac_exec_ext in '' $ac_executable_extensions; do
6117   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6118     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
6119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6120     break 2
6121   fi
6122 done
6123 done
6124
6125   ;;
6126 esac
6127 fi
6128 TCLSH=$ac_cv_path_TCLSH
6129
6130 if test -n "$TCLSH"; then
6131   echo "$as_me:$LINENO: result: $TCLSH" >&5
6132 echo "${ECHO_T}$TCLSH" >&6
6133 else
6134   echo "$as_me:$LINENO: result: no" >&5
6135 echo "${ECHO_T}no" >&6
6136 fi
6137
6138   test -n "$TCLSH" && break
6139 done
6140
6141   if test x"${TCLSH}" = x ; then
6142     ac_cv_path_tclsh='';
6143   else
6144     ac_cv_path_tclsh="${TCLSH}";
6145   fi
6146 else
6147   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
6148 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
6149   TCLSH="${ac_cv_path_tclsh}"
6150
6151 fi
6152
6153 fi
6154
6155 # Extract the first word of "zip", so it can be a program name with args.
6156 set dummy zip; ac_word=$2
6157 echo "$as_me:$LINENO: checking for $ac_word" >&5
6158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6159 if test "${ac_cv_path_ZIP+set}" = set; then
6160   echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162   case $ZIP in
6163   [\\/]* | ?:[\\/]*)
6164   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6165   ;;
6166   *)
6167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 for as_dir in $PATH
6169 do
6170   IFS=$as_save_IFS
6171   test -z "$as_dir" && as_dir=.
6172   for ac_exec_ext in '' $ac_executable_extensions; do
6173   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6174     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6176     break 2
6177   fi
6178 done
6179 done
6180
6181   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
6182   ;;
6183 esac
6184 fi
6185 ZIP=$ac_cv_path_ZIP
6186
6187 if test -n "$ZIP"; then
6188   echo "$as_me:$LINENO: result: $ZIP" >&5
6189 echo "${ECHO_T}$ZIP" >&6
6190 else
6191   echo "$as_me:$LINENO: result: no" >&5
6192 echo "${ECHO_T}no" >&6
6193 fi
6194
6195
6196 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
6197 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
6198 if test "${llvm_cv_link_use_r+set}" = set; then
6199   echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201    ac_ext=c
6202 ac_cpp='$CPP $CPPFLAGS'
6203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6206
6207   oldcflags="$CFLAGS"
6208   CFLAGS="$CFLAGS -Wl,-R."
6209   cat >conftest.$ac_ext <<_ACEOF
6210 /* confdefs.h.  */
6211 _ACEOF
6212 cat confdefs.h >>conftest.$ac_ext
6213 cat >>conftest.$ac_ext <<_ACEOF
6214 /* end confdefs.h.  */
6215
6216 int
6217 main ()
6218 {
6219 int main() { return 0; }
6220   ;
6221   return 0;
6222 }
6223 _ACEOF
6224 rm -f conftest.$ac_objext conftest$ac_exeext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6226   (eval $ac_link) 2>conftest.er1
6227   ac_status=$?
6228   grep -v '^ *+' conftest.er1 >conftest.err
6229   rm -f conftest.er1
6230   cat conftest.err >&5
6231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232   (exit $ac_status); } &&
6233          { ac_try='test -z "$ac_c_werror_flag"
6234                          || test ! -s conftest.err'
6235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236   (eval $ac_try) 2>&5
6237   ac_status=$?
6238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239   (exit $ac_status); }; } &&
6240          { ac_try='test -s conftest$ac_exeext'
6241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242   (eval $ac_try) 2>&5
6243   ac_status=$?
6244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); }; }; then
6246   llvm_cv_link_use_r=yes
6247 else
6248   echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6250
6251 llvm_cv_link_use_r=no
6252 fi
6253 rm -f conftest.err conftest.$ac_objext \
6254       conftest$ac_exeext conftest.$ac_ext
6255   CFLAGS="$oldcflags"
6256   ac_ext=c
6257 ac_cpp='$CPP $CPPFLAGS'
6258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6261
6262
6263 fi
6264 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
6265 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
6266 if test "$llvm_cv_link_use_r" = yes ; then
6267
6268 cat >>confdefs.h <<\_ACEOF
6269 #define HAVE_LINK_R 1
6270 _ACEOF
6271
6272   fi
6273
6274
6275
6276
6277 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6278 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6279 if test "${ac_cv_c_const+set}" = set; then
6280   echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282   cat >conftest.$ac_ext <<_ACEOF
6283 /* confdefs.h.  */
6284 _ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h.  */
6288
6289 int
6290 main ()
6291 {
6292 /* FIXME: Include the comments suggested by Paul. */
6293 #ifndef __cplusplus
6294   /* Ultrix mips cc rejects this.  */
6295   typedef int charset[2];
6296   const charset x;
6297   /* SunOS 4.1.1 cc rejects this.  */
6298   char const *const *ccp;
6299   char **p;
6300   /* NEC SVR4.0.2 mips cc rejects this.  */
6301   struct point {int x, y;};
6302   static struct point const zero = {0,0};
6303   /* AIX XL C 1.02.0.0 rejects this.
6304      It does not let you subtract one const X* pointer from another in
6305      an arm of an if-expression whose if-part is not a constant
6306      expression */
6307   const char *g = "string";
6308   ccp = &g + (g ? g-g : 0);
6309   /* HPUX 7.0 cc rejects these. */
6310   ++ccp;
6311   p = (char**) ccp;
6312   ccp = (char const *const *) p;
6313   { /* SCO 3.2v4 cc rejects this.  */
6314     char *t;
6315     char const *s = 0 ? (char *) 0 : (char const *) 0;
6316
6317     *t++ = 0;
6318   }
6319   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6320     int x[] = {25, 17};
6321     const int *foo = &x[0];
6322     ++foo;
6323   }
6324   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6325     typedef const int *iptr;
6326     iptr p = 0;
6327     ++p;
6328   }
6329   { /* AIX XL C 1.02.0.0 rejects this saying
6330        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6331     struct s { int j; const int *ap[3]; };
6332     struct s *b; b->j = 5;
6333   }
6334   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6335     const int foo = 10;
6336   }
6337 #endif
6338
6339   ;
6340   return 0;
6341 }
6342 _ACEOF
6343 rm -f conftest.$ac_objext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345   (eval $ac_compile) 2>conftest.er1
6346   ac_status=$?
6347   grep -v '^ *+' conftest.er1 >conftest.err
6348   rm -f conftest.er1
6349   cat conftest.err >&5
6350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351   (exit $ac_status); } &&
6352          { ac_try='test -z "$ac_c_werror_flag"
6353                          || test ! -s conftest.err'
6354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355   (eval $ac_try) 2>&5
6356   ac_status=$?
6357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); }; } &&
6359          { ac_try='test -s conftest.$ac_objext'
6360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361   (eval $ac_try) 2>&5
6362   ac_status=$?
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); }; }; then
6365   ac_cv_c_const=yes
6366 else
6367   echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6369
6370 ac_cv_c_const=no
6371 fi
6372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6373 fi
6374 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6375 echo "${ECHO_T}$ac_cv_c_const" >&6
6376 if test $ac_cv_c_const = no; then
6377
6378 cat >>confdefs.h <<\_ACEOF
6379 #define const
6380 _ACEOF
6381
6382 fi
6383
6384
6385 echo "$as_me:$LINENO: checking for egrep" >&5
6386 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6387 if test "${ac_cv_prog_egrep+set}" = set; then
6388   echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6391     then ac_cv_prog_egrep='grep -E'
6392     else ac_cv_prog_egrep='egrep'
6393     fi
6394 fi
6395 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6396 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6397  EGREP=$ac_cv_prog_egrep
6398
6399
6400 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6401 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6402 if test "${ac_cv_header_stdc+set}" = set; then
6403   echo $ECHO_N "(cached) $ECHO_C" >&6
6404 else
6405   cat >conftest.$ac_ext <<_ACEOF
6406 /* confdefs.h.  */
6407 _ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h.  */
6411 #include <stdlib.h>
6412 #include <stdarg.h>
6413 #include <string.h>
6414 #include <float.h>
6415
6416 int
6417 main ()
6418 {
6419
6420   ;
6421   return 0;
6422 }
6423 _ACEOF
6424 rm -f conftest.$ac_objext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6426   (eval $ac_compile) 2>conftest.er1
6427   ac_status=$?
6428   grep -v '^ *+' conftest.er1 >conftest.err
6429   rm -f conftest.er1
6430   cat conftest.err >&5
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); } &&
6433          { ac_try='test -z "$ac_c_werror_flag"
6434                          || test ! -s conftest.err'
6435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436   (eval $ac_try) 2>&5
6437   ac_status=$?
6438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439   (exit $ac_status); }; } &&
6440          { ac_try='test -s conftest.$ac_objext'
6441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442   (eval $ac_try) 2>&5
6443   ac_status=$?
6444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445   (exit $ac_status); }; }; then
6446   ac_cv_header_stdc=yes
6447 else
6448   echo "$as_me: failed program was:" >&5
6449 sed 's/^/| /' conftest.$ac_ext >&5
6450
6451 ac_cv_header_stdc=no
6452 fi
6453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6454
6455 if test $ac_cv_header_stdc = yes; then
6456   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6457   cat >conftest.$ac_ext <<_ACEOF
6458 /* confdefs.h.  */
6459 _ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h.  */
6463 #include <string.h>
6464
6465 _ACEOF
6466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6467   $EGREP "memchr" >/dev/null 2>&1; then
6468   :
6469 else
6470   ac_cv_header_stdc=no
6471 fi
6472 rm -f conftest*
6473
6474 fi
6475
6476 if test $ac_cv_header_stdc = yes; then
6477   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6478   cat >conftest.$ac_ext <<_ACEOF
6479 /* confdefs.h.  */
6480 _ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h.  */
6484 #include <stdlib.h>
6485
6486 _ACEOF
6487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6488   $EGREP "free" >/dev/null 2>&1; then
6489   :
6490 else
6491   ac_cv_header_stdc=no
6492 fi
6493 rm -f conftest*
6494
6495 fi
6496
6497 if test $ac_cv_header_stdc = yes; then
6498   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6499   if test "$cross_compiling" = yes; then
6500   :
6501 else
6502   cat >conftest.$ac_ext <<_ACEOF
6503 /* confdefs.h.  */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h.  */
6508 #include <ctype.h>
6509 #if ((' ' & 0x0FF) == 0x020)
6510 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6511 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6512 #else
6513 # define ISLOWER(c) \
6514                    (('a' <= (c) && (c) <= 'i') \
6515                      || ('j' <= (c) && (c) <= 'r') \
6516                      || ('s' <= (c) && (c) <= 'z'))
6517 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6518 #endif
6519
6520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6521 int
6522 main ()
6523 {
6524   int i;
6525   for (i = 0; i < 256; i++)
6526     if (XOR (islower (i), ISLOWER (i))
6527         || toupper (i) != TOUPPER (i))
6528       exit(2);
6529   exit (0);
6530 }
6531 _ACEOF
6532 rm -f conftest$ac_exeext
6533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6534   (eval $ac_link) 2>&5
6535   ac_status=$?
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539   (eval $ac_try) 2>&5
6540   ac_status=$?
6541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542   (exit $ac_status); }; }; then
6543   :
6544 else
6545   echo "$as_me: program exited with status $ac_status" >&5
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6548
6549 ( exit $ac_status )
6550 ac_cv_header_stdc=no
6551 fi
6552 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6553 fi
6554 fi
6555 fi
6556 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6557 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6558 if test $ac_cv_header_stdc = yes; then
6559
6560 cat >>confdefs.h <<\_ACEOF
6561 #define STDC_HEADERS 1
6562 _ACEOF
6563
6564 fi
6565
6566
6567
6568
6569
6570
6571 ac_header_dirent=no
6572 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6573   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6574 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6575 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6577   echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579   cat >conftest.$ac_ext <<_ACEOF
6580 /* confdefs.h.  */
6581 _ACEOF
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h.  */
6585 #include <sys/types.h>
6586 #include <$ac_hdr>
6587
6588 int
6589 main ()
6590 {
6591 if ((DIR *) 0)
6592 return 0;
6593   ;
6594   return 0;
6595 }
6596 _ACEOF
6597 rm -f conftest.$ac_objext
6598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6599   (eval $ac_compile) 2>conftest.er1
6600   ac_status=$?
6601   grep -v '^ *+' conftest.er1 >conftest.err
6602   rm -f conftest.er1
6603   cat conftest.err >&5
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); } &&
6606          { ac_try='test -z "$ac_c_werror_flag"
6607                          || test ! -s conftest.err'
6608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609   (eval $ac_try) 2>&5
6610   ac_status=$?
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); }; } &&
6613          { ac_try='test -s conftest.$ac_objext'
6614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615   (eval $ac_try) 2>&5
6616   ac_status=$?
6617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618   (exit $ac_status); }; }; then
6619   eval "$as_ac_Header=yes"
6620 else
6621   echo "$as_me: failed program was:" >&5
6622 sed 's/^/| /' conftest.$ac_ext >&5
6623
6624 eval "$as_ac_Header=no"
6625 fi
6626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6627 fi
6628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6631   cat >>confdefs.h <<_ACEOF
6632 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6633 _ACEOF
6634
6635 ac_header_dirent=$ac_hdr; break
6636 fi
6637
6638 done
6639 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6640 if test $ac_header_dirent = dirent.h; then
6641   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6642 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6643 if test "${ac_cv_search_opendir+set}" = set; then
6644   echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646   ac_func_search_save_LIBS=$LIBS
6647 ac_cv_search_opendir=no
6648 cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h.  */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h.  */
6654
6655 /* Override any gcc2 internal prototype to avoid an error.  */
6656 #ifdef __cplusplus
6657 extern "C"
6658 #endif
6659 /* We use char because int might match the return type of a gcc2
6660    builtin and then its argument prototype would still apply.  */
6661 char opendir ();
6662 int
6663 main ()
6664 {
6665 opendir ();
6666   ;
6667   return 0;
6668 }
6669 _ACEOF
6670 rm -f conftest.$ac_objext conftest$ac_exeext
6671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6672   (eval $ac_link) 2>conftest.er1
6673   ac_status=$?
6674   grep -v '^ *+' conftest.er1 >conftest.err
6675   rm -f conftest.er1
6676   cat conftest.err >&5
6677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678   (exit $ac_status); } &&
6679          { ac_try='test -z "$ac_c_werror_flag"
6680                          || test ! -s conftest.err'
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); }; } &&
6686          { ac_try='test -s conftest$ac_exeext'
6687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688   (eval $ac_try) 2>&5
6689   ac_status=$?
6690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691   (exit $ac_status); }; }; then
6692   ac_cv_search_opendir="none required"
6693 else
6694   echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.$ac_ext >&5
6696
6697 fi
6698 rm -f conftest.err conftest.$ac_objext \
6699       conftest$ac_exeext conftest.$ac_ext
6700 if test "$ac_cv_search_opendir" = no; then
6701   for ac_lib in dir; do
6702     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6703     cat >conftest.$ac_ext <<_ACEOF
6704 /* confdefs.h.  */
6705 _ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h.  */
6709
6710 /* Override any gcc2 internal prototype to avoid an error.  */
6711 #ifdef __cplusplus
6712 extern "C"
6713 #endif
6714 /* We use char because int might match the return type of a gcc2
6715    builtin and then its argument prototype would still apply.  */
6716 char opendir ();
6717 int
6718 main ()
6719 {
6720 opendir ();
6721   ;
6722   return 0;
6723 }
6724 _ACEOF
6725 rm -f conftest.$ac_objext conftest$ac_exeext
6726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6727   (eval $ac_link) 2>conftest.er1
6728   ac_status=$?
6729   grep -v '^ *+' conftest.er1 >conftest.err
6730   rm -f conftest.er1
6731   cat conftest.err >&5
6732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733   (exit $ac_status); } &&
6734          { ac_try='test -z "$ac_c_werror_flag"
6735                          || test ! -s conftest.err'
6736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737   (eval $ac_try) 2>&5
6738   ac_status=$?
6739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740   (exit $ac_status); }; } &&
6741          { ac_try='test -s conftest$ac_exeext'
6742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743   (eval $ac_try) 2>&5
6744   ac_status=$?
6745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746   (exit $ac_status); }; }; then
6747   ac_cv_search_opendir="-l$ac_lib"
6748 break
6749 else
6750   echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6752
6753 fi
6754 rm -f conftest.err conftest.$ac_objext \
6755       conftest$ac_exeext conftest.$ac_ext
6756   done
6757 fi
6758 LIBS=$ac_func_search_save_LIBS
6759 fi
6760 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6761 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6762 if test "$ac_cv_search_opendir" != no; then
6763   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6764
6765 fi
6766
6767 else
6768   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6769 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6770 if test "${ac_cv_search_opendir+set}" = set; then
6771   echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773   ac_func_search_save_LIBS=$LIBS
6774 ac_cv_search_opendir=no
6775 cat >conftest.$ac_ext <<_ACEOF
6776 /* confdefs.h.  */
6777 _ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h.  */
6781
6782 /* Override any gcc2 internal prototype to avoid an error.  */
6783 #ifdef __cplusplus
6784 extern "C"
6785 #endif
6786 /* We use char because int might match the return type of a gcc2
6787    builtin and then its argument prototype would still apply.  */
6788 char opendir ();
6789 int
6790 main ()
6791 {
6792 opendir ();
6793   ;
6794   return 0;
6795 }
6796 _ACEOF
6797 rm -f conftest.$ac_objext conftest$ac_exeext
6798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6799   (eval $ac_link) 2>conftest.er1
6800   ac_status=$?
6801   grep -v '^ *+' conftest.er1 >conftest.err
6802   rm -f conftest.er1
6803   cat conftest.err >&5
6804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805   (exit $ac_status); } &&
6806          { ac_try='test -z "$ac_c_werror_flag"
6807                          || test ! -s conftest.err'
6808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809   (eval $ac_try) 2>&5
6810   ac_status=$?
6811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812   (exit $ac_status); }; } &&
6813          { ac_try='test -s conftest$ac_exeext'
6814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815   (eval $ac_try) 2>&5
6816   ac_status=$?
6817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818   (exit $ac_status); }; }; then
6819   ac_cv_search_opendir="none required"
6820 else
6821   echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.$ac_ext >&5
6823
6824 fi
6825 rm -f conftest.err conftest.$ac_objext \
6826       conftest$ac_exeext conftest.$ac_ext
6827 if test "$ac_cv_search_opendir" = no; then
6828   for ac_lib in x; do
6829     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6830     cat >conftest.$ac_ext <<_ACEOF
6831 /* confdefs.h.  */
6832 _ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h.  */
6836
6837 /* Override any gcc2 internal prototype to avoid an error.  */
6838 #ifdef __cplusplus
6839 extern "C"
6840 #endif
6841 /* We use char because int might match the return type of a gcc2
6842    builtin and then its argument prototype would still apply.  */
6843 char opendir ();
6844 int
6845 main ()
6846 {
6847 opendir ();
6848   ;
6849   return 0;
6850 }
6851 _ACEOF
6852 rm -f conftest.$ac_objext conftest$ac_exeext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6854   (eval $ac_link) 2>conftest.er1
6855   ac_status=$?
6856   grep -v '^ *+' conftest.er1 >conftest.err
6857   rm -f conftest.er1
6858   cat conftest.err >&5
6859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860   (exit $ac_status); } &&
6861          { ac_try='test -z "$ac_c_werror_flag"
6862                          || test ! -s conftest.err'
6863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864   (eval $ac_try) 2>&5
6865   ac_status=$?
6866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867   (exit $ac_status); }; } &&
6868          { ac_try='test -s conftest$ac_exeext'
6869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870   (eval $ac_try) 2>&5
6871   ac_status=$?
6872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873   (exit $ac_status); }; }; then
6874   ac_cv_search_opendir="-l$ac_lib"
6875 break
6876 else
6877   echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6879
6880 fi
6881 rm -f conftest.err conftest.$ac_objext \
6882       conftest$ac_exeext conftest.$ac_ext
6883   done
6884 fi
6885 LIBS=$ac_func_search_save_LIBS
6886 fi
6887 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6888 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6889 if test "$ac_cv_search_opendir" != no; then
6890   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6891
6892 fi
6893
6894 fi
6895
6896 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6907                   inttypes.h stdint.h unistd.h
6908 do
6909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6910 echo "$as_me:$LINENO: checking for $ac_header" >&5
6911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6913   echo $ECHO_N "(cached) $ECHO_C" >&6
6914 else
6915   cat >conftest.$ac_ext <<_ACEOF
6916 /* confdefs.h.  */
6917 _ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h.  */
6921 $ac_includes_default
6922
6923 #include <$ac_header>
6924 _ACEOF
6925 rm -f conftest.$ac_objext
6926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6927   (eval $ac_compile) 2>conftest.er1
6928   ac_status=$?
6929   grep -v '^ *+' conftest.er1 >conftest.err
6930   rm -f conftest.er1
6931   cat conftest.err >&5
6932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933   (exit $ac_status); } &&
6934          { ac_try='test -z "$ac_c_werror_flag"
6935                          || test ! -s conftest.err'
6936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937   (eval $ac_try) 2>&5
6938   ac_status=$?
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); }; } &&
6941          { ac_try='test -s conftest.$ac_objext'
6942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943   (eval $ac_try) 2>&5
6944   ac_status=$?
6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946   (exit $ac_status); }; }; then
6947   eval "$as_ac_Header=yes"
6948 else
6949   echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6951
6952 eval "$as_ac_Header=no"
6953 fi
6954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6955 fi
6956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6959   cat >>confdefs.h <<_ACEOF
6960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6961 _ACEOF
6962
6963 fi
6964
6965 done
6966
6967
6968
6969 for ac_header in dlfcn.h
6970 do
6971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6973   echo "$as_me:$LINENO: checking for $ac_header" >&5
6974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6976   echo $ECHO_N "(cached) $ECHO_C" >&6
6977 fi
6978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6980 else
6981   # Is the header compilable?
6982 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6984 cat >conftest.$ac_ext <<_ACEOF
6985 /* confdefs.h.  */
6986 _ACEOF
6987 cat confdefs.h >>conftest.$ac_ext
6988 cat >>conftest.$ac_ext <<_ACEOF
6989 /* end confdefs.h.  */
6990 $ac_includes_default
6991 #include <$ac_header>
6992 _ACEOF
6993 rm -f conftest.$ac_objext
6994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6995   (eval $ac_compile) 2>conftest.er1
6996   ac_status=$?
6997   grep -v '^ *+' conftest.er1 >conftest.err
6998   rm -f conftest.er1
6999   cat conftest.err >&5
7000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001   (exit $ac_status); } &&
7002          { ac_try='test -z "$ac_c_werror_flag"
7003                          || test ! -s conftest.err'
7004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005   (eval $ac_try) 2>&5
7006   ac_status=$?
7007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008   (exit $ac_status); }; } &&
7009          { ac_try='test -s conftest.$ac_objext'
7010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011   (eval $ac_try) 2>&5
7012   ac_status=$?
7013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014   (exit $ac_status); }; }; then
7015   ac_header_compiler=yes
7016 else
7017   echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7019
7020 ac_header_compiler=no
7021 fi
7022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7023 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7024 echo "${ECHO_T}$ac_header_compiler" >&6
7025
7026 # Is the header present?
7027 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7029 cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h.  */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h.  */
7035 #include <$ac_header>
7036 _ACEOF
7037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7038   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7039   ac_status=$?
7040   grep -v '^ *+' conftest.er1 >conftest.err
7041   rm -f conftest.er1
7042   cat conftest.err >&5
7043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044   (exit $ac_status); } >/dev/null; then
7045   if test -s conftest.err; then
7046     ac_cpp_err=$ac_c_preproc_warn_flag
7047     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7048   else
7049     ac_cpp_err=
7050   fi
7051 else
7052   ac_cpp_err=yes
7053 fi
7054 if test -z "$ac_cpp_err"; then
7055   ac_header_preproc=yes
7056 else
7057   echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7059
7060   ac_header_preproc=no
7061 fi
7062 rm -f conftest.err conftest.$ac_ext
7063 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7064 echo "${ECHO_T}$ac_header_preproc" >&6
7065
7066 # So?  What about this header?
7067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7068   yes:no: )
7069     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7073     ac_header_preproc=yes
7074     ;;
7075   no:yes:* )
7076     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7078     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7079 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7080     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7082     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7083 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7086     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7088     (
7089       cat <<\_ASBOX
7090 ## ----------------------------------- ##
7091 ## Report this to llvmbugs@cs.uiuc.edu ##
7092 ## ----------------------------------- ##
7093 _ASBOX
7094     ) |
7095       sed "s/^/$as_me: WARNING:     /" >&2
7096     ;;
7097 esac
7098 echo "$as_me:$LINENO: checking for $ac_header" >&5
7099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7101   echo $ECHO_N "(cached) $ECHO_C" >&6
7102 else
7103   eval "$as_ac_Header=\$ac_header_preproc"
7104 fi
7105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7107
7108 fi
7109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7110   cat >>confdefs.h <<_ACEOF
7111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7112 _ACEOF
7113
7114 fi
7115
7116 done
7117
7118 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
7119 if test "${enable_ltdl_install+set}" = set; then
7120   enableval="$enable_ltdl_install"
7121
7122 fi;
7123
7124
7125
7126 if test x"${enable_ltdl_install-no}" != xno; then
7127   INSTALL_LTDL_TRUE=
7128   INSTALL_LTDL_FALSE='#'
7129 else
7130   INSTALL_LTDL_TRUE='#'
7131   INSTALL_LTDL_FALSE=
7132 fi
7133
7134
7135
7136 if test x"${enable_ltdl_convenience-no}" != xno; then
7137   CONVENIENCE_LTDL_TRUE=
7138   CONVENIENCE_LTDL_FALSE='#'
7139 else
7140   CONVENIENCE_LTDL_TRUE='#'
7141   CONVENIENCE_LTDL_FALSE=
7142 fi
7143
7144
7145 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7146 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7147 library_names_spec=
7148 libname_spec='lib$name'
7149 soname_spec=
7150 shrext_cmds=".so"
7151 postinstall_cmds=
7152 postuninstall_cmds=
7153 finish_cmds=
7154 finish_eval=
7155 shlibpath_var=
7156 shlibpath_overrides_runpath=unknown
7157 version_type=none
7158 dynamic_linker="$host_os ld.so"
7159 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7160 if test "$GCC" = yes; then
7161   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7162   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7163     # if the path contains ";" then we assume it to be the separator
7164     # otherwise default to the standard path separator (i.e. ":") - it is
7165     # assumed that no part of a normal pathname contains ";" but that should
7166     # okay in the real world where ";" in dirpaths is itself problematic.
7167     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7168   else
7169     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7170   fi
7171 else
7172   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7173 fi
7174 need_lib_prefix=unknown
7175 hardcode_into_libs=no
7176
7177 # when you set need_version to no, make sure it does not cause -set_version
7178 # flags to be left without arguments
7179 need_version=unknown
7180
7181 case $host_os in
7182 aix3*)
7183   version_type=linux
7184   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7185   shlibpath_var=LIBPATH
7186
7187   # AIX 3 has no versioning support, so we append a major version to the name.
7188   soname_spec='${libname}${release}${shared_ext}$major'
7189   ;;
7190
7191 aix4* | aix5*)
7192   version_type=linux
7193   need_lib_prefix=no
7194   need_version=no
7195   hardcode_into_libs=yes
7196   if test "$host_cpu" = ia64; then
7197     # AIX 5 supports IA64
7198     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7199     shlibpath_var=LD_LIBRARY_PATH
7200   else
7201     # With GCC up to 2.95.x, collect2 would create an import file
7202     # for dependence libraries.  The import file would start with
7203     # the line `#! .'.  This would cause the generated library to
7204     # depend on `.', always an invalid library.  This was fixed in
7205     # development snapshots of GCC prior to 3.0.
7206     case $host_os in
7207       aix4 | aix4.[01] | aix4.[01].*)
7208       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7209            echo ' yes '
7210            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7211         :
7212       else
7213         can_build_shared=no
7214       fi
7215       ;;
7216     esac
7217     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7218     # soname into executable. Probably we can add versioning support to
7219     # collect2, so additional links can be useful in future.
7220     if test "$aix_use_runtimelinking" = yes; then
7221       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7222       # instead of lib<name>.a to let people know that these are not
7223       # typical AIX shared libraries.
7224       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7225     else
7226       # We preserve .a as extension for shared libraries through AIX4.2
7227       # and later when we are not doing run time linking.
7228       library_names_spec='${libname}${release}.a $libname.a'
7229       soname_spec='${libname}${release}${shared_ext}$major'
7230     fi
7231     shlibpath_var=LIBPATH
7232   fi
7233   ;;
7234
7235 amigaos*)
7236   library_names_spec='$libname.ixlibrary $libname.a'
7237   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7238   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'
7239   ;;
7240
7241 beos*)
7242   library_names_spec='${libname}${shared_ext}'
7243   dynamic_linker="$host_os ld.so"
7244   shlibpath_var=LIBRARY_PATH
7245   ;;
7246
7247 bsdi[45]*)
7248   version_type=linux
7249   need_version=no
7250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7251   soname_spec='${libname}${release}${shared_ext}$major'
7252   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7253   shlibpath_var=LD_LIBRARY_PATH
7254   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7255   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7256   # the default ld.so.conf also contains /usr/contrib/lib and
7257   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7258   # libtool to hard-code these into programs
7259   ;;
7260
7261 cygwin* | mingw* | pw32*)
7262   version_type=windows
7263   shrext_cmds=".dll"
7264   need_version=no
7265   need_lib_prefix=no
7266
7267   case $GCC,$host_os in
7268   yes,cygwin* | yes,mingw* | yes,pw32*)
7269     library_names_spec='$libname.dll.a'
7270     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7271     postinstall_cmds='base_file=`basename \${file}`~
7272       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7273       dldir=$destdir/`dirname \$dlpath`~
7274       test -d \$dldir || mkdir -p \$dldir~
7275       $install_prog $dir/$dlname \$dldir/$dlname'
7276     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7277       dlpath=$dir/\$dldll~
7278        $rm \$dlpath'
7279     shlibpath_overrides_runpath=yes
7280
7281     case $host_os in
7282     cygwin*)
7283       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7284       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7285       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7286       ;;
7287     mingw*)
7288       # MinGW DLLs use traditional 'lib' prefix
7289       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7290       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7291       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7292         # It is most probably a Windows format PATH printed by
7293         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7294         # path with ; separators, and with drive letters. We can handle the
7295         # drive letters (cygwin fileutils understands them), so leave them,
7296         # especially as we might pass files found there to a mingw objdump,
7297         # which wouldn't understand a cygwinified path. Ahh.
7298         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7299       else
7300         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7301       fi
7302       ;;
7303     pw32*)
7304       # pw32 DLLs use 'pw' prefix rather than 'lib'
7305       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7306       ;;
7307     esac
7308     ;;
7309
7310   *)
7311     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7312     ;;
7313   esac
7314   dynamic_linker='Win32 ld.exe'
7315   # FIXME: first we should search . and the directory the executable is in
7316   shlibpath_var=PATH
7317   ;;
7318
7319 darwin* | rhapsody*)
7320   dynamic_linker="$host_os dyld"
7321   version_type=darwin
7322   need_lib_prefix=no
7323   need_version=no
7324   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7325   soname_spec='${libname}${release}${major}$shared_ext'
7326   shlibpath_overrides_runpath=yes
7327   shlibpath_var=DYLD_LIBRARY_PATH
7328   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7329   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7330   if test "$GCC" = yes; then
7331     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"`
7332   else
7333     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7334   fi
7335   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7336   ;;
7337
7338 dgux*)
7339   version_type=linux
7340   need_lib_prefix=no
7341   need_version=no
7342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7343   soname_spec='${libname}${release}${shared_ext}$major'
7344   shlibpath_var=LD_LIBRARY_PATH
7345   ;;
7346
7347 freebsd1*)
7348   dynamic_linker=no
7349   ;;
7350
7351 kfreebsd*-gnu)
7352   version_type=linux
7353   need_lib_prefix=no
7354   need_version=no
7355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7356   soname_spec='${libname}${release}${shared_ext}$major'
7357   shlibpath_var=LD_LIBRARY_PATH
7358   shlibpath_overrides_runpath=no
7359   hardcode_into_libs=yes
7360   dynamic_linker='GNU ld.so'
7361   ;;
7362
7363 freebsd*)
7364   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7365   version_type=freebsd-$objformat
7366   case $version_type in
7367     freebsd-elf*)
7368       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7369       need_version=no
7370       need_lib_prefix=no
7371       ;;
7372     freebsd-*)
7373       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7374       need_version=yes
7375       ;;
7376   esac
7377   shlibpath_var=LD_LIBRARY_PATH
7378   case $host_os in
7379   freebsd2*)
7380     shlibpath_overrides_runpath=yes
7381     ;;
7382   freebsd3.01* | freebsdelf3.01*)
7383     shlibpath_overrides_runpath=yes
7384     hardcode_into_libs=yes
7385     ;;
7386   *) # from 3.2 on
7387     shlibpath_overrides_runpath=no
7388     hardcode_into_libs=yes
7389     ;;
7390   esac
7391   ;;
7392
7393 gnu*)
7394   version_type=linux
7395   need_lib_prefix=no
7396   need_version=no
7397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7398   soname_spec='${libname}${release}${shared_ext}$major'
7399   shlibpath_var=LD_LIBRARY_PATH
7400   hardcode_into_libs=yes
7401   ;;
7402
7403 hpux9* | hpux10* | hpux11*)
7404   # Give a soname corresponding to the major version so that dld.sl refuses to
7405   # link against other versions.
7406   version_type=sunos
7407   need_lib_prefix=no
7408   need_version=no
7409   case "$host_cpu" in
7410   ia64*)
7411     shrext_cmds='.so'
7412     hardcode_into_libs=yes
7413     dynamic_linker="$host_os dld.so"
7414     shlibpath_var=LD_LIBRARY_PATH
7415     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7416     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7417     soname_spec='${libname}${release}${shared_ext}$major'
7418     if test "X$HPUX_IA64_MODE" = X32; then
7419       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7420     else
7421       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7422     fi
7423     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7424     ;;
7425    hppa*64*)
7426      shrext_cmds='.sl'
7427      hardcode_into_libs=yes
7428      dynamic_linker="$host_os dld.sl"
7429      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7430      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7431      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7432      soname_spec='${libname}${release}${shared_ext}$major'
7433      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7434      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7435      ;;
7436    *)
7437     shrext_cmds='.sl'
7438     dynamic_linker="$host_os dld.sl"
7439     shlibpath_var=SHLIB_PATH
7440     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7441     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7442     soname_spec='${libname}${release}${shared_ext}$major'
7443     ;;
7444   esac
7445   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7446   postinstall_cmds='chmod 555 $lib'
7447   ;;
7448
7449 irix5* | irix6* | nonstopux*)
7450   case $host_os in
7451     nonstopux*) version_type=nonstopux ;;
7452     *)
7453         if test "$lt_cv_prog_gnu_ld" = yes; then
7454                 version_type=linux
7455         else
7456                 version_type=irix
7457         fi ;;
7458   esac
7459   need_lib_prefix=no
7460   need_version=no
7461   soname_spec='${libname}${release}${shared_ext}$major'
7462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7463   case $host_os in
7464   irix5* | nonstopux*)
7465     libsuff= shlibsuff=
7466     ;;
7467   *)
7468     case $LD in # libtool.m4 will add one of these switches to LD
7469     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7470       libsuff= shlibsuff= libmagic=32-bit;;
7471     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7472       libsuff=32 shlibsuff=N32 libmagic=N32;;
7473     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7474       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7475     *) libsuff= shlibsuff= libmagic=never-match;;
7476     esac
7477     ;;
7478   esac
7479   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7480   shlibpath_overrides_runpath=no
7481   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7482   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7483   hardcode_into_libs=yes
7484   ;;
7485
7486 # No shared lib support for Linux oldld, aout, or coff.
7487 linux*oldld* | linux*aout* | linux*coff*)
7488   dynamic_linker=no
7489   ;;
7490
7491 # This must be Linux ELF.
7492 linux*)
7493   version_type=linux
7494   need_lib_prefix=no
7495   need_version=no
7496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7497   soname_spec='${libname}${release}${shared_ext}$major'
7498   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7499   shlibpath_var=LD_LIBRARY_PATH
7500   shlibpath_overrides_runpath=no
7501   # This implies no fast_install, which is unacceptable.
7502   # Some rework will be needed to allow for fast_install
7503   # before this can be enabled.
7504   hardcode_into_libs=yes
7505
7506   # Append ld.so.conf contents to the search path
7507   if test -f /etc/ld.so.conf; then
7508     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7509     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7510   fi
7511
7512   # We used to test for /lib/ld.so.1 and disable shared libraries on
7513   # powerpc, because MkLinux only supported shared libraries with the
7514   # GNU dynamic linker.  Since this was broken with cross compilers,
7515   # most powerpc-linux boxes support dynamic linking these days and
7516   # people can always --disable-shared, the test was removed, and we
7517   # assume the GNU/Linux dynamic linker is in use.
7518   dynamic_linker='GNU/Linux ld.so'
7519   ;;
7520
7521 knetbsd*-gnu)
7522   version_type=linux
7523   need_lib_prefix=no
7524   need_version=no
7525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7526   soname_spec='${libname}${release}${shared_ext}$major'
7527   shlibpath_var=LD_LIBRARY_PATH
7528   shlibpath_overrides_runpath=no
7529   hardcode_into_libs=yes
7530   dynamic_linker='GNU ld.so'
7531   ;;
7532
7533 netbsd*)
7534   version_type=sunos
7535   need_lib_prefix=no
7536   need_version=no
7537   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7538     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7539     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7540     dynamic_linker='NetBSD (a.out) ld.so'
7541   else
7542     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7543     soname_spec='${libname}${release}${shared_ext}$major'
7544     dynamic_linker='NetBSD ld.elf_so'
7545   fi
7546   shlibpath_var=LD_LIBRARY_PATH
7547   shlibpath_overrides_runpath=yes
7548   hardcode_into_libs=yes
7549   ;;
7550
7551 newsos6)
7552   version_type=linux
7553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7554   shlibpath_var=LD_LIBRARY_PATH
7555   shlibpath_overrides_runpath=yes
7556   ;;
7557
7558 nto-qnx*)
7559   version_type=linux
7560   need_lib_prefix=no
7561   need_version=no
7562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7563   soname_spec='${libname}${release}${shared_ext}$major'
7564   shlibpath_var=LD_LIBRARY_PATH
7565   shlibpath_overrides_runpath=yes
7566   ;;
7567
7568 openbsd*)
7569   version_type=sunos
7570   need_lib_prefix=no
7571   need_version=no
7572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7573   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7574   shlibpath_var=LD_LIBRARY_PATH
7575   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7576     case $host_os in
7577       openbsd2.[89] | openbsd2.[89].*)
7578         shlibpath_overrides_runpath=no
7579         ;;
7580       *)
7581         shlibpath_overrides_runpath=yes
7582         ;;
7583       esac
7584   else
7585     shlibpath_overrides_runpath=yes
7586   fi
7587   ;;
7588
7589 os2*)
7590   libname_spec='$name'
7591   shrext_cmds=".dll"
7592   need_lib_prefix=no
7593   library_names_spec='$libname${shared_ext} $libname.a'
7594   dynamic_linker='OS/2 ld.exe'
7595   shlibpath_var=LIBPATH
7596   ;;
7597
7598 osf3* | osf4* | osf5*)
7599   version_type=osf
7600   need_lib_prefix=no
7601   need_version=no
7602   soname_spec='${libname}${release}${shared_ext}$major'
7603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7604   shlibpath_var=LD_LIBRARY_PATH
7605   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7606   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7607   ;;
7608
7609 sco3.2v5*)
7610   version_type=osf
7611   soname_spec='${libname}${release}${shared_ext}$major'
7612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7613   shlibpath_var=LD_LIBRARY_PATH
7614   ;;
7615
7616 solaris*)
7617   version_type=linux
7618   need_lib_prefix=no
7619   need_version=no
7620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7621   soname_spec='${libname}${release}${shared_ext}$major'
7622   shlibpath_var=LD_LIBRARY_PATH
7623   shlibpath_overrides_runpath=yes
7624   hardcode_into_libs=yes
7625   # ldd complains unless libraries are executable
7626   postinstall_cmds='chmod +x $lib'
7627   ;;
7628
7629 sunos4*)
7630   version_type=sunos
7631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7632   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7633   shlibpath_var=LD_LIBRARY_PATH
7634   shlibpath_overrides_runpath=yes
7635   if test "$with_gnu_ld" = yes; then
7636     need_lib_prefix=no
7637   fi
7638   need_version=yes
7639   ;;
7640
7641 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7642   version_type=linux
7643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7644   soname_spec='${libname}${release}${shared_ext}$major'
7645   shlibpath_var=LD_LIBRARY_PATH
7646   case $host_vendor in
7647     sni)
7648       shlibpath_overrides_runpath=no
7649       need_lib_prefix=no
7650       export_dynamic_flag_spec='${wl}-Blargedynsym'
7651       runpath_var=LD_RUN_PATH
7652       ;;
7653     siemens)
7654       need_lib_prefix=no
7655       ;;
7656     motorola)
7657       need_lib_prefix=no
7658       need_version=no
7659       shlibpath_overrides_runpath=no
7660       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7661       ;;
7662   esac
7663   ;;
7664
7665 sysv4*MP*)
7666   if test -d /usr/nec ;then
7667     version_type=linux
7668     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7669     soname_spec='$libname${shared_ext}.$major'
7670     shlibpath_var=LD_LIBRARY_PATH
7671   fi
7672   ;;
7673
7674 uts4*)
7675   version_type=linux
7676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7677   soname_spec='${libname}${release}${shared_ext}$major'
7678   shlibpath_var=LD_LIBRARY_PATH
7679   ;;
7680
7681 *)
7682   dynamic_linker=no
7683   ;;
7684 esac
7685 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7686 echo "${ECHO_T}$dynamic_linker" >&6
7687 test "$dynamic_linker" = no && can_build_shared=no
7688
7689
7690 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7691 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7692 if test "${libltdl_cv_shlibext+set}" = set; then
7693   echo $ECHO_N "(cached) $ECHO_C" >&6
7694 else
7695
7696 module=yes
7697 eval libltdl_cv_shlibext=$shrext_cmds
7698
7699 fi
7700 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7701 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7702 if test -n "$libltdl_cv_shlibext"; then
7703
7704 cat >>confdefs.h <<_ACEOF
7705 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7706 _ACEOF
7707
7708 fi
7709
7710
7711 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7712 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7713 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7714   echo $ECHO_N "(cached) $ECHO_C" >&6
7715 else
7716   libltdl_cv_shlibpath_var="$shlibpath_var"
7717 fi
7718 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7719 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7720 if test -n "$libltdl_cv_shlibpath_var"; then
7721
7722 cat >>confdefs.h <<_ACEOF
7723 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7724 _ACEOF
7725
7726 fi
7727
7728
7729 echo "$as_me:$LINENO: checking for the default library search path" >&5
7730 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7731 if test "${libltdl_cv_sys_search_path+set}" = set; then
7732   echo $ECHO_N "(cached) $ECHO_C" >&6
7733 else
7734   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7735 fi
7736 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7737 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7738 if test -n "$libltdl_cv_sys_search_path"; then
7739   sys_search_path=
7740   for dir in $libltdl_cv_sys_search_path; do
7741     if test -z "$sys_search_path"; then
7742       sys_search_path="$dir"
7743     else
7744       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7745     fi
7746   done
7747
7748 cat >>confdefs.h <<_ACEOF
7749 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7750 _ACEOF
7751
7752 fi
7753
7754 echo "$as_me:$LINENO: checking for objdir" >&5
7755 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7756 if test "${libltdl_cv_objdir+set}" = set; then
7757   echo $ECHO_N "(cached) $ECHO_C" >&6
7758 else
7759   libltdl_cv_objdir="$objdir"
7760   if test -n "$objdir"; then
7761     :
7762   else
7763     rm -f .libs 2>/dev/null
7764     mkdir .libs 2>/dev/null
7765     if test -d .libs; then
7766       libltdl_cv_objdir=.libs
7767     else
7768       # MS-DOS does not allow filenames that begin with a dot.
7769       libltdl_cv_objdir=_libs
7770     fi
7771   rmdir .libs 2>/dev/null
7772   fi
7773
7774 fi
7775 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7776 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7777
7778 cat >>confdefs.h <<_ACEOF
7779 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7780 _ACEOF
7781
7782
7783
7784
7785
7786
7787 # Check for command to grab the raw symbol name followed by C symbol from nm.
7788 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7789 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7790 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7791   echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793
7794 # These are sane defaults that work on at least a few old systems.
7795 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7796
7797 # Character class describing NM global symbol codes.
7798 symcode='[BCDEGRST]'
7799
7800 # Regexp to match symbols that can be accessed directly from C.
7801 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7802
7803 # Transform the above into a raw symbol and a C symbol.
7804 symxfrm='\1 \2\3 \3'
7805
7806 # Transform an extracted symbol line into a proper C declaration
7807 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7808
7809 # Transform an extracted symbol line into symbol name and symbol address
7810 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'"
7811
7812 # Define system-specific variables.
7813 case $host_os in
7814 aix*)
7815   symcode='[BCDT]'
7816   ;;
7817 cygwin* | mingw* | pw32*)
7818   symcode='[ABCDGISTW]'
7819   ;;
7820 hpux*) # Its linker distinguishes data from code symbols
7821   if test "$host_cpu" = ia64; then
7822     symcode='[ABCDEGRST]'
7823   fi
7824   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7825   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'"
7826   ;;
7827 linux*)
7828   if test "$host_cpu" = ia64; then
7829     symcode='[ABCDGIRSTW]'
7830     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7831     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'"
7832   fi
7833   ;;
7834 irix* | nonstopux*)
7835   symcode='[BCDEGRST]'
7836   ;;
7837 osf*)
7838   symcode='[BCDEGQRST]'
7839   ;;
7840 solaris* | sysv5*)
7841   symcode='[BDRT]'
7842   ;;
7843 sysv4)
7844   symcode='[DFNSTU]'
7845   ;;
7846 esac
7847
7848 # Handle CRLF in mingw tool chain
7849 opt_cr=
7850 case $build_os in
7851 mingw*)
7852   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7853   ;;
7854 esac
7855
7856 # If we're using GNU nm, then use its standard symbol codes.
7857 case `$NM -V 2>&1` in
7858 *GNU* | *'with BFD'*)
7859   symcode='[ABCDGIRSTW]' ;;
7860 esac
7861
7862 # Try without a prefix undercore, then with it.
7863 for ac_symprfx in "" "_"; do
7864
7865   # Write the raw and C identifiers.
7866   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7867
7868   # Check to see that the pipe works correctly.
7869   pipe_works=no
7870
7871   rm -f conftest*
7872   cat > conftest.$ac_ext <<EOF
7873 #ifdef __cplusplus
7874 extern "C" {
7875 #endif
7876 char nm_test_var;
7877 void nm_test_func(){}
7878 #ifdef __cplusplus
7879 }
7880 #endif
7881 int main(){nm_test_var='a';nm_test_func();return(0);}
7882 EOF
7883
7884   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7885   (eval $ac_compile) 2>&5
7886   ac_status=$?
7887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888   (exit $ac_status); }; then
7889     # Now try to grab the symbols.
7890     nlist=conftest.nm
7891     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7892   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); } && test -s "$nlist"; then
7896       # Try sorting and uniquifying the output.
7897       if sort "$nlist" | uniq > "$nlist"T; then
7898         mv -f "$nlist"T "$nlist"
7899       else
7900         rm -f "$nlist"T
7901       fi
7902
7903       # Make sure that we snagged all the symbols we need.
7904       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7905         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7906           cat <<EOF > conftest.$ac_ext
7907 #ifdef __cplusplus
7908 extern "C" {
7909 #endif
7910
7911 EOF
7912           # Now generate the symbol file.
7913           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7914
7915           cat <<EOF >> conftest.$ac_ext
7916 #if defined (__STDC__) && __STDC__
7917 # define lt_ptr_t void *
7918 #else
7919 # define lt_ptr_t char *
7920 # define const
7921 #endif
7922
7923 /* The mapping between symbol names and symbols. */
7924 const struct {
7925   const char *name;
7926   lt_ptr_t address;
7927 }
7928 lt_preloaded_symbols[] =
7929 {
7930 EOF
7931           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7932           cat <<\EOF >> conftest.$ac_ext
7933   {0, (lt_ptr_t) 0}
7934 };
7935
7936 #ifdef __cplusplus
7937 }
7938 #endif
7939 EOF
7940           # Now try linking the two files.
7941           mv conftest.$ac_objext conftstm.$ac_objext
7942           lt_save_LIBS="$LIBS"
7943           lt_save_CFLAGS="$CFLAGS"
7944           LIBS="conftstm.$ac_objext"
7945           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7946           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7947   (eval $ac_link) 2>&5
7948   ac_status=$?
7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7951             pipe_works=yes
7952           fi
7953           LIBS="$lt_save_LIBS"
7954           CFLAGS="$lt_save_CFLAGS"
7955         else
7956           echo "cannot find nm_test_func in $nlist" >&5
7957         fi
7958       else
7959         echo "cannot find nm_test_var in $nlist" >&5
7960       fi
7961     else
7962       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7963     fi
7964   else
7965     echo "$progname: failed program was:" >&5
7966     cat conftest.$ac_ext >&5
7967   fi
7968   rm -f conftest* conftst*
7969
7970   # Do not use the global_symbol_pipe unless it works.
7971   if test "$pipe_works" = yes; then
7972     break
7973   else
7974     lt_cv_sys_global_symbol_pipe=
7975   fi
7976 done
7977
7978 fi
7979
7980 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7981   lt_cv_sys_global_symbol_to_cdecl=
7982 fi
7983 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7984   echo "$as_me:$LINENO: result: failed" >&5
7985 echo "${ECHO_T}failed" >&6
7986 else
7987   echo "$as_me:$LINENO: result: ok" >&5
7988 echo "${ECHO_T}ok" >&6
7989 fi
7990
7991
7992 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7993 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7994 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7995   echo $ECHO_N "(cached) $ECHO_C" >&6
7996 else
7997   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7998     libltdl_cv_preloaded_symbols=yes
7999   else
8000     libltdl_cv_preloaded_symbols=no
8001   fi
8002
8003 fi
8004 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
8005 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
8006 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
8007
8008 cat >>confdefs.h <<\_ACEOF
8009 #define HAVE_PRELOADED_SYMBOLS 1
8010 _ACEOF
8011
8012 fi
8013
8014 LIBADD_DL=
8015
8016 ac_ext=c
8017 ac_cpp='$CPP $CPPFLAGS'
8018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8021
8022
8023 echo "$as_me:$LINENO: checking for shl_load" >&5
8024 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8025 if test "${ac_cv_func_shl_load+set}" = set; then
8026   echo $ECHO_N "(cached) $ECHO_C" >&6
8027 else
8028   cat >conftest.$ac_ext <<_ACEOF
8029 /* confdefs.h.  */
8030 _ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h.  */
8034 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8035    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8036 #define shl_load innocuous_shl_load
8037
8038 /* System header to define __stub macros and hopefully few prototypes,
8039     which can conflict with char shl_load (); below.
8040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8041     <limits.h> exists even on freestanding compilers.  */
8042
8043 #ifdef __STDC__
8044 # include <limits.h>
8045 #else
8046 # include <assert.h>
8047 #endif
8048
8049 #undef shl_load
8050
8051 /* Override any gcc2 internal prototype to avoid an error.  */
8052 #ifdef __cplusplus
8053 extern "C"
8054 {
8055 #endif
8056 /* We use char because int might match the return type of a gcc2
8057    builtin and then its argument prototype would still apply.  */
8058 char shl_load ();
8059 /* The GNU C library defines this for functions which it implements
8060     to always fail with ENOSYS.  Some functions are actually named
8061     something starting with __ and the normal name is an alias.  */
8062 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8063 choke me
8064 #else
8065 char (*f) () = shl_load;
8066 #endif
8067 #ifdef __cplusplus
8068 }
8069 #endif
8070
8071 int
8072 main ()
8073 {
8074 return f != shl_load;
8075   ;
8076   return 0;
8077 }
8078 _ACEOF
8079 rm -f conftest.$ac_objext conftest$ac_exeext
8080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8081   (eval $ac_link) 2>conftest.er1
8082   ac_status=$?
8083   grep -v '^ *+' conftest.er1 >conftest.err
8084   rm -f conftest.er1
8085   cat conftest.err >&5
8086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); } &&
8088          { ac_try='test -z "$ac_c_werror_flag"
8089                          || test ! -s conftest.err'
8090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091   (eval $ac_try) 2>&5
8092   ac_status=$?
8093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   (exit $ac_status); }; } &&
8095          { ac_try='test -s conftest$ac_exeext'
8096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097   (eval $ac_try) 2>&5
8098   ac_status=$?
8099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100   (exit $ac_status); }; }; then
8101   ac_cv_func_shl_load=yes
8102 else
8103   echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8105
8106 ac_cv_func_shl_load=no
8107 fi
8108 rm -f conftest.err conftest.$ac_objext \
8109       conftest$ac_exeext conftest.$ac_ext
8110 fi
8111 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8112 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8113 if test $ac_cv_func_shl_load = yes; then
8114
8115 cat >>confdefs.h <<\_ACEOF
8116 #define HAVE_SHL_LOAD 1
8117 _ACEOF
8118
8119 else
8120   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8121 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8122 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8123   echo $ECHO_N "(cached) $ECHO_C" >&6
8124 else
8125   ac_check_lib_save_LIBS=$LIBS
8126 LIBS="-ldld  $LIBS"
8127 cat >conftest.$ac_ext <<_ACEOF
8128 /* confdefs.h.  */
8129 _ACEOF
8130 cat confdefs.h >>conftest.$ac_ext
8131 cat >>conftest.$ac_ext <<_ACEOF
8132 /* end confdefs.h.  */
8133
8134 /* Override any gcc2 internal prototype to avoid an error.  */
8135 #ifdef __cplusplus
8136 extern "C"
8137 #endif
8138 /* We use char because int might match the return type of a gcc2
8139    builtin and then its argument prototype would still apply.  */
8140 char shl_load ();
8141 int
8142 main ()
8143 {
8144 shl_load ();
8145   ;
8146   return 0;
8147 }
8148 _ACEOF
8149 rm -f conftest.$ac_objext conftest$ac_exeext
8150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8151   (eval $ac_link) 2>conftest.er1
8152   ac_status=$?
8153   grep -v '^ *+' conftest.er1 >conftest.err
8154   rm -f conftest.er1
8155   cat conftest.err >&5
8156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157   (exit $ac_status); } &&
8158          { ac_try='test -z "$ac_c_werror_flag"
8159                          || test ! -s conftest.err'
8160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8161   (eval $ac_try) 2>&5
8162   ac_status=$?
8163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164   (exit $ac_status); }; } &&
8165          { ac_try='test -s conftest$ac_exeext'
8166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167   (eval $ac_try) 2>&5
8168   ac_status=$?
8169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170   (exit $ac_status); }; }; then
8171   ac_cv_lib_dld_shl_load=yes
8172 else
8173   echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8175
8176 ac_cv_lib_dld_shl_load=no
8177 fi
8178 rm -f conftest.err conftest.$ac_objext \
8179       conftest$ac_exeext conftest.$ac_ext
8180 LIBS=$ac_check_lib_save_LIBS
8181 fi
8182 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8183 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8184 if test $ac_cv_lib_dld_shl_load = yes; then
8185
8186 cat >>confdefs.h <<\_ACEOF
8187 #define HAVE_SHL_LOAD 1
8188 _ACEOF
8189
8190         LIBADD_DL="$LIBADD_DL -ldld"
8191 else
8192   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8193 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8194 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8195   echo $ECHO_N "(cached) $ECHO_C" >&6
8196 else
8197   ac_check_lib_save_LIBS=$LIBS
8198 LIBS="-ldl  $LIBS"
8199 cat >conftest.$ac_ext <<_ACEOF
8200 /* confdefs.h.  */
8201 _ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h.  */
8205
8206 /* Override any gcc2 internal prototype to avoid an error.  */
8207 #ifdef __cplusplus
8208 extern "C"
8209 #endif
8210 /* We use char because int might match the return type of a gcc2
8211    builtin and then its argument prototype would still apply.  */
8212 char dlopen ();
8213 int
8214 main ()
8215 {
8216 dlopen ();
8217   ;
8218   return 0;
8219 }
8220 _ACEOF
8221 rm -f conftest.$ac_objext conftest$ac_exeext
8222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8223   (eval $ac_link) 2>conftest.er1
8224   ac_status=$?
8225   grep -v '^ *+' conftest.er1 >conftest.err
8226   rm -f conftest.er1
8227   cat conftest.err >&5
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); } &&
8230          { ac_try='test -z "$ac_c_werror_flag"
8231                          || test ! -s conftest.err'
8232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233   (eval $ac_try) 2>&5
8234   ac_status=$?
8235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236   (exit $ac_status); }; } &&
8237          { ac_try='test -s conftest$ac_exeext'
8238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239   (eval $ac_try) 2>&5
8240   ac_status=$?
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); }; }; then
8243   ac_cv_lib_dl_dlopen=yes
8244 else
8245   echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8247
8248 ac_cv_lib_dl_dlopen=no
8249 fi
8250 rm -f conftest.err conftest.$ac_objext \
8251       conftest$ac_exeext conftest.$ac_ext
8252 LIBS=$ac_check_lib_save_LIBS
8253 fi
8254 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8255 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8256 if test $ac_cv_lib_dl_dlopen = yes; then
8257
8258 cat >>confdefs.h <<\_ACEOF
8259 #define HAVE_LIBDL 1
8260 _ACEOF
8261
8262                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
8263 else
8264   cat >conftest.$ac_ext <<_ACEOF
8265 /* confdefs.h.  */
8266 _ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h.  */
8270 #if HAVE_DLFCN_H
8271 #  include <dlfcn.h>
8272 #endif
8273
8274 int
8275 main ()
8276 {
8277 dlopen(0, 0);
8278   ;
8279   return 0;
8280 }
8281 _ACEOF
8282 rm -f conftest.$ac_objext conftest$ac_exeext
8283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8284   (eval $ac_link) 2>conftest.er1
8285   ac_status=$?
8286   grep -v '^ *+' conftest.er1 >conftest.err
8287   rm -f conftest.er1
8288   cat conftest.err >&5
8289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290   (exit $ac_status); } &&
8291          { ac_try='test -z "$ac_c_werror_flag"
8292                          || test ! -s conftest.err'
8293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294   (eval $ac_try) 2>&5
8295   ac_status=$?
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); }; } &&
8298          { ac_try='test -s conftest$ac_exeext'
8299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300   (eval $ac_try) 2>&5
8301   ac_status=$?
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); }; }; then
8304
8305 cat >>confdefs.h <<\_ACEOF
8306 #define HAVE_LIBDL 1
8307 _ACEOF
8308  libltdl_cv_func_dlopen="yes"
8309 else
8310   echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8312
8313 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8314 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8315 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8316   echo $ECHO_N "(cached) $ECHO_C" >&6
8317 else
8318   ac_check_lib_save_LIBS=$LIBS
8319 LIBS="-lsvld  $LIBS"
8320 cat >conftest.$ac_ext <<_ACEOF
8321 /* confdefs.h.  */
8322 _ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h.  */
8326
8327 /* Override any gcc2 internal prototype to avoid an error.  */
8328 #ifdef __cplusplus
8329 extern "C"
8330 #endif
8331 /* We use char because int might match the return type of a gcc2
8332    builtin and then its argument prototype would still apply.  */
8333 char dlopen ();
8334 int
8335 main ()
8336 {
8337 dlopen ();
8338   ;
8339   return 0;
8340 }
8341 _ACEOF
8342 rm -f conftest.$ac_objext conftest$ac_exeext
8343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8344   (eval $ac_link) 2>conftest.er1
8345   ac_status=$?
8346   grep -v '^ *+' conftest.er1 >conftest.err
8347   rm -f conftest.er1
8348   cat conftest.err >&5
8349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350   (exit $ac_status); } &&
8351          { ac_try='test -z "$ac_c_werror_flag"
8352                          || test ! -s conftest.err'
8353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354   (eval $ac_try) 2>&5
8355   ac_status=$?
8356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357   (exit $ac_status); }; } &&
8358          { ac_try='test -s conftest$ac_exeext'
8359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360   (eval $ac_try) 2>&5
8361   ac_status=$?
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); }; }; then
8364   ac_cv_lib_svld_dlopen=yes
8365 else
8366   echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8368
8369 ac_cv_lib_svld_dlopen=no
8370 fi
8371 rm -f conftest.err conftest.$ac_objext \
8372       conftest$ac_exeext conftest.$ac_ext
8373 LIBS=$ac_check_lib_save_LIBS
8374 fi
8375 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8376 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8377 if test $ac_cv_lib_svld_dlopen = yes; then
8378
8379 cat >>confdefs.h <<\_ACEOF
8380 #define HAVE_LIBDL 1
8381 _ACEOF
8382
8383                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8384 else
8385   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8386 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8387 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8388   echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
8390   ac_check_lib_save_LIBS=$LIBS
8391 LIBS="-ldld  $LIBS"
8392 cat >conftest.$ac_ext <<_ACEOF
8393 /* confdefs.h.  */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h.  */
8398
8399 /* Override any gcc2 internal prototype to avoid an error.  */
8400 #ifdef __cplusplus
8401 extern "C"
8402 #endif
8403 /* We use char because int might match the return type of a gcc2
8404    builtin and then its argument prototype would still apply.  */
8405 char dld_link ();
8406 int
8407 main ()
8408 {
8409 dld_link ();
8410   ;
8411   return 0;
8412 }
8413 _ACEOF
8414 rm -f conftest.$ac_objext conftest$ac_exeext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8416   (eval $ac_link) 2>conftest.er1
8417   ac_status=$?
8418   grep -v '^ *+' conftest.er1 >conftest.err
8419   rm -f conftest.er1
8420   cat conftest.err >&5
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); } &&
8423          { ac_try='test -z "$ac_c_werror_flag"
8424                          || test ! -s conftest.err'
8425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426   (eval $ac_try) 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); }; } &&
8430          { ac_try='test -s conftest$ac_exeext'
8431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432   (eval $ac_try) 2>&5
8433   ac_status=$?
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); }; }; then
8436   ac_cv_lib_dld_dld_link=yes
8437 else
8438   echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8440
8441 ac_cv_lib_dld_dld_link=no
8442 fi
8443 rm -f conftest.err conftest.$ac_objext \
8444       conftest$ac_exeext conftest.$ac_ext
8445 LIBS=$ac_check_lib_save_LIBS
8446 fi
8447 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8448 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8449 if test $ac_cv_lib_dld_dld_link = yes; then
8450
8451 cat >>confdefs.h <<\_ACEOF
8452 #define HAVE_DLD 1
8453 _ACEOF
8454
8455                 LIBADD_DL="$LIBADD_DL -ldld"
8456 else
8457   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8458 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8459 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8460   echo $ECHO_N "(cached) $ECHO_C" >&6
8461 else
8462   cat >conftest.$ac_ext <<_ACEOF
8463 /* confdefs.h.  */
8464 _ACEOF
8465 cat confdefs.h >>conftest.$ac_ext
8466 cat >>conftest.$ac_ext <<_ACEOF
8467 /* end confdefs.h.  */
8468 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8469    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8470 #define _dyld_func_lookup innocuous__dyld_func_lookup
8471
8472 /* System header to define __stub macros and hopefully few prototypes,
8473     which can conflict with char _dyld_func_lookup (); below.
8474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8475     <limits.h> exists even on freestanding compilers.  */
8476
8477 #ifdef __STDC__
8478 # include <limits.h>
8479 #else
8480 # include <assert.h>
8481 #endif
8482
8483 #undef _dyld_func_lookup
8484
8485 /* Override any gcc2 internal prototype to avoid an error.  */
8486 #ifdef __cplusplus
8487 extern "C"
8488 {
8489 #endif
8490 /* We use char because int might match the return type of a gcc2
8491    builtin and then its argument prototype would still apply.  */
8492 char _dyld_func_lookup ();
8493 /* The GNU C library defines this for functions which it implements
8494     to always fail with ENOSYS.  Some functions are actually named
8495     something starting with __ and the normal name is an alias.  */
8496 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8497 choke me
8498 #else
8499 char (*f) () = _dyld_func_lookup;
8500 #endif
8501 #ifdef __cplusplus
8502 }
8503 #endif
8504
8505 int
8506 main ()
8507 {
8508 return f != _dyld_func_lookup;
8509   ;
8510   return 0;
8511 }
8512 _ACEOF
8513 rm -f conftest.$ac_objext conftest$ac_exeext
8514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8515   (eval $ac_link) 2>conftest.er1
8516   ac_status=$?
8517   grep -v '^ *+' conftest.er1 >conftest.err
8518   rm -f conftest.er1
8519   cat conftest.err >&5
8520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521   (exit $ac_status); } &&
8522          { ac_try='test -z "$ac_c_werror_flag"
8523                          || test ! -s conftest.err'
8524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525   (eval $ac_try) 2>&5
8526   ac_status=$?
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); }; } &&
8529          { ac_try='test -s conftest$ac_exeext'
8530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531   (eval $ac_try) 2>&5
8532   ac_status=$?
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); }; }; then
8535   ac_cv_func__dyld_func_lookup=yes
8536 else
8537   echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8539
8540 ac_cv_func__dyld_func_lookup=no
8541 fi
8542 rm -f conftest.err conftest.$ac_objext \
8543       conftest$ac_exeext conftest.$ac_ext
8544 fi
8545 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8546 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8547 if test $ac_cv_func__dyld_func_lookup = yes; then
8548
8549 cat >>confdefs.h <<\_ACEOF
8550 #define HAVE_DYLD 1
8551 _ACEOF
8552
8553 fi
8554
8555
8556 fi
8557
8558
8559 fi
8560
8561
8562 fi
8563 rm -f conftest.err conftest.$ac_objext \
8564       conftest$ac_exeext conftest.$ac_ext
8565
8566 fi
8567
8568
8569 fi
8570
8571
8572 fi
8573
8574
8575 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8576 then
8577   lt_save_LIBS="$LIBS"
8578   LIBS="$LIBS $LIBADD_DL"
8579
8580 for ac_func in dlerror
8581 do
8582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8583 echo "$as_me:$LINENO: checking for $ac_func" >&5
8584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8585 if eval "test \"\${$as_ac_var+set}\" = set"; then
8586   echo $ECHO_N "(cached) $ECHO_C" >&6
8587 else
8588   cat >conftest.$ac_ext <<_ACEOF
8589 /* confdefs.h.  */
8590 _ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h.  */
8594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8596 #define $ac_func innocuous_$ac_func
8597
8598 /* System header to define __stub macros and hopefully few prototypes,
8599     which can conflict with char $ac_func (); below.
8600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8601     <limits.h> exists even on freestanding compilers.  */
8602
8603 #ifdef __STDC__
8604 # include <limits.h>
8605 #else
8606 # include <assert.h>
8607 #endif
8608
8609 #undef $ac_func
8610
8611 /* Override any gcc2 internal prototype to avoid an error.  */
8612 #ifdef __cplusplus
8613 extern "C"
8614 {
8615 #endif
8616 /* We use char because int might match the return type of a gcc2
8617    builtin and then its argument prototype would still apply.  */
8618 char $ac_func ();
8619 /* The GNU C library defines this for functions which it implements
8620     to always fail with ENOSYS.  Some functions are actually named
8621     something starting with __ and the normal name is an alias.  */
8622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8623 choke me
8624 #else
8625 char (*f) () = $ac_func;
8626 #endif
8627 #ifdef __cplusplus
8628 }
8629 #endif
8630
8631 int
8632 main ()
8633 {
8634 return f != $ac_func;
8635   ;
8636   return 0;
8637 }
8638 _ACEOF
8639 rm -f conftest.$ac_objext conftest$ac_exeext
8640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8641   (eval $ac_link) 2>conftest.er1
8642   ac_status=$?
8643   grep -v '^ *+' conftest.er1 >conftest.err
8644   rm -f conftest.er1
8645   cat conftest.err >&5
8646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647   (exit $ac_status); } &&
8648          { ac_try='test -z "$ac_c_werror_flag"
8649                          || test ! -s conftest.err'
8650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651   (eval $ac_try) 2>&5
8652   ac_status=$?
8653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654   (exit $ac_status); }; } &&
8655          { ac_try='test -s conftest$ac_exeext'
8656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657   (eval $ac_try) 2>&5
8658   ac_status=$?
8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660   (exit $ac_status); }; }; then
8661   eval "$as_ac_var=yes"
8662 else
8663   echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8665
8666 eval "$as_ac_var=no"
8667 fi
8668 rm -f conftest.err conftest.$ac_objext \
8669       conftest$ac_exeext conftest.$ac_ext
8670 fi
8671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8673 if test `eval echo '${'$as_ac_var'}'` = yes; then
8674   cat >>confdefs.h <<_ACEOF
8675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8676 _ACEOF
8677
8678 fi
8679 done
8680
8681   LIBS="$lt_save_LIBS"
8682 fi
8683 ac_ext=c
8684 ac_cpp='$CPP $CPPFLAGS'
8685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8688
8689
8690
8691 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8692 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8693 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8694   echo $ECHO_N "(cached) $ECHO_C" >&6
8695 else
8696   ac_cv_sys_symbol_underscore=no
8697   cat > conftest.$ac_ext <<EOF
8698 void nm_test_func(){}
8699 int main(){nm_test_func;return 0;}
8700 EOF
8701   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8702   (eval $ac_compile) 2>&5
8703   ac_status=$?
8704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705   (exit $ac_status); }; then
8706     # Now try to grab the symbols.
8707     ac_nlist=conftest.nm
8708     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8709   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8710   ac_status=$?
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); } && test -s "$ac_nlist"; then
8713       # See whether the symbols have a leading underscore.
8714       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8715         ac_cv_sys_symbol_underscore=yes
8716       else
8717         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8718           :
8719         else
8720           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8721         fi
8722       fi
8723     else
8724       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8725     fi
8726   else
8727     echo "configure: failed program was:" >&5
8728     cat conftest.c >&5
8729   fi
8730   rm -rf conftest*
8731
8732 fi
8733 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8734 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8735
8736
8737 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8738   if test x"$libltdl_cv_func_dlopen" = xyes ||
8739      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8740         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8741 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8742 if test "${libltdl_cv_need_uscore+set}" = set; then
8743   echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745   libltdl_cv_need_uscore=unknown
8746           save_LIBS="$LIBS"
8747           LIBS="$LIBS $LIBADD_DL"
8748           if test "$cross_compiling" = yes; then :
8749   libltdl_cv_need_uscore=cross
8750 else
8751   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8752   lt_status=$lt_dlunknown
8753   cat > conftest.$ac_ext <<EOF
8754 #line 8754 "configure"
8755 #include "confdefs.h"
8756
8757 #if HAVE_DLFCN_H
8758 #include <dlfcn.h>
8759 #endif
8760
8761 #include <stdio.h>
8762
8763 #ifdef RTLD_GLOBAL
8764 #  define LT_DLGLOBAL           RTLD_GLOBAL
8765 #else
8766 #  ifdef DL_GLOBAL
8767 #    define LT_DLGLOBAL         DL_GLOBAL
8768 #  else
8769 #    define LT_DLGLOBAL         0
8770 #  endif
8771 #endif
8772
8773 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8774    find out it does not work in some platform. */
8775 #ifndef LT_DLLAZY_OR_NOW
8776 #  ifdef RTLD_LAZY
8777 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8778 #  else
8779 #    ifdef DL_LAZY
8780 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8781 #    else
8782 #      ifdef RTLD_NOW
8783 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8784 #      else
8785 #        ifdef DL_NOW
8786 #          define LT_DLLAZY_OR_NOW      DL_NOW
8787 #        else
8788 #          define LT_DLLAZY_OR_NOW      0
8789 #        endif
8790 #      endif
8791 #    endif
8792 #  endif
8793 #endif
8794
8795 #ifdef __cplusplus
8796 extern "C" void exit (int);
8797 #endif
8798
8799 void fnord() { int i=42;}
8800 int main ()
8801 {
8802   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8803   int status = $lt_dlunknown;
8804
8805   if (self)
8806     {
8807       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8808       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8809       /* dlclose (self); */
8810     }
8811
8812     exit (status);
8813 }
8814 EOF
8815   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816   (eval $ac_link) 2>&5
8817   ac_status=$?
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8820     (./conftest; exit; ) 2>/dev/null
8821     lt_status=$?
8822     case x$lt_status in
8823       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8824       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8825       x$lt_unknown|x*)  ;;
8826     esac
8827   else :
8828     # compilation failed
8829
8830   fi
8831 fi
8832 rm -fr conftest*
8833
8834           LIBS="$save_LIBS"
8835
8836 fi
8837 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8838 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8839   fi
8840 fi
8841
8842 if test x"$libltdl_cv_need_uscore" = xyes; then
8843
8844 cat >>confdefs.h <<\_ACEOF
8845 #define NEED_USCORE 1
8846 _ACEOF
8847
8848 fi
8849
8850
8851 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8852 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8853 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8854   echo $ECHO_N "(cached) $ECHO_C" >&6
8855 else
8856   # PORTME does your system automatically load deplibs for dlopen?
8857   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8858   # For now, we just catch OSes we know something about -- in the
8859   # future, we'll try test this programmatically.
8860   libltdl_cv_sys_dlopen_deplibs=unknown
8861   case "$host_os" in
8862   aix3*|aix4.1.*|aix4.2.*)
8863     # Unknown whether this is true for these versions of AIX, but
8864     # we want this `case' here to explicitly catch those versions.
8865     libltdl_cv_sys_dlopen_deplibs=unknown
8866     ;;
8867   aix[45]*)
8868     libltdl_cv_sys_dlopen_deplibs=yes
8869     ;;
8870   darwin*)
8871     # Assuming the user has installed a libdl from somewhere, this is true
8872     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8873     libltdl_cv_sys_dlopen_deplibs=yes
8874     ;;
8875   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8876     # GNU and its variants, using gnu ld.so (Glibc)
8877     libltdl_cv_sys_dlopen_deplibs=yes
8878     ;;
8879   hpux10*|hpux11*)
8880     libltdl_cv_sys_dlopen_deplibs=yes
8881     ;;
8882   irix[12345]*|irix6.[01]*)
8883     # Catch all versions of IRIX before 6.2, and indicate that we don't
8884     # know how it worked for any of those versions.
8885     libltdl_cv_sys_dlopen_deplibs=unknown
8886     ;;
8887   irix*)
8888     # The case above catches anything before 6.2, and it's known that
8889     # at 6.2 and later dlopen does load deplibs.
8890     libltdl_cv_sys_dlopen_deplibs=yes
8891     ;;
8892   netbsd*)
8893     libltdl_cv_sys_dlopen_deplibs=yes
8894     ;;
8895   openbsd*)
8896     libltdl_cv_sys_dlopen_deplibs=yes
8897     ;;
8898   osf[1234]*)
8899     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8900     # it did *not* use an RPATH in a shared library to find objects the
8901     # library depends on, so we explictly say `no'.
8902     libltdl_cv_sys_dlopen_deplibs=no
8903     ;;
8904   osf5.0|osf5.0a|osf5.1)
8905     # dlopen *does* load deplibs and with the right loader patch applied
8906     # it even uses RPATH in a shared library to search for shared objects
8907     # that the library depends on, but there's no easy way to know if that
8908     # patch is installed.  Since this is the case, all we can really
8909     # say is unknown -- it depends on the patch being installed.  If
8910     # it is, this changes to `yes'.  Without it, it would be `no'.
8911     libltdl_cv_sys_dlopen_deplibs=unknown
8912     ;;
8913   osf*)
8914     # the two cases above should catch all versions of osf <= 5.1.  Read
8915     # the comments above for what we know about them.
8916     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8917     # is used to find them so we can finally say `yes'.
8918     libltdl_cv_sys_dlopen_deplibs=yes
8919     ;;
8920   solaris*)
8921     libltdl_cv_sys_dlopen_deplibs=yes
8922     ;;
8923   esac
8924
8925 fi
8926 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8927 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8928 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8929
8930 cat >>confdefs.h <<\_ACEOF
8931 #define LTDL_DLOPEN_DEPLIBS 1
8932 _ACEOF
8933
8934 fi
8935
8936
8937 for ac_header in argz.h
8938 do
8939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8941   echo "$as_me:$LINENO: checking for $ac_header" >&5
8942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8944   echo $ECHO_N "(cached) $ECHO_C" >&6
8945 fi
8946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8948 else
8949   # Is the header compilable?
8950 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8952 cat >conftest.$ac_ext <<_ACEOF
8953 /* confdefs.h.  */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h.  */
8958 $ac_includes_default
8959 #include <$ac_header>
8960 _ACEOF
8961 rm -f conftest.$ac_objext
8962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8963   (eval $ac_compile) 2>conftest.er1
8964   ac_status=$?
8965   grep -v '^ *+' conftest.er1 >conftest.err
8966   rm -f conftest.er1
8967   cat conftest.err >&5
8968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969   (exit $ac_status); } &&
8970          { ac_try='test -z "$ac_c_werror_flag"
8971                          || test ! -s conftest.err'
8972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973   (eval $ac_try) 2>&5
8974   ac_status=$?
8975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976   (exit $ac_status); }; } &&
8977          { ac_try='test -s conftest.$ac_objext'
8978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979   (eval $ac_try) 2>&5
8980   ac_status=$?
8981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982   (exit $ac_status); }; }; then
8983   ac_header_compiler=yes
8984 else
8985   echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8987
8988 ac_header_compiler=no
8989 fi
8990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8992 echo "${ECHO_T}$ac_header_compiler" >&6
8993
8994 # Is the header present?
8995 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8997 cat >conftest.$ac_ext <<_ACEOF
8998 /* confdefs.h.  */
8999 _ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h.  */
9003 #include <$ac_header>
9004 _ACEOF
9005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9006   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9007   ac_status=$?
9008   grep -v '^ *+' conftest.er1 >conftest.err
9009   rm -f conftest.er1
9010   cat conftest.err >&5
9011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); } >/dev/null; then
9013   if test -s conftest.err; then
9014     ac_cpp_err=$ac_c_preproc_warn_flag
9015     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9016   else
9017     ac_cpp_err=
9018   fi
9019 else
9020   ac_cpp_err=yes
9021 fi
9022 if test -z "$ac_cpp_err"; then
9023   ac_header_preproc=yes
9024 else
9025   echo "$as_me: failed program was:" >&5
9026 sed 's/^/| /' conftest.$ac_ext >&5
9027
9028   ac_header_preproc=no
9029 fi
9030 rm -f conftest.err conftest.$ac_ext
9031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9032 echo "${ECHO_T}$ac_header_preproc" >&6
9033
9034 # So?  What about this header?
9035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9036   yes:no: )
9037     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9039     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9041     ac_header_preproc=yes
9042     ;;
9043   no:yes:* )
9044     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9046     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9047 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9048     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9050     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9051 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9054     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9056     (
9057       cat <<\_ASBOX
9058 ## ----------------------------------- ##
9059 ## Report this to llvmbugs@cs.uiuc.edu ##
9060 ## ----------------------------------- ##
9061 _ASBOX
9062     ) |
9063       sed "s/^/$as_me: WARNING:     /" >&2
9064     ;;
9065 esac
9066 echo "$as_me:$LINENO: checking for $ac_header" >&5
9067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9069   echo $ECHO_N "(cached) $ECHO_C" >&6
9070 else
9071   eval "$as_ac_Header=\$ac_header_preproc"
9072 fi
9073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9075
9076 fi
9077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9078   cat >>confdefs.h <<_ACEOF
9079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9080 _ACEOF
9081
9082 fi
9083
9084 done
9085
9086
9087 echo "$as_me:$LINENO: checking for error_t" >&5
9088 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
9089 if test "${ac_cv_type_error_t+set}" = set; then
9090   echo $ECHO_N "(cached) $ECHO_C" >&6
9091 else
9092   cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h.  */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h.  */
9098 #if HAVE_ARGZ_H
9099 #  include <argz.h>
9100 #endif
9101
9102 int
9103 main ()
9104 {
9105 if ((error_t *) 0)
9106   return 0;
9107 if (sizeof (error_t))
9108   return 0;
9109   ;
9110   return 0;
9111 }
9112 _ACEOF
9113 rm -f conftest.$ac_objext
9114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9115   (eval $ac_compile) 2>conftest.er1
9116   ac_status=$?
9117   grep -v '^ *+' conftest.er1 >conftest.err
9118   rm -f conftest.er1
9119   cat conftest.err >&5
9120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121   (exit $ac_status); } &&
9122          { ac_try='test -z "$ac_c_werror_flag"
9123                          || test ! -s conftest.err'
9124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125   (eval $ac_try) 2>&5
9126   ac_status=$?
9127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128   (exit $ac_status); }; } &&
9129          { ac_try='test -s conftest.$ac_objext'
9130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131   (eval $ac_try) 2>&5
9132   ac_status=$?
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); }; }; then
9135   ac_cv_type_error_t=yes
9136 else
9137   echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9139
9140 ac_cv_type_error_t=no
9141 fi
9142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9143 fi
9144 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
9145 echo "${ECHO_T}$ac_cv_type_error_t" >&6
9146 if test $ac_cv_type_error_t = yes; then
9147
9148 cat >>confdefs.h <<_ACEOF
9149 #define HAVE_ERROR_T 1
9150 _ACEOF
9151
9152
9153 else
9154
9155 cat >>confdefs.h <<\_ACEOF
9156 #define error_t int
9157 _ACEOF
9158
9159 fi
9160
9161
9162
9163
9164
9165
9166
9167 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
9168 do
9169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9170 echo "$as_me:$LINENO: checking for $ac_func" >&5
9171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9172 if eval "test \"\${$as_ac_var+set}\" = set"; then
9173   echo $ECHO_N "(cached) $ECHO_C" >&6
9174 else
9175   cat >conftest.$ac_ext <<_ACEOF
9176 /* confdefs.h.  */
9177 _ACEOF
9178 cat confdefs.h >>conftest.$ac_ext
9179 cat >>conftest.$ac_ext <<_ACEOF
9180 /* end confdefs.h.  */
9181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9182    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9183 #define $ac_func innocuous_$ac_func
9184
9185 /* System header to define __stub macros and hopefully few prototypes,
9186     which can conflict with char $ac_func (); below.
9187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9188     <limits.h> exists even on freestanding compilers.  */
9189
9190 #ifdef __STDC__
9191 # include <limits.h>
9192 #else
9193 # include <assert.h>
9194 #endif
9195
9196 #undef $ac_func
9197
9198 /* Override any gcc2 internal prototype to avoid an error.  */
9199 #ifdef __cplusplus
9200 extern "C"
9201 {
9202 #endif
9203 /* We use char because int might match the return type of a gcc2
9204    builtin and then its argument prototype would still apply.  */
9205 char $ac_func ();
9206 /* The GNU C library defines this for functions which it implements
9207     to always fail with ENOSYS.  Some functions are actually named
9208     something starting with __ and the normal name is an alias.  */
9209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9210 choke me
9211 #else
9212 char (*f) () = $ac_func;
9213 #endif
9214 #ifdef __cplusplus
9215 }
9216 #endif
9217
9218 int
9219 main ()
9220 {
9221 return f != $ac_func;
9222   ;
9223   return 0;
9224 }
9225 _ACEOF
9226 rm -f conftest.$ac_objext conftest$ac_exeext
9227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9228   (eval $ac_link) 2>conftest.er1
9229   ac_status=$?
9230   grep -v '^ *+' conftest.er1 >conftest.err
9231   rm -f conftest.er1
9232   cat conftest.err >&5
9233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234   (exit $ac_status); } &&
9235          { ac_try='test -z "$ac_c_werror_flag"
9236                          || test ! -s conftest.err'
9237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238   (eval $ac_try) 2>&5
9239   ac_status=$?
9240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241   (exit $ac_status); }; } &&
9242          { ac_try='test -s conftest$ac_exeext'
9243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244   (eval $ac_try) 2>&5
9245   ac_status=$?
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); }; }; then
9248   eval "$as_ac_var=yes"
9249 else
9250   echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.$ac_ext >&5
9252
9253 eval "$as_ac_var=no"
9254 fi
9255 rm -f conftest.err conftest.$ac_objext \
9256       conftest$ac_exeext conftest.$ac_ext
9257 fi
9258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9259 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9260 if test `eval echo '${'$as_ac_var'}'` = yes; then
9261   cat >>confdefs.h <<_ACEOF
9262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9263 _ACEOF
9264
9265 fi
9266 done
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9296                   stdio.h unistd.h
9297 do
9298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9300   echo "$as_me:$LINENO: checking for $ac_header" >&5
9301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9303   echo $ECHO_N "(cached) $ECHO_C" >&6
9304 fi
9305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9307 else
9308   # Is the header compilable?
9309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9311 cat >conftest.$ac_ext <<_ACEOF
9312 /* confdefs.h.  */
9313 _ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h.  */
9317 $ac_includes_default
9318 #include <$ac_header>
9319 _ACEOF
9320 rm -f conftest.$ac_objext
9321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9322   (eval $ac_compile) 2>conftest.er1
9323   ac_status=$?
9324   grep -v '^ *+' conftest.er1 >conftest.err
9325   rm -f conftest.er1
9326   cat conftest.err >&5
9327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328   (exit $ac_status); } &&
9329          { ac_try='test -z "$ac_c_werror_flag"
9330                          || test ! -s conftest.err'
9331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332   (eval $ac_try) 2>&5
9333   ac_status=$?
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); }; } &&
9336          { ac_try='test -s conftest.$ac_objext'
9337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338   (eval $ac_try) 2>&5
9339   ac_status=$?
9340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341   (exit $ac_status); }; }; then
9342   ac_header_compiler=yes
9343 else
9344   echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.$ac_ext >&5
9346
9347 ac_header_compiler=no
9348 fi
9349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9351 echo "${ECHO_T}$ac_header_compiler" >&6
9352
9353 # Is the header present?
9354 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9356 cat >conftest.$ac_ext <<_ACEOF
9357 /* confdefs.h.  */
9358 _ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h.  */
9362 #include <$ac_header>
9363 _ACEOF
9364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9365   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9366   ac_status=$?
9367   grep -v '^ *+' conftest.er1 >conftest.err
9368   rm -f conftest.er1
9369   cat conftest.err >&5
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   (exit $ac_status); } >/dev/null; then
9372   if test -s conftest.err; then
9373     ac_cpp_err=$ac_c_preproc_warn_flag
9374     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9375   else
9376     ac_cpp_err=
9377   fi
9378 else
9379   ac_cpp_err=yes
9380 fi
9381 if test -z "$ac_cpp_err"; then
9382   ac_header_preproc=yes
9383 else
9384   echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9386
9387   ac_header_preproc=no
9388 fi
9389 rm -f conftest.err conftest.$ac_ext
9390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9391 echo "${ECHO_T}$ac_header_preproc" >&6
9392
9393 # So?  What about this header?
9394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9395   yes:no: )
9396     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9400     ac_header_preproc=yes
9401     ;;
9402   no:yes:* )
9403     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9405     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9406 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9407     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9409     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9410 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9413     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9415     (
9416       cat <<\_ASBOX
9417 ## ----------------------------------- ##
9418 ## Report this to llvmbugs@cs.uiuc.edu ##
9419 ## ----------------------------------- ##
9420 _ASBOX
9421     ) |
9422       sed "s/^/$as_me: WARNING:     /" >&2
9423     ;;
9424 esac
9425 echo "$as_me:$LINENO: checking for $ac_header" >&5
9426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9428   echo $ECHO_N "(cached) $ECHO_C" >&6
9429 else
9430   eval "$as_ac_Header=\$ac_header_preproc"
9431 fi
9432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9434
9435 fi
9436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9437   cat >>confdefs.h <<_ACEOF
9438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9439 _ACEOF
9440
9441 fi
9442
9443 done
9444
9445
9446
9447
9448
9449 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9450 do
9451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9453   echo "$as_me:$LINENO: checking for $ac_header" >&5
9454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9456   echo $ECHO_N "(cached) $ECHO_C" >&6
9457 fi
9458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9460 else
9461   # Is the header compilable?
9462 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9464 cat >conftest.$ac_ext <<_ACEOF
9465 /* confdefs.h.  */
9466 _ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h.  */
9470 $ac_includes_default
9471 #include <$ac_header>
9472 _ACEOF
9473 rm -f conftest.$ac_objext
9474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9475   (eval $ac_compile) 2>conftest.er1
9476   ac_status=$?
9477   grep -v '^ *+' conftest.er1 >conftest.err
9478   rm -f conftest.er1
9479   cat conftest.err >&5
9480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481   (exit $ac_status); } &&
9482          { ac_try='test -z "$ac_c_werror_flag"
9483                          || test ! -s conftest.err'
9484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485   (eval $ac_try) 2>&5
9486   ac_status=$?
9487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488   (exit $ac_status); }; } &&
9489          { ac_try='test -s conftest.$ac_objext'
9490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491   (eval $ac_try) 2>&5
9492   ac_status=$?
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); }; }; then
9495   ac_header_compiler=yes
9496 else
9497   echo "$as_me: failed program was:" >&5
9498 sed 's/^/| /' conftest.$ac_ext >&5
9499
9500 ac_header_compiler=no
9501 fi
9502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9504 echo "${ECHO_T}$ac_header_compiler" >&6
9505
9506 # Is the header present?
9507 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9509 cat >conftest.$ac_ext <<_ACEOF
9510 /* confdefs.h.  */
9511 _ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h.  */
9515 #include <$ac_header>
9516 _ACEOF
9517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9518   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9519   ac_status=$?
9520   grep -v '^ *+' conftest.er1 >conftest.err
9521   rm -f conftest.er1
9522   cat conftest.err >&5
9523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524   (exit $ac_status); } >/dev/null; then
9525   if test -s conftest.err; then
9526     ac_cpp_err=$ac_c_preproc_warn_flag
9527     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9528   else
9529     ac_cpp_err=
9530   fi
9531 else
9532   ac_cpp_err=yes
9533 fi
9534 if test -z "$ac_cpp_err"; then
9535   ac_header_preproc=yes
9536 else
9537   echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9539
9540   ac_header_preproc=no
9541 fi
9542 rm -f conftest.err conftest.$ac_ext
9543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9544 echo "${ECHO_T}$ac_header_preproc" >&6
9545
9546 # So?  What about this header?
9547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9548   yes:no: )
9549     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9551     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9553     ac_header_preproc=yes
9554     ;;
9555   no:yes:* )
9556     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9558     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9559 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9560     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9562     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9563 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9564     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9566     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9568     (
9569       cat <<\_ASBOX
9570 ## ----------------------------------- ##
9571 ## Report this to llvmbugs@cs.uiuc.edu ##
9572 ## ----------------------------------- ##
9573 _ASBOX
9574     ) |
9575       sed "s/^/$as_me: WARNING:     /" >&2
9576     ;;
9577 esac
9578 echo "$as_me:$LINENO: checking for $ac_header" >&5
9579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9581   echo $ECHO_N "(cached) $ECHO_C" >&6
9582 else
9583   eval "$as_ac_Header=\$ac_header_preproc"
9584 fi
9585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9587
9588 fi
9589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9590   cat >>confdefs.h <<_ACEOF
9591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9592 _ACEOF
9593
9594 fi
9595
9596 done
9597
9598
9599
9600 for ac_header in string.h strings.h
9601 do
9602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9604   echo "$as_me:$LINENO: checking for $ac_header" >&5
9605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9607   echo $ECHO_N "(cached) $ECHO_C" >&6
9608 fi
9609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9611 else
9612   # Is the header compilable?
9613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9615 cat >conftest.$ac_ext <<_ACEOF
9616 /* confdefs.h.  */
9617 _ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h.  */
9621 $ac_includes_default
9622 #include <$ac_header>
9623 _ACEOF
9624 rm -f conftest.$ac_objext
9625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9626   (eval $ac_compile) 2>conftest.er1
9627   ac_status=$?
9628   grep -v '^ *+' conftest.er1 >conftest.err
9629   rm -f conftest.er1
9630   cat conftest.err >&5
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); } &&
9633          { ac_try='test -z "$ac_c_werror_flag"
9634                          || test ! -s conftest.err'
9635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636   (eval $ac_try) 2>&5
9637   ac_status=$?
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); }; } &&
9640          { ac_try='test -s conftest.$ac_objext'
9641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642   (eval $ac_try) 2>&5
9643   ac_status=$?
9644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645   (exit $ac_status); }; }; then
9646   ac_header_compiler=yes
9647 else
9648   echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9650
9651 ac_header_compiler=no
9652 fi
9653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9655 echo "${ECHO_T}$ac_header_compiler" >&6
9656
9657 # Is the header present?
9658 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9660 cat >conftest.$ac_ext <<_ACEOF
9661 /* confdefs.h.  */
9662 _ACEOF
9663 cat confdefs.h >>conftest.$ac_ext
9664 cat >>conftest.$ac_ext <<_ACEOF
9665 /* end confdefs.h.  */
9666 #include <$ac_header>
9667 _ACEOF
9668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9669   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9670   ac_status=$?
9671   grep -v '^ *+' conftest.er1 >conftest.err
9672   rm -f conftest.er1
9673   cat conftest.err >&5
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); } >/dev/null; then
9676   if test -s conftest.err; then
9677     ac_cpp_err=$ac_c_preproc_warn_flag
9678     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9679   else
9680     ac_cpp_err=
9681   fi
9682 else
9683   ac_cpp_err=yes
9684 fi
9685 if test -z "$ac_cpp_err"; then
9686   ac_header_preproc=yes
9687 else
9688   echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9690
9691   ac_header_preproc=no
9692 fi
9693 rm -f conftest.err conftest.$ac_ext
9694 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9695 echo "${ECHO_T}$ac_header_preproc" >&6
9696
9697 # So?  What about this header?
9698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9699   yes:no: )
9700     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9702     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9704     ac_header_preproc=yes
9705     ;;
9706   no:yes:* )
9707     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9709     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9710 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9711     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9713     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9714 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9715     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9717     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9719     (
9720       cat <<\_ASBOX
9721 ## ----------------------------------- ##
9722 ## Report this to llvmbugs@cs.uiuc.edu ##
9723 ## ----------------------------------- ##
9724 _ASBOX
9725     ) |
9726       sed "s/^/$as_me: WARNING:     /" >&2
9727     ;;
9728 esac
9729 echo "$as_me:$LINENO: checking for $ac_header" >&5
9730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9732   echo $ECHO_N "(cached) $ECHO_C" >&6
9733 else
9734   eval "$as_ac_Header=\$ac_header_preproc"
9735 fi
9736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9738
9739 fi
9740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9741   cat >>confdefs.h <<_ACEOF
9742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9743 _ACEOF
9744  break
9745 fi
9746
9747 done
9748
9749
9750
9751
9752 for ac_func in strchr index
9753 do
9754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9755 echo "$as_me:$LINENO: checking for $ac_func" >&5
9756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9757 if eval "test \"\${$as_ac_var+set}\" = set"; then
9758   echo $ECHO_N "(cached) $ECHO_C" >&6
9759 else
9760   cat >conftest.$ac_ext <<_ACEOF
9761 /* confdefs.h.  */
9762 _ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h.  */
9766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9768 #define $ac_func innocuous_$ac_func
9769
9770 /* System header to define __stub macros and hopefully few prototypes,
9771     which can conflict with char $ac_func (); below.
9772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9773     <limits.h> exists even on freestanding compilers.  */
9774
9775 #ifdef __STDC__
9776 # include <limits.h>
9777 #else
9778 # include <assert.h>
9779 #endif
9780
9781 #undef $ac_func
9782
9783 /* Override any gcc2 internal prototype to avoid an error.  */
9784 #ifdef __cplusplus
9785 extern "C"
9786 {
9787 #endif
9788 /* We use char because int might match the return type of a gcc2
9789    builtin and then its argument prototype would still apply.  */
9790 char $ac_func ();
9791 /* The GNU C library defines this for functions which it implements
9792     to always fail with ENOSYS.  Some functions are actually named
9793     something starting with __ and the normal name is an alias.  */
9794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9795 choke me
9796 #else
9797 char (*f) () = $ac_func;
9798 #endif
9799 #ifdef __cplusplus
9800 }
9801 #endif
9802
9803 int
9804 main ()
9805 {
9806 return f != $ac_func;
9807   ;
9808   return 0;
9809 }
9810 _ACEOF
9811 rm -f conftest.$ac_objext conftest$ac_exeext
9812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9813   (eval $ac_link) 2>conftest.er1
9814   ac_status=$?
9815   grep -v '^ *+' conftest.er1 >conftest.err
9816   rm -f conftest.er1
9817   cat conftest.err >&5
9818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819   (exit $ac_status); } &&
9820          { ac_try='test -z "$ac_c_werror_flag"
9821                          || test ! -s conftest.err'
9822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9823   (eval $ac_try) 2>&5
9824   ac_status=$?
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); }; } &&
9827          { ac_try='test -s conftest$ac_exeext'
9828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829   (eval $ac_try) 2>&5
9830   ac_status=$?
9831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   (exit $ac_status); }; }; then
9833   eval "$as_ac_var=yes"
9834 else
9835   echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9837
9838 eval "$as_ac_var=no"
9839 fi
9840 rm -f conftest.err conftest.$ac_objext \
9841       conftest$ac_exeext conftest.$ac_ext
9842 fi
9843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9845 if test `eval echo '${'$as_ac_var'}'` = yes; then
9846   cat >>confdefs.h <<_ACEOF
9847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9848 _ACEOF
9849  break
9850 fi
9851 done
9852
9853
9854
9855 for ac_func in strrchr rindex
9856 do
9857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9858 echo "$as_me:$LINENO: checking for $ac_func" >&5
9859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9860 if eval "test \"\${$as_ac_var+set}\" = set"; then
9861   echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863   cat >conftest.$ac_ext <<_ACEOF
9864 /* confdefs.h.  */
9865 _ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h.  */
9869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9871 #define $ac_func innocuous_$ac_func
9872
9873 /* System header to define __stub macros and hopefully few prototypes,
9874     which can conflict with char $ac_func (); below.
9875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9876     <limits.h> exists even on freestanding compilers.  */
9877
9878 #ifdef __STDC__
9879 # include <limits.h>
9880 #else
9881 # include <assert.h>
9882 #endif
9883
9884 #undef $ac_func
9885
9886 /* Override any gcc2 internal prototype to avoid an error.  */
9887 #ifdef __cplusplus
9888 extern "C"
9889 {
9890 #endif
9891 /* We use char because int might match the return type of a gcc2
9892    builtin and then its argument prototype would still apply.  */
9893 char $ac_func ();
9894 /* The GNU C library defines this for functions which it implements
9895     to always fail with ENOSYS.  Some functions are actually named
9896     something starting with __ and the normal name is an alias.  */
9897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9898 choke me
9899 #else
9900 char (*f) () = $ac_func;
9901 #endif
9902 #ifdef __cplusplus
9903 }
9904 #endif
9905
9906 int
9907 main ()
9908 {
9909 return f != $ac_func;
9910   ;
9911   return 0;
9912 }
9913 _ACEOF
9914 rm -f conftest.$ac_objext conftest$ac_exeext
9915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9916   (eval $ac_link) 2>conftest.er1
9917   ac_status=$?
9918   grep -v '^ *+' conftest.er1 >conftest.err
9919   rm -f conftest.er1
9920   cat conftest.err >&5
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); } &&
9923          { ac_try='test -z "$ac_c_werror_flag"
9924                          || test ! -s conftest.err'
9925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926   (eval $ac_try) 2>&5
9927   ac_status=$?
9928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929   (exit $ac_status); }; } &&
9930          { ac_try='test -s conftest$ac_exeext'
9931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9932   (eval $ac_try) 2>&5
9933   ac_status=$?
9934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935   (exit $ac_status); }; }; then
9936   eval "$as_ac_var=yes"
9937 else
9938   echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9940
9941 eval "$as_ac_var=no"
9942 fi
9943 rm -f conftest.err conftest.$ac_objext \
9944       conftest$ac_exeext conftest.$ac_ext
9945 fi
9946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9948 if test `eval echo '${'$as_ac_var'}'` = yes; then
9949   cat >>confdefs.h <<_ACEOF
9950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9951 _ACEOF
9952  break
9953 fi
9954 done
9955
9956
9957
9958 for ac_func in memcpy bcopy
9959 do
9960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9961 echo "$as_me:$LINENO: checking for $ac_func" >&5
9962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9963 if eval "test \"\${$as_ac_var+set}\" = set"; then
9964   echo $ECHO_N "(cached) $ECHO_C" >&6
9965 else
9966   cat >conftest.$ac_ext <<_ACEOF
9967 /* confdefs.h.  */
9968 _ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h.  */
9972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9974 #define $ac_func innocuous_$ac_func
9975
9976 /* System header to define __stub macros and hopefully few prototypes,
9977     which can conflict with char $ac_func (); below.
9978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9979     <limits.h> exists even on freestanding compilers.  */
9980
9981 #ifdef __STDC__
9982 # include <limits.h>
9983 #else
9984 # include <assert.h>
9985 #endif
9986
9987 #undef $ac_func
9988
9989 /* Override any gcc2 internal prototype to avoid an error.  */
9990 #ifdef __cplusplus
9991 extern "C"
9992 {
9993 #endif
9994 /* We use char because int might match the return type of a gcc2
9995    builtin and then its argument prototype would still apply.  */
9996 char $ac_func ();
9997 /* The GNU C library defines this for functions which it implements
9998     to always fail with ENOSYS.  Some functions are actually named
9999     something starting with __ and the normal name is an alias.  */
10000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10001 choke me
10002 #else
10003 char (*f) () = $ac_func;
10004 #endif
10005 #ifdef __cplusplus
10006 }
10007 #endif
10008
10009 int
10010 main ()
10011 {
10012 return f != $ac_func;
10013   ;
10014   return 0;
10015 }
10016 _ACEOF
10017 rm -f conftest.$ac_objext conftest$ac_exeext
10018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10019   (eval $ac_link) 2>conftest.er1
10020   ac_status=$?
10021   grep -v '^ *+' conftest.er1 >conftest.err
10022   rm -f conftest.er1
10023   cat conftest.err >&5
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); } &&
10026          { ac_try='test -z "$ac_c_werror_flag"
10027                          || test ! -s conftest.err'
10028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029   (eval $ac_try) 2>&5
10030   ac_status=$?
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); }; } &&
10033          { ac_try='test -s conftest$ac_exeext'
10034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035   (eval $ac_try) 2>&5
10036   ac_status=$?
10037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038   (exit $ac_status); }; }; then
10039   eval "$as_ac_var=yes"
10040 else
10041   echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10043
10044 eval "$as_ac_var=no"
10045 fi
10046 rm -f conftest.err conftest.$ac_objext \
10047       conftest$ac_exeext conftest.$ac_ext
10048 fi
10049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10051 if test `eval echo '${'$as_ac_var'}'` = yes; then
10052   cat >>confdefs.h <<_ACEOF
10053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10054 _ACEOF
10055  break
10056 fi
10057 done
10058
10059
10060
10061 for ac_func in memmove strcmp
10062 do
10063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10064 echo "$as_me:$LINENO: checking for $ac_func" >&5
10065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10066 if eval "test \"\${$as_ac_var+set}\" = set"; then
10067   echo $ECHO_N "(cached) $ECHO_C" >&6
10068 else
10069   cat >conftest.$ac_ext <<_ACEOF
10070 /* confdefs.h.  */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h.  */
10075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10076    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10077 #define $ac_func innocuous_$ac_func
10078
10079 /* System header to define __stub macros and hopefully few prototypes,
10080     which can conflict with char $ac_func (); below.
10081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10082     <limits.h> exists even on freestanding compilers.  */
10083
10084 #ifdef __STDC__
10085 # include <limits.h>
10086 #else
10087 # include <assert.h>
10088 #endif
10089
10090 #undef $ac_func
10091
10092 /* Override any gcc2 internal prototype to avoid an error.  */
10093 #ifdef __cplusplus
10094 extern "C"
10095 {
10096 #endif
10097 /* We use char because int might match the return type of a gcc2
10098    builtin and then its argument prototype would still apply.  */
10099 char $ac_func ();
10100 /* The GNU C library defines this for functions which it implements
10101     to always fail with ENOSYS.  Some functions are actually named
10102     something starting with __ and the normal name is an alias.  */
10103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10104 choke me
10105 #else
10106 char (*f) () = $ac_func;
10107 #endif
10108 #ifdef __cplusplus
10109 }
10110 #endif
10111
10112 int
10113 main ()
10114 {
10115 return f != $ac_func;
10116   ;
10117   return 0;
10118 }
10119 _ACEOF
10120 rm -f conftest.$ac_objext conftest$ac_exeext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10122   (eval $ac_link) 2>conftest.er1
10123   ac_status=$?
10124   grep -v '^ *+' conftest.er1 >conftest.err
10125   rm -f conftest.er1
10126   cat conftest.err >&5
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); } &&
10129          { ac_try='test -z "$ac_c_werror_flag"
10130                          || test ! -s conftest.err'
10131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132   (eval $ac_try) 2>&5
10133   ac_status=$?
10134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135   (exit $ac_status); }; } &&
10136          { ac_try='test -s conftest$ac_exeext'
10137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138   (eval $ac_try) 2>&5
10139   ac_status=$?
10140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141   (exit $ac_status); }; }; then
10142   eval "$as_ac_var=yes"
10143 else
10144   echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10146
10147 eval "$as_ac_var=no"
10148 fi
10149 rm -f conftest.err conftest.$ac_objext \
10150       conftest$ac_exeext conftest.$ac_ext
10151 fi
10152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10154 if test `eval echo '${'$as_ac_var'}'` = yes; then
10155   cat >>confdefs.h <<_ACEOF
10156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10157 _ACEOF
10158
10159 fi
10160 done
10161
10162
10163
10164
10165 for ac_func in closedir opendir readdir
10166 do
10167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10168 echo "$as_me:$LINENO: checking for $ac_func" >&5
10169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10170 if eval "test \"\${$as_ac_var+set}\" = set"; then
10171   echo $ECHO_N "(cached) $ECHO_C" >&6
10172 else
10173   cat >conftest.$ac_ext <<_ACEOF
10174 /* confdefs.h.  */
10175 _ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h.  */
10179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10181 #define $ac_func innocuous_$ac_func
10182
10183 /* System header to define __stub macros and hopefully few prototypes,
10184     which can conflict with char $ac_func (); below.
10185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10186     <limits.h> exists even on freestanding compilers.  */
10187
10188 #ifdef __STDC__
10189 # include <limits.h>
10190 #else
10191 # include <assert.h>
10192 #endif
10193
10194 #undef $ac_func
10195
10196 /* Override any gcc2 internal prototype to avoid an error.  */
10197 #ifdef __cplusplus
10198 extern "C"
10199 {
10200 #endif
10201 /* We use char because int might match the return type of a gcc2
10202    builtin and then its argument prototype would still apply.  */
10203 char $ac_func ();
10204 /* The GNU C library defines this for functions which it implements
10205     to always fail with ENOSYS.  Some functions are actually named
10206     something starting with __ and the normal name is an alias.  */
10207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10208 choke me
10209 #else
10210 char (*f) () = $ac_func;
10211 #endif
10212 #ifdef __cplusplus
10213 }
10214 #endif
10215
10216 int
10217 main ()
10218 {
10219 return f != $ac_func;
10220   ;
10221   return 0;
10222 }
10223 _ACEOF
10224 rm -f conftest.$ac_objext conftest$ac_exeext
10225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10226   (eval $ac_link) 2>conftest.er1
10227   ac_status=$?
10228   grep -v '^ *+' conftest.er1 >conftest.err
10229   rm -f conftest.er1
10230   cat conftest.err >&5
10231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232   (exit $ac_status); } &&
10233          { ac_try='test -z "$ac_c_werror_flag"
10234                          || test ! -s conftest.err'
10235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236   (eval $ac_try) 2>&5
10237   ac_status=$?
10238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239   (exit $ac_status); }; } &&
10240          { ac_try='test -s conftest$ac_exeext'
10241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242   (eval $ac_try) 2>&5
10243   ac_status=$?
10244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245   (exit $ac_status); }; }; then
10246   eval "$as_ac_var=yes"
10247 else
10248   echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10250
10251 eval "$as_ac_var=no"
10252 fi
10253 rm -f conftest.err conftest.$ac_objext \
10254       conftest$ac_exeext conftest.$ac_ext
10255 fi
10256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10258 if test `eval echo '${'$as_ac_var'}'` = yes; then
10259   cat >>confdefs.h <<_ACEOF
10260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10261 _ACEOF
10262
10263 fi
10264 done
10265
10266
10267 # Check whether --enable-shared or --disable-shared was given.
10268 if test "${enable_shared+set}" = set; then
10269   enableval="$enable_shared"
10270   p=${PACKAGE-default}
10271     case $enableval in
10272     yes) enable_shared=yes ;;
10273     no) enable_shared=no ;;
10274     *)
10275       enable_shared=no
10276       # Look at the argument we got.  We use all the common list separators.
10277       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10278       for pkg in $enableval; do
10279         IFS="$lt_save_ifs"
10280         if test "X$pkg" = "X$p"; then
10281           enable_shared=yes
10282         fi
10283       done
10284       IFS="$lt_save_ifs"
10285       ;;
10286     esac
10287 else
10288   enable_shared=yes
10289 fi;
10290
10291 # Check whether --enable-static or --disable-static was given.
10292 if test "${enable_static+set}" = set; then
10293   enableval="$enable_static"
10294   p=${PACKAGE-default}
10295     case $enableval in
10296     yes) enable_static=yes ;;
10297     no) enable_static=no ;;
10298     *)
10299      enable_static=no
10300       # Look at the argument we got.  We use all the common list separators.
10301       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10302       for pkg in $enableval; do
10303         IFS="$lt_save_ifs"
10304         if test "X$pkg" = "X$p"; then
10305           enable_static=yes
10306         fi
10307       done
10308       IFS="$lt_save_ifs"
10309       ;;
10310     esac
10311 else
10312   enable_static=yes
10313 fi;
10314
10315 # Check whether --enable-fast-install or --disable-fast-install was given.
10316 if test "${enable_fast_install+set}" = set; then
10317   enableval="$enable_fast_install"
10318   p=${PACKAGE-default}
10319     case $enableval in
10320     yes) enable_fast_install=yes ;;
10321     no) enable_fast_install=no ;;
10322     *)
10323       enable_fast_install=no
10324       # Look at the argument we got.  We use all the common list separators.
10325       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10326       for pkg in $enableval; do
10327         IFS="$lt_save_ifs"
10328         if test "X$pkg" = "X$p"; then
10329           enable_fast_install=yes
10330         fi
10331       done
10332       IFS="$lt_save_ifs"
10333       ;;
10334     esac
10335 else
10336   enable_fast_install=yes
10337 fi;
10338
10339 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10340 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10341 if test "${lt_cv_path_SED+set}" = set; then
10342   echo $ECHO_N "(cached) $ECHO_C" >&6
10343 else
10344   # Loop through the user's path and test for sed and gsed.
10345 # Then use that list of sed's as ones to test for truncation.
10346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10347 for as_dir in $PATH
10348 do
10349   IFS=$as_save_IFS
10350   test -z "$as_dir" && as_dir=.
10351   for lt_ac_prog in sed gsed; do
10352     for ac_exec_ext in '' $ac_executable_extensions; do
10353       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10354         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10355       fi
10356     done
10357   done
10358 done
10359 lt_ac_max=0
10360 lt_ac_count=0
10361 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10362 # along with /bin/sed that truncates output.
10363 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10364   test ! -f $lt_ac_sed && break
10365   cat /dev/null > conftest.in
10366   lt_ac_count=0
10367   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10368   # Check for GNU sed and select it if it is found.
10369   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10370     lt_cv_path_SED=$lt_ac_sed
10371     break
10372   fi
10373   while true; do
10374     cat conftest.in conftest.in >conftest.tmp
10375     mv conftest.tmp conftest.in
10376     cp conftest.in conftest.nl
10377     echo >>conftest.nl
10378     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10379     cmp -s conftest.out conftest.nl || break
10380     # 10000 chars as input seems more than enough
10381     test $lt_ac_count -gt 10 && break
10382     lt_ac_count=`expr $lt_ac_count + 1`
10383     if test $lt_ac_count -gt $lt_ac_max; then
10384       lt_ac_max=$lt_ac_count
10385       lt_cv_path_SED=$lt_ac_sed
10386     fi
10387   done
10388 done
10389
10390 fi
10391
10392 SED=$lt_cv_path_SED
10393 echo "$as_me:$LINENO: result: $SED" >&5
10394 echo "${ECHO_T}$SED" >&6
10395
10396
10397 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10398 if test "${with_gnu_ld+set}" = set; then
10399   withval="$with_gnu_ld"
10400   test "$withval" = no || with_gnu_ld=yes
10401 else
10402   with_gnu_ld=no
10403 fi;
10404 ac_prog=ld
10405 if test "$GCC" = yes; then
10406   # Check if gcc -print-prog-name=ld gives a path.
10407   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10408 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10409   case $host in
10410   *-*-mingw*)
10411     # gcc leaves a trailing carriage return which upsets mingw
10412     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10413   *)
10414     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10415   esac
10416   case $ac_prog in
10417     # Accept absolute paths.
10418     [\\/]* | ?:[\\/]*)
10419       re_direlt='/[^/][^/]*/\.\./'
10420       # Canonicalize the pathname of ld
10421       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10422       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10423         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10424       done
10425       test -z "$LD" && LD="$ac_prog"
10426       ;;
10427   "")
10428     # If it fails, then pretend we aren't using GCC.
10429     ac_prog=ld
10430     ;;
10431   *)
10432     # If it is relative, then search for the first ld in PATH.
10433     with_gnu_ld=unknown
10434     ;;
10435   esac
10436 elif test "$with_gnu_ld" = yes; then
10437   echo "$as_me:$LINENO: checking for GNU ld" >&5
10438 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10439 else
10440   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10441 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10442 fi
10443 if test "${lt_cv_path_LD+set}" = set; then
10444   echo $ECHO_N "(cached) $ECHO_C" >&6
10445 else
10446   if test -z "$LD"; then
10447   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10448   for ac_dir in $PATH; do
10449     IFS="$lt_save_ifs"
10450     test -z "$ac_dir" && ac_dir=.
10451     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10452       lt_cv_path_LD="$ac_dir/$ac_prog"
10453       # Check to see if the program is GNU ld.  I'd rather use --version,
10454       # but apparently some GNU ld's only accept -v.
10455       # Break only if it was the GNU/non-GNU ld that we prefer.
10456       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10457       *GNU* | *'with BFD'*)
10458         test "$with_gnu_ld" != no && break
10459         ;;
10460       *)
10461         test "$with_gnu_ld" != yes && break
10462         ;;
10463       esac
10464     fi
10465   done
10466   IFS="$lt_save_ifs"
10467 else
10468   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10469 fi
10470 fi
10471
10472 LD="$lt_cv_path_LD"
10473 if test -n "$LD"; then
10474   echo "$as_me:$LINENO: result: $LD" >&5
10475 echo "${ECHO_T}$LD" >&6
10476 else
10477   echo "$as_me:$LINENO: result: no" >&5
10478 echo "${ECHO_T}no" >&6
10479 fi
10480 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10481 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10482    { (exit 1); exit 1; }; }
10483 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10484 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10485 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10486   echo $ECHO_N "(cached) $ECHO_C" >&6
10487 else
10488   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10489 case `$LD -v 2>&1 </dev/null` in
10490 *GNU* | *'with BFD'*)
10491   lt_cv_prog_gnu_ld=yes
10492   ;;
10493 *)
10494   lt_cv_prog_gnu_ld=no
10495   ;;
10496 esac
10497 fi
10498 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10499 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10500 with_gnu_ld=$lt_cv_prog_gnu_ld
10501
10502
10503 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10504 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10505 if test "${lt_cv_ld_reload_flag+set}" = set; then
10506   echo $ECHO_N "(cached) $ECHO_C" >&6
10507 else
10508   lt_cv_ld_reload_flag='-r'
10509 fi
10510 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10511 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10512 reload_flag=$lt_cv_ld_reload_flag
10513 case $reload_flag in
10514 "" | " "*) ;;
10515 *) reload_flag=" $reload_flag" ;;
10516 esac
10517 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10518 case $host_os in
10519   darwin*)
10520     if test "$GCC" = yes; then
10521       reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
10522     else
10523       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10524     fi
10525     ;;
10526 esac
10527
10528 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10529 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10530 if test "${lt_cv_deplibs_check_method+set}" = set; then
10531   echo $ECHO_N "(cached) $ECHO_C" >&6
10532 else
10533   lt_cv_file_magic_cmd='$MAGIC_CMD'
10534 lt_cv_file_magic_test_file=
10535 lt_cv_deplibs_check_method='unknown'
10536 # Need to set the preceding variable on all platforms that support
10537 # interlibrary dependencies.
10538 # 'none' -- dependencies not supported.
10539 # `unknown' -- same as none, but documents that we really don't know.
10540 # 'pass_all' -- all dependencies passed with no checks.
10541 # 'test_compile' -- check by making test program.
10542 # 'file_magic [[regex]]' -- check by looking for files in library path
10543 # which responds to the $file_magic_cmd with a given extended regex.
10544 # If you have `file' or equivalent on your system and you're not sure
10545 # whether `pass_all' will *always* work, you probably want this one.
10546
10547 case $host_os in
10548 aix4* | aix5*)
10549   lt_cv_deplibs_check_method=pass_all
10550   ;;
10551
10552 beos*)
10553   lt_cv_deplibs_check_method=pass_all
10554   ;;
10555
10556 bsdi[45]*)
10557   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10558   lt_cv_file_magic_cmd='/usr/bin/file -L'
10559   lt_cv_file_magic_test_file=/shlib/libc.so
10560   ;;
10561
10562 cygwin*)
10563   # func_win32_libid is a shell function defined in ltmain.sh
10564   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10565   lt_cv_file_magic_cmd='func_win32_libid'
10566   ;;
10567
10568 mingw* | pw32*)
10569   # Base MSYS/MinGW do not provide the 'file' command needed by
10570   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10571   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10572   lt_cv_file_magic_cmd='$OBJDUMP -f'
10573   ;;
10574
10575 darwin* | rhapsody*)
10576   lt_cv_deplibs_check_method=pass_all
10577   ;;
10578
10579 freebsd* | kfreebsd*-gnu)
10580   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10581     case $host_cpu in
10582     i*86 )
10583       # Not sure whether the presence of OpenBSD here was a mistake.
10584       # Let's accept both of them until this is cleared up.
10585       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10586       lt_cv_file_magic_cmd=/usr/bin/file
10587       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10588       ;;
10589     esac
10590   else
10591     lt_cv_deplibs_check_method=pass_all
10592   fi
10593   ;;
10594
10595 gnu*)
10596   lt_cv_deplibs_check_method=pass_all
10597   ;;
10598
10599 hpux10.20* | hpux11*)
10600   lt_cv_file_magic_cmd=/usr/bin/file
10601   case "$host_cpu" in
10602   ia64*)
10603     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10604     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10605     ;;
10606   hppa*64*)
10607     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]'
10608     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10609     ;;
10610   *)
10611     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10612     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10613     ;;
10614   esac
10615   ;;
10616
10617 irix5* | irix6* | nonstopux*)
10618   case $LD in
10619   *-32|*"-32 ") libmagic=32-bit;;
10620   *-n32|*"-n32 ") libmagic=N32;;
10621   *-64|*"-64 ") libmagic=64-bit;;
10622   *) libmagic=never-match;;
10623   esac
10624   lt_cv_deplibs_check_method=pass_all
10625   ;;
10626
10627 # This must be Linux ELF.
10628 linux*)
10629   lt_cv_deplibs_check_method=pass_all
10630   ;;
10631
10632 netbsd*)
10633   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10634     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10635   else
10636     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10637   fi
10638   ;;
10639
10640 newos6*)
10641   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10642   lt_cv_file_magic_cmd=/usr/bin/file
10643   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10644   ;;
10645
10646 nto-qnx*)
10647   lt_cv_deplibs_check_method=unknown
10648   ;;
10649
10650 openbsd*)
10651   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10652     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10653   else
10654     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10655   fi
10656   ;;
10657
10658 osf3* | osf4* | osf5*)
10659   lt_cv_deplibs_check_method=pass_all
10660   ;;
10661
10662 sco3.2v5*)
10663   lt_cv_deplibs_check_method=pass_all
10664   ;;
10665
10666 solaris*)
10667   lt_cv_deplibs_check_method=pass_all
10668   ;;
10669
10670 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10671   case $host_vendor in
10672   motorola)
10673     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]'
10674     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10675     ;;
10676   ncr)
10677     lt_cv_deplibs_check_method=pass_all
10678     ;;
10679   sequent)
10680     lt_cv_file_magic_cmd='/bin/file'
10681     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10682     ;;
10683   sni)
10684     lt_cv_file_magic_cmd='/bin/file'
10685     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10686     lt_cv_file_magic_test_file=/lib/libc.so
10687     ;;
10688   siemens)
10689     lt_cv_deplibs_check_method=pass_all
10690     ;;
10691   esac
10692   ;;
10693
10694 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10695   lt_cv_deplibs_check_method=pass_all
10696   ;;
10697 esac
10698
10699 fi
10700 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10701 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10702 file_magic_cmd=$lt_cv_file_magic_cmd
10703 deplibs_check_method=$lt_cv_deplibs_check_method
10704 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10705
10706
10707
10708 # If no C compiler was specified, use CC.
10709 LTCC=${LTCC-"$CC"}
10710
10711 # Allow CC to be a program name with arguments.
10712 compiler=$CC
10713
10714 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10715 if test "${enable_libtool_lock+set}" = set; then
10716   enableval="$enable_libtool_lock"
10717
10718 fi;
10719 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10720
10721 # Some flags need to be propagated to the compiler or linker for good
10722 # libtool support.
10723 case $host in
10724 ia64-*-hpux*)
10725   # Find out which ABI we are using.
10726   echo 'int i;' > conftest.$ac_ext
10727   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10728   (eval $ac_compile) 2>&5
10729   ac_status=$?
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); }; then
10732     case `/usr/bin/file conftest.$ac_objext` in
10733     *ELF-32*)
10734       HPUX_IA64_MODE="32"
10735       ;;
10736     *ELF-64*)
10737       HPUX_IA64_MODE="64"
10738       ;;
10739     esac
10740   fi
10741   rm -rf conftest*
10742   ;;
10743 *-*-irix6*)
10744   # Find out which ABI we are using.
10745   echo '#line 10745 "configure"' > conftest.$ac_ext
10746   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10747   (eval $ac_compile) 2>&5
10748   ac_status=$?
10749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750   (exit $ac_status); }; then
10751    if test "$lt_cv_prog_gnu_ld" = yes; then
10752     case `/usr/bin/file conftest.$ac_objext` in
10753     *32-bit*)
10754       LD="${LD-ld} -melf32bsmip"
10755       ;;
10756     *N32*)
10757       LD="${LD-ld} -melf32bmipn32"
10758       ;;
10759     *64-bit*)
10760       LD="${LD-ld} -melf64bmip"
10761       ;;
10762     esac
10763    else
10764     case `/usr/bin/file conftest.$ac_objext` in
10765     *32-bit*)
10766       LD="${LD-ld} -32"
10767       ;;
10768     *N32*)
10769       LD="${LD-ld} -n32"
10770       ;;
10771     *64-bit*)
10772       LD="${LD-ld} -64"
10773       ;;
10774     esac
10775    fi
10776   fi
10777   rm -rf conftest*
10778   ;;
10779
10780 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10781   # Find out which ABI we are using.
10782   echo 'int i;' > conftest.$ac_ext
10783   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10784   (eval $ac_compile) 2>&5
10785   ac_status=$?
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); }; then
10788     case "`/usr/bin/file conftest.o`" in
10789     *32-bit*)
10790       case $host in
10791         x86_64-*linux*)
10792           LD="${LD-ld} -m elf_i386"
10793           ;;
10794         ppc64-*linux*|powerpc64-*linux*)
10795           LD="${LD-ld} -m elf32ppclinux"
10796           ;;
10797         s390x-*linux*)
10798           LD="${LD-ld} -m elf_s390"
10799           ;;
10800         sparc64-*linux*)
10801           LD="${LD-ld} -m elf32_sparc"
10802           ;;
10803       esac
10804       ;;
10805     *64-bit*)
10806       case $host in
10807         x86_64-*linux*)
10808           LD="${LD-ld} -m elf_x86_64"
10809           ;;
10810         ppc*-*linux*|powerpc*-*linux*)
10811           LD="${LD-ld} -m elf64ppc"
10812           ;;
10813         s390*-*linux*)
10814           LD="${LD-ld} -m elf64_s390"
10815           ;;
10816         sparc*-*linux*)
10817           LD="${LD-ld} -m elf64_sparc"
10818           ;;
10819       esac
10820       ;;
10821     esac
10822   fi
10823   rm -rf conftest*
10824   ;;
10825
10826 *-*-sco3.2v5*)
10827   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10828   SAVE_CFLAGS="$CFLAGS"
10829   CFLAGS="$CFLAGS -belf"
10830   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10831 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10832 if test "${lt_cv_cc_needs_belf+set}" = set; then
10833   echo $ECHO_N "(cached) $ECHO_C" >&6
10834 else
10835   ac_ext=c
10836 ac_cpp='$CPP $CPPFLAGS'
10837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10840
10841      cat >conftest.$ac_ext <<_ACEOF
10842 /* confdefs.h.  */
10843 _ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h.  */
10847
10848 _ACEOF
10849 rm -f conftest.$ac_objext conftest$ac_exeext
10850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10851   (eval $ac_link) 2>conftest.er1
10852   ac_status=$?
10853   grep -v '^ *+' conftest.er1 >conftest.err
10854   rm -f conftest.er1
10855   cat conftest.err >&5
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); } &&
10858          { ac_try='test -z "$ac_c_werror_flag"
10859                          || test ! -s conftest.err'
10860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861   (eval $ac_try) 2>&5
10862   ac_status=$?
10863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864   (exit $ac_status); }; } &&
10865          { ac_try='test -s conftest$ac_exeext'
10866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867   (eval $ac_try) 2>&5
10868   ac_status=$?
10869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   (exit $ac_status); }; }; then
10871   lt_cv_cc_needs_belf=yes
10872 else
10873   echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10875
10876 lt_cv_cc_needs_belf=no
10877 fi
10878 rm -f conftest.err conftest.$ac_objext \
10879       conftest$ac_exeext conftest.$ac_ext
10880      ac_ext=c
10881 ac_cpp='$CPP $CPPFLAGS'
10882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10885
10886 fi
10887 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10888 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10889   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10890     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10891     CFLAGS="$SAVE_CFLAGS"
10892   fi
10893   ;;
10894
10895 esac
10896
10897 need_locks="$enable_libtool_lock"
10898
10899
10900
10901
10902 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10903     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10904     (test "X$CXX" != "Xg++"))) ; then
10905   ac_ext=cc
10906 ac_cpp='$CXXCPP $CPPFLAGS'
10907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10910 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10911 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10912 if test -z "$CXXCPP"; then
10913   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10914   echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916       # Double quotes because CXXCPP needs to be expanded
10917     for CXXCPP in "$CXX -E" "/lib/cpp"
10918     do
10919       ac_preproc_ok=false
10920 for ac_cxx_preproc_warn_flag in '' yes
10921 do
10922   # Use a header file that comes with gcc, so configuring glibc
10923   # with a fresh cross-compiler works.
10924   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10925   # <limits.h> exists even on freestanding compilers.
10926   # On the NeXT, cc -E runs the code through the compiler's parser,
10927   # not just through cpp. "Syntax error" is here to catch this case.
10928   cat >conftest.$ac_ext <<_ACEOF
10929 /* confdefs.h.  */
10930 _ACEOF
10931 cat confdefs.h >>conftest.$ac_ext
10932 cat >>conftest.$ac_ext <<_ACEOF
10933 /* end confdefs.h.  */
10934 #ifdef __STDC__
10935 # include <limits.h>
10936 #else
10937 # include <assert.h>
10938 #endif
10939                      Syntax error
10940 _ACEOF
10941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10942   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10943   ac_status=$?
10944   grep -v '^ *+' conftest.er1 >conftest.err
10945   rm -f conftest.er1
10946   cat conftest.err >&5
10947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); } >/dev/null; then
10949   if test -s conftest.err; then
10950     ac_cpp_err=$ac_cxx_preproc_warn_flag
10951     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10952   else
10953     ac_cpp_err=
10954   fi
10955 else
10956   ac_cpp_err=yes
10957 fi
10958 if test -z "$ac_cpp_err"; then
10959   :
10960 else
10961   echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10963
10964   # Broken: fails on valid input.
10965 continue
10966 fi
10967 rm -f conftest.err conftest.$ac_ext
10968
10969   # OK, works on sane cases.  Now check whether non-existent headers
10970   # can be detected and how.
10971   cat >conftest.$ac_ext <<_ACEOF
10972 /* confdefs.h.  */
10973 _ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h.  */
10977 #include <ac_nonexistent.h>
10978 _ACEOF
10979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10980   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10981   ac_status=$?
10982   grep -v '^ *+' conftest.er1 >conftest.err
10983   rm -f conftest.er1
10984   cat conftest.err >&5
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); } >/dev/null; then
10987   if test -s conftest.err; then
10988     ac_cpp_err=$ac_cxx_preproc_warn_flag
10989     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10990   else
10991     ac_cpp_err=
10992   fi
10993 else
10994   ac_cpp_err=yes
10995 fi
10996 if test -z "$ac_cpp_err"; then
10997   # Broken: success on invalid input.
10998 continue
10999 else
11000   echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11002
11003   # Passes both tests.
11004 ac_preproc_ok=:
11005 break
11006 fi
11007 rm -f conftest.err conftest.$ac_ext
11008
11009 done
11010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11011 rm -f conftest.err conftest.$ac_ext
11012 if $ac_preproc_ok; then
11013   break
11014 fi
11015
11016     done
11017     ac_cv_prog_CXXCPP=$CXXCPP
11018
11019 fi
11020   CXXCPP=$ac_cv_prog_CXXCPP
11021 else
11022   ac_cv_prog_CXXCPP=$CXXCPP
11023 fi
11024 echo "$as_me:$LINENO: result: $CXXCPP" >&5
11025 echo "${ECHO_T}$CXXCPP" >&6
11026 ac_preproc_ok=false
11027 for ac_cxx_preproc_warn_flag in '' yes
11028 do
11029   # Use a header file that comes with gcc, so configuring glibc
11030   # with a fresh cross-compiler works.
11031   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11032   # <limits.h> exists even on freestanding compilers.
11033   # On the NeXT, cc -E runs the code through the compiler's parser,
11034   # not just through cpp. "Syntax error" is here to catch this case.
11035   cat >conftest.$ac_ext <<_ACEOF
11036 /* confdefs.h.  */
11037 _ACEOF
11038 cat confdefs.h >>conftest.$ac_ext
11039 cat >>conftest.$ac_ext <<_ACEOF
11040 /* end confdefs.h.  */
11041 #ifdef __STDC__
11042 # include <limits.h>
11043 #else
11044 # include <assert.h>
11045 #endif
11046                      Syntax error
11047 _ACEOF
11048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11049   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11050   ac_status=$?
11051   grep -v '^ *+' conftest.er1 >conftest.err
11052   rm -f conftest.er1
11053   cat conftest.err >&5
11054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055   (exit $ac_status); } >/dev/null; then
11056   if test -s conftest.err; then
11057     ac_cpp_err=$ac_cxx_preproc_warn_flag
11058     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11059   else
11060     ac_cpp_err=
11061   fi
11062 else
11063   ac_cpp_err=yes
11064 fi
11065 if test -z "$ac_cpp_err"; then
11066   :
11067 else
11068   echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11070
11071   # Broken: fails on valid input.
11072 continue
11073 fi
11074 rm -f conftest.err conftest.$ac_ext
11075
11076   # OK, works on sane cases.  Now check whether non-existent headers
11077   # can be detected and how.
11078   cat >conftest.$ac_ext <<_ACEOF
11079 /* confdefs.h.  */
11080 _ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h.  */
11084 #include <ac_nonexistent.h>
11085 _ACEOF
11086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11087   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11088   ac_status=$?
11089   grep -v '^ *+' conftest.er1 >conftest.err
11090   rm -f conftest.er1
11091   cat conftest.err >&5
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); } >/dev/null; then
11094   if test -s conftest.err; then
11095     ac_cpp_err=$ac_cxx_preproc_warn_flag
11096     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11097   else
11098     ac_cpp_err=
11099   fi
11100 else
11101   ac_cpp_err=yes
11102 fi
11103 if test -z "$ac_cpp_err"; then
11104   # Broken: success on invalid input.
11105 continue
11106 else
11107   echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11109
11110   # Passes both tests.
11111 ac_preproc_ok=:
11112 break
11113 fi
11114 rm -f conftest.err conftest.$ac_ext
11115
11116 done
11117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11118 rm -f conftest.err conftest.$ac_ext
11119 if $ac_preproc_ok; then
11120   :
11121 else
11122   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11123 See \`config.log' for more details." >&5
11124 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11125 See \`config.log' for more details." >&2;}
11126    { (exit 1); exit 1; }; }
11127 fi
11128
11129 ac_ext=cc
11130 ac_cpp='$CXXCPP $CPPFLAGS'
11131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11134
11135 fi
11136
11137
11138 ac_ext=f
11139 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11140 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11141 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11142 if test -n "$ac_tool_prefix"; then
11143   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11144   do
11145     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11147 echo "$as_me:$LINENO: checking for $ac_word" >&5
11148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11149 if test "${ac_cv_prog_F77+set}" = set; then
11150   echo $ECHO_N "(cached) $ECHO_C" >&6
11151 else
11152   if test -n "$F77"; then
11153   ac_cv_prog_F77="$F77" # Let the user override the test.
11154 else
11155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11156 for as_dir in $PATH
11157 do
11158   IFS=$as_save_IFS
11159   test -z "$as_dir" && as_dir=.
11160   for ac_exec_ext in '' $ac_executable_extensions; do
11161   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11162     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
11163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11164     break 2
11165   fi
11166 done
11167 done
11168
11169 fi
11170 fi
11171 F77=$ac_cv_prog_F77
11172 if test -n "$F77"; then
11173   echo "$as_me:$LINENO: result: $F77" >&5
11174 echo "${ECHO_T}$F77" >&6
11175 else
11176   echo "$as_me:$LINENO: result: no" >&5
11177 echo "${ECHO_T}no" >&6
11178 fi
11179
11180     test -n "$F77" && break
11181   done
11182 fi
11183 if test -z "$F77"; then
11184   ac_ct_F77=$F77
11185   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11186 do
11187   # Extract the first word of "$ac_prog", so it can be a program name with args.
11188 set dummy $ac_prog; ac_word=$2
11189 echo "$as_me:$LINENO: checking for $ac_word" >&5
11190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11191 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
11192   echo $ECHO_N "(cached) $ECHO_C" >&6
11193 else
11194   if test -n "$ac_ct_F77"; then
11195   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11196 else
11197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198 for as_dir in $PATH
11199 do
11200   IFS=$as_save_IFS
11201   test -z "$as_dir" && as_dir=.
11202   for ac_exec_ext in '' $ac_executable_extensions; do
11203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11204     ac_cv_prog_ac_ct_F77="$ac_prog"
11205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11206     break 2
11207   fi
11208 done
11209 done
11210
11211 fi
11212 fi
11213 ac_ct_F77=$ac_cv_prog_ac_ct_F77
11214 if test -n "$ac_ct_F77"; then
11215   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11216 echo "${ECHO_T}$ac_ct_F77" >&6
11217 else
11218   echo "$as_me:$LINENO: result: no" >&5
11219 echo "${ECHO_T}no" >&6
11220 fi
11221
11222   test -n "$ac_ct_F77" && break
11223 done
11224
11225   F77=$ac_ct_F77
11226 fi
11227
11228
11229 # Provide some information about the compiler.
11230 echo "$as_me:11230:" \
11231      "checking for Fortran 77 compiler version" >&5
11232 ac_compiler=`set X $ac_compile; echo $2`
11233 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11234   (eval $ac_compiler --version </dev/null >&5) 2>&5
11235   ac_status=$?
11236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237   (exit $ac_status); }
11238 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11239   (eval $ac_compiler -v </dev/null >&5) 2>&5
11240   ac_status=$?
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); }
11243 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11244   (eval $ac_compiler -V </dev/null >&5) 2>&5
11245   ac_status=$?
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); }
11248 rm -f a.out
11249
11250 # If we don't use `.F' as extension, the preprocessor is not run on the
11251 # input file.  (Note that this only needs to work for GNU compilers.)
11252 ac_save_ext=$ac_ext
11253 ac_ext=F
11254 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11255 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11256 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11257   echo $ECHO_N "(cached) $ECHO_C" >&6
11258 else
11259   cat >conftest.$ac_ext <<_ACEOF
11260       program main
11261 #ifndef __GNUC__
11262        choke me
11263 #endif
11264
11265       end
11266 _ACEOF
11267 rm -f conftest.$ac_objext
11268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11269   (eval $ac_compile) 2>conftest.er1
11270   ac_status=$?
11271   grep -v '^ *+' conftest.er1 >conftest.err
11272   rm -f conftest.er1
11273   cat conftest.err >&5
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); } &&
11276          { ac_try='test -z "$ac_f77_werror_flag"
11277                          || test ! -s conftest.err'
11278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11279   (eval $ac_try) 2>&5
11280   ac_status=$?
11281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282   (exit $ac_status); }; } &&
11283          { ac_try='test -s conftest.$ac_objext'
11284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11285   (eval $ac_try) 2>&5
11286   ac_status=$?
11287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288   (exit $ac_status); }; }; then
11289   ac_compiler_gnu=yes
11290 else
11291   echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11293
11294 ac_compiler_gnu=no
11295 fi
11296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11297 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11298
11299 fi
11300 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11301 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11302 ac_ext=$ac_save_ext
11303 ac_test_FFLAGS=${FFLAGS+set}
11304 ac_save_FFLAGS=$FFLAGS
11305 FFLAGS=
11306 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11307 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11308 if test "${ac_cv_prog_f77_g+set}" = set; then
11309   echo $ECHO_N "(cached) $ECHO_C" >&6
11310 else
11311   FFLAGS=-g
11312 cat >conftest.$ac_ext <<_ACEOF
11313       program main
11314
11315       end
11316 _ACEOF
11317 rm -f conftest.$ac_objext
11318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11319   (eval $ac_compile) 2>conftest.er1
11320   ac_status=$?
11321   grep -v '^ *+' conftest.er1 >conftest.err
11322   rm -f conftest.er1
11323   cat conftest.err >&5
11324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325   (exit $ac_status); } &&
11326          { ac_try='test -z "$ac_f77_werror_flag"
11327                          || test ! -s conftest.err'
11328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329   (eval $ac_try) 2>&5
11330   ac_status=$?
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); }; } &&
11333          { ac_try='test -s conftest.$ac_objext'
11334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335   (eval $ac_try) 2>&5
11336   ac_status=$?
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); }; }; then
11339   ac_cv_prog_f77_g=yes
11340 else
11341   echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11343
11344 ac_cv_prog_f77_g=no
11345 fi
11346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11347
11348 fi
11349 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11350 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11351 if test "$ac_test_FFLAGS" = set; then
11352   FFLAGS=$ac_save_FFLAGS
11353 elif test $ac_cv_prog_f77_g = yes; then
11354   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11355     FFLAGS="-g -O2"
11356   else
11357     FFLAGS="-g"
11358   fi
11359 else
11360   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11361     FFLAGS="-O2"
11362   else
11363     FFLAGS=
11364   fi
11365 fi
11366
11367 G77=`test $ac_compiler_gnu = yes && echo yes`
11368 ac_ext=c
11369 ac_cpp='$CPP $CPPFLAGS'
11370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11373
11374
11375
11376 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11377
11378 # find the maximum length of command line arguments
11379 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11380 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11381 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11382   echo $ECHO_N "(cached) $ECHO_C" >&6
11383 else
11384     i=0
11385   teststring="ABCD"
11386
11387   case $build_os in
11388   msdosdjgpp*)
11389     # On DJGPP, this test can blow up pretty badly due to problems in libc
11390     # (any single argument exceeding 2000 bytes causes a buffer overrun
11391     # during glob expansion).  Even if it were fixed, the result of this
11392     # check would be larger than it should be.
11393     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11394     ;;
11395
11396   gnu*)
11397     # Under GNU Hurd, this test is not required because there is
11398     # no limit to the length of command line arguments.
11399     # Libtool will interpret -1 as no limit whatsoever
11400     lt_cv_sys_max_cmd_len=-1;
11401     ;;
11402
11403   cygwin* | mingw*)
11404     # On Win9x/ME, this test blows up -- it succeeds, but takes
11405     # about 5 minutes as the teststring grows exponentially.
11406     # Worse, since 9x/ME are not pre-emptively multitasking,
11407     # you end up with a "frozen" computer, even though with patience
11408     # the test eventually succeeds (with a max line length of 256k).
11409     # Instead, let's just punt: use the minimum linelength reported by
11410     # all of the supported platforms: 8192 (on NT/2K/XP).
11411     lt_cv_sys_max_cmd_len=8192;
11412     ;;
11413
11414   amigaos*)
11415     # On AmigaOS with pdksh, this test takes hours, literally.
11416     # So we just punt and use a minimum line length of 8192.
11417     lt_cv_sys_max_cmd_len=8192;
11418     ;;
11419
11420   netbsd* | freebsd* | openbsd* | darwin* )
11421     # This has been around since 386BSD, at least.  Likely further.
11422     if test -x /sbin/sysctl; then
11423       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11424     elif test -x /usr/sbin/sysctl; then
11425       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11426     else
11427       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11428     fi
11429     # And add a safety zone
11430     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11431     ;;
11432
11433  *)
11434     # If test is not a shell built-in, we'll probably end up computing a
11435     # maximum length that is only half of the actual maximum length, but
11436     # we can't tell.
11437     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11438     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11439                = "XX$teststring") >/dev/null 2>&1 &&
11440             new_result=`expr "X$teststring" : ".*" 2>&1` &&
11441             lt_cv_sys_max_cmd_len=$new_result &&
11442             test $i != 17 # 1/2 MB should be enough
11443     do
11444       i=`expr $i + 1`
11445       teststring=$teststring$teststring
11446     done
11447     teststring=
11448     # Add a significant safety factor because C++ compilers can tack on massive
11449     # amounts of additional arguments before passing them to the linker.
11450     # It appears as though 1/2 is a usable value.
11451     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11452     ;;
11453   esac
11454
11455 fi
11456
11457 if test -n $lt_cv_sys_max_cmd_len ; then
11458   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11459 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11460 else
11461   echo "$as_me:$LINENO: result: none" >&5
11462 echo "${ECHO_T}none" >&6
11463 fi
11464
11465
11466
11467
11468 # Check for command to grab the raw symbol name followed by C symbol from nm.
11469 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11470 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11471 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11472   echo $ECHO_N "(cached) $ECHO_C" >&6
11473 else
11474
11475 # These are sane defaults that work on at least a few old systems.
11476 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11477
11478 # Character class describing NM global symbol codes.
11479 symcode='[BCDEGRST]'
11480
11481 # Regexp to match symbols that can be accessed directly from C.
11482 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11483
11484 # Transform the above into a raw symbol and a C symbol.
11485 symxfrm='\1 \2\3 \3'
11486
11487 # Transform an extracted symbol line into a proper C declaration
11488 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11489
11490 # Transform an extracted symbol line into symbol name and symbol address
11491 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'"
11492
11493 # Define system-specific variables.
11494 case $host_os in
11495 aix*)
11496   symcode='[BCDT]'
11497   ;;
11498 cygwin* | mingw* | pw32*)
11499   symcode='[ABCDGISTW]'
11500   ;;
11501 hpux*) # Its linker distinguishes data from code symbols
11502   if test "$host_cpu" = ia64; then
11503     symcode='[ABCDEGRST]'
11504   fi
11505   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11506   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'"
11507   ;;
11508 linux*)
11509   if test "$host_cpu" = ia64; then
11510     symcode='[ABCDGIRSTW]'
11511     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11512     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'"
11513   fi
11514   ;;
11515 irix* | nonstopux*)
11516   symcode='[BCDEGRST]'
11517   ;;
11518 osf*)
11519   symcode='[BCDEGQRST]'
11520   ;;
11521 solaris* | sysv5*)
11522   symcode='[BDRT]'
11523   ;;
11524 sysv4)
11525   symcode='[DFNSTU]'
11526   ;;
11527 esac
11528
11529 # Handle CRLF in mingw tool chain
11530 opt_cr=
11531 case $build_os in
11532 mingw*)
11533   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11534   ;;
11535 esac
11536
11537 # If we're using GNU nm, then use its standard symbol codes.
11538 case `$NM -V 2>&1` in
11539 *GNU* | *'with BFD'*)
11540   symcode='[ABCDGIRSTW]' ;;
11541 esac
11542
11543 # Try without a prefix undercore, then with it.
11544 for ac_symprfx in "" "_"; do
11545
11546   # Write the raw and C identifiers.
11547   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11548
11549   # Check to see that the pipe works correctly.
11550   pipe_works=no
11551
11552   rm -f conftest*
11553   cat > conftest.$ac_ext <<EOF
11554 #ifdef __cplusplus
11555 extern "C" {
11556 #endif
11557 char nm_test_var;
11558 void nm_test_func(){}
11559 #ifdef __cplusplus
11560 }
11561 #endif
11562 int main(){nm_test_var='a';nm_test_func();return(0);}
11563 EOF
11564
11565   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11566   (eval $ac_compile) 2>&5
11567   ac_status=$?
11568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569   (exit $ac_status); }; then
11570     # Now try to grab the symbols.
11571     nlist=conftest.nm
11572     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11573   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11574   ac_status=$?
11575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576   (exit $ac_status); } && test -s "$nlist"; then
11577       # Try sorting and uniquifying the output.
11578       if sort "$nlist" | uniq > "$nlist"T; then
11579         mv -f "$nlist"T "$nlist"
11580       else
11581         rm -f "$nlist"T
11582       fi
11583
11584       # Make sure that we snagged all the symbols we need.
11585       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11586         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11587           cat <<EOF > conftest.$ac_ext
11588 #ifdef __cplusplus
11589 extern "C" {
11590 #endif
11591
11592 EOF
11593           # Now generate the symbol file.
11594           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11595
11596           cat <<EOF >> conftest.$ac_ext
11597 #if defined (__STDC__) && __STDC__
11598 # define lt_ptr_t void *
11599 #else
11600 # define lt_ptr_t char *
11601 # define const
11602 #endif
11603
11604 /* The mapping between symbol names and symbols. */
11605 const struct {
11606   const char *name;
11607   lt_ptr_t address;
11608 }
11609 lt_preloaded_symbols[] =
11610 {
11611 EOF
11612           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11613           cat <<\EOF >> conftest.$ac_ext
11614   {0, (lt_ptr_t) 0}
11615 };
11616
11617 #ifdef __cplusplus
11618 }
11619 #endif
11620 EOF
11621           # Now try linking the two files.
11622           mv conftest.$ac_objext conftstm.$ac_objext
11623           lt_save_LIBS="$LIBS"
11624           lt_save_CFLAGS="$CFLAGS"
11625           LIBS="conftstm.$ac_objext"
11626           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11627           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11628   (eval $ac_link) 2>&5
11629   ac_status=$?
11630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11632             pipe_works=yes
11633           fi
11634           LIBS="$lt_save_LIBS"
11635           CFLAGS="$lt_save_CFLAGS"
11636         else
11637           echo "cannot find nm_test_func in $nlist" >&5
11638         fi
11639       else
11640         echo "cannot find nm_test_var in $nlist" >&5
11641       fi
11642     else
11643       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11644     fi
11645   else
11646     echo "$progname: failed program was:" >&5
11647     cat conftest.$ac_ext >&5
11648   fi
11649   rm -f conftest* conftst*
11650
11651   # Do not use the global_symbol_pipe unless it works.
11652   if test "$pipe_works" = yes; then
11653     break
11654   else
11655     lt_cv_sys_global_symbol_pipe=
11656   fi
11657 done
11658
11659 fi
11660
11661 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11662   lt_cv_sys_global_symbol_to_cdecl=
11663 fi
11664 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11665   echo "$as_me:$LINENO: result: failed" >&5
11666 echo "${ECHO_T}failed" >&6
11667 else
11668   echo "$as_me:$LINENO: result: ok" >&5
11669 echo "${ECHO_T}ok" >&6
11670 fi
11671
11672 echo "$as_me:$LINENO: checking for objdir" >&5
11673 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11674 if test "${lt_cv_objdir+set}" = set; then
11675   echo $ECHO_N "(cached) $ECHO_C" >&6
11676 else
11677   rm -f .libs 2>/dev/null
11678 mkdir .libs 2>/dev/null
11679 if test -d .libs; then
11680   lt_cv_objdir=.libs
11681 else
11682   # MS-DOS does not allow filenames that begin with a dot.
11683   lt_cv_objdir=_libs
11684 fi
11685 rmdir .libs 2>/dev/null
11686 fi
11687 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11688 echo "${ECHO_T}$lt_cv_objdir" >&6
11689 objdir=$lt_cv_objdir
11690
11691
11692
11693
11694
11695 case $host_os in
11696 aix3*)
11697   # AIX sometimes has problems with the GCC collect2 program.  For some
11698   # reason, if we set the COLLECT_NAMES environment variable, the problems
11699   # vanish in a puff of smoke.
11700   if test "X${COLLECT_NAMES+set}" != Xset; then
11701     COLLECT_NAMES=
11702     export COLLECT_NAMES
11703   fi
11704   ;;
11705 esac
11706
11707 # Sed substitution that helps us do robust quoting.  It backslashifies
11708 # metacharacters that are still active within double-quoted strings.
11709 Xsed='sed -e s/^X//'
11710 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11711
11712 # Same as above, but do not quote variable references.
11713 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11714
11715 # Sed substitution to delay expansion of an escaped shell variable in a
11716 # double_quote_subst'ed string.
11717 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11718
11719 # Sed substitution to avoid accidental globbing in evaled expressions
11720 no_glob_subst='s/\*/\\\*/g'
11721
11722 # Constants:
11723 rm="rm -f"
11724
11725 # Global variables:
11726 default_ofile=mklib
11727 can_build_shared=yes
11728
11729 # All known linkers require a `.a' archive for static linking (except M$VC,
11730 # which needs '.lib').
11731 libext=a
11732 ltmain="$ac_aux_dir/ltmain.sh"
11733 ofile="$default_ofile"
11734 with_gnu_ld="$lt_cv_prog_gnu_ld"
11735
11736 if test -n "$ac_tool_prefix"; then
11737   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11738 set dummy ${ac_tool_prefix}ar; ac_word=$2
11739 echo "$as_me:$LINENO: checking for $ac_word" >&5
11740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11741 if test "${ac_cv_prog_AR+set}" = set; then
11742   echo $ECHO_N "(cached) $ECHO_C" >&6
11743 else
11744   if test -n "$AR"; then
11745   ac_cv_prog_AR="$AR" # Let the user override the test.
11746 else
11747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11749 do
11750   IFS=$as_save_IFS
11751   test -z "$as_dir" && as_dir=.
11752   for ac_exec_ext in '' $ac_executable_extensions; do
11753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11754     ac_cv_prog_AR="${ac_tool_prefix}ar"
11755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11756     break 2
11757   fi
11758 done
11759 done
11760
11761 fi
11762 fi
11763 AR=$ac_cv_prog_AR
11764 if test -n "$AR"; then
11765   echo "$as_me:$LINENO: result: $AR" >&5
11766 echo "${ECHO_T}$AR" >&6
11767 else
11768   echo "$as_me:$LINENO: result: no" >&5
11769 echo "${ECHO_T}no" >&6
11770 fi
11771
11772 fi
11773 if test -z "$ac_cv_prog_AR"; then
11774   ac_ct_AR=$AR
11775   # Extract the first word of "ar", so it can be a program name with args.
11776 set dummy ar; ac_word=$2
11777 echo "$as_me:$LINENO: checking for $ac_word" >&5
11778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11779 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11780   echo $ECHO_N "(cached) $ECHO_C" >&6
11781 else
11782   if test -n "$ac_ct_AR"; then
11783   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11784 else
11785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786 for as_dir in $PATH
11787 do
11788   IFS=$as_save_IFS
11789   test -z "$as_dir" && as_dir=.
11790   for ac_exec_ext in '' $ac_executable_extensions; do
11791   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11792     ac_cv_prog_ac_ct_AR="ar"
11793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11794     break 2
11795   fi
11796 done
11797 done
11798
11799   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11800 fi
11801 fi
11802 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11803 if test -n "$ac_ct_AR"; then
11804   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11805 echo "${ECHO_T}$ac_ct_AR" >&6
11806 else
11807   echo "$as_me:$LINENO: result: no" >&5
11808 echo "${ECHO_T}no" >&6
11809 fi
11810
11811   AR=$ac_ct_AR
11812 else
11813   AR="$ac_cv_prog_AR"
11814 fi
11815
11816 if test -n "$ac_tool_prefix"; then
11817   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11818 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11819 echo "$as_me:$LINENO: checking for $ac_word" >&5
11820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11821 if test "${ac_cv_prog_RANLIB+set}" = set; then
11822   echo $ECHO_N "(cached) $ECHO_C" >&6
11823 else
11824   if test -n "$RANLIB"; then
11825   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11826 else
11827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11828 for as_dir in $PATH
11829 do
11830   IFS=$as_save_IFS
11831   test -z "$as_dir" && as_dir=.
11832   for ac_exec_ext in '' $ac_executable_extensions; do
11833   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11834     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11836     break 2
11837   fi
11838 done
11839 done
11840
11841 fi
11842 fi
11843 RANLIB=$ac_cv_prog_RANLIB
11844 if test -n "$RANLIB"; then
11845   echo "$as_me:$LINENO: result: $RANLIB" >&5
11846 echo "${ECHO_T}$RANLIB" >&6
11847 else
11848   echo "$as_me:$LINENO: result: no" >&5
11849 echo "${ECHO_T}no" >&6
11850 fi
11851
11852 fi
11853 if test -z "$ac_cv_prog_RANLIB"; then
11854   ac_ct_RANLIB=$RANLIB
11855   # Extract the first word of "ranlib", so it can be a program name with args.
11856 set dummy ranlib; ac_word=$2
11857 echo "$as_me:$LINENO: checking for $ac_word" >&5
11858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11859 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11860   echo $ECHO_N "(cached) $ECHO_C" >&6
11861 else
11862   if test -n "$ac_ct_RANLIB"; then
11863   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11864 else
11865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866 for as_dir in $PATH
11867 do
11868   IFS=$as_save_IFS
11869   test -z "$as_dir" && as_dir=.
11870   for ac_exec_ext in '' $ac_executable_extensions; do
11871   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11872     ac_cv_prog_ac_ct_RANLIB="ranlib"
11873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11874     break 2
11875   fi
11876 done
11877 done
11878
11879   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11880 fi
11881 fi
11882 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11883 if test -n "$ac_ct_RANLIB"; then
11884   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11885 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11886 else
11887   echo "$as_me:$LINENO: result: no" >&5
11888 echo "${ECHO_T}no" >&6
11889 fi
11890
11891   RANLIB=$ac_ct_RANLIB
11892 else
11893   RANLIB="$ac_cv_prog_RANLIB"
11894 fi
11895
11896 if test -n "$ac_tool_prefix"; then
11897   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11898 set dummy ${ac_tool_prefix}strip; ac_word=$2
11899 echo "$as_me:$LINENO: checking for $ac_word" >&5
11900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11901 if test "${ac_cv_prog_STRIP+set}" = set; then
11902   echo $ECHO_N "(cached) $ECHO_C" >&6
11903 else
11904   if test -n "$STRIP"; then
11905   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11906 else
11907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11908 for as_dir in $PATH
11909 do
11910   IFS=$as_save_IFS
11911   test -z "$as_dir" && as_dir=.
11912   for ac_exec_ext in '' $ac_executable_extensions; do
11913   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11914     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11916     break 2
11917   fi
11918 done
11919 done
11920
11921 fi
11922 fi
11923 STRIP=$ac_cv_prog_STRIP
11924 if test -n "$STRIP"; then
11925   echo "$as_me:$LINENO: result: $STRIP" >&5
11926 echo "${ECHO_T}$STRIP" >&6
11927 else
11928   echo "$as_me:$LINENO: result: no" >&5
11929 echo "${ECHO_T}no" >&6
11930 fi
11931
11932 fi
11933 if test -z "$ac_cv_prog_STRIP"; then
11934   ac_ct_STRIP=$STRIP
11935   # Extract the first word of "strip", so it can be a program name with args.
11936 set dummy strip; ac_word=$2
11937 echo "$as_me:$LINENO: checking for $ac_word" >&5
11938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11939 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11940   echo $ECHO_N "(cached) $ECHO_C" >&6
11941 else
11942   if test -n "$ac_ct_STRIP"; then
11943   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11944 else
11945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11946 for as_dir in $PATH
11947 do
11948   IFS=$as_save_IFS
11949   test -z "$as_dir" && as_dir=.
11950   for ac_exec_ext in '' $ac_executable_extensions; do
11951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11952     ac_cv_prog_ac_ct_STRIP="strip"
11953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11954     break 2
11955   fi
11956 done
11957 done
11958
11959   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11960 fi
11961 fi
11962 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11963 if test -n "$ac_ct_STRIP"; then
11964   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11965 echo "${ECHO_T}$ac_ct_STRIP" >&6
11966 else
11967   echo "$as_me:$LINENO: result: no" >&5
11968 echo "${ECHO_T}no" >&6
11969 fi
11970
11971   STRIP=$ac_ct_STRIP
11972 else
11973   STRIP="$ac_cv_prog_STRIP"
11974 fi
11975
11976
11977 old_CC="$CC"
11978 old_CFLAGS="$CFLAGS"
11979
11980 # Set sane defaults for various variables
11981 test -z "$AR" && AR=ar
11982 test -z "$AR_FLAGS" && AR_FLAGS=cru
11983 test -z "$AS" && AS=as
11984 test -z "$CC" && CC=cc
11985 test -z "$LTCC" && LTCC=$CC
11986 test -z "$DLLTOOL" && DLLTOOL=dlltool
11987 test -z "$LD" && LD=ld
11988 test -z "$LN_S" && LN_S="ln -s"
11989 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11990 test -z "$NM" && NM=nm
11991 test -z "$SED" && SED=sed
11992 test -z "$OBJDUMP" && OBJDUMP=objdump
11993 test -z "$RANLIB" && RANLIB=:
11994 test -z "$STRIP" && STRIP=:
11995 test -z "$ac_objext" && ac_objext=o
11996
11997 # Determine commands to create old-style static archives.
11998 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11999 old_postinstall_cmds='chmod 644 $oldlib'
12000 old_postuninstall_cmds=
12001
12002 if test -n "$RANLIB"; then
12003   case $host_os in
12004   openbsd*)
12005     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
12006     ;;
12007   *)
12008     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
12009     ;;
12010   esac
12011   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12012 fi
12013
12014 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12015
12016 # Only perform the check for file, if the check method requires it
12017 case $deplibs_check_method in
12018 file_magic*)
12019   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12020     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12021 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
12022 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12023   echo $ECHO_N "(cached) $ECHO_C" >&6
12024 else
12025   case $MAGIC_CMD in
12026 [\\/*] |  ?:[\\/]*)
12027   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12028   ;;
12029 *)
12030   lt_save_MAGIC_CMD="$MAGIC_CMD"
12031   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12032   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12033   for ac_dir in $ac_dummy; do
12034     IFS="$lt_save_ifs"
12035     test -z "$ac_dir" && ac_dir=.
12036     if test -f $ac_dir/${ac_tool_prefix}file; then
12037       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12038       if test -n "$file_magic_test_file"; then
12039         case $deplibs_check_method in
12040         "file_magic "*)
12041           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12042           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12043           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12044             $EGREP "$file_magic_regex" > /dev/null; then
12045             :
12046           else
12047             cat <<EOF 1>&2
12048
12049 *** Warning: the command libtool uses to detect shared libraries,
12050 *** $file_magic_cmd, produces output that libtool cannot recognize.
12051 *** The result is that libtool may fail to recognize shared libraries
12052 *** as such.  This will affect the creation of libtool libraries that
12053 *** depend on shared libraries, but programs linked with such libtool
12054 *** libraries will work regardless of this problem.  Nevertheless, you
12055 *** may want to report the problem to your system manager and/or to
12056 *** bug-libtool@gnu.org
12057
12058 EOF
12059           fi ;;
12060         esac
12061       fi
12062       break
12063     fi
12064   done
12065   IFS="$lt_save_ifs"
12066   MAGIC_CMD="$lt_save_MAGIC_CMD"
12067   ;;
12068 esac
12069 fi
12070
12071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12072 if test -n "$MAGIC_CMD"; then
12073   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12074 echo "${ECHO_T}$MAGIC_CMD" >&6
12075 else
12076   echo "$as_me:$LINENO: result: no" >&5
12077 echo "${ECHO_T}no" >&6
12078 fi
12079
12080 if test -z "$lt_cv_path_MAGIC_CMD"; then
12081   if test -n "$ac_tool_prefix"; then
12082     echo "$as_me:$LINENO: checking for file" >&5
12083 echo $ECHO_N "checking for file... $ECHO_C" >&6
12084 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12085   echo $ECHO_N "(cached) $ECHO_C" >&6
12086 else
12087   case $MAGIC_CMD in
12088 [\\/*] |  ?:[\\/]*)
12089   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12090   ;;
12091 *)
12092   lt_save_MAGIC_CMD="$MAGIC_CMD"
12093   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12094   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12095   for ac_dir in $ac_dummy; do
12096     IFS="$lt_save_ifs"
12097     test -z "$ac_dir" && ac_dir=.
12098     if test -f $ac_dir/file; then
12099       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12100       if test -n "$file_magic_test_file"; then
12101         case $deplibs_check_method in
12102         "file_magic "*)
12103           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12104           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12105           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12106             $EGREP "$file_magic_regex" > /dev/null; then
12107             :
12108           else
12109             cat <<EOF 1>&2
12110
12111 *** Warning: the command libtool uses to detect shared libraries,
12112 *** $file_magic_cmd, produces output that libtool cannot recognize.
12113 *** The result is that libtool may fail to recognize shared libraries
12114 *** as such.  This will affect the creation of libtool libraries that
12115 *** depend on shared libraries, but programs linked with such libtool
12116 *** libraries will work regardless of this problem.  Nevertheless, you
12117 *** may want to report the problem to your system manager and/or to
12118 *** bug-libtool@gnu.org
12119
12120 EOF
12121           fi ;;
12122         esac
12123       fi
12124       break
12125     fi
12126   done
12127   IFS="$lt_save_ifs"
12128   MAGIC_CMD="$lt_save_MAGIC_CMD"
12129   ;;
12130 esac
12131 fi
12132
12133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12134 if test -n "$MAGIC_CMD"; then
12135   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12136 echo "${ECHO_T}$MAGIC_CMD" >&6
12137 else
12138   echo "$as_me:$LINENO: result: no" >&5
12139 echo "${ECHO_T}no" >&6
12140 fi
12141
12142   else
12143     MAGIC_CMD=:
12144   fi
12145 fi
12146
12147   fi
12148   ;;
12149 esac
12150
12151 enable_dlopen=yes
12152 enable_win32_dll=no
12153
12154 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12155 if test "${enable_libtool_lock+set}" = set; then
12156   enableval="$enable_libtool_lock"
12157
12158 fi;
12159 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12160
12161
12162 # Check whether --with-pic or --without-pic was given.
12163 if test "${with_pic+set}" = set; then
12164   withval="$with_pic"
12165   pic_mode="$withval"
12166 else
12167   pic_mode=default
12168 fi;
12169 test -z "$pic_mode" && pic_mode=default
12170
12171 # Use C for the default configuration in the libtool script
12172 tagname=
12173 lt_save_CC="$CC"
12174 ac_ext=c
12175 ac_cpp='$CPP $CPPFLAGS'
12176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12179
12180
12181 # Source file extension for C test sources.
12182 ac_ext=c
12183
12184 # Object file extension for compiled C test sources.
12185 objext=o
12186 objext=$objext
12187
12188 # Code to be used in simple compile tests
12189 lt_simple_compile_test_code="int some_variable = 0;\n"
12190
12191 # Code to be used in simple link tests
12192 lt_simple_link_test_code='int main(){return(0);}\n'
12193
12194
12195 # If no C compiler was specified, use CC.
12196 LTCC=${LTCC-"$CC"}
12197
12198 # Allow CC to be a program name with arguments.
12199 compiler=$CC
12200
12201
12202 #
12203 # Check for any special shared library compilation flags.
12204 #
12205 lt_prog_cc_shlib=
12206 if test "$GCC" = no; then
12207   case $host_os in
12208   sco3.2v5*)
12209     lt_prog_cc_shlib='-belf'
12210     ;;
12211   esac
12212 fi
12213 if test -n "$lt_prog_cc_shlib"; then
12214   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12215 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12216   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
12217   else
12218     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12219 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12220     lt_cv_prog_cc_can_build_shared=no
12221   fi
12222 fi
12223
12224
12225 #
12226 # Check to make sure the static flag actually works.
12227 #
12228 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12229 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12230 if test "${lt_prog_compiler_static_works+set}" = set; then
12231   echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233   lt_prog_compiler_static_works=no
12234    save_LDFLAGS="$LDFLAGS"
12235    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12236    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12237    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12238      # The compiler can only warn and ignore the option if not recognized
12239      # So say no if there are warnings
12240      if test -s conftest.err; then
12241        # Append any errors to the config.log.
12242        cat conftest.err 1>&5
12243      else
12244        lt_prog_compiler_static_works=yes
12245      fi
12246    fi
12247    $rm conftest*
12248    LDFLAGS="$save_LDFLAGS"
12249
12250 fi
12251 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12252 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12253
12254 if test x"$lt_prog_compiler_static_works" = xyes; then
12255     :
12256 else
12257     lt_prog_compiler_static=
12258 fi
12259
12260
12261
12262
12263 lt_prog_compiler_no_builtin_flag=
12264
12265 if test "$GCC" = yes; then
12266   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12267
12268
12269 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12270 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12271 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12272   echo $ECHO_N "(cached) $ECHO_C" >&6
12273 else
12274   lt_cv_prog_compiler_rtti_exceptions=no
12275   ac_outfile=conftest.$ac_objext
12276    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12277    lt_compiler_flag="-fno-rtti -fno-exceptions"
12278    # Insert the option either (1) after the last *FLAGS variable, or
12279    # (2) before a word containing "conftest.", or (3) at the end.
12280    # Note that $ac_compile itself does not contain backslashes and begins
12281    # with a dollar sign (not a hyphen), so the echo should work correctly.
12282    # The option is referenced via a variable to avoid confusing sed.
12283    lt_compile=`echo "$ac_compile" | $SED \
12284    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12285    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12286    -e 's:$: $lt_compiler_flag:'`
12287    (eval echo "\"\$as_me:12287: $lt_compile\"" >&5)
12288    (eval "$lt_compile" 2>conftest.err)
12289    ac_status=$?
12290    cat conftest.err >&5
12291    echo "$as_me:12291: \$? = $ac_status" >&5
12292    if (exit $ac_status) && test -s "$ac_outfile"; then
12293      # The compiler can only warn and ignore the option if not recognized
12294      # So say no if there are warnings
12295      if test ! -s conftest.err; then
12296        lt_cv_prog_compiler_rtti_exceptions=yes
12297      fi
12298    fi
12299    $rm conftest*
12300
12301 fi
12302 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12303 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12304
12305 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12306     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12307 else
12308     :
12309 fi
12310
12311 fi
12312
12313 lt_prog_compiler_wl=
12314 lt_prog_compiler_pic=
12315 lt_prog_compiler_static=
12316
12317 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12318 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12319
12320   if test "$GCC" = yes; then
12321     lt_prog_compiler_wl='-Wl,'
12322     lt_prog_compiler_static='-static'
12323
12324     case $host_os in
12325       aix*)
12326       # All AIX code is PIC.
12327       if test "$host_cpu" = ia64; then
12328         # AIX 5 now supports IA64 processor
12329         lt_prog_compiler_static='-Bstatic'
12330       fi
12331       ;;
12332
12333     amigaos*)
12334       # FIXME: we need at least 68020 code to build shared libraries, but
12335       # adding the `-m68020' flag to GCC prevents building anything better,
12336       # like `-m68040'.
12337       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12338       ;;
12339
12340     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12341       # PIC is the default for these OSes.
12342       ;;
12343
12344     mingw* | pw32* | os2*)
12345       # This hack is so that the source file can tell whether it is being
12346       # built for inclusion in a dll (and should export symbols for example).
12347       lt_prog_compiler_pic='-DDLL_EXPORT'
12348       ;;
12349
12350     darwin* | rhapsody*)
12351       # PIC is the default on this platform
12352       # Common symbols not allowed in MH_DYLIB files
12353       lt_prog_compiler_pic='-fno-common'
12354       ;;
12355
12356     msdosdjgpp*)
12357       # Just because we use GCC doesn't mean we suddenly get shared libraries
12358       # on systems that don't support them.
12359       lt_prog_compiler_can_build_shared=no
12360       enable_shared=no
12361       ;;
12362
12363     sysv4*MP*)
12364       if test -d /usr/nec; then
12365         lt_prog_compiler_pic=-Kconform_pic
12366       fi
12367       ;;
12368
12369     hpux*)
12370       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12371       # not for PA HP-UX.
12372       case "$host_cpu" in
12373       hppa*64*|ia64*)
12374         # +Z the default
12375         ;;
12376       *)
12377         lt_prog_compiler_pic='-fPIC'
12378         ;;
12379       esac
12380       ;;
12381
12382     *)
12383       lt_prog_compiler_pic='-fPIC'
12384       ;;
12385     esac
12386   else
12387     # PORTME Check for flag to pass linker flags through the system compiler.
12388     case $host_os in
12389     aix*)
12390       lt_prog_compiler_wl='-Wl,'
12391       if test "$host_cpu" = ia64; then
12392         # AIX 5 now supports IA64 processor
12393         lt_prog_compiler_static='-Bstatic'
12394       else
12395         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12396       fi
12397       ;;
12398       darwin*)
12399         # PIC is the default on this platform
12400         # Common symbols not allowed in MH_DYLIB files
12401        case "$cc_basename" in
12402          xlc*)
12403          lt_prog_compiler_pic='-qnocommon'
12404          lt_prog_compiler_wl='-Wl,'
12405          ;;
12406        esac
12407        ;;
12408
12409     mingw* | pw32* | os2*)
12410       # This hack is so that the source file can tell whether it is being
12411       # built for inclusion in a dll (and should export symbols for example).
12412       lt_prog_compiler_pic='-DDLL_EXPORT'
12413       ;;
12414
12415     hpux9* | hpux10* | hpux11*)
12416       lt_prog_compiler_wl='-Wl,'
12417       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12418       # not for PA HP-UX.
12419       case "$host_cpu" in
12420       hppa*64*|ia64*)
12421         # +Z the default
12422         ;;
12423       *)
12424         lt_prog_compiler_pic='+Z'
12425         ;;
12426       esac
12427       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12428       lt_prog_compiler_static='${wl}-a ${wl}archive'
12429       ;;
12430
12431     irix5* | irix6* | nonstopux*)
12432       lt_prog_compiler_wl='-Wl,'
12433       # PIC (with -KPIC) is the default.
12434       lt_prog_compiler_static='-non_shared'
12435       ;;
12436
12437     newsos6)
12438       lt_prog_compiler_pic='-KPIC'
12439       lt_prog_compiler_static='-Bstatic'
12440       ;;
12441
12442     linux*)
12443       case $CC in
12444       icc* | ecc*)
12445         lt_prog_compiler_wl='-Wl,'
12446         lt_prog_compiler_pic='-KPIC'
12447         lt_prog_compiler_static='-static'
12448         ;;
12449       ccc*)
12450         lt_prog_compiler_wl='-Wl,'
12451         # All Alpha code is PIC.
12452         lt_prog_compiler_static='-non_shared'
12453         ;;
12454       esac
12455       ;;
12456
12457     osf3* | osf4* | osf5*)
12458       lt_prog_compiler_wl='-Wl,'
12459       # All OSF/1 code is PIC.
12460       lt_prog_compiler_static='-non_shared'
12461       ;;
12462
12463     sco3.2v5*)
12464       lt_prog_compiler_pic='-Kpic'
12465       lt_prog_compiler_static='-dn'
12466       ;;
12467
12468     solaris*)
12469       lt_prog_compiler_wl='-Wl,'
12470       lt_prog_compiler_pic='-KPIC'
12471       lt_prog_compiler_static='-Bstatic'
12472       ;;
12473
12474     sunos4*)
12475       lt_prog_compiler_wl='-Qoption ld '
12476       lt_prog_compiler_pic='-PIC'
12477       lt_prog_compiler_static='-Bstatic'
12478       ;;
12479
12480     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12481       lt_prog_compiler_wl='-Wl,'
12482       lt_prog_compiler_pic='-KPIC'
12483       lt_prog_compiler_static='-Bstatic'
12484       ;;
12485
12486     sysv4*MP*)
12487       if test -d /usr/nec ;then
12488         lt_prog_compiler_pic='-Kconform_pic'
12489         lt_prog_compiler_static='-Bstatic'
12490       fi
12491       ;;
12492
12493     uts4*)
12494       lt_prog_compiler_pic='-pic'
12495       lt_prog_compiler_static='-Bstatic'
12496       ;;
12497
12498     *)
12499       lt_prog_compiler_can_build_shared=no
12500       ;;
12501     esac
12502   fi
12503
12504 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12505 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12506
12507 #
12508 # Check to make sure the PIC flag actually works.
12509 #
12510 if test -n "$lt_prog_compiler_pic"; then
12511
12512 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12513 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12514 if test "${lt_prog_compiler_pic_works+set}" = set; then
12515   echo $ECHO_N "(cached) $ECHO_C" >&6
12516 else
12517   lt_prog_compiler_pic_works=no
12518   ac_outfile=conftest.$ac_objext
12519    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12520    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12521    # Insert the option either (1) after the last *FLAGS variable, or
12522    # (2) before a word containing "conftest.", or (3) at the end.
12523    # Note that $ac_compile itself does not contain backslashes and begins
12524    # with a dollar sign (not a hyphen), so the echo should work correctly.
12525    # The option is referenced via a variable to avoid confusing sed.
12526    lt_compile=`echo "$ac_compile" | $SED \
12527    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12528    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12529    -e 's:$: $lt_compiler_flag:'`
12530    (eval echo "\"\$as_me:12530: $lt_compile\"" >&5)
12531    (eval "$lt_compile" 2>conftest.err)
12532    ac_status=$?
12533    cat conftest.err >&5
12534    echo "$as_me:12534: \$? = $ac_status" >&5
12535    if (exit $ac_status) && test -s "$ac_outfile"; then
12536      # The compiler can only warn and ignore the option if not recognized
12537      # So say no if there are warnings
12538      if test ! -s conftest.err; then
12539        lt_prog_compiler_pic_works=yes
12540      fi
12541    fi
12542    $rm conftest*
12543
12544 fi
12545 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12546 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12547
12548 if test x"$lt_prog_compiler_pic_works" = xyes; then
12549     case $lt_prog_compiler_pic in
12550      "" | " "*) ;;
12551      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12552      esac
12553 else
12554     lt_prog_compiler_pic=
12555      lt_prog_compiler_can_build_shared=no
12556 fi
12557
12558 fi
12559 case "$host_os" in
12560   # For platforms which do not support PIC, -DPIC is meaningless:
12561   *djgpp*)
12562     lt_prog_compiler_pic=
12563     ;;
12564   *)
12565     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12566     ;;
12567 esac
12568
12569 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12570 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12571 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12572   echo $ECHO_N "(cached) $ECHO_C" >&6
12573 else
12574   lt_cv_prog_compiler_c_o=no
12575    $rm -r conftest 2>/dev/null
12576    mkdir conftest
12577    cd conftest
12578    mkdir out
12579    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12580
12581    lt_compiler_flag="-o out/conftest2.$ac_objext"
12582    # Insert the option either (1) after the last *FLAGS variable, or
12583    # (2) before a word containing "conftest.", or (3) at the end.
12584    # Note that $ac_compile itself does not contain backslashes and begins
12585    # with a dollar sign (not a hyphen), so the echo should work correctly.
12586    lt_compile=`echo "$ac_compile" | $SED \
12587    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12588    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12589    -e 's:$: $lt_compiler_flag:'`
12590    (eval echo "\"\$as_me:12590: $lt_compile\"" >&5)
12591    (eval "$lt_compile" 2>out/conftest.err)
12592    ac_status=$?
12593    cat out/conftest.err >&5
12594    echo "$as_me:12594: \$? = $ac_status" >&5
12595    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12596    then
12597      # The compiler can only warn and ignore the option if not recognized
12598      # So say no if there are warnings
12599      if test ! -s out/conftest.err; then
12600        lt_cv_prog_compiler_c_o=yes
12601      fi
12602    fi
12603    chmod u+w .
12604    $rm conftest*
12605    # SGI C++ compiler will create directory out/ii_files/ for
12606    # template instantiation
12607    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12608    $rm out/* && rmdir out
12609    cd ..
12610    rmdir conftest
12611    $rm conftest*
12612
12613 fi
12614 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12615 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12616
12617
12618 hard_links="nottested"
12619 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12620   # do not overwrite the value of need_locks provided by the user
12621   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12622 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12623   hard_links=yes
12624   $rm conftest*
12625   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12626   touch conftest.a
12627   ln conftest.a conftest.b 2>&5 || hard_links=no
12628   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12629   echo "$as_me:$LINENO: result: $hard_links" >&5
12630 echo "${ECHO_T}$hard_links" >&6
12631   if test "$hard_links" = no; then
12632     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12633 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12634     need_locks=warn
12635   fi
12636 else
12637   need_locks=no
12638 fi
12639
12640 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12641 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12642
12643   runpath_var=
12644   allow_undefined_flag=
12645   enable_shared_with_static_runtimes=no
12646   archive_cmds=
12647   archive_expsym_cmds=
12648   old_archive_From_new_cmds=
12649   old_archive_from_expsyms_cmds=
12650   export_dynamic_flag_spec=
12651   whole_archive_flag_spec=
12652   thread_safe_flag_spec=
12653   hardcode_libdir_flag_spec=
12654   hardcode_libdir_flag_spec_ld=
12655   hardcode_libdir_separator=
12656   hardcode_direct=no
12657   hardcode_minus_L=no
12658   hardcode_shlibpath_var=unsupported
12659   link_all_deplibs=unknown
12660   hardcode_automatic=no
12661   module_cmds=
12662   module_expsym_cmds=
12663   always_export_symbols=no
12664   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12665   # include_expsyms should be a list of space-separated symbols to be *always*
12666   # included in the symbol list
12667   include_expsyms=
12668   # exclude_expsyms can be an extended regexp of symbols to exclude
12669   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12670   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12671   # as well as any symbol that contains `d'.
12672   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12673   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12674   # platforms (ab)use it in PIC code, but their linkers get confused if
12675   # the symbol is explicitly referenced.  Since portable code cannot
12676   # rely on this symbol name, it's probably fine to never include it in
12677   # preloaded symbol tables.
12678   extract_expsyms_cmds=
12679
12680   case $host_os in
12681   cygwin* | mingw* | pw32*)
12682     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12683     # When not using gcc, we currently assume that we are using
12684     # Microsoft Visual C++.
12685     if test "$GCC" != yes; then
12686       with_gnu_ld=no
12687     fi
12688     ;;
12689   openbsd*)
12690     with_gnu_ld=no
12691     ;;
12692   esac
12693
12694   ld_shlibs=yes
12695   if test "$with_gnu_ld" = yes; then
12696     # If archive_cmds runs LD, not CC, wlarc should be empty
12697     wlarc='${wl}'
12698
12699     # See if GNU ld supports shared libraries.
12700     case $host_os in
12701     aix3* | aix4* | aix5*)
12702       # On AIX/PPC, the GNU linker is very broken
12703       if test "$host_cpu" != ia64; then
12704         ld_shlibs=no
12705         cat <<EOF 1>&2
12706
12707 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12708 *** to be unable to reliably create shared libraries on AIX.
12709 *** Therefore, libtool is disabling shared libraries support.  If you
12710 *** really care for shared libraries, you may want to modify your PATH
12711 *** so that a non-GNU linker is found, and then restart.
12712
12713 EOF
12714       fi
12715       ;;
12716
12717     amigaos*)
12718       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)'
12719       hardcode_libdir_flag_spec='-L$libdir'
12720       hardcode_minus_L=yes
12721
12722       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12723       # that the semantics of dynamic libraries on AmigaOS, at least up
12724       # to version 4, is to share data among multiple programs linked
12725       # with the same dynamic library.  Since this doesn't match the
12726       # behavior of shared libraries on other platforms, we can't use
12727       # them.
12728       ld_shlibs=no
12729       ;;
12730
12731     beos*)
12732       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12733         allow_undefined_flag=unsupported
12734         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12735         # support --undefined.  This deserves some investigation.  FIXME
12736         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12737       else
12738         ld_shlibs=no
12739       fi
12740       ;;
12741
12742     cygwin* | mingw* | pw32*)
12743       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12744       # as there is no search path for DLLs.
12745       hardcode_libdir_flag_spec='-L$libdir'
12746       allow_undefined_flag=unsupported
12747       always_export_symbols=no
12748       enable_shared_with_static_runtimes=yes
12749       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12750
12751       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12752         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12753         # If the export-symbols file already is a .def file (1st line
12754         # is EXPORTS), use it as is; otherwise, prepend...
12755         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12756           cp $export_symbols $output_objdir/$soname.def;
12757         else
12758           echo EXPORTS > $output_objdir/$soname.def;
12759           cat $export_symbols >> $output_objdir/$soname.def;
12760         fi~
12761         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12762       else
12763         ld_shlibs=no
12764       fi
12765       ;;
12766
12767     netbsd*)
12768       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12769         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12770         wlarc=
12771       else
12772         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12773         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12774       fi
12775       ;;
12776
12777     solaris* | sysv5*)
12778       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12779         ld_shlibs=no
12780         cat <<EOF 1>&2
12781
12782 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12783 *** create shared libraries on Solaris systems.  Therefore, libtool
12784 *** is disabling shared libraries support.  We urge you to upgrade GNU
12785 *** binutils to release 2.9.1 or newer.  Another option is to modify
12786 *** your PATH or compiler configuration so that the native linker is
12787 *** used, and then restart.
12788
12789 EOF
12790       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12791         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12792         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12793       else
12794         ld_shlibs=no
12795       fi
12796       ;;
12797
12798     sunos4*)
12799       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12800       wlarc=
12801       hardcode_direct=yes
12802       hardcode_shlibpath_var=no
12803       ;;
12804
12805   linux*)
12806     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12807         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12808         archive_cmds="$tmp_archive_cmds"
12809       supports_anon_versioning=no
12810       case `$LD -v 2>/dev/null` in
12811         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12812         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12813         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12814         *\ 2.11.*) ;; # other 2.11 versions
12815         *) supports_anon_versioning=yes ;;
12816       esac
12817       if test $supports_anon_versioning = yes; then
12818         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12819 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12820 $echo "local: *; };" >> $output_objdir/$libname.ver~
12821         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12822       else
12823         archive_expsym_cmds="$tmp_archive_cmds"
12824       fi
12825     else
12826       ld_shlibs=no
12827     fi
12828     ;;
12829
12830     *)
12831       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12832         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12833         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12834       else
12835         ld_shlibs=no
12836       fi
12837       ;;
12838     esac
12839
12840     if test "$ld_shlibs" = yes; then
12841       runpath_var=LD_RUN_PATH
12842       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12843       export_dynamic_flag_spec='${wl}--export-dynamic'
12844       # ancient GNU ld didn't support --whole-archive et. al.
12845       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12846         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12847       else
12848         whole_archive_flag_spec=
12849       fi
12850     fi
12851   else
12852     # PORTME fill in a description of your system's linker (not GNU ld)
12853     case $host_os in
12854     aix3*)
12855       allow_undefined_flag=unsupported
12856       always_export_symbols=yes
12857       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'
12858       # Note: this linker hardcodes the directories in LIBPATH if there
12859       # are no directories specified by -L.
12860       hardcode_minus_L=yes
12861       if test "$GCC" = yes && test -z "$link_static_flag"; then
12862         # Neither direct hardcoding nor static linking is supported with a
12863         # broken collect2.
12864         hardcode_direct=unsupported
12865       fi
12866       ;;
12867
12868     aix4* | aix5*)
12869       if test "$host_cpu" = ia64; then
12870         # On IA64, the linker does run time linking by default, so we don't
12871         # have to do anything special.
12872         aix_use_runtimelinking=no
12873         exp_sym_flag='-Bexport'
12874         no_entry_flag=""
12875       else
12876         # If we're using GNU nm, then we don't want the "-C" option.
12877         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12878         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12879           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'
12880         else
12881           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'
12882         fi
12883         aix_use_runtimelinking=no
12884
12885         # Test if we are trying to use run time linking or normal
12886         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12887         # need to do runtime linking.
12888         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12889           for ld_flag in $LDFLAGS; do
12890           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12891             aix_use_runtimelinking=yes
12892             break
12893           fi
12894           done
12895         esac
12896
12897         exp_sym_flag='-bexport'
12898         no_entry_flag='-bnoentry'
12899       fi
12900
12901       # When large executables or shared objects are built, AIX ld can
12902       # have problems creating the table of contents.  If linking a library
12903       # or program results in "error TOC overflow" add -mminimal-toc to
12904       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12905       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12906
12907       archive_cmds=''
12908       hardcode_direct=yes
12909       hardcode_libdir_separator=':'
12910       link_all_deplibs=yes
12911
12912       if test "$GCC" = yes; then
12913         case $host_os in aix4.012|aix4.012.*)
12914         # We only want to do this on AIX 4.2 and lower, the check
12915         # below for broken collect2 doesn't work under 4.3+
12916           collect2name=`${CC} -print-prog-name=collect2`
12917           if test -f "$collect2name" && \
12918            strings "$collect2name" | grep resolve_lib_name >/dev/null
12919           then
12920           # We have reworked collect2
12921           hardcode_direct=yes
12922           else
12923           # We have old collect2
12924           hardcode_direct=unsupported
12925           # It fails to find uninstalled libraries when the uninstalled
12926           # path is not listed in the libpath.  Setting hardcode_minus_L
12927           # to unsupported forces relinking
12928           hardcode_minus_L=yes
12929           hardcode_libdir_flag_spec='-L$libdir'
12930           hardcode_libdir_separator=
12931           fi
12932         esac
12933         shared_flag='-shared'
12934       else
12935         # not using gcc
12936         if test "$host_cpu" = ia64; then
12937         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12938         # chokes on -Wl,-G. The following line is correct:
12939           shared_flag='-G'
12940         else
12941         if test "$aix_use_runtimelinking" = yes; then
12942             shared_flag='${wl}-G'
12943           else
12944             shared_flag='${wl}-bM:SRE'
12945         fi
12946         fi
12947       fi
12948
12949       # It seems that -bexpall does not export symbols beginning with
12950       # underscore (_), so it is better to generate a list of symbols to export.
12951       always_export_symbols=yes
12952       if test "$aix_use_runtimelinking" = yes; then
12953         # Warning - without using the other runtime loading flags (-brtl),
12954         # -berok will link without error, but may produce a broken library.
12955         allow_undefined_flag='-berok'
12956        # Determine the default libpath from the value encoded in an empty executable.
12957        cat >conftest.$ac_ext <<_ACEOF
12958 /* confdefs.h.  */
12959 _ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h.  */
12963
12964 int
12965 main ()
12966 {
12967
12968   ;
12969   return 0;
12970 }
12971 _ACEOF
12972 rm -f conftest.$ac_objext conftest$ac_exeext
12973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12974   (eval $ac_link) 2>conftest.er1
12975   ac_status=$?
12976   grep -v '^ *+' conftest.er1 >conftest.err
12977   rm -f conftest.er1
12978   cat conftest.err >&5
12979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980   (exit $ac_status); } &&
12981          { ac_try='test -z "$ac_c_werror_flag"
12982                          || test ! -s conftest.err'
12983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12984   (eval $ac_try) 2>&5
12985   ac_status=$?
12986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987   (exit $ac_status); }; } &&
12988          { ac_try='test -s conftest$ac_exeext'
12989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990   (eval $ac_try) 2>&5
12991   ac_status=$?
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); }; }; then
12994
12995 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12996 }'`
12997 # Check for a 64-bit object if we didn't find anything.
12998 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; }
12999 }'`; fi
13000 else
13001   echo "$as_me: failed program was:" >&5
13002 sed 's/^/| /' conftest.$ac_ext >&5
13003
13004 fi
13005 rm -f conftest.err conftest.$ac_objext \
13006       conftest$ac_exeext conftest.$ac_ext
13007 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13008
13009        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13010         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"
13011        else
13012         if test "$host_cpu" = ia64; then
13013           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13014           allow_undefined_flag="-z nodefs"
13015           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"
13016         else
13017          # Determine the default libpath from the value encoded in an empty executable.
13018          cat >conftest.$ac_ext <<_ACEOF
13019 /* confdefs.h.  */
13020 _ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h.  */
13024
13025 int
13026 main ()
13027 {
13028
13029   ;
13030   return 0;
13031 }
13032 _ACEOF
13033 rm -f conftest.$ac_objext conftest$ac_exeext
13034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13035   (eval $ac_link) 2>conftest.er1
13036   ac_status=$?
13037   grep -v '^ *+' conftest.er1 >conftest.err
13038   rm -f conftest.er1
13039   cat conftest.err >&5
13040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041   (exit $ac_status); } &&
13042          { ac_try='test -z "$ac_c_werror_flag"
13043                          || test ! -s conftest.err'
13044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13045   (eval $ac_try) 2>&5
13046   ac_status=$?
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); }; } &&
13049          { ac_try='test -s conftest$ac_exeext'
13050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051   (eval $ac_try) 2>&5
13052   ac_status=$?
13053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054   (exit $ac_status); }; }; then
13055
13056 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13057 }'`
13058 # Check for a 64-bit object if we didn't find anything.
13059 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; }
13060 }'`; fi
13061 else
13062   echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.$ac_ext >&5
13064
13065 fi
13066 rm -f conftest.err conftest.$ac_objext \
13067       conftest$ac_exeext conftest.$ac_ext
13068 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13069
13070          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13071           # Warning - without using the other run time loading flags,
13072           # -berok will link without error, but may produce a broken library.
13073           no_undefined_flag=' ${wl}-bernotok'
13074           allow_undefined_flag=' ${wl}-berok'
13075           # -bexpall does not export symbols beginning with underscore (_)
13076           always_export_symbols=yes
13077           # Exported symbols can be pulled into shared objects from archives
13078           whole_archive_flag_spec=' '
13079           archive_cmds_need_lc=yes
13080           # This is similar to how AIX traditionally builds it's shared libraries.
13081           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'
13082         fi
13083       fi
13084       ;;
13085
13086     amigaos*)
13087       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)'
13088       hardcode_libdir_flag_spec='-L$libdir'
13089       hardcode_minus_L=yes
13090       # see comment about different semantics on the GNU ld section
13091       ld_shlibs=no
13092       ;;
13093
13094     bsdi[45]*)
13095       export_dynamic_flag_spec=-rdynamic
13096       ;;
13097
13098     cygwin* | mingw* | pw32*)
13099       # When not using gcc, we currently assume that we are using
13100       # Microsoft Visual C++.
13101       # hardcode_libdir_flag_spec is actually meaningless, as there is
13102       # no search path for DLLs.
13103       hardcode_libdir_flag_spec=' '
13104       allow_undefined_flag=unsupported
13105       # Tell ltmain to make .lib files, not .a files.
13106       libext=lib
13107       # Tell ltmain to make .dll files, not .so files.
13108       shrext_cmds=".dll"
13109       # FIXME: Setting linknames here is a bad hack.
13110       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13111       # The linker will automatically build a .lib file if we build a DLL.
13112       old_archive_From_new_cmds='true'
13113       # FIXME: Should let the user specify the lib program.
13114       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
13115       fix_srcfile_path='`cygpath -w "$srcfile"`'
13116       enable_shared_with_static_runtimes=yes
13117       ;;
13118
13119     darwin* | rhapsody*)
13120       case "$host_os" in
13121         rhapsody* | darwin1.[012])
13122          allow_undefined_flag='${wl}-undefined ${wl}suppress'
13123          ;;
13124        *) # Darwin 1.3 on
13125          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13126            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13127          else
13128            case ${MACOSX_DEPLOYMENT_TARGET} in
13129              10.[012])
13130                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13131                ;;
13132              10.*)
13133                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
13134                ;;
13135            esac
13136          fi
13137          ;;
13138       esac
13139       archive_cmds_need_lc=no
13140       hardcode_direct=no
13141       hardcode_automatic=yes
13142       hardcode_shlibpath_var=unsupported
13143       whole_archive_flag_spec=''
13144       link_all_deplibs=yes
13145     if test "$GCC" = yes ; then
13146         output_verbose_link_cmd='echo'
13147         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13148       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13149       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13150       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}'
13151       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}'
13152     else
13153       case "$cc_basename" in
13154         xlc*)
13155          output_verbose_link_cmd='echo'
13156          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13157          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13158           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13159          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}'
13160           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}'
13161           ;;
13162        *)
13163          ld_shlibs=no
13164           ;;
13165       esac
13166     fi
13167       ;;
13168
13169     dgux*)
13170       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13171       hardcode_libdir_flag_spec='-L$libdir'
13172       hardcode_shlibpath_var=no
13173       ;;
13174
13175     freebsd1*)
13176       ld_shlibs=no
13177       ;;
13178
13179     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13180     # support.  Future versions do this automatically, but an explicit c++rt0.o
13181     # does not break anything, and helps significantly (at the cost of a little
13182     # extra space).
13183     freebsd2.2*)
13184       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13185       hardcode_libdir_flag_spec='-R$libdir'
13186       hardcode_direct=yes
13187       hardcode_shlibpath_var=no
13188       ;;
13189
13190     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13191     freebsd2*)
13192       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13193       hardcode_direct=yes
13194       hardcode_minus_L=yes
13195       hardcode_shlibpath_var=no
13196       ;;
13197
13198     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13199     freebsd* | kfreebsd*-gnu)
13200       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13201       hardcode_libdir_flag_spec='-R$libdir'
13202       hardcode_direct=yes
13203       hardcode_shlibpath_var=no
13204       ;;
13205
13206     hpux9*)
13207       if test "$GCC" = yes; then
13208         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'
13209       else
13210         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'
13211       fi
13212       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13213       hardcode_libdir_separator=:
13214       hardcode_direct=yes
13215
13216       # hardcode_minus_L: Not really in the search PATH,
13217       # but as the default location of the library.
13218       hardcode_minus_L=yes
13219       export_dynamic_flag_spec='${wl}-E'
13220       ;;
13221
13222     hpux10* | hpux11*)
13223       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13224         case "$host_cpu" in
13225         hppa*64*|ia64*)
13226           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13227           ;;
13228         *)
13229           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13230           ;;
13231         esac
13232       else
13233         case "$host_cpu" in
13234         hppa*64*|ia64*)
13235           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13236           ;;
13237         *)
13238           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13239           ;;
13240         esac
13241       fi
13242       if test "$with_gnu_ld" = no; then
13243         case "$host_cpu" in
13244         hppa*64*)
13245           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13246           hardcode_libdir_flag_spec_ld='+b $libdir'
13247           hardcode_libdir_separator=:
13248           hardcode_direct=no
13249           hardcode_shlibpath_var=no
13250           ;;
13251         ia64*)
13252           hardcode_libdir_flag_spec='-L$libdir'
13253           hardcode_direct=no
13254           hardcode_shlibpath_var=no
13255
13256           # hardcode_minus_L: Not really in the search PATH,
13257           # but as the default location of the library.
13258           hardcode_minus_L=yes
13259           ;;
13260         *)
13261           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13262           hardcode_libdir_separator=:
13263           hardcode_direct=yes
13264           export_dynamic_flag_spec='${wl}-E'
13265
13266           # hardcode_minus_L: Not really in the search PATH,
13267           # but as the default location of the library.
13268           hardcode_minus_L=yes
13269           ;;
13270         esac
13271       fi
13272       ;;
13273
13274     irix5* | irix6* | nonstopux*)
13275       if test "$GCC" = yes; then
13276         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'
13277       else
13278         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'
13279         hardcode_libdir_flag_spec_ld='-rpath $libdir'
13280       fi
13281       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13282       hardcode_libdir_separator=:
13283       link_all_deplibs=yes
13284       ;;
13285
13286     netbsd*)
13287       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13288         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13289       else
13290         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13291       fi
13292       hardcode_libdir_flag_spec='-R$libdir'
13293       hardcode_direct=yes
13294       hardcode_shlibpath_var=no
13295       ;;
13296
13297     newsos6)
13298       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13299       hardcode_direct=yes
13300       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13301       hardcode_libdir_separator=:
13302       hardcode_shlibpath_var=no
13303       ;;
13304
13305     openbsd*)
13306       hardcode_direct=yes
13307       hardcode_shlibpath_var=no
13308       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13309         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13310         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13311         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13312         export_dynamic_flag_spec='${wl}-E'
13313       else
13314        case $host_os in
13315          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13316            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13317            hardcode_libdir_flag_spec='-R$libdir'
13318            ;;
13319          *)
13320            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13321            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13322            ;;
13323        esac
13324       fi
13325       ;;
13326
13327     os2*)
13328       hardcode_libdir_flag_spec='-L$libdir'
13329       hardcode_minus_L=yes
13330       allow_undefined_flag=unsupported
13331       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'
13332       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13333       ;;
13334
13335     osf3*)
13336       if test "$GCC" = yes; then
13337         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13338         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'
13339       else
13340         allow_undefined_flag=' -expect_unresolved \*'
13341         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'
13342       fi
13343       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13344       hardcode_libdir_separator=:
13345       ;;
13346
13347     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13348       if test "$GCC" = yes; then
13349         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13350         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'
13351         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13352       else
13353         allow_undefined_flag=' -expect_unresolved \*'
13354         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'
13355         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13356         $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'
13357
13358         # Both c and cxx compiler support -rpath directly
13359         hardcode_libdir_flag_spec='-rpath $libdir'
13360       fi
13361       hardcode_libdir_separator=:
13362       ;;
13363
13364     sco3.2v5*)
13365       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13366       hardcode_shlibpath_var=no
13367       export_dynamic_flag_spec='${wl}-Bexport'
13368       runpath_var=LD_RUN_PATH
13369       hardcode_runpath_var=yes
13370       ;;
13371
13372     solaris*)
13373       no_undefined_flag=' -z text'
13374       if test "$GCC" = yes; then
13375         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13376         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13377           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13378       else
13379         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13380         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13381         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13382       fi
13383       hardcode_libdir_flag_spec='-R$libdir'
13384       hardcode_shlibpath_var=no
13385       case $host_os in
13386       solaris2.[0-5] | solaris2.[0-5].*) ;;
13387       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13388         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13389       esac
13390       link_all_deplibs=yes
13391       ;;
13392
13393     sunos4*)
13394       if test "x$host_vendor" = xsequent; then
13395         # Use $CC to link under sequent, because it throws in some extra .o
13396         # files that make .init and .fini sections work.
13397         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13398       else
13399         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13400       fi
13401       hardcode_libdir_flag_spec='-L$libdir'
13402       hardcode_direct=yes
13403       hardcode_minus_L=yes
13404       hardcode_shlibpath_var=no
13405       ;;
13406
13407     sysv4)
13408       case $host_vendor in
13409         sni)
13410           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13411           hardcode_direct=yes # is this really true???
13412         ;;
13413         siemens)
13414           ## LD is ld it makes a PLAMLIB
13415           ## CC just makes a GrossModule.
13416           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13417           reload_cmds='$CC -r -o $output$reload_objs'
13418           hardcode_direct=no
13419         ;;
13420         motorola)
13421           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13422           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13423         ;;
13424       esac
13425       runpath_var='LD_RUN_PATH'
13426       hardcode_shlibpath_var=no
13427       ;;
13428
13429     sysv4.3*)
13430       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13431       hardcode_shlibpath_var=no
13432       export_dynamic_flag_spec='-Bexport'
13433       ;;
13434
13435     sysv4*MP*)
13436       if test -d /usr/nec; then
13437         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13438         hardcode_shlibpath_var=no
13439         runpath_var=LD_RUN_PATH
13440         hardcode_runpath_var=yes
13441         ld_shlibs=yes
13442       fi
13443       ;;
13444
13445     sysv4.2uw2*)
13446       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13447       hardcode_direct=yes
13448       hardcode_minus_L=no
13449       hardcode_shlibpath_var=no
13450       hardcode_runpath_var=yes
13451       runpath_var=LD_RUN_PATH
13452       ;;
13453
13454    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13455       no_undefined_flag='${wl}-z ${wl}text'
13456       if test "$GCC" = yes; then
13457         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13458       else
13459         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13460       fi
13461       runpath_var='LD_RUN_PATH'
13462       hardcode_shlibpath_var=no
13463       ;;
13464
13465     sysv5*)
13466       no_undefined_flag=' -z text'
13467       # $CC -shared without GNU ld will not create a library from C++
13468       # object files and a static libstdc++, better avoid it by now
13469       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13470       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13471                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13472       hardcode_libdir_flag_spec=
13473       hardcode_shlibpath_var=no
13474       runpath_var='LD_RUN_PATH'
13475       ;;
13476
13477     uts4*)
13478       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13479       hardcode_libdir_flag_spec='-L$libdir'
13480       hardcode_shlibpath_var=no
13481       ;;
13482
13483     *)
13484       ld_shlibs=no
13485       ;;
13486     esac
13487   fi
13488
13489 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13490 echo "${ECHO_T}$ld_shlibs" >&6
13491 test "$ld_shlibs" = no && can_build_shared=no
13492
13493 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13494 if test "$GCC" = yes; then
13495   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13496 fi
13497
13498 #
13499 # Do we need to explicitly link libc?
13500 #
13501 case "x$archive_cmds_need_lc" in
13502 x|xyes)
13503   # Assume -lc should be added
13504   archive_cmds_need_lc=yes
13505
13506   if test "$enable_shared" = yes && test "$GCC" = yes; then
13507     case $archive_cmds in
13508     *'~'*)
13509       # FIXME: we may have to deal with multi-command sequences.
13510       ;;
13511     '$CC '*)
13512       # Test whether the compiler implicitly links with -lc since on some
13513       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13514       # to ld, don't add -lc before -lgcc.
13515       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13516 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13517       $rm conftest*
13518       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13519
13520       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13521   (eval $ac_compile) 2>&5
13522   ac_status=$?
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); } 2>conftest.err; then
13525         soname=conftest
13526         lib=conftest
13527         libobjs=conftest.$ac_objext
13528         deplibs=
13529         wl=$lt_prog_compiler_wl
13530         compiler_flags=-v
13531         linker_flags=-v
13532         verstring=
13533         output_objdir=.
13534         libname=conftest
13535         lt_save_allow_undefined_flag=$allow_undefined_flag
13536         allow_undefined_flag=
13537         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13538   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13539   ac_status=$?
13540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541   (exit $ac_status); }
13542         then
13543           archive_cmds_need_lc=no
13544         else
13545           archive_cmds_need_lc=yes
13546         fi
13547         allow_undefined_flag=$lt_save_allow_undefined_flag
13548       else
13549         cat conftest.err 1>&5
13550       fi
13551       $rm conftest*
13552       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13553 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13554       ;;
13555     esac
13556   fi
13557   ;;
13558 esac
13559
13560 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13561 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13562 library_names_spec=
13563 libname_spec='lib$name'
13564 soname_spec=
13565 shrext_cmds=".so"
13566 postinstall_cmds=
13567 postuninstall_cmds=
13568 finish_cmds=
13569 finish_eval=
13570 shlibpath_var=
13571 shlibpath_overrides_runpath=unknown
13572 version_type=none
13573 dynamic_linker="$host_os ld.so"
13574 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13575 if test "$GCC" = yes; then
13576   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13577   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13578     # if the path contains ";" then we assume it to be the separator
13579     # otherwise default to the standard path separator (i.e. ":") - it is
13580     # assumed that no part of a normal pathname contains ";" but that should
13581     # okay in the real world where ";" in dirpaths is itself problematic.
13582     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13583   else
13584     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13585   fi
13586 else
13587   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13588 fi
13589 need_lib_prefix=unknown
13590 hardcode_into_libs=no
13591
13592 # when you set need_version to no, make sure it does not cause -set_version
13593 # flags to be left without arguments
13594 need_version=unknown
13595
13596 case $host_os in
13597 aix3*)
13598   version_type=linux
13599   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13600   shlibpath_var=LIBPATH
13601
13602   # AIX 3 has no versioning support, so we append a major version to the name.
13603   soname_spec='${libname}${release}${shared_ext}$major'
13604   ;;
13605
13606 aix4* | aix5*)
13607   version_type=linux
13608   need_lib_prefix=no
13609   need_version=no
13610   hardcode_into_libs=yes
13611   if test "$host_cpu" = ia64; then
13612     # AIX 5 supports IA64
13613     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13614     shlibpath_var=LD_LIBRARY_PATH
13615   else
13616     # With GCC up to 2.95.x, collect2 would create an import file
13617     # for dependence libraries.  The import file would start with
13618     # the line `#! .'.  This would cause the generated library to
13619     # depend on `.', always an invalid library.  This was fixed in
13620     # development snapshots of GCC prior to 3.0.
13621     case $host_os in
13622       aix4 | aix4.[01] | aix4.[01].*)
13623       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13624            echo ' yes '
13625            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13626         :
13627       else
13628         can_build_shared=no
13629       fi
13630       ;;
13631     esac
13632     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13633     # soname into executable. Probably we can add versioning support to
13634     # collect2, so additional links can be useful in future.
13635     if test "$aix_use_runtimelinking" = yes; then
13636       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13637       # instead of lib<name>.a to let people know that these are not
13638       # typical AIX shared libraries.
13639       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13640     else
13641       # We preserve .a as extension for shared libraries through AIX4.2
13642       # and later when we are not doing run time linking.
13643       library_names_spec='${libname}${release}.a $libname.a'
13644       soname_spec='${libname}${release}${shared_ext}$major'
13645     fi
13646     shlibpath_var=LIBPATH
13647   fi
13648   ;;
13649
13650 amigaos*)
13651   library_names_spec='$libname.ixlibrary $libname.a'
13652   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13653   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'
13654   ;;
13655
13656 beos*)
13657   library_names_spec='${libname}${shared_ext}'
13658   dynamic_linker="$host_os ld.so"
13659   shlibpath_var=LIBRARY_PATH
13660   ;;
13661
13662 bsdi[45]*)
13663   version_type=linux
13664   need_version=no
13665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13666   soname_spec='${libname}${release}${shared_ext}$major'
13667   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13668   shlibpath_var=LD_LIBRARY_PATH
13669   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13670   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13671   # the default ld.so.conf also contains /usr/contrib/lib and
13672   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13673   # libtool to hard-code these into programs
13674   ;;
13675
13676 cygwin* | mingw* | pw32*)
13677   version_type=windows
13678   shrext_cmds=".dll"
13679   need_version=no
13680   need_lib_prefix=no
13681
13682   case $GCC,$host_os in
13683   yes,cygwin* | yes,mingw* | yes,pw32*)
13684     library_names_spec='$libname.dll.a'
13685     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13686     postinstall_cmds='base_file=`basename \${file}`~
13687       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13688       dldir=$destdir/`dirname \$dlpath`~
13689       test -d \$dldir || mkdir -p \$dldir~
13690       $install_prog $dir/$dlname \$dldir/$dlname'
13691     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13692       dlpath=$dir/\$dldll~
13693        $rm \$dlpath'
13694     shlibpath_overrides_runpath=yes
13695
13696     case $host_os in
13697     cygwin*)
13698       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13699       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13700       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13701       ;;
13702     mingw*)
13703       # MinGW DLLs use traditional 'lib' prefix
13704       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13705       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13706       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13707         # It is most probably a Windows format PATH printed by
13708         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13709         # path with ; separators, and with drive letters. We can handle the
13710         # drive letters (cygwin fileutils understands them), so leave them,
13711         # especially as we might pass files found there to a mingw objdump,
13712         # which wouldn't understand a cygwinified path. Ahh.
13713         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13714       else
13715         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13716       fi
13717       ;;
13718     pw32*)
13719       # pw32 DLLs use 'pw' prefix rather than 'lib'
13720       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13721       ;;
13722     esac
13723     ;;
13724
13725   *)
13726     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13727     ;;
13728   esac
13729   dynamic_linker='Win32 ld.exe'
13730   # FIXME: first we should search . and the directory the executable is in
13731   shlibpath_var=PATH
13732   ;;
13733
13734 darwin* | rhapsody*)
13735   dynamic_linker="$host_os dyld"
13736   version_type=darwin
13737   need_lib_prefix=no
13738   need_version=no
13739   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13740   soname_spec='${libname}${release}${major}$shared_ext'
13741   shlibpath_overrides_runpath=yes
13742   shlibpath_var=DYLD_LIBRARY_PATH
13743   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13744   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13745   if test "$GCC" = yes; then
13746     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"`
13747   else
13748     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13749   fi
13750   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13751   ;;
13752
13753 dgux*)
13754   version_type=linux
13755   need_lib_prefix=no
13756   need_version=no
13757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13758   soname_spec='${libname}${release}${shared_ext}$major'
13759   shlibpath_var=LD_LIBRARY_PATH
13760   ;;
13761
13762 freebsd1*)
13763   dynamic_linker=no
13764   ;;
13765
13766 kfreebsd*-gnu)
13767   version_type=linux
13768   need_lib_prefix=no
13769   need_version=no
13770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13771   soname_spec='${libname}${release}${shared_ext}$major'
13772   shlibpath_var=LD_LIBRARY_PATH
13773   shlibpath_overrides_runpath=no
13774   hardcode_into_libs=yes
13775   dynamic_linker='GNU ld.so'
13776   ;;
13777
13778 freebsd*)
13779   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13780   version_type=freebsd-$objformat
13781   case $version_type in
13782     freebsd-elf*)
13783       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13784       need_version=no
13785       need_lib_prefix=no
13786       ;;
13787     freebsd-*)
13788       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13789       need_version=yes
13790       ;;
13791   esac
13792   shlibpath_var=LD_LIBRARY_PATH
13793   case $host_os in
13794   freebsd2*)
13795     shlibpath_overrides_runpath=yes
13796     ;;
13797   freebsd3.01* | freebsdelf3.01*)
13798     shlibpath_overrides_runpath=yes
13799     hardcode_into_libs=yes
13800     ;;
13801   *) # from 3.2 on
13802     shlibpath_overrides_runpath=no
13803     hardcode_into_libs=yes
13804     ;;
13805   esac
13806   ;;
13807
13808 gnu*)
13809   version_type=linux
13810   need_lib_prefix=no
13811   need_version=no
13812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13813   soname_spec='${libname}${release}${shared_ext}$major'
13814   shlibpath_var=LD_LIBRARY_PATH
13815   hardcode_into_libs=yes
13816   ;;
13817
13818 hpux9* | hpux10* | hpux11*)
13819   # Give a soname corresponding to the major version so that dld.sl refuses to
13820   # link against other versions.
13821   version_type=sunos
13822   need_lib_prefix=no
13823   need_version=no
13824   case "$host_cpu" in
13825   ia64*)
13826     shrext_cmds='.so'
13827     hardcode_into_libs=yes
13828     dynamic_linker="$host_os dld.so"
13829     shlibpath_var=LD_LIBRARY_PATH
13830     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13831     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13832     soname_spec='${libname}${release}${shared_ext}$major'
13833     if test "X$HPUX_IA64_MODE" = X32; then
13834       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13835     else
13836       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13837     fi
13838     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13839     ;;
13840    hppa*64*)
13841      shrext_cmds='.sl'
13842      hardcode_into_libs=yes
13843      dynamic_linker="$host_os dld.sl"
13844      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13845      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13846      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13847      soname_spec='${libname}${release}${shared_ext}$major'
13848      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13849      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13850      ;;
13851    *)
13852     shrext_cmds='.sl'
13853     dynamic_linker="$host_os dld.sl"
13854     shlibpath_var=SHLIB_PATH
13855     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13856     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13857     soname_spec='${libname}${release}${shared_ext}$major'
13858     ;;
13859   esac
13860   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13861   postinstall_cmds='chmod 555 $lib'
13862   ;;
13863
13864 irix5* | irix6* | nonstopux*)
13865   case $host_os in
13866     nonstopux*) version_type=nonstopux ;;
13867     *)
13868         if test "$lt_cv_prog_gnu_ld" = yes; then
13869                 version_type=linux
13870         else
13871                 version_type=irix
13872         fi ;;
13873   esac
13874   need_lib_prefix=no
13875   need_version=no
13876   soname_spec='${libname}${release}${shared_ext}$major'
13877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13878   case $host_os in
13879   irix5* | nonstopux*)
13880     libsuff= shlibsuff=
13881     ;;
13882   *)
13883     case $LD in # libtool.m4 will add one of these switches to LD
13884     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13885       libsuff= shlibsuff= libmagic=32-bit;;
13886     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13887       libsuff=32 shlibsuff=N32 libmagic=N32;;
13888     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13889       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13890     *) libsuff= shlibsuff= libmagic=never-match;;
13891     esac
13892     ;;
13893   esac
13894   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13895   shlibpath_overrides_runpath=no
13896   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13897   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13898   hardcode_into_libs=yes
13899   ;;
13900
13901 # No shared lib support for Linux oldld, aout, or coff.
13902 linux*oldld* | linux*aout* | linux*coff*)
13903   dynamic_linker=no
13904   ;;
13905
13906 # This must be Linux ELF.
13907 linux*)
13908   version_type=linux
13909   need_lib_prefix=no
13910   need_version=no
13911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13912   soname_spec='${libname}${release}${shared_ext}$major'
13913   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13914   shlibpath_var=LD_LIBRARY_PATH
13915   shlibpath_overrides_runpath=no
13916   # This implies no fast_install, which is unacceptable.
13917   # Some rework will be needed to allow for fast_install
13918   # before this can be enabled.
13919   hardcode_into_libs=yes
13920
13921   # Append ld.so.conf contents to the search path
13922   if test -f /etc/ld.so.conf; then
13923     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13924     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13925   fi
13926
13927   # We used to test for /lib/ld.so.1 and disable shared libraries on
13928   # powerpc, because MkLinux only supported shared libraries with the
13929   # GNU dynamic linker.  Since this was broken with cross compilers,
13930   # most powerpc-linux boxes support dynamic linking these days and
13931   # people can always --disable-shared, the test was removed, and we
13932   # assume the GNU/Linux dynamic linker is in use.
13933   dynamic_linker='GNU/Linux ld.so'
13934   ;;
13935
13936 knetbsd*-gnu)
13937   version_type=linux
13938   need_lib_prefix=no
13939   need_version=no
13940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13941   soname_spec='${libname}${release}${shared_ext}$major'
13942   shlibpath_var=LD_LIBRARY_PATH
13943   shlibpath_overrides_runpath=no
13944   hardcode_into_libs=yes
13945   dynamic_linker='GNU ld.so'
13946   ;;
13947
13948 netbsd*)
13949   version_type=sunos
13950   need_lib_prefix=no
13951   need_version=no
13952   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13953     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13954     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13955     dynamic_linker='NetBSD (a.out) ld.so'
13956   else
13957     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13958     soname_spec='${libname}${release}${shared_ext}$major'
13959     dynamic_linker='NetBSD ld.elf_so'
13960   fi
13961   shlibpath_var=LD_LIBRARY_PATH
13962   shlibpath_overrides_runpath=yes
13963   hardcode_into_libs=yes
13964   ;;
13965
13966 newsos6)
13967   version_type=linux
13968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13969   shlibpath_var=LD_LIBRARY_PATH
13970   shlibpath_overrides_runpath=yes
13971   ;;
13972
13973 nto-qnx*)
13974   version_type=linux
13975   need_lib_prefix=no
13976   need_version=no
13977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13978   soname_spec='${libname}${release}${shared_ext}$major'
13979   shlibpath_var=LD_LIBRARY_PATH
13980   shlibpath_overrides_runpath=yes
13981   ;;
13982
13983 openbsd*)
13984   version_type=sunos
13985   need_lib_prefix=no
13986   need_version=no
13987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13988   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13989   shlibpath_var=LD_LIBRARY_PATH
13990   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13991     case $host_os in
13992       openbsd2.[89] | openbsd2.[89].*)
13993         shlibpath_overrides_runpath=no
13994         ;;
13995       *)
13996         shlibpath_overrides_runpath=yes
13997         ;;
13998       esac
13999   else
14000     shlibpath_overrides_runpath=yes
14001   fi
14002   ;;
14003
14004 os2*)
14005   libname_spec='$name'
14006   shrext_cmds=".dll"
14007   need_lib_prefix=no
14008   library_names_spec='$libname${shared_ext} $libname.a'
14009   dynamic_linker='OS/2 ld.exe'
14010   shlibpath_var=LIBPATH
14011   ;;
14012
14013 osf3* | osf4* | osf5*)
14014   version_type=osf
14015   need_lib_prefix=no
14016   need_version=no
14017   soname_spec='${libname}${release}${shared_ext}$major'
14018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14019   shlibpath_var=LD_LIBRARY_PATH
14020   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14021   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14022   ;;
14023
14024 sco3.2v5*)
14025   version_type=osf
14026   soname_spec='${libname}${release}${shared_ext}$major'
14027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14028   shlibpath_var=LD_LIBRARY_PATH
14029   ;;
14030
14031 solaris*)
14032   version_type=linux
14033   need_lib_prefix=no
14034   need_version=no
14035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14036   soname_spec='${libname}${release}${shared_ext}$major'
14037   shlibpath_var=LD_LIBRARY_PATH
14038   shlibpath_overrides_runpath=yes
14039   hardcode_into_libs=yes
14040   # ldd complains unless libraries are executable
14041   postinstall_cmds='chmod +x $lib'
14042   ;;
14043
14044 sunos4*)
14045   version_type=sunos
14046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14047   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14048   shlibpath_var=LD_LIBRARY_PATH
14049   shlibpath_overrides_runpath=yes
14050   if test "$with_gnu_ld" = yes; then
14051     need_lib_prefix=no
14052   fi
14053   need_version=yes
14054   ;;
14055
14056 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14057   version_type=linux
14058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14059   soname_spec='${libname}${release}${shared_ext}$major'
14060   shlibpath_var=LD_LIBRARY_PATH
14061   case $host_vendor in
14062     sni)
14063       shlibpath_overrides_runpath=no
14064       need_lib_prefix=no
14065       export_dynamic_flag_spec='${wl}-Blargedynsym'
14066       runpath_var=LD_RUN_PATH
14067       ;;
14068     siemens)
14069       need_lib_prefix=no
14070       ;;
14071     motorola)
14072       need_lib_prefix=no
14073       need_version=no
14074       shlibpath_overrides_runpath=no
14075       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14076       ;;
14077   esac
14078   ;;
14079
14080 sysv4*MP*)
14081   if test -d /usr/nec ;then
14082     version_type=linux
14083     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14084     soname_spec='$libname${shared_ext}.$major'
14085     shlibpath_var=LD_LIBRARY_PATH
14086   fi
14087   ;;
14088
14089 uts4*)
14090   version_type=linux
14091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14092   soname_spec='${libname}${release}${shared_ext}$major'
14093   shlibpath_var=LD_LIBRARY_PATH
14094   ;;
14095
14096 *)
14097   dynamic_linker=no
14098   ;;
14099 esac
14100 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14101 echo "${ECHO_T}$dynamic_linker" >&6
14102 test "$dynamic_linker" = no && can_build_shared=no
14103
14104 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14105 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14106 hardcode_action=
14107 if test -n "$hardcode_libdir_flag_spec" || \
14108    test -n "$runpath_var" || \
14109    test "X$hardcode_automatic" = "Xyes" ; then
14110
14111   # We can hardcode non-existant directories.
14112   if test "$hardcode_direct" != no &&
14113      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14114      # have to relink, otherwise we might link with an installed library
14115      # when we should be linking with a yet-to-be-installed one
14116      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14117      test "$hardcode_minus_L" != no; then
14118     # Linking always hardcodes the temporary library directory.
14119     hardcode_action=relink
14120   else
14121     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14122     hardcode_action=immediate
14123   fi
14124 else
14125   # We cannot hardcode anything, or else we can only hardcode existing
14126   # directories.
14127   hardcode_action=unsupported
14128 fi
14129 echo "$as_me:$LINENO: result: $hardcode_action" >&5
14130 echo "${ECHO_T}$hardcode_action" >&6
14131
14132 if test "$hardcode_action" = relink; then
14133   # Fast installation is not supported
14134   enable_fast_install=no
14135 elif test "$shlibpath_overrides_runpath" = yes ||
14136      test "$enable_shared" = no; then
14137   # Fast installation is not necessary
14138   enable_fast_install=needless
14139 fi
14140
14141 striplib=
14142 old_striplib=
14143 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14144 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14145 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14146   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14147   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14148   echo "$as_me:$LINENO: result: yes" >&5
14149 echo "${ECHO_T}yes" >&6
14150 else
14151 # FIXME - insert some real tests, host_os isn't really good enough
14152   case $host_os in
14153    darwin*)
14154        if test -n "$STRIP" ; then
14155          striplib="$STRIP -x"
14156          echo "$as_me:$LINENO: result: yes" >&5
14157 echo "${ECHO_T}yes" >&6
14158        else
14159   echo "$as_me:$LINENO: result: no" >&5
14160 echo "${ECHO_T}no" >&6
14161 fi
14162        ;;
14163    *)
14164   echo "$as_me:$LINENO: result: no" >&5
14165 echo "${ECHO_T}no" >&6
14166     ;;
14167   esac
14168 fi
14169
14170 if test "x$enable_dlopen" != xyes; then
14171   enable_dlopen=unknown
14172   enable_dlopen_self=unknown
14173   enable_dlopen_self_static=unknown
14174 else
14175   lt_cv_dlopen=no
14176   lt_cv_dlopen_libs=
14177
14178   case $host_os in
14179   beos*)
14180     lt_cv_dlopen="load_add_on"
14181     lt_cv_dlopen_libs=
14182     lt_cv_dlopen_self=yes
14183     ;;
14184
14185   mingw* | pw32*)
14186     lt_cv_dlopen="LoadLibrary"
14187     lt_cv_dlopen_libs=
14188    ;;
14189
14190   cygwin*)
14191     lt_cv_dlopen="dlopen"
14192     lt_cv_dlopen_libs=
14193    ;;
14194
14195   darwin*)
14196   # if libdl is installed we need to link against it
14197     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14198 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14199 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14200   echo $ECHO_N "(cached) $ECHO_C" >&6
14201 else
14202   ac_check_lib_save_LIBS=$LIBS
14203 LIBS="-ldl  $LIBS"
14204 cat >conftest.$ac_ext <<_ACEOF
14205 /* confdefs.h.  */
14206 _ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h.  */
14210
14211 /* Override any gcc2 internal prototype to avoid an error.  */
14212 #ifdef __cplusplus
14213 extern "C"
14214 #endif
14215 /* We use char because int might match the return type of a gcc2
14216    builtin and then its argument prototype would still apply.  */
14217 char dlopen ();
14218 int
14219 main ()
14220 {
14221 dlopen ();
14222   ;
14223   return 0;
14224 }
14225 _ACEOF
14226 rm -f conftest.$ac_objext conftest$ac_exeext
14227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14228   (eval $ac_link) 2>conftest.er1
14229   ac_status=$?
14230   grep -v '^ *+' conftest.er1 >conftest.err
14231   rm -f conftest.er1
14232   cat conftest.err >&5
14233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234   (exit $ac_status); } &&
14235          { ac_try='test -z "$ac_c_werror_flag"
14236                          || test ! -s conftest.err'
14237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238   (eval $ac_try) 2>&5
14239   ac_status=$?
14240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241   (exit $ac_status); }; } &&
14242          { ac_try='test -s conftest$ac_exeext'
14243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14244   (eval $ac_try) 2>&5
14245   ac_status=$?
14246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247   (exit $ac_status); }; }; then
14248   ac_cv_lib_dl_dlopen=yes
14249 else
14250   echo "$as_me: failed program was:" >&5
14251 sed 's/^/| /' conftest.$ac_ext >&5
14252
14253 ac_cv_lib_dl_dlopen=no
14254 fi
14255 rm -f conftest.err conftest.$ac_objext \
14256       conftest$ac_exeext conftest.$ac_ext
14257 LIBS=$ac_check_lib_save_LIBS
14258 fi
14259 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14260 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14261 if test $ac_cv_lib_dl_dlopen = yes; then
14262   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14263 else
14264
14265     lt_cv_dlopen="dyld"
14266     lt_cv_dlopen_libs=
14267     lt_cv_dlopen_self=yes
14268
14269 fi
14270
14271    ;;
14272
14273   *)
14274     echo "$as_me:$LINENO: checking for shl_load" >&5
14275 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14276 if test "${ac_cv_func_shl_load+set}" = set; then
14277   echo $ECHO_N "(cached) $ECHO_C" >&6
14278 else
14279   cat >conftest.$ac_ext <<_ACEOF
14280 /* confdefs.h.  */
14281 _ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h.  */
14285 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14287 #define shl_load innocuous_shl_load
14288
14289 /* System header to define __stub macros and hopefully few prototypes,
14290     which can conflict with char shl_load (); below.
14291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14292     <limits.h> exists even on freestanding compilers.  */
14293
14294 #ifdef __STDC__
14295 # include <limits.h>
14296 #else
14297 # include <assert.h>
14298 #endif
14299
14300 #undef shl_load
14301
14302 /* Override any gcc2 internal prototype to avoid an error.  */
14303 #ifdef __cplusplus
14304 extern "C"
14305 {
14306 #endif
14307 /* We use char because int might match the return type of a gcc2
14308    builtin and then its argument prototype would still apply.  */
14309 char shl_load ();
14310 /* The GNU C library defines this for functions which it implements
14311     to always fail with ENOSYS.  Some functions are actually named
14312     something starting with __ and the normal name is an alias.  */
14313 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14314 choke me
14315 #else
14316 char (*f) () = shl_load;
14317 #endif
14318 #ifdef __cplusplus
14319 }
14320 #endif
14321
14322 int
14323 main ()
14324 {
14325 return f != shl_load;
14326   ;
14327   return 0;
14328 }
14329 _ACEOF
14330 rm -f conftest.$ac_objext conftest$ac_exeext
14331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14332   (eval $ac_link) 2>conftest.er1
14333   ac_status=$?
14334   grep -v '^ *+' conftest.er1 >conftest.err
14335   rm -f conftest.er1
14336   cat conftest.err >&5
14337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338   (exit $ac_status); } &&
14339          { ac_try='test -z "$ac_c_werror_flag"
14340                          || test ! -s conftest.err'
14341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342   (eval $ac_try) 2>&5
14343   ac_status=$?
14344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345   (exit $ac_status); }; } &&
14346          { ac_try='test -s conftest$ac_exeext'
14347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348   (eval $ac_try) 2>&5
14349   ac_status=$?
14350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351   (exit $ac_status); }; }; then
14352   ac_cv_func_shl_load=yes
14353 else
14354   echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.$ac_ext >&5
14356
14357 ac_cv_func_shl_load=no
14358 fi
14359 rm -f conftest.err conftest.$ac_objext \
14360       conftest$ac_exeext conftest.$ac_ext
14361 fi
14362 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14363 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14364 if test $ac_cv_func_shl_load = yes; then
14365   lt_cv_dlopen="shl_load"
14366 else
14367   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14368 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14369 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14370   echo $ECHO_N "(cached) $ECHO_C" >&6
14371 else
14372   ac_check_lib_save_LIBS=$LIBS
14373 LIBS="-ldld  $LIBS"
14374 cat >conftest.$ac_ext <<_ACEOF
14375 /* confdefs.h.  */
14376 _ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h.  */
14380
14381 /* Override any gcc2 internal prototype to avoid an error.  */
14382 #ifdef __cplusplus
14383 extern "C"
14384 #endif
14385 /* We use char because int might match the return type of a gcc2
14386    builtin and then its argument prototype would still apply.  */
14387 char shl_load ();
14388 int
14389 main ()
14390 {
14391 shl_load ();
14392   ;
14393   return 0;
14394 }
14395 _ACEOF
14396 rm -f conftest.$ac_objext conftest$ac_exeext
14397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14398   (eval $ac_link) 2>conftest.er1
14399   ac_status=$?
14400   grep -v '^ *+' conftest.er1 >conftest.err
14401   rm -f conftest.er1
14402   cat conftest.err >&5
14403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404   (exit $ac_status); } &&
14405          { ac_try='test -z "$ac_c_werror_flag"
14406                          || test ! -s conftest.err'
14407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408   (eval $ac_try) 2>&5
14409   ac_status=$?
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); }; } &&
14412          { ac_try='test -s conftest$ac_exeext'
14413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414   (eval $ac_try) 2>&5
14415   ac_status=$?
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); }; }; then
14418   ac_cv_lib_dld_shl_load=yes
14419 else
14420   echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14422
14423 ac_cv_lib_dld_shl_load=no
14424 fi
14425 rm -f conftest.err conftest.$ac_objext \
14426       conftest$ac_exeext conftest.$ac_ext
14427 LIBS=$ac_check_lib_save_LIBS
14428 fi
14429 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14430 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14431 if test $ac_cv_lib_dld_shl_load = yes; then
14432   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14433 else
14434   echo "$as_me:$LINENO: checking for dlopen" >&5
14435 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14436 if test "${ac_cv_func_dlopen+set}" = set; then
14437   echo $ECHO_N "(cached) $ECHO_C" >&6
14438 else
14439   cat >conftest.$ac_ext <<_ACEOF
14440 /* confdefs.h.  */
14441 _ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h.  */
14445 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14447 #define dlopen innocuous_dlopen
14448
14449 /* System header to define __stub macros and hopefully few prototypes,
14450     which can conflict with char dlopen (); below.
14451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14452     <limits.h> exists even on freestanding compilers.  */
14453
14454 #ifdef __STDC__
14455 # include <limits.h>
14456 #else
14457 # include <assert.h>
14458 #endif
14459
14460 #undef dlopen
14461
14462 /* Override any gcc2 internal prototype to avoid an error.  */
14463 #ifdef __cplusplus
14464 extern "C"
14465 {
14466 #endif
14467 /* We use char because int might match the return type of a gcc2
14468    builtin and then its argument prototype would still apply.  */
14469 char dlopen ();
14470 /* The GNU C library defines this for functions which it implements
14471     to always fail with ENOSYS.  Some functions are actually named
14472     something starting with __ and the normal name is an alias.  */
14473 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14474 choke me
14475 #else
14476 char (*f) () = dlopen;
14477 #endif
14478 #ifdef __cplusplus
14479 }
14480 #endif
14481
14482 int
14483 main ()
14484 {
14485 return f != dlopen;
14486   ;
14487   return 0;
14488 }
14489 _ACEOF
14490 rm -f conftest.$ac_objext conftest$ac_exeext
14491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14492   (eval $ac_link) 2>conftest.er1
14493   ac_status=$?
14494   grep -v '^ *+' conftest.er1 >conftest.err
14495   rm -f conftest.er1
14496   cat conftest.err >&5
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); } &&
14499          { ac_try='test -z "$ac_c_werror_flag"
14500                          || test ! -s conftest.err'
14501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502   (eval $ac_try) 2>&5
14503   ac_status=$?
14504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505   (exit $ac_status); }; } &&
14506          { ac_try='test -s conftest$ac_exeext'
14507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508   (eval $ac_try) 2>&5
14509   ac_status=$?
14510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511   (exit $ac_status); }; }; then
14512   ac_cv_func_dlopen=yes
14513 else
14514   echo "$as_me: failed program was:" >&5
14515 sed 's/^/| /' conftest.$ac_ext >&5
14516
14517 ac_cv_func_dlopen=no
14518 fi
14519 rm -f conftest.err conftest.$ac_objext \
14520       conftest$ac_exeext conftest.$ac_ext
14521 fi
14522 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14523 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14524 if test $ac_cv_func_dlopen = yes; then
14525   lt_cv_dlopen="dlopen"
14526 else
14527   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14528 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14529 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14530   echo $ECHO_N "(cached) $ECHO_C" >&6
14531 else
14532   ac_check_lib_save_LIBS=$LIBS
14533 LIBS="-ldl  $LIBS"
14534 cat >conftest.$ac_ext <<_ACEOF
14535 /* confdefs.h.  */
14536 _ACEOF
14537 cat confdefs.h >>conftest.$ac_ext
14538 cat >>conftest.$ac_ext <<_ACEOF
14539 /* end confdefs.h.  */
14540
14541 /* Override any gcc2 internal prototype to avoid an error.  */
14542 #ifdef __cplusplus
14543 extern "C"
14544 #endif
14545 /* We use char because int might match the return type of a gcc2
14546    builtin and then its argument prototype would still apply.  */
14547 char dlopen ();
14548 int
14549 main ()
14550 {
14551 dlopen ();
14552   ;
14553   return 0;
14554 }
14555 _ACEOF
14556 rm -f conftest.$ac_objext conftest$ac_exeext
14557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14558   (eval $ac_link) 2>conftest.er1
14559   ac_status=$?
14560   grep -v '^ *+' conftest.er1 >conftest.err
14561   rm -f conftest.er1
14562   cat conftest.err >&5
14563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564   (exit $ac_status); } &&
14565          { ac_try='test -z "$ac_c_werror_flag"
14566                          || test ! -s conftest.err'
14567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568   (eval $ac_try) 2>&5
14569   ac_status=$?
14570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571   (exit $ac_status); }; } &&
14572          { ac_try='test -s conftest$ac_exeext'
14573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574   (eval $ac_try) 2>&5
14575   ac_status=$?
14576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); }; }; then
14578   ac_cv_lib_dl_dlopen=yes
14579 else
14580   echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14582
14583 ac_cv_lib_dl_dlopen=no
14584 fi
14585 rm -f conftest.err conftest.$ac_objext \
14586       conftest$ac_exeext conftest.$ac_ext
14587 LIBS=$ac_check_lib_save_LIBS
14588 fi
14589 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14590 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14591 if test $ac_cv_lib_dl_dlopen = yes; then
14592   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14593 else
14594   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14595 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14596 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14597   echo $ECHO_N "(cached) $ECHO_C" >&6
14598 else
14599   ac_check_lib_save_LIBS=$LIBS
14600 LIBS="-lsvld  $LIBS"
14601 cat >conftest.$ac_ext <<_ACEOF
14602 /* confdefs.h.  */
14603 _ACEOF
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h.  */
14607
14608 /* Override any gcc2 internal prototype to avoid an error.  */
14609 #ifdef __cplusplus
14610 extern "C"
14611 #endif
14612 /* We use char because int might match the return type of a gcc2
14613    builtin and then its argument prototype would still apply.  */
14614 char dlopen ();
14615 int
14616 main ()
14617 {
14618 dlopen ();
14619   ;
14620   return 0;
14621 }
14622 _ACEOF
14623 rm -f conftest.$ac_objext conftest$ac_exeext
14624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14625   (eval $ac_link) 2>conftest.er1
14626   ac_status=$?
14627   grep -v '^ *+' conftest.er1 >conftest.err
14628   rm -f conftest.er1
14629   cat conftest.err >&5
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); } &&
14632          { ac_try='test -z "$ac_c_werror_flag"
14633                          || test ! -s conftest.err'
14634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14635   (eval $ac_try) 2>&5
14636   ac_status=$?
14637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638   (exit $ac_status); }; } &&
14639          { ac_try='test -s conftest$ac_exeext'
14640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641   (eval $ac_try) 2>&5
14642   ac_status=$?
14643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644   (exit $ac_status); }; }; then
14645   ac_cv_lib_svld_dlopen=yes
14646 else
14647   echo "$as_me: failed program was:" >&5
14648 sed 's/^/| /' conftest.$ac_ext >&5
14649
14650 ac_cv_lib_svld_dlopen=no
14651 fi
14652 rm -f conftest.err conftest.$ac_objext \
14653       conftest$ac_exeext conftest.$ac_ext
14654 LIBS=$ac_check_lib_save_LIBS
14655 fi
14656 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14657 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14658 if test $ac_cv_lib_svld_dlopen = yes; then
14659   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14660 else
14661   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14662 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14663 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14664   echo $ECHO_N "(cached) $ECHO_C" >&6
14665 else
14666   ac_check_lib_save_LIBS=$LIBS
14667 LIBS="-ldld  $LIBS"
14668 cat >conftest.$ac_ext <<_ACEOF
14669 /* confdefs.h.  */
14670 _ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h.  */
14674
14675 /* Override any gcc2 internal prototype to avoid an error.  */
14676 #ifdef __cplusplus
14677 extern "C"
14678 #endif
14679 /* We use char because int might match the return type of a gcc2
14680    builtin and then its argument prototype would still apply.  */
14681 char dld_link ();
14682 int
14683 main ()
14684 {
14685 dld_link ();
14686   ;
14687   return 0;
14688 }
14689 _ACEOF
14690 rm -f conftest.$ac_objext conftest$ac_exeext
14691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14692   (eval $ac_link) 2>conftest.er1
14693   ac_status=$?
14694   grep -v '^ *+' conftest.er1 >conftest.err
14695   rm -f conftest.er1
14696   cat conftest.err >&5
14697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698   (exit $ac_status); } &&
14699          { ac_try='test -z "$ac_c_werror_flag"
14700                          || test ! -s conftest.err'
14701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702   (eval $ac_try) 2>&5
14703   ac_status=$?
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); }; } &&
14706          { ac_try='test -s conftest$ac_exeext'
14707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708   (eval $ac_try) 2>&5
14709   ac_status=$?
14710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711   (exit $ac_status); }; }; then
14712   ac_cv_lib_dld_dld_link=yes
14713 else
14714   echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14716
14717 ac_cv_lib_dld_dld_link=no
14718 fi
14719 rm -f conftest.err conftest.$ac_objext \
14720       conftest$ac_exeext conftest.$ac_ext
14721 LIBS=$ac_check_lib_save_LIBS
14722 fi
14723 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14724 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14725 if test $ac_cv_lib_dld_dld_link = yes; then
14726   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14727 fi
14728
14729
14730 fi
14731
14732
14733 fi
14734
14735
14736 fi
14737
14738
14739 fi
14740
14741
14742 fi
14743
14744     ;;
14745   esac
14746
14747   if test "x$lt_cv_dlopen" != xno; then
14748     enable_dlopen=yes
14749   else
14750     enable_dlopen=no
14751   fi
14752
14753   case $lt_cv_dlopen in
14754   dlopen)
14755     save_CPPFLAGS="$CPPFLAGS"
14756     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14757
14758     save_LDFLAGS="$LDFLAGS"
14759     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14760
14761     save_LIBS="$LIBS"
14762     LIBS="$lt_cv_dlopen_libs $LIBS"
14763
14764     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14765 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14766 if test "${lt_cv_dlopen_self+set}" = set; then
14767   echo $ECHO_N "(cached) $ECHO_C" >&6
14768 else
14769           if test "$cross_compiling" = yes; then :
14770   lt_cv_dlopen_self=cross
14771 else
14772   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14773   lt_status=$lt_dlunknown
14774   cat > conftest.$ac_ext <<EOF
14775 #line 14775 "configure"
14776 #include "confdefs.h"
14777
14778 #if HAVE_DLFCN_H
14779 #include <dlfcn.h>
14780 #endif
14781
14782 #include <stdio.h>
14783
14784 #ifdef RTLD_GLOBAL
14785 #  define LT_DLGLOBAL           RTLD_GLOBAL
14786 #else
14787 #  ifdef DL_GLOBAL
14788 #    define LT_DLGLOBAL         DL_GLOBAL
14789 #  else
14790 #    define LT_DLGLOBAL         0
14791 #  endif
14792 #endif
14793
14794 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14795    find out it does not work in some platform. */
14796 #ifndef LT_DLLAZY_OR_NOW
14797 #  ifdef RTLD_LAZY
14798 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14799 #  else
14800 #    ifdef DL_LAZY
14801 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14802 #    else
14803 #      ifdef RTLD_NOW
14804 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14805 #      else
14806 #        ifdef DL_NOW
14807 #          define LT_DLLAZY_OR_NOW      DL_NOW
14808 #        else
14809 #          define LT_DLLAZY_OR_NOW      0
14810 #        endif
14811 #      endif
14812 #    endif
14813 #  endif
14814 #endif
14815
14816 #ifdef __cplusplus
14817 extern "C" void exit (int);
14818 #endif
14819
14820 void fnord() { int i=42;}
14821 int main ()
14822 {
14823   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14824   int status = $lt_dlunknown;
14825
14826   if (self)
14827     {
14828       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14829       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14830       /* dlclose (self); */
14831     }
14832
14833     exit (status);
14834 }
14835 EOF
14836   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14837   (eval $ac_link) 2>&5
14838   ac_status=$?
14839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14841     (./conftest; exit; ) 2>/dev/null
14842     lt_status=$?
14843     case x$lt_status in
14844       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14845       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14846       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14847     esac
14848   else :
14849     # compilation failed
14850     lt_cv_dlopen_self=no
14851   fi
14852 fi
14853 rm -fr conftest*
14854
14855
14856 fi
14857 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14858 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14859
14860     if test "x$lt_cv_dlopen_self" = xyes; then
14861       LDFLAGS="$LDFLAGS $link_static_flag"
14862       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14863 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14864 if test "${lt_cv_dlopen_self_static+set}" = set; then
14865   echo $ECHO_N "(cached) $ECHO_C" >&6
14866 else
14867           if test "$cross_compiling" = yes; then :
14868   lt_cv_dlopen_self_static=cross
14869 else
14870   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14871   lt_status=$lt_dlunknown
14872   cat > conftest.$ac_ext <<EOF
14873 #line 14873 "configure"
14874 #include "confdefs.h"
14875
14876 #if HAVE_DLFCN_H
14877 #include <dlfcn.h>
14878 #endif
14879
14880 #include <stdio.h>
14881
14882 #ifdef RTLD_GLOBAL
14883 #  define LT_DLGLOBAL           RTLD_GLOBAL
14884 #else
14885 #  ifdef DL_GLOBAL
14886 #    define LT_DLGLOBAL         DL_GLOBAL
14887 #  else
14888 #    define LT_DLGLOBAL         0
14889 #  endif
14890 #endif
14891
14892 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14893    find out it does not work in some platform. */
14894 #ifndef LT_DLLAZY_OR_NOW
14895 #  ifdef RTLD_LAZY
14896 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14897 #  else
14898 #    ifdef DL_LAZY
14899 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14900 #    else
14901 #      ifdef RTLD_NOW
14902 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14903 #      else
14904 #        ifdef DL_NOW
14905 #          define LT_DLLAZY_OR_NOW      DL_NOW
14906 #        else
14907 #          define LT_DLLAZY_OR_NOW      0
14908 #        endif
14909 #      endif
14910 #    endif
14911 #  endif
14912 #endif
14913
14914 #ifdef __cplusplus
14915 extern "C" void exit (int);
14916 #endif
14917
14918 void fnord() { int i=42;}
14919 int main ()
14920 {
14921   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14922   int status = $lt_dlunknown;
14923
14924   if (self)
14925     {
14926       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14927       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14928       /* dlclose (self); */
14929     }
14930
14931     exit (status);
14932 }
14933 EOF
14934   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14935   (eval $ac_link) 2>&5
14936   ac_status=$?
14937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14939     (./conftest; exit; ) 2>/dev/null
14940     lt_status=$?
14941     case x$lt_status in
14942       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14943       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14944       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14945     esac
14946   else :
14947     # compilation failed
14948     lt_cv_dlopen_self_static=no
14949   fi
14950 fi
14951 rm -fr conftest*
14952
14953
14954 fi
14955 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14956 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14957     fi
14958
14959     CPPFLAGS="$save_CPPFLAGS"
14960     LDFLAGS="$save_LDFLAGS"
14961     LIBS="$save_LIBS"
14962     ;;
14963   esac
14964
14965   case $lt_cv_dlopen_self in
14966   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14967   *) enable_dlopen_self=unknown ;;
14968   esac
14969
14970   case $lt_cv_dlopen_self_static in
14971   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14972   *) enable_dlopen_self_static=unknown ;;
14973   esac
14974 fi
14975
14976
14977 # Report which librarie types wil actually be built
14978 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14979 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14980 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14981 echo "${ECHO_T}$can_build_shared" >&6
14982
14983 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14984 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14985 test "$can_build_shared" = "no" && enable_shared=no
14986
14987 # On AIX, shared libraries and static libraries use the same namespace, and
14988 # are all built from PIC.
14989 case "$host_os" in
14990 aix3*)
14991   test "$enable_shared" = yes && enable_static=no
14992   if test -n "$RANLIB"; then
14993     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14994     postinstall_cmds='$RANLIB $lib'
14995   fi
14996   ;;
14997
14998 aix4* | aix5*)
14999   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15000     test "$enable_shared" = yes && enable_static=no
15001   fi
15002     ;;
15003 esac
15004 echo "$as_me:$LINENO: result: $enable_shared" >&5
15005 echo "${ECHO_T}$enable_shared" >&6
15006
15007 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15008 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15009 # Make sure either enable_shared or enable_static is yes.
15010 test "$enable_shared" = yes || enable_static=yes
15011 echo "$as_me:$LINENO: result: $enable_static" >&5
15012 echo "${ECHO_T}$enable_static" >&6
15013
15014 # The else clause should only fire when bootstrapping the
15015 # libtool distribution, otherwise you forgot to ship ltmain.sh
15016 # with your package, and you will get complaints that there are
15017 # no rules to generate ltmain.sh.
15018 if test -f "$ltmain"; then
15019   # See if we are running on zsh, and set the options which allow our commands through
15020   # without removal of \ escapes.
15021   if test -n "${ZSH_VERSION+set}" ; then
15022     setopt NO_GLOB_SUBST
15023   fi
15024   # Now quote all the things that may contain metacharacters while being
15025   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15026   # variables and quote the copies for generation of the libtool script.
15027   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15028     SED SHELL STRIP \
15029     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15030     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15031     deplibs_check_method reload_flag reload_cmds need_locks \
15032     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15033     lt_cv_sys_global_symbol_to_c_name_address \
15034     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15035     old_postinstall_cmds old_postuninstall_cmds \
15036     compiler \
15037     CC \
15038     LD \
15039     lt_prog_compiler_wl \
15040     lt_prog_compiler_pic \
15041     lt_prog_compiler_static \
15042     lt_prog_compiler_no_builtin_flag \
15043     export_dynamic_flag_spec \
15044     thread_safe_flag_spec \
15045     whole_archive_flag_spec \
15046     enable_shared_with_static_runtimes \
15047     old_archive_cmds \
15048     old_archive_from_new_cmds \
15049     predep_objects \
15050     postdep_objects \
15051     predeps \
15052     postdeps \
15053     compiler_lib_search_path \
15054     archive_cmds \
15055     archive_expsym_cmds \
15056     postinstall_cmds \
15057     postuninstall_cmds \
15058     old_archive_from_expsyms_cmds \
15059     allow_undefined_flag \
15060     no_undefined_flag \
15061     export_symbols_cmds \
15062     hardcode_libdir_flag_spec \
15063     hardcode_libdir_flag_spec_ld \
15064     hardcode_libdir_separator \
15065     hardcode_automatic \
15066     module_cmds \
15067     module_expsym_cmds \
15068     lt_cv_prog_compiler_c_o \
15069     exclude_expsyms \
15070     include_expsyms; do
15071
15072     case $var in
15073     old_archive_cmds | \
15074     old_archive_from_new_cmds | \
15075     archive_cmds | \
15076     archive_expsym_cmds | \
15077     module_cmds | \
15078     module_expsym_cmds | \
15079     old_archive_from_expsyms_cmds | \
15080     export_symbols_cmds | \
15081     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15082     postinstall_cmds | postuninstall_cmds | \
15083     old_postinstall_cmds | old_postuninstall_cmds | \
15084     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15085       # Double-quote double-evaled strings.
15086       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15087       ;;
15088     *)
15089       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15090       ;;
15091     esac
15092   done
15093
15094   case $lt_echo in
15095   *'\$0 --fallback-echo"')
15096     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15097     ;;
15098   esac
15099
15100 cfgfile="${ofile}T"
15101   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15102   $rm -f "$cfgfile"
15103   { echo "$as_me:$LINENO: creating $ofile" >&5
15104 echo "$as_me: creating $ofile" >&6;}
15105
15106   cat <<__EOF__ >> "$cfgfile"
15107 #! $SHELL
15108
15109 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15110 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15111 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15112 #
15113 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
15114 # Free Software Foundation, Inc.
15115 #
15116 # This file is part of GNU Libtool:
15117 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15118 #
15119 # This program is free software; you can redistribute it and/or modify
15120 # it under the terms of the GNU General Public License as published by
15121 # the Free Software Foundation; either version 2 of the License, or
15122 # (at your option) any later version.
15123 #
15124 # This program is distributed in the hope that it will be useful, but
15125 # WITHOUT ANY WARRANTY; without even the implied warranty of
15126 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15127 # General Public License for more details.
15128 #
15129 # You should have received a copy of the GNU General Public License
15130 # along with this program; if not, write to the Free Software
15131 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15132 #
15133 # As a special exception to the GNU General Public License, if you
15134 # distribute this file as part of a program that contains a
15135 # configuration script generated by Autoconf, you may include it under
15136 # the same distribution terms that you use for the rest of that program.
15137
15138 # A sed program that does not truncate output.
15139 SED=$lt_SED
15140
15141 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15142 Xsed="$SED -e s/^X//"
15143
15144 # The HP-UX ksh and POSIX shell print the target directory to stdout
15145 # if CDPATH is set.
15146 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15147
15148 # The names of the tagged configurations supported by this script.
15149 available_tags=
15150
15151 # ### BEGIN LIBTOOL CONFIG
15152
15153 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15154
15155 # Shell to use when invoking shell scripts.
15156 SHELL=$lt_SHELL
15157
15158 # Whether or not to build shared libraries.
15159 build_libtool_libs=$enable_shared
15160
15161 # Whether or not to build static libraries.
15162 build_old_libs=$enable_static
15163
15164 # Whether or not to add -lc for building shared libraries.
15165 build_libtool_need_lc=$archive_cmds_need_lc
15166
15167 # Whether or not to disallow shared libs when runtime libs are static
15168 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15169
15170 # Whether or not to optimize for fast installation.
15171 fast_install=$enable_fast_install
15172
15173 # The host system.
15174 host_alias=$host_alias
15175 host=$host
15176
15177 # An echo program that does not interpret backslashes.
15178 echo=$lt_echo
15179
15180 # The archiver.
15181 AR=$lt_AR
15182 AR_FLAGS=$lt_AR_FLAGS
15183
15184 # A C compiler.
15185 LTCC=$lt_LTCC
15186
15187 # A language-specific compiler.
15188 CC=$lt_compiler
15189
15190 # Is the compiler the GNU C compiler?
15191 with_gcc=$GCC
15192
15193 # An ERE matcher.
15194 EGREP=$lt_EGREP
15195
15196 # The linker used to build libraries.
15197 LD=$lt_LD
15198
15199 # Whether we need hard or soft links.
15200 LN_S=$lt_LN_S
15201
15202 # A BSD-compatible nm program.
15203 NM=$lt_NM
15204
15205 # A symbol stripping program
15206 STRIP=$lt_STRIP
15207
15208 # Used to examine libraries when file_magic_cmd begins "file"
15209 MAGIC_CMD=$MAGIC_CMD
15210
15211 # Used on cygwin: DLL creation program.
15212 DLLTOOL="$DLLTOOL"
15213
15214 # Used on cygwin: object dumper.
15215 OBJDUMP="$OBJDUMP"
15216
15217 # Used on cygwin: assembler.
15218 AS="$AS"
15219
15220 # The name of the directory that contains temporary libtool files.
15221 objdir=$objdir
15222
15223 # How to create reloadable object files.
15224 reload_flag=$lt_reload_flag
15225 reload_cmds=$lt_reload_cmds
15226
15227 # How to pass a linker flag through the compiler.
15228 wl=$lt_lt_prog_compiler_wl
15229
15230 # Object file suffix (normally "o").
15231 objext="$ac_objext"
15232
15233 # Old archive suffix (normally "a").
15234 libext="$libext"
15235
15236 # Shared library suffix (normally ".so").
15237 shrext_cmds='$shrext_cmds'
15238
15239 # Executable file suffix (normally "").
15240 exeext="$exeext"
15241
15242 # Additional compiler flags for building library objects.
15243 pic_flag=$lt_lt_prog_compiler_pic
15244 pic_mode=$pic_mode
15245
15246 # What is the maximum length of a command?
15247 max_cmd_len=$lt_cv_sys_max_cmd_len
15248
15249 # Does compiler simultaneously support -c and -o options?
15250 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15251
15252 # Must we lock files when doing compilation ?
15253 need_locks=$lt_need_locks
15254
15255 # Do we need the lib prefix for modules?
15256 need_lib_prefix=$need_lib_prefix
15257
15258 # Do we need a version for libraries?
15259 need_version=$need_version
15260
15261 # Whether dlopen is supported.
15262 dlopen_support=$enable_dlopen
15263
15264 # Whether dlopen of programs is supported.
15265 dlopen_self=$enable_dlopen_self
15266
15267 # Whether dlopen of statically linked programs is supported.
15268 dlopen_self_static=$enable_dlopen_self_static
15269
15270 # Compiler flag to prevent dynamic linking.
15271 link_static_flag=$lt_lt_prog_compiler_static
15272
15273 # Compiler flag to turn off builtin functions.
15274 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15275
15276 # Compiler flag to allow reflexive dlopens.
15277 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15278
15279 # Compiler flag to generate shared objects directly from archives.
15280 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15281
15282 # Compiler flag to generate thread-safe objects.
15283 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15284
15285 # Library versioning type.
15286 version_type=$version_type
15287
15288 # Format of library name prefix.
15289 libname_spec=$lt_libname_spec
15290
15291 # List of archive names.  First name is the real one, the rest are links.
15292 # The last name is the one that the linker finds with -lNAME.
15293 library_names_spec=$lt_library_names_spec
15294
15295 # The coded name of the library, if different from the real name.
15296 soname_spec=$lt_soname_spec
15297
15298 # Commands used to build and install an old-style archive.
15299 RANLIB=$lt_RANLIB
15300 old_archive_cmds=$lt_old_archive_cmds
15301 old_postinstall_cmds=$lt_old_postinstall_cmds
15302 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15303
15304 # Create an old-style archive from a shared archive.
15305 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15306
15307 # Create a temporary old-style archive to link instead of a shared archive.
15308 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15309
15310 # Commands used to build and install a shared archive.
15311 archive_cmds=$lt_archive_cmds
15312 archive_expsym_cmds=$lt_archive_expsym_cmds
15313 postinstall_cmds=$lt_postinstall_cmds
15314 postuninstall_cmds=$lt_postuninstall_cmds
15315
15316 # Commands used to build a loadable module (assumed same as above if empty)
15317 module_cmds=$lt_module_cmds
15318 module_expsym_cmds=$lt_module_expsym_cmds
15319
15320 # Commands to strip libraries.
15321 old_striplib=$lt_old_striplib
15322 striplib=$lt_striplib
15323
15324 # Dependencies to place before the objects being linked to create a
15325 # shared library.
15326 predep_objects=$lt_predep_objects
15327
15328 # Dependencies to place after the objects being linked to create a
15329 # shared library.
15330 postdep_objects=$lt_postdep_objects
15331
15332 # Dependencies to place before the objects being linked to create a
15333 # shared library.
15334 predeps=$lt_predeps
15335
15336 # Dependencies to place after the objects being linked to create a
15337 # shared library.
15338 postdeps=$lt_postdeps
15339
15340 # The library search path used internally by the compiler when linking
15341 # a shared library.
15342 compiler_lib_search_path=$lt_compiler_lib_search_path
15343
15344 # Method to check whether dependent libraries are shared objects.
15345 deplibs_check_method=$lt_deplibs_check_method
15346
15347 # Command to use when deplibs_check_method == file_magic.
15348 file_magic_cmd=$lt_file_magic_cmd
15349
15350 # Flag that allows shared libraries with undefined symbols to be built.
15351 allow_undefined_flag=$lt_allow_undefined_flag
15352
15353 # Flag that forces no undefined symbols.
15354 no_undefined_flag=$lt_no_undefined_flag
15355
15356 # Commands used to finish a libtool library installation in a directory.
15357 finish_cmds=$lt_finish_cmds
15358
15359 # Same as above, but a single script fragment to be evaled but not shown.
15360 finish_eval=$lt_finish_eval
15361
15362 # Take the output of nm and produce a listing of raw symbols and C names.
15363 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15364
15365 # Transform the output of nm in a proper C declaration
15366 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15367
15368 # Transform the output of nm in a C name address pair
15369 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15370
15371 # This is the shared library runtime path variable.
15372 runpath_var=$runpath_var
15373
15374 # This is the shared library path variable.
15375 shlibpath_var=$shlibpath_var
15376
15377 # Is shlibpath searched before the hard-coded library search path?
15378 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15379
15380 # How to hardcode a shared library path into an executable.
15381 hardcode_action=$hardcode_action
15382
15383 # Whether we should hardcode library paths into libraries.
15384 hardcode_into_libs=$hardcode_into_libs
15385
15386 # Flag to hardcode \$libdir into a binary during linking.
15387 # This must work even if \$libdir does not exist.
15388 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15389
15390 # If ld is used when linking, flag to hardcode \$libdir into
15391 # a binary during linking. This must work even if \$libdir does
15392 # not exist.
15393 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15394
15395 # Whether we need a single -rpath flag with a separated argument.
15396 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15397
15398 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15399 # resulting binary.
15400 hardcode_direct=$hardcode_direct
15401
15402 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15403 # resulting binary.
15404 hardcode_minus_L=$hardcode_minus_L
15405
15406 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15407 # the resulting binary.
15408 hardcode_shlibpath_var=$hardcode_shlibpath_var
15409
15410 # Set to yes if building a shared library automatically hardcodes DIR into the library
15411 # and all subsequent libraries and executables linked against it.
15412 hardcode_automatic=$hardcode_automatic
15413
15414 # Variables whose values should be saved in libtool wrapper scripts and
15415 # restored at relink time.
15416 variables_saved_for_relink="$variables_saved_for_relink"
15417
15418 # Whether libtool must link a program against all its dependency libraries.
15419 link_all_deplibs=$link_all_deplibs
15420
15421 # Compile-time system search path for libraries
15422 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15423
15424 # Run-time system search path for libraries
15425 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15426
15427 # Fix the shell variable \$srcfile for the compiler.
15428 fix_srcfile_path="$fix_srcfile_path"
15429
15430 # Set to yes if exported symbols are required.
15431 always_export_symbols=$always_export_symbols
15432
15433 # The commands to list exported symbols.
15434 export_symbols_cmds=$lt_export_symbols_cmds
15435
15436 # The commands to extract the exported symbol list from a shared archive.
15437 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15438
15439 # Symbols that should not be listed in the preloaded symbols.
15440 exclude_expsyms=$lt_exclude_expsyms
15441
15442 # Symbols that must always be exported.
15443 include_expsyms=$lt_include_expsyms
15444
15445 # ### END LIBTOOL CONFIG
15446
15447 __EOF__
15448
15449
15450   case $host_os in
15451   aix3*)
15452     cat <<\EOF >> "$cfgfile"
15453
15454 # AIX sometimes has problems with the GCC collect2 program.  For some
15455 # reason, if we set the COLLECT_NAMES environment variable, the problems
15456 # vanish in a puff of smoke.
15457 if test "X${COLLECT_NAMES+set}" != Xset; then
15458   COLLECT_NAMES=
15459   export COLLECT_NAMES
15460 fi
15461 EOF
15462     ;;
15463   esac
15464
15465   # We use sed instead of cat because bash on DJGPP gets confused if
15466   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15467   # text mode, it properly converts lines to CR/LF.  This bash problem
15468   # is reportedly fixed, but why not run on old versions too?
15469   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15470
15471   mv -f "$cfgfile" "$ofile" || \
15472     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15473   chmod +x "$ofile"
15474
15475 else
15476   # If there is no Makefile yet, we rely on a make rule to execute
15477   # `config.status --recheck' to rerun these tests and create the
15478   # libtool script then.
15479   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15480   if test -f "$ltmain_in"; then
15481     test -f Makefile && make "$ltmain"
15482   fi
15483 fi
15484
15485
15486 ac_ext=c
15487 ac_cpp='$CPP $CPPFLAGS'
15488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15491
15492 CC="$lt_save_CC"
15493
15494
15495 # Check whether --with-tags or --without-tags was given.
15496 if test "${with_tags+set}" = set; then
15497   withval="$with_tags"
15498   tagnames="$withval"
15499 fi;
15500
15501 if test -f "$ltmain" && test -n "$tagnames"; then
15502   if test ! -f "${ofile}"; then
15503     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15504 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15505   fi
15506
15507   if test -z "$LTCC"; then
15508     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15509     if test -z "$LTCC"; then
15510       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15511 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15512     else
15513       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15514 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15515     fi
15516   fi
15517
15518   # Extract list of available tagged configurations in $ofile.
15519   # Note that this assumes the entire list is on one line.
15520   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15521
15522   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15523   for tagname in $tagnames; do
15524     IFS="$lt_save_ifs"
15525     # Check whether tagname contains only valid characters
15526     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15527     "") ;;
15528     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15529 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15530    { (exit 1); exit 1; }; }
15531         ;;
15532     esac
15533
15534     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15535     then
15536       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15537 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15538    { (exit 1); exit 1; }; }
15539     fi
15540
15541     # Update the list of available tags.
15542     if test -n "$tagname"; then
15543       echo appending configuration tag "$tagname" to $ofile
15544
15545       case $tagname in
15546       CXX)
15547         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15548             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15549             (test "X$CXX" != "Xg++"))) ; then
15550           ac_ext=cc
15551 ac_cpp='$CXXCPP $CPPFLAGS'
15552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15555
15556
15557
15558
15559 archive_cmds_need_lc_CXX=no
15560 allow_undefined_flag_CXX=
15561 always_export_symbols_CXX=no
15562 archive_expsym_cmds_CXX=
15563 export_dynamic_flag_spec_CXX=
15564 hardcode_direct_CXX=no
15565 hardcode_libdir_flag_spec_CXX=
15566 hardcode_libdir_flag_spec_ld_CXX=
15567 hardcode_libdir_separator_CXX=
15568 hardcode_minus_L_CXX=no
15569 hardcode_automatic_CXX=no
15570 module_cmds_CXX=
15571 module_expsym_cmds_CXX=
15572 link_all_deplibs_CXX=unknown
15573 old_archive_cmds_CXX=$old_archive_cmds
15574 no_undefined_flag_CXX=
15575 whole_archive_flag_spec_CXX=
15576 enable_shared_with_static_runtimes_CXX=no
15577
15578 # Dependencies to place before and after the object being linked:
15579 predep_objects_CXX=
15580 postdep_objects_CXX=
15581 predeps_CXX=
15582 postdeps_CXX=
15583 compiler_lib_search_path_CXX=
15584
15585 # Source file extension for C++ test sources.
15586 ac_ext=cc
15587
15588 # Object file extension for compiled C++ test sources.
15589 objext=o
15590 objext_CXX=$objext
15591
15592 # Code to be used in simple compile tests
15593 lt_simple_compile_test_code="int some_variable = 0;\n"
15594
15595 # Code to be used in simple link tests
15596 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15597
15598 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15599
15600 # If no C compiler was specified, use CC.
15601 LTCC=${LTCC-"$CC"}
15602
15603 # Allow CC to be a program name with arguments.
15604 compiler=$CC
15605
15606
15607 # Allow CC to be a program name with arguments.
15608 lt_save_CC=$CC
15609 lt_save_LD=$LD
15610 lt_save_GCC=$GCC
15611 GCC=$GXX
15612 lt_save_with_gnu_ld=$with_gnu_ld
15613 lt_save_path_LD=$lt_cv_path_LD
15614 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15615   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15616 else
15617   unset lt_cv_prog_gnu_ld
15618 fi
15619 if test -n "${lt_cv_path_LDCXX+set}"; then
15620   lt_cv_path_LD=$lt_cv_path_LDCXX
15621 else
15622   unset lt_cv_path_LD
15623 fi
15624 test -z "${LDCXX+set}" || LD=$LDCXX
15625 CC=${CXX-"c++"}
15626 compiler=$CC
15627 compiler_CXX=$CC
15628 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15629
15630 # We don't want -fno-exception wen compiling C++ code, so set the
15631 # no_builtin_flag separately
15632 if test "$GXX" = yes; then
15633   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15634 else
15635   lt_prog_compiler_no_builtin_flag_CXX=
15636 fi
15637
15638 if test "$GXX" = yes; then
15639   # Set up default GNU C++ configuration
15640
15641
15642 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15643 if test "${with_gnu_ld+set}" = set; then
15644   withval="$with_gnu_ld"
15645   test "$withval" = no || with_gnu_ld=yes
15646 else
15647   with_gnu_ld=no
15648 fi;
15649 ac_prog=ld
15650 if test "$GCC" = yes; then
15651   # Check if gcc -print-prog-name=ld gives a path.
15652   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15653 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15654   case $host in
15655   *-*-mingw*)
15656     # gcc leaves a trailing carriage return which upsets mingw
15657     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15658   *)
15659     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15660   esac
15661   case $ac_prog in
15662     # Accept absolute paths.
15663     [\\/]* | ?:[\\/]*)
15664       re_direlt='/[^/][^/]*/\.\./'
15665       # Canonicalize the pathname of ld
15666       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15667       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15668         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15669       done
15670       test -z "$LD" && LD="$ac_prog"
15671       ;;
15672   "")
15673     # If it fails, then pretend we aren't using GCC.
15674     ac_prog=ld
15675     ;;
15676   *)
15677     # If it is relative, then search for the first ld in PATH.
15678     with_gnu_ld=unknown
15679     ;;
15680   esac
15681 elif test "$with_gnu_ld" = yes; then
15682   echo "$as_me:$LINENO: checking for GNU ld" >&5
15683 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15684 else
15685   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15686 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15687 fi
15688 if test "${lt_cv_path_LD+set}" = set; then
15689   echo $ECHO_N "(cached) $ECHO_C" >&6
15690 else
15691   if test -z "$LD"; then
15692   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15693   for ac_dir in $PATH; do
15694     IFS="$lt_save_ifs"
15695     test -z "$ac_dir" && ac_dir=.
15696     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15697       lt_cv_path_LD="$ac_dir/$ac_prog"
15698       # Check to see if the program is GNU ld.  I'd rather use --version,
15699       # but apparently some GNU ld's only accept -v.
15700       # Break only if it was the GNU/non-GNU ld that we prefer.
15701       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15702       *GNU* | *'with BFD'*)
15703         test "$with_gnu_ld" != no && break
15704         ;;
15705       *)
15706         test "$with_gnu_ld" != yes && break
15707         ;;
15708       esac
15709     fi
15710   done
15711   IFS="$lt_save_ifs"
15712 else
15713   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15714 fi
15715 fi
15716
15717 LD="$lt_cv_path_LD"
15718 if test -n "$LD"; then
15719   echo "$as_me:$LINENO: result: $LD" >&5
15720 echo "${ECHO_T}$LD" >&6
15721 else
15722   echo "$as_me:$LINENO: result: no" >&5
15723 echo "${ECHO_T}no" >&6
15724 fi
15725 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15726 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15727    { (exit 1); exit 1; }; }
15728 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15729 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15730 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15731   echo $ECHO_N "(cached) $ECHO_C" >&6
15732 else
15733   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15734 case `$LD -v 2>&1 </dev/null` in
15735 *GNU* | *'with BFD'*)
15736   lt_cv_prog_gnu_ld=yes
15737   ;;
15738 *)
15739   lt_cv_prog_gnu_ld=no
15740   ;;
15741 esac
15742 fi
15743 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15744 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15745 with_gnu_ld=$lt_cv_prog_gnu_ld
15746
15747
15748
15749   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15750   # archiving commands below assume that GNU ld is being used.
15751   if test "$with_gnu_ld" = yes; then
15752     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15753     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'
15754
15755     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15756     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15757
15758     # If archive_cmds runs LD, not CC, wlarc should be empty
15759     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15760     #     investigate it a little bit more. (MM)
15761     wlarc='${wl}'
15762
15763     # ancient GNU ld didn't support --whole-archive et. al.
15764     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15765         grep 'no-whole-archive' > /dev/null; then
15766       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15767     else
15768       whole_archive_flag_spec_CXX=
15769     fi
15770   else
15771     with_gnu_ld=no
15772     wlarc=
15773
15774     # A generic and very simple default shared library creation
15775     # command for GNU C++ for the case where it uses the native
15776     # linker, instead of GNU ld.  If possible, this setting should
15777     # overridden to take advantage of the native linker features on
15778     # the platform it is being used on.
15779     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15780   fi
15781
15782   # Commands to make compiler produce verbose output that lists
15783   # what "hidden" libraries, object files and flags are used when
15784   # linking a shared library.
15785   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15786
15787 else
15788   GXX=no
15789   with_gnu_ld=no
15790   wlarc=
15791 fi
15792
15793 # PORTME: fill in a description of your system's C++ link characteristics
15794 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15795 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15796 ld_shlibs_CXX=yes
15797 case $host_os in
15798   aix3*)
15799     # FIXME: insert proper C++ library support
15800     ld_shlibs_CXX=no
15801     ;;
15802   aix4* | aix5*)
15803     if test "$host_cpu" = ia64; then
15804       # On IA64, the linker does run time linking by default, so we don't
15805       # have to do anything special.
15806       aix_use_runtimelinking=no
15807       exp_sym_flag='-Bexport'
15808       no_entry_flag=""
15809     else
15810       aix_use_runtimelinking=no
15811
15812       # Test if we are trying to use run time linking or normal
15813       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15814       # need to do runtime linking.
15815       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15816         for ld_flag in $LDFLAGS; do
15817           case $ld_flag in
15818           *-brtl*)
15819             aix_use_runtimelinking=yes
15820             break
15821             ;;
15822           esac
15823         done
15824       esac
15825
15826       exp_sym_flag='-bexport'
15827       no_entry_flag='-bnoentry'
15828     fi
15829
15830     # When large executables or shared objects are built, AIX ld can
15831     # have problems creating the table of contents.  If linking a library
15832     # or program results in "error TOC overflow" add -mminimal-toc to
15833     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15834     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15835
15836     archive_cmds_CXX=''
15837     hardcode_direct_CXX=yes
15838     hardcode_libdir_separator_CXX=':'
15839     link_all_deplibs_CXX=yes
15840
15841     if test "$GXX" = yes; then
15842       case $host_os in aix4.012|aix4.012.*)
15843       # We only want to do this on AIX 4.2 and lower, the check
15844       # below for broken collect2 doesn't work under 4.3+
15845         collect2name=`${CC} -print-prog-name=collect2`
15846         if test -f "$collect2name" && \
15847            strings "$collect2name" | grep resolve_lib_name >/dev/null
15848         then
15849           # We have reworked collect2
15850           hardcode_direct_CXX=yes
15851         else
15852           # We have old collect2
15853           hardcode_direct_CXX=unsupported
15854           # It fails to find uninstalled libraries when the uninstalled
15855           # path is not listed in the libpath.  Setting hardcode_minus_L
15856           # to unsupported forces relinking
15857           hardcode_minus_L_CXX=yes
15858           hardcode_libdir_flag_spec_CXX='-L$libdir'
15859           hardcode_libdir_separator_CXX=
15860         fi
15861       esac
15862       shared_flag='-shared'
15863     else
15864       # not using gcc
15865       if test "$host_cpu" = ia64; then
15866         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15867         # chokes on -Wl,-G. The following line is correct:
15868         shared_flag='-G'
15869       else
15870         if test "$aix_use_runtimelinking" = yes; then
15871           shared_flag='${wl}-G'
15872         else
15873           shared_flag='${wl}-bM:SRE'
15874         fi
15875       fi
15876     fi
15877
15878     # It seems that -bexpall does not export symbols beginning with
15879     # underscore (_), so it is better to generate a list of symbols to export.
15880     always_export_symbols_CXX=yes
15881     if test "$aix_use_runtimelinking" = yes; then
15882       # Warning - without using the other runtime loading flags (-brtl),
15883       # -berok will link without error, but may produce a broken library.
15884       allow_undefined_flag_CXX='-berok'
15885       # Determine the default libpath from the value encoded in an empty executable.
15886       cat >conftest.$ac_ext <<_ACEOF
15887 /* confdefs.h.  */
15888 _ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h.  */
15892
15893 int
15894 main ()
15895 {
15896
15897   ;
15898   return 0;
15899 }
15900 _ACEOF
15901 rm -f conftest.$ac_objext conftest$ac_exeext
15902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15903   (eval $ac_link) 2>conftest.er1
15904   ac_status=$?
15905   grep -v '^ *+' conftest.er1 >conftest.err
15906   rm -f conftest.er1
15907   cat conftest.err >&5
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   (exit $ac_status); } &&
15910          { ac_try='test -z "$ac_cxx_werror_flag"
15911                          || test ! -s conftest.err'
15912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913   (eval $ac_try) 2>&5
15914   ac_status=$?
15915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916   (exit $ac_status); }; } &&
15917          { ac_try='test -s conftest$ac_exeext'
15918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919   (eval $ac_try) 2>&5
15920   ac_status=$?
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); }; }; then
15923
15924 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15925 }'`
15926 # Check for a 64-bit object if we didn't find anything.
15927 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; }
15928 }'`; fi
15929 else
15930   echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15932
15933 fi
15934 rm -f conftest.err conftest.$ac_objext \
15935       conftest$ac_exeext conftest.$ac_ext
15936 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15937
15938       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15939
15940       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"
15941      else
15942       if test "$host_cpu" = ia64; then
15943         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15944         allow_undefined_flag_CXX="-z nodefs"
15945         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"
15946       else
15947         # Determine the default libpath from the value encoded in an empty executable.
15948         cat >conftest.$ac_ext <<_ACEOF
15949 /* confdefs.h.  */
15950 _ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h.  */
15954
15955 int
15956 main ()
15957 {
15958
15959   ;
15960   return 0;
15961 }
15962 _ACEOF
15963 rm -f conftest.$ac_objext conftest$ac_exeext
15964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15965   (eval $ac_link) 2>conftest.er1
15966   ac_status=$?
15967   grep -v '^ *+' conftest.er1 >conftest.err
15968   rm -f conftest.er1
15969   cat conftest.err >&5
15970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971   (exit $ac_status); } &&
15972          { ac_try='test -z "$ac_cxx_werror_flag"
15973                          || test ! -s conftest.err'
15974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975   (eval $ac_try) 2>&5
15976   ac_status=$?
15977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978   (exit $ac_status); }; } &&
15979          { ac_try='test -s conftest$ac_exeext'
15980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15981   (eval $ac_try) 2>&5
15982   ac_status=$?
15983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984   (exit $ac_status); }; }; then
15985
15986 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15987 }'`
15988 # Check for a 64-bit object if we didn't find anything.
15989 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; }
15990 }'`; fi
15991 else
15992   echo "$as_me: failed program was:" >&5
15993 sed 's/^/| /' conftest.$ac_ext >&5
15994
15995 fi
15996 rm -f conftest.err conftest.$ac_objext \
15997       conftest$ac_exeext conftest.$ac_ext
15998 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15999
16000         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16001         # Warning - without using the other run time loading flags,
16002         # -berok will link without error, but may produce a broken library.
16003         no_undefined_flag_CXX=' ${wl}-bernotok'
16004         allow_undefined_flag_CXX=' ${wl}-berok'
16005         # -bexpall does not export symbols beginning with underscore (_)
16006         always_export_symbols_CXX=yes
16007         # Exported symbols can be pulled into shared objects from archives
16008         whole_archive_flag_spec_CXX=' '
16009         archive_cmds_need_lc_CXX=yes
16010         # This is similar to how AIX traditionally builds it's shared libraries.
16011         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'
16012       fi
16013     fi
16014     ;;
16015   chorus*)
16016     case $cc_basename in
16017       *)
16018         # FIXME: insert proper C++ library support
16019         ld_shlibs_CXX=no
16020         ;;
16021     esac
16022     ;;
16023
16024
16025   cygwin* | mingw* | pw32*)
16026     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16027     # as there is no search path for DLLs.
16028     hardcode_libdir_flag_spec_CXX='-L$libdir'
16029     allow_undefined_flag_CXX=unsupported
16030     always_export_symbols_CXX=no
16031     enable_shared_with_static_runtimes_CXX=yes
16032
16033     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16034       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'
16035       # If the export-symbols file already is a .def file (1st line
16036       # is EXPORTS), use it as is; otherwise, prepend...
16037       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16038         cp $export_symbols $output_objdir/$soname.def;
16039       else
16040         echo EXPORTS > $output_objdir/$soname.def;
16041         cat $export_symbols >> $output_objdir/$soname.def;
16042       fi~
16043       $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'
16044     else
16045       ld_shlibs_CXX=no
16046     fi
16047   ;;
16048       darwin* | rhapsody*)
16049         case "$host_os" in
16050         rhapsody* | darwin1.[012])
16051          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
16052          ;;
16053        *) # Darwin 1.3 on
16054          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16055            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16056          else
16057            case ${MACOSX_DEPLOYMENT_TARGET} in
16058              10.[012])
16059                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16060                ;;
16061              10.*)
16062                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
16063                ;;
16064            esac
16065          fi
16066          ;;
16067         esac
16068       archive_cmds_need_lc_CXX=no
16069       hardcode_direct_CXX=no
16070       hardcode_automatic_CXX=yes
16071       hardcode_shlibpath_var_CXX=unsupported
16072       whole_archive_flag_spec_CXX=''
16073       link_all_deplibs_CXX=yes
16074
16075     if test "$GXX" = yes ; then
16076       lt_int_apple_cc_single_mod=no
16077       output_verbose_link_cmd='echo'
16078       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
16079        lt_int_apple_cc_single_mod=yes
16080       fi
16081       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16082        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16083       else
16084           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'
16085         fi
16086         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16087         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16088           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16089             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}'
16090           else
16091             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}'
16092           fi
16093             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}'
16094       else
16095       case "$cc_basename" in
16096         xlc*)
16097          output_verbose_link_cmd='echo'
16098           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'
16099           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16100           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16101           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}'
16102           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}'
16103           ;;
16104        *)
16105          ld_shlibs_CXX=no
16106           ;;
16107       esac
16108       fi
16109         ;;
16110
16111   dgux*)
16112     case $cc_basename in
16113       ec++)
16114         # FIXME: insert proper C++ library support
16115         ld_shlibs_CXX=no
16116         ;;
16117       ghcx)
16118         # Green Hills C++ Compiler
16119         # FIXME: insert proper C++ library support
16120         ld_shlibs_CXX=no
16121         ;;
16122       *)
16123         # FIXME: insert proper C++ library support
16124         ld_shlibs_CXX=no
16125         ;;
16126     esac
16127     ;;
16128   freebsd12*)
16129     # C++ shared libraries reported to be fairly broken before switch to ELF
16130     ld_shlibs_CXX=no
16131     ;;
16132   freebsd-elf*)
16133     archive_cmds_need_lc_CXX=no
16134     ;;
16135   freebsd* | kfreebsd*-gnu)
16136     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16137     # conventions
16138     ld_shlibs_CXX=yes
16139     ;;
16140   gnu*)
16141     ;;
16142   hpux9*)
16143     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16144     hardcode_libdir_separator_CXX=:
16145     export_dynamic_flag_spec_CXX='${wl}-E'
16146     hardcode_direct_CXX=yes
16147     hardcode_minus_L_CXX=yes # Not in the search PATH,
16148                                 # but as the default
16149                                 # location of the library.
16150
16151     case $cc_basename in
16152     CC)
16153       # FIXME: insert proper C++ library support
16154       ld_shlibs_CXX=no
16155       ;;
16156     aCC)
16157       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'
16158       # Commands to make compiler produce verbose output that lists
16159       # what "hidden" libraries, object files and flags are used when
16160       # linking a shared library.
16161       #
16162       # There doesn't appear to be a way to prevent this compiler from
16163       # explicitly linking system object files so we need to strip them
16164       # from the output so that they don't get included in the library
16165       # dependencies.
16166       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'
16167       ;;
16168     *)
16169       if test "$GXX" = yes; then
16170         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'
16171       else
16172         # FIXME: insert proper C++ library support
16173         ld_shlibs_CXX=no
16174       fi
16175       ;;
16176     esac
16177     ;;
16178   hpux10*|hpux11*)
16179     if test $with_gnu_ld = no; then
16180       case "$host_cpu" in
16181       hppa*64*)
16182         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16183         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
16184         hardcode_libdir_separator_CXX=:
16185         ;;
16186       ia64*)
16187         hardcode_libdir_flag_spec_CXX='-L$libdir'
16188         ;;
16189       *)
16190         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16191         hardcode_libdir_separator_CXX=:
16192         export_dynamic_flag_spec_CXX='${wl}-E'
16193         ;;
16194       esac
16195     fi
16196     case "$host_cpu" in
16197     hppa*64*)
16198       hardcode_direct_CXX=no
16199       hardcode_shlibpath_var_CXX=no
16200       ;;
16201     ia64*)
16202       hardcode_direct_CXX=no
16203       hardcode_shlibpath_var_CXX=no
16204       hardcode_minus_L_CXX=yes # Not in the search PATH,
16205                                               # but as the default
16206                                               # location of the library.
16207       ;;
16208     *)
16209       hardcode_direct_CXX=yes
16210       hardcode_minus_L_CXX=yes # Not in the search PATH,
16211                                               # but as the default
16212                                               # location of the library.
16213       ;;
16214     esac
16215
16216     case $cc_basename in
16217       CC)
16218         # FIXME: insert proper C++ library support
16219         ld_shlibs_CXX=no
16220         ;;
16221       aCC)
16222         case "$host_cpu" in
16223         hppa*64*|ia64*)
16224           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16225           ;;
16226         *)
16227           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16228           ;;
16229         esac
16230         # Commands to make compiler produce verbose output that lists
16231         # what "hidden" libraries, object files and flags are used when
16232         # linking a shared library.
16233         #
16234         # There doesn't appear to be a way to prevent this compiler from
16235         # explicitly linking system object files so we need to strip them
16236         # from the output so that they don't get included in the library
16237         # dependencies.
16238         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'
16239         ;;
16240       *)
16241         if test "$GXX" = yes; then
16242           if test $with_gnu_ld = no; then
16243             case "$host_cpu" in
16244             ia64*|hppa*64*)
16245               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16246               ;;
16247             *)
16248               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'
16249               ;;
16250             esac
16251           fi
16252         else
16253           # FIXME: insert proper C++ library support
16254           ld_shlibs_CXX=no
16255         fi
16256         ;;
16257     esac
16258     ;;
16259   irix5* | irix6*)
16260     case $cc_basename in
16261       CC)
16262         # SGI C++
16263         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'
16264
16265         # Archives containing C++ object files must be created using
16266         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16267         # necessary to make sure instantiated templates are included
16268         # in the archive.
16269         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16270         ;;
16271       *)
16272         if test "$GXX" = yes; then
16273           if test "$with_gnu_ld" = no; then
16274             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'
16275           else
16276             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'
16277           fi
16278         fi
16279         link_all_deplibs_CXX=yes
16280         ;;
16281     esac
16282     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16283     hardcode_libdir_separator_CXX=:
16284     ;;
16285   linux*)
16286     case $cc_basename in
16287       KCC)
16288         # Kuck and Associates, Inc. (KAI) C++ Compiler
16289
16290         # KCC will only create a shared library if the output file
16291         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16292         # to its proper name (with version) after linking.
16293         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'
16294         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'
16295         # Commands to make compiler produce verbose output that lists
16296         # what "hidden" libraries, object files and flags are used when
16297         # linking a shared library.
16298         #
16299         # There doesn't appear to be a way to prevent this compiler from
16300         # explicitly linking system object files so we need to strip them
16301         # from the output so that they don't get included in the library
16302         # dependencies.
16303         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'
16304
16305         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16306         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16307
16308         # Archives containing C++ object files must be created using
16309         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16310         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16311         ;;
16312       icpc)
16313         # Intel C++
16314         with_gnu_ld=yes
16315         # version 8.0 and above of icpc choke on multiply defined symbols
16316         # if we add $predep_objects and $postdep_objects, however 7.1 and
16317         # earlier do not add the objects themselves.
16318         case `$CC -V 2>&1` in
16319         *"Version 7."*)
16320           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16321           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'
16322           ;;
16323         *)  # Version 8.0 or newer
16324           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16325         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16326           ;;
16327         esac
16328         archive_cmds_need_lc_CXX=no
16329         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16330         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16331         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16332         ;;
16333       cxx)
16334         # Compaq C++
16335         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16336         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'
16337
16338         runpath_var=LD_RUN_PATH
16339         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16340         hardcode_libdir_separator_CXX=:
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         #
16346         # There doesn't appear to be a way to prevent this compiler from
16347         # explicitly linking system object files so we need to strip them
16348         # from the output so that they don't get included in the library
16349         # dependencies.
16350         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'
16351         ;;
16352     esac
16353     ;;
16354   lynxos*)
16355     # FIXME: insert proper C++ library support
16356     ld_shlibs_CXX=no
16357     ;;
16358   m88k*)
16359     # FIXME: insert proper C++ library support
16360     ld_shlibs_CXX=no
16361     ;;
16362   mvs*)
16363     case $cc_basename in
16364       cxx)
16365         # FIXME: insert proper C++ library support
16366         ld_shlibs_CXX=no
16367         ;;
16368       *)
16369         # FIXME: insert proper C++ library support
16370         ld_shlibs_CXX=no
16371         ;;
16372     esac
16373     ;;
16374   netbsd*)
16375     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16376       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16377       wlarc=
16378       hardcode_libdir_flag_spec_CXX='-R$libdir'
16379       hardcode_direct_CXX=yes
16380       hardcode_shlibpath_var_CXX=no
16381     fi
16382     # Workaround some broken pre-1.5 toolchains
16383     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16384     ;;
16385   openbsd2*)
16386     # C++ shared libraries are fairly broken
16387     ld_shlibs_CXX=no
16388     ;;
16389   openbsd*)
16390     hardcode_direct_CXX=yes
16391     hardcode_shlibpath_var_CXX=no
16392     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16393     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16394     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16395       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16396       export_dynamic_flag_spec_CXX='${wl}-E'
16397       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16398     fi
16399     output_verbose_link_cmd='echo'
16400     ;;
16401   osf3*)
16402     case $cc_basename in
16403       KCC)
16404         # Kuck and Associates, Inc. (KAI) C++ Compiler
16405
16406         # KCC will only create a shared library if the output file
16407         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16408         # to its proper name (with version) after linking.
16409         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'
16410
16411         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16412         hardcode_libdir_separator_CXX=:
16413
16414         # Archives containing C++ object files must be created using
16415         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16416         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16417
16418         ;;
16419       RCC)
16420         # Rational C++ 2.4.1
16421         # FIXME: insert proper C++ library support
16422         ld_shlibs_CXX=no
16423         ;;
16424       cxx)
16425         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16426         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'
16427
16428         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16429         hardcode_libdir_separator_CXX=:
16430
16431         # Commands to make compiler produce verbose output that lists
16432         # what "hidden" libraries, object files and flags are used when
16433         # linking a shared library.
16434         #
16435         # There doesn't appear to be a way to prevent this compiler from
16436         # explicitly linking system object files so we need to strip them
16437         # from the output so that they don't get included in the library
16438         # dependencies.
16439         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'
16440         ;;
16441       *)
16442         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16443           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16444           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'
16445
16446           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16447           hardcode_libdir_separator_CXX=:
16448
16449           # Commands to make compiler produce verbose output that lists
16450           # what "hidden" libraries, object files and flags are used when
16451           # linking a shared library.
16452           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16453
16454         else
16455           # FIXME: insert proper C++ library support
16456           ld_shlibs_CXX=no
16457         fi
16458         ;;
16459     esac
16460     ;;
16461   osf4* | osf5*)
16462     case $cc_basename in
16463       KCC)
16464         # Kuck and Associates, Inc. (KAI) C++ Compiler
16465
16466         # KCC will only create a shared library if the output file
16467         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16468         # to its proper name (with version) after linking.
16469         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'
16470
16471         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16472         hardcode_libdir_separator_CXX=:
16473
16474         # Archives containing C++ object files must be created using
16475         # the KAI C++ compiler.
16476         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16477         ;;
16478       RCC)
16479         # Rational C++ 2.4.1
16480         # FIXME: insert proper C++ library support
16481         ld_shlibs_CXX=no
16482         ;;
16483       cxx)
16484         allow_undefined_flag_CXX=' -expect_unresolved \*'
16485         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'
16486         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16487           echo "-hidden">> $lib.exp~
16488           $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~
16489           $rm $lib.exp'
16490
16491         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16492         hardcode_libdir_separator_CXX=:
16493
16494         # Commands to make compiler produce verbose output that lists
16495         # what "hidden" libraries, object files and flags are used when
16496         # linking a shared library.
16497         #
16498         # There doesn't appear to be a way to prevent this compiler from
16499         # explicitly linking system object files so we need to strip them
16500         # from the output so that they don't get included in the library
16501         # dependencies.
16502         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'
16503         ;;
16504       *)
16505         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16506           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16507          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'
16508
16509           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16510           hardcode_libdir_separator_CXX=:
16511
16512           # Commands to make compiler produce verbose output that lists
16513           # what "hidden" libraries, object files and flags are used when
16514           # linking a shared library.
16515           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16516
16517         else
16518           # FIXME: insert proper C++ library support
16519           ld_shlibs_CXX=no
16520         fi
16521         ;;
16522     esac
16523     ;;
16524   psos*)
16525     # FIXME: insert proper C++ library support
16526     ld_shlibs_CXX=no
16527     ;;
16528   sco*)
16529     archive_cmds_need_lc_CXX=no
16530     case $cc_basename in
16531       CC)
16532         # FIXME: insert proper C++ library support
16533         ld_shlibs_CXX=no
16534         ;;
16535       *)
16536         # FIXME: insert proper C++ library support
16537         ld_shlibs_CXX=no
16538         ;;
16539     esac
16540     ;;
16541   sunos4*)
16542     case $cc_basename in
16543       CC)
16544         # Sun C++ 4.x
16545         # FIXME: insert proper C++ library support
16546         ld_shlibs_CXX=no
16547         ;;
16548       lcc)
16549         # Lucid
16550         # FIXME: insert proper C++ library support
16551         ld_shlibs_CXX=no
16552         ;;
16553       *)
16554         # FIXME: insert proper C++ library support
16555         ld_shlibs_CXX=no
16556         ;;
16557     esac
16558     ;;
16559   solaris*)
16560     case $cc_basename in
16561       CC)
16562         # Sun C++ 4.2, 5.x and Centerline C++
16563         no_undefined_flag_CXX=' -zdefs'
16564         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16565         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16566         $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'
16567
16568         hardcode_libdir_flag_spec_CXX='-R$libdir'
16569         hardcode_shlibpath_var_CXX=no
16570         case $host_os in
16571           solaris2.0-5 | solaris2.0-5.*) ;;
16572           *)
16573             # The C++ compiler is used as linker so we must use $wl
16574             # flag to pass the commands to the underlying system
16575             # linker.
16576             # Supported since Solaris 2.6 (maybe 2.5.1?)
16577             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16578             ;;
16579         esac
16580         link_all_deplibs_CXX=yes
16581
16582         # Commands to make compiler produce verbose output that lists
16583         # what "hidden" libraries, object files and flags are used when
16584         # linking a shared library.
16585         #
16586         # There doesn't appear to be a way to prevent this compiler from
16587         # explicitly linking system object files so we need to strip them
16588         # from the output so that they don't get included in the library
16589         # dependencies.
16590         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'
16591
16592         # Archives containing C++ object files must be created using
16593         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16594         # necessary to make sure instantiated templates are included
16595         # in the archive.
16596         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16597         ;;
16598       gcx)
16599         # Green Hills C++ Compiler
16600         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16601
16602         # The C++ compiler must be used to create the archive.
16603         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16604         ;;
16605       *)
16606         # GNU C++ compiler with Solaris linker
16607         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16608           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16609           if $CC --version | grep -v '^2\.7' > /dev/null; then
16610             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16611             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16612                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16613
16614             # Commands to make compiler produce verbose output that lists
16615             # what "hidden" libraries, object files and flags are used when
16616             # linking a shared library.
16617             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16618           else
16619             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16620             # platform.
16621             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16622             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16623                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16624
16625             # Commands to make compiler produce verbose output that lists
16626             # what "hidden" libraries, object files and flags are used when
16627             # linking a shared library.
16628             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16629           fi
16630
16631           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16632         fi
16633         ;;
16634     esac
16635     ;;
16636   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16637     archive_cmds_need_lc_CXX=no
16638     ;;
16639   tandem*)
16640     case $cc_basename in
16641       NCC)
16642         # NonStop-UX NCC 3.20
16643         # FIXME: insert proper C++ library support
16644         ld_shlibs_CXX=no
16645         ;;
16646       *)
16647         # FIXME: insert proper C++ library support
16648         ld_shlibs_CXX=no
16649         ;;
16650     esac
16651     ;;
16652   vxworks*)
16653     # FIXME: insert proper C++ library support
16654     ld_shlibs_CXX=no
16655     ;;
16656   *)
16657     # FIXME: insert proper C++ library support
16658     ld_shlibs_CXX=no
16659     ;;
16660 esac
16661 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16662 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16663 test "$ld_shlibs_CXX" = no && can_build_shared=no
16664
16665 GCC_CXX="$GXX"
16666 LD_CXX="$LD"
16667
16668
16669 cat > conftest.$ac_ext <<EOF
16670 class Foo
16671 {
16672 public:
16673   Foo (void) { a = 0; }
16674 private:
16675   int a;
16676 };
16677 EOF
16678
16679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16680   (eval $ac_compile) 2>&5
16681   ac_status=$?
16682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683   (exit $ac_status); }; then
16684   # Parse the compiler output and extract the necessary
16685   # objects, libraries and library flags.
16686
16687   # Sentinel used to keep track of whether or not we are before
16688   # the conftest object file.
16689   pre_test_object_deps_done=no
16690
16691   # The `*' in the case matches for architectures that use `case' in
16692   # $output_verbose_cmd can trigger glob expansion during the loop
16693   # eval without this substitution.
16694   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16695
16696   for p in `eval $output_verbose_link_cmd`; do
16697     case $p in
16698
16699     -L* | -R* | -l*)
16700        # Some compilers place space between "-{L,R}" and the path.
16701        # Remove the space.
16702        if test $p = "-L" \
16703           || test $p = "-R"; then
16704          prev=$p
16705          continue
16706        else
16707          prev=
16708        fi
16709
16710        if test "$pre_test_object_deps_done" = no; then
16711          case $p in
16712          -L* | -R*)
16713            # Internal compiler library paths should come after those
16714            # provided the user.  The postdeps already come after the
16715            # user supplied libs so there is no need to process them.
16716            if test -z "$compiler_lib_search_path_CXX"; then
16717              compiler_lib_search_path_CXX="${prev}${p}"
16718            else
16719              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16720            fi
16721            ;;
16722          # The "-l" case would never come before the object being
16723          # linked, so don't bother handling this case.
16724          esac
16725        else
16726          if test -z "$postdeps_CXX"; then
16727            postdeps_CXX="${prev}${p}"
16728          else
16729            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16730          fi
16731        fi
16732        ;;
16733
16734     *.$objext)
16735        # This assumes that the test object file only shows up
16736        # once in the compiler output.
16737        if test "$p" = "conftest.$objext"; then
16738          pre_test_object_deps_done=yes
16739          continue
16740        fi
16741
16742        if test "$pre_test_object_deps_done" = no; then
16743          if test -z "$predep_objects_CXX"; then
16744            predep_objects_CXX="$p"
16745          else
16746            predep_objects_CXX="$predep_objects_CXX $p"
16747          fi
16748        else
16749          if test -z "$postdep_objects_CXX"; then
16750            postdep_objects_CXX="$p"
16751          else
16752            postdep_objects_CXX="$postdep_objects_CXX $p"
16753          fi
16754        fi
16755        ;;
16756
16757     *) ;; # Ignore the rest.
16758
16759     esac
16760   done
16761
16762   # Clean up.
16763   rm -f a.out a.exe
16764 else
16765   echo "libtool.m4: error: problem compiling CXX test program"
16766 fi
16767
16768 $rm -f confest.$objext
16769
16770 case " $postdeps_CXX " in
16771 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16772 esac
16773
16774 lt_prog_compiler_wl_CXX=
16775 lt_prog_compiler_pic_CXX=
16776 lt_prog_compiler_static_CXX=
16777
16778 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16779 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16780
16781   # C++ specific cases for pic, static, wl, etc.
16782   if test "$GXX" = yes; then
16783     lt_prog_compiler_wl_CXX='-Wl,'
16784     lt_prog_compiler_static_CXX='-static'
16785
16786     case $host_os in
16787     aix*)
16788       # All AIX code is PIC.
16789       if test "$host_cpu" = ia64; then
16790         # AIX 5 now supports IA64 processor
16791         lt_prog_compiler_static_CXX='-Bstatic'
16792       fi
16793       ;;
16794     amigaos*)
16795       # FIXME: we need at least 68020 code to build shared libraries, but
16796       # adding the `-m68020' flag to GCC prevents building anything better,
16797       # like `-m68040'.
16798       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16799       ;;
16800     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16801       # PIC is the default for these OSes.
16802       ;;
16803     mingw* | os2* | pw32*)
16804       # This hack is so that the source file can tell whether it is being
16805       # built for inclusion in a dll (and should export symbols for example).
16806       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16807       ;;
16808     darwin* | rhapsody*)
16809       # PIC is the default on this platform
16810       # Common symbols not allowed in MH_DYLIB files
16811       lt_prog_compiler_pic_CXX='-fno-common'
16812       ;;
16813     *djgpp*)
16814       # DJGPP does not support shared libraries at all
16815       lt_prog_compiler_pic_CXX=
16816       ;;
16817     sysv4*MP*)
16818       if test -d /usr/nec; then
16819         lt_prog_compiler_pic_CXX=-Kconform_pic
16820       fi
16821       ;;
16822     hpux*)
16823       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16824       # not for PA HP-UX.
16825       case "$host_cpu" in
16826       hppa*64*|ia64*)
16827         ;;
16828       *)
16829         lt_prog_compiler_pic_CXX='-fPIC'
16830         ;;
16831       esac
16832       ;;
16833     *)
16834       lt_prog_compiler_pic_CXX='-fPIC'
16835       ;;
16836     esac
16837   else
16838     case $host_os in
16839       aix4* | aix5*)
16840         # All AIX code is PIC.
16841         if test "$host_cpu" = ia64; then
16842           # AIX 5 now supports IA64 processor
16843           lt_prog_compiler_static_CXX='-Bstatic'
16844         else
16845           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16846         fi
16847         ;;
16848       chorus*)
16849         case $cc_basename in
16850         cxch68)
16851           # Green Hills C++ Compiler
16852           # _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"
16853           ;;
16854         esac
16855         ;;
16856        darwin*)
16857          # PIC is the default on this platform
16858          # Common symbols not allowed in MH_DYLIB files
16859          case "$cc_basename" in
16860            xlc*)
16861            lt_prog_compiler_pic_CXX='-qnocommon'
16862            lt_prog_compiler_wl_CXX='-Wl,'
16863            ;;
16864          esac
16865        ;;
16866       dgux*)
16867         case $cc_basename in
16868           ec++)
16869             lt_prog_compiler_pic_CXX='-KPIC'
16870             ;;
16871           ghcx)
16872             # Green Hills C++ Compiler
16873             lt_prog_compiler_pic_CXX='-pic'
16874             ;;
16875           *)
16876             ;;
16877         esac
16878         ;;
16879       freebsd* | kfreebsd*-gnu)
16880         # FreeBSD uses GNU C++
16881         ;;
16882       hpux9* | hpux10* | hpux11*)
16883         case $cc_basename in
16884           CC)
16885             lt_prog_compiler_wl_CXX='-Wl,'
16886             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16887             if test "$host_cpu" != ia64; then
16888               lt_prog_compiler_pic_CXX='+Z'
16889             fi
16890             ;;
16891           aCC)
16892             lt_prog_compiler_wl_CXX='-Wl,'
16893             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16894             case "$host_cpu" in
16895             hppa*64*|ia64*)
16896               # +Z the default
16897               ;;
16898             *)
16899               lt_prog_compiler_pic_CXX='+Z'
16900               ;;
16901             esac
16902             ;;
16903           *)
16904             ;;
16905         esac
16906         ;;
16907       irix5* | irix6* | nonstopux*)
16908         case $cc_basename in
16909           CC)
16910             lt_prog_compiler_wl_CXX='-Wl,'
16911             lt_prog_compiler_static_CXX='-non_shared'
16912             # CC pic flag -KPIC is the default.
16913             ;;
16914           *)
16915             ;;
16916         esac
16917         ;;
16918       linux*)
16919         case $cc_basename in
16920           KCC)
16921             # KAI C++ Compiler
16922             lt_prog_compiler_wl_CXX='--backend -Wl,'
16923             lt_prog_compiler_pic_CXX='-fPIC'
16924             ;;
16925           icpc)
16926             # Intel C++
16927             lt_prog_compiler_wl_CXX='-Wl,'
16928             lt_prog_compiler_pic_CXX='-KPIC'
16929             lt_prog_compiler_static_CXX='-static'
16930             ;;
16931           cxx)
16932             # Compaq C++
16933             # Make sure the PIC flag is empty.  It appears that all Alpha
16934             # Linux and Compaq Tru64 Unix objects are PIC.
16935             lt_prog_compiler_pic_CXX=
16936             lt_prog_compiler_static_CXX='-non_shared'
16937             ;;
16938           *)
16939             ;;
16940         esac
16941         ;;
16942       lynxos*)
16943         ;;
16944       m88k*)
16945         ;;
16946       mvs*)
16947         case $cc_basename in
16948           cxx)
16949             lt_prog_compiler_pic_CXX='-W c,exportall'
16950             ;;
16951           *)
16952             ;;
16953         esac
16954         ;;
16955       netbsd*)
16956         ;;
16957       osf3* | osf4* | osf5*)
16958         case $cc_basename in
16959           KCC)
16960             lt_prog_compiler_wl_CXX='--backend -Wl,'
16961             ;;
16962           RCC)
16963             # Rational C++ 2.4.1
16964             lt_prog_compiler_pic_CXX='-pic'
16965             ;;
16966           cxx)
16967             # Digital/Compaq C++
16968             lt_prog_compiler_wl_CXX='-Wl,'
16969             # Make sure the PIC flag is empty.  It appears that all Alpha
16970             # Linux and Compaq Tru64 Unix objects are PIC.
16971             lt_prog_compiler_pic_CXX=
16972             lt_prog_compiler_static_CXX='-non_shared'
16973             ;;
16974           *)
16975             ;;
16976         esac
16977         ;;
16978       psos*)
16979         ;;
16980       sco*)
16981         case $cc_basename in
16982           CC)
16983             lt_prog_compiler_pic_CXX='-fPIC'
16984             ;;
16985           *)
16986             ;;
16987         esac
16988         ;;
16989       solaris*)
16990         case $cc_basename in
16991           CC)
16992             # Sun C++ 4.2, 5.x and Centerline C++
16993             lt_prog_compiler_pic_CXX='-KPIC'
16994             lt_prog_compiler_static_CXX='-Bstatic'
16995             lt_prog_compiler_wl_CXX='-Qoption ld '
16996             ;;
16997           gcx)
16998             # Green Hills C++ Compiler
16999             lt_prog_compiler_pic_CXX='-PIC'
17000             ;;
17001           *)
17002             ;;
17003         esac
17004         ;;
17005       sunos4*)
17006         case $cc_basename in
17007           CC)
17008             # Sun C++ 4.x
17009             lt_prog_compiler_pic_CXX='-pic'
17010             lt_prog_compiler_static_CXX='-Bstatic'
17011             ;;
17012           lcc)
17013             # Lucid
17014             lt_prog_compiler_pic_CXX='-pic'
17015             ;;
17016           *)
17017             ;;
17018         esac
17019         ;;
17020       tandem*)
17021         case $cc_basename in
17022           NCC)
17023             # NonStop-UX NCC 3.20
17024             lt_prog_compiler_pic_CXX='-KPIC'
17025             ;;
17026           *)
17027             ;;
17028         esac
17029         ;;
17030       unixware*)
17031         ;;
17032       vxworks*)
17033         ;;
17034       *)
17035         lt_prog_compiler_can_build_shared_CXX=no
17036         ;;
17037     esac
17038   fi
17039
17040 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17041 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
17042
17043 #
17044 # Check to make sure the PIC flag actually works.
17045 #
17046 if test -n "$lt_prog_compiler_pic_CXX"; then
17047
17048 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17049 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
17050 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
17051   echo $ECHO_N "(cached) $ECHO_C" >&6
17052 else
17053   lt_prog_compiler_pic_works_CXX=no
17054   ac_outfile=conftest.$ac_objext
17055    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17056    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17057    # Insert the option either (1) after the last *FLAGS variable, or
17058    # (2) before a word containing "conftest.", or (3) at the end.
17059    # Note that $ac_compile itself does not contain backslashes and begins
17060    # with a dollar sign (not a hyphen), so the echo should work correctly.
17061    # The option is referenced via a variable to avoid confusing sed.
17062    lt_compile=`echo "$ac_compile" | $SED \
17063    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17064    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17065    -e 's:$: $lt_compiler_flag:'`
17066    (eval echo "\"\$as_me:17066: $lt_compile\"" >&5)
17067    (eval "$lt_compile" 2>conftest.err)
17068    ac_status=$?
17069    cat conftest.err >&5
17070    echo "$as_me:17070: \$? = $ac_status" >&5
17071    if (exit $ac_status) && test -s "$ac_outfile"; then
17072      # The compiler can only warn and ignore the option if not recognized
17073      # So say no if there are warnings
17074      if test ! -s conftest.err; then
17075        lt_prog_compiler_pic_works_CXX=yes
17076      fi
17077    fi
17078    $rm conftest*
17079
17080 fi
17081 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
17082 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
17083
17084 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
17085     case $lt_prog_compiler_pic_CXX in
17086      "" | " "*) ;;
17087      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17088      esac
17089 else
17090     lt_prog_compiler_pic_CXX=
17091      lt_prog_compiler_can_build_shared_CXX=no
17092 fi
17093
17094 fi
17095 case "$host_os" in
17096   # For platforms which do not support PIC, -DPIC is meaningless:
17097   *djgpp*)
17098     lt_prog_compiler_pic_CXX=
17099     ;;
17100   *)
17101     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17102     ;;
17103 esac
17104
17105 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17106 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17107 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17108   echo $ECHO_N "(cached) $ECHO_C" >&6
17109 else
17110   lt_cv_prog_compiler_c_o_CXX=no
17111    $rm -r conftest 2>/dev/null
17112    mkdir conftest
17113    cd conftest
17114    mkdir out
17115    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17116
17117    lt_compiler_flag="-o out/conftest2.$ac_objext"
17118    # Insert the option either (1) after the last *FLAGS variable, or
17119    # (2) before a word containing "conftest.", or (3) at the end.
17120    # Note that $ac_compile itself does not contain backslashes and begins
17121    # with a dollar sign (not a hyphen), so the echo should work correctly.
17122    lt_compile=`echo "$ac_compile" | $SED \
17123    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17124    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17125    -e 's:$: $lt_compiler_flag:'`
17126    (eval echo "\"\$as_me:17126: $lt_compile\"" >&5)
17127    (eval "$lt_compile" 2>out/conftest.err)
17128    ac_status=$?
17129    cat out/conftest.err >&5
17130    echo "$as_me:17130: \$? = $ac_status" >&5
17131    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17132    then
17133      # The compiler can only warn and ignore the option if not recognized
17134      # So say no if there are warnings
17135      if test ! -s out/conftest.err; then
17136        lt_cv_prog_compiler_c_o_CXX=yes
17137      fi
17138    fi
17139    chmod u+w .
17140    $rm conftest*
17141    # SGI C++ compiler will create directory out/ii_files/ for
17142    # template instantiation
17143    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17144    $rm out/* && rmdir out
17145    cd ..
17146    rmdir conftest
17147    $rm conftest*
17148
17149 fi
17150 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17151 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
17152
17153
17154 hard_links="nottested"
17155 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17156   # do not overwrite the value of need_locks provided by the user
17157   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17158 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17159   hard_links=yes
17160   $rm conftest*
17161   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17162   touch conftest.a
17163   ln conftest.a conftest.b 2>&5 || hard_links=no
17164   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17165   echo "$as_me:$LINENO: result: $hard_links" >&5
17166 echo "${ECHO_T}$hard_links" >&6
17167   if test "$hard_links" = no; then
17168     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17169 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17170     need_locks=warn
17171   fi
17172 else
17173   need_locks=no
17174 fi
17175
17176 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17177 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17178
17179   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17180   case $host_os in
17181   aix4* | aix5*)
17182     # If we're using GNU nm, then we don't want the "-C" option.
17183     # -C means demangle to AIX nm, but means don't demangle with GNU nm
17184     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17185       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'
17186     else
17187       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'
17188     fi
17189     ;;
17190   pw32*)
17191     export_symbols_cmds_CXX="$ltdll_cmds"
17192   ;;
17193   cygwin* | mingw*)
17194     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17195   ;;
17196   *)
17197     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17198   ;;
17199   esac
17200
17201 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17202 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17203 test "$ld_shlibs_CXX" = no && can_build_shared=no
17204
17205 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17206 if test "$GCC" = yes; then
17207   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17208 fi
17209
17210 #
17211 # Do we need to explicitly link libc?
17212 #
17213 case "x$archive_cmds_need_lc_CXX" in
17214 x|xyes)
17215   # Assume -lc should be added
17216   archive_cmds_need_lc_CXX=yes
17217
17218   if test "$enable_shared" = yes && test "$GCC" = yes; then
17219     case $archive_cmds_CXX in
17220     *'~'*)
17221       # FIXME: we may have to deal with multi-command sequences.
17222       ;;
17223     '$CC '*)
17224       # Test whether the compiler implicitly links with -lc since on some
17225       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17226       # to ld, don't add -lc before -lgcc.
17227       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17228 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17229       $rm conftest*
17230       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17231
17232       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17233   (eval $ac_compile) 2>&5
17234   ac_status=$?
17235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236   (exit $ac_status); } 2>conftest.err; then
17237         soname=conftest
17238         lib=conftest
17239         libobjs=conftest.$ac_objext
17240         deplibs=
17241         wl=$lt_prog_compiler_wl_CXX
17242         compiler_flags=-v
17243         linker_flags=-v
17244         verstring=
17245         output_objdir=.
17246         libname=conftest
17247         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17248         allow_undefined_flag_CXX=
17249         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17250   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17251   ac_status=$?
17252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253   (exit $ac_status); }
17254         then
17255           archive_cmds_need_lc_CXX=no
17256         else
17257           archive_cmds_need_lc_CXX=yes
17258         fi
17259         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17260       else
17261         cat conftest.err 1>&5
17262       fi
17263       $rm conftest*
17264       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17265 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17266       ;;
17267     esac
17268   fi
17269   ;;
17270 esac
17271
17272 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17273 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17274 library_names_spec=
17275 libname_spec='lib$name'
17276 soname_spec=
17277 shrext_cmds=".so"
17278 postinstall_cmds=
17279 postuninstall_cmds=
17280 finish_cmds=
17281 finish_eval=
17282 shlibpath_var=
17283 shlibpath_overrides_runpath=unknown
17284 version_type=none
17285 dynamic_linker="$host_os ld.so"
17286 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17287 if test "$GCC" = yes; then
17288   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17289   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17290     # if the path contains ";" then we assume it to be the separator
17291     # otherwise default to the standard path separator (i.e. ":") - it is
17292     # assumed that no part of a normal pathname contains ";" but that should
17293     # okay in the real world where ";" in dirpaths is itself problematic.
17294     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17295   else
17296     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17297   fi
17298 else
17299   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17300 fi
17301 need_lib_prefix=unknown
17302 hardcode_into_libs=no
17303
17304 # when you set need_version to no, make sure it does not cause -set_version
17305 # flags to be left without arguments
17306 need_version=unknown
17307
17308 case $host_os in
17309 aix3*)
17310   version_type=linux
17311   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17312   shlibpath_var=LIBPATH
17313
17314   # AIX 3 has no versioning support, so we append a major version to the name.
17315   soname_spec='${libname}${release}${shared_ext}$major'
17316   ;;
17317
17318 aix4* | aix5*)
17319   version_type=linux
17320   need_lib_prefix=no
17321   need_version=no
17322   hardcode_into_libs=yes
17323   if test "$host_cpu" = ia64; then
17324     # AIX 5 supports IA64
17325     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17326     shlibpath_var=LD_LIBRARY_PATH
17327   else
17328     # With GCC up to 2.95.x, collect2 would create an import file
17329     # for dependence libraries.  The import file would start with
17330     # the line `#! .'.  This would cause the generated library to
17331     # depend on `.', always an invalid library.  This was fixed in
17332     # development snapshots of GCC prior to 3.0.
17333     case $host_os in
17334       aix4 | aix4.[01] | aix4.[01].*)
17335       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17336            echo ' yes '
17337            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17338         :
17339       else
17340         can_build_shared=no
17341       fi
17342       ;;
17343     esac
17344     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17345     # soname into executable. Probably we can add versioning support to
17346     # collect2, so additional links can be useful in future.
17347     if test "$aix_use_runtimelinking" = yes; then
17348       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17349       # instead of lib<name>.a to let people know that these are not
17350       # typical AIX shared libraries.
17351       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17352     else
17353       # We preserve .a as extension for shared libraries through AIX4.2
17354       # and later when we are not doing run time linking.
17355       library_names_spec='${libname}${release}.a $libname.a'
17356       soname_spec='${libname}${release}${shared_ext}$major'
17357     fi
17358     shlibpath_var=LIBPATH
17359   fi
17360   ;;
17361
17362 amigaos*)
17363   library_names_spec='$libname.ixlibrary $libname.a'
17364   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17365   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'
17366   ;;
17367
17368 beos*)
17369   library_names_spec='${libname}${shared_ext}'
17370   dynamic_linker="$host_os ld.so"
17371   shlibpath_var=LIBRARY_PATH
17372   ;;
17373
17374 bsdi[45]*)
17375   version_type=linux
17376   need_version=no
17377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378   soname_spec='${libname}${release}${shared_ext}$major'
17379   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17380   shlibpath_var=LD_LIBRARY_PATH
17381   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17382   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17383   # the default ld.so.conf also contains /usr/contrib/lib and
17384   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17385   # libtool to hard-code these into programs
17386   ;;
17387
17388 cygwin* | mingw* | pw32*)
17389   version_type=windows
17390   shrext_cmds=".dll"
17391   need_version=no
17392   need_lib_prefix=no
17393
17394   case $GCC,$host_os in
17395   yes,cygwin* | yes,mingw* | yes,pw32*)
17396     library_names_spec='$libname.dll.a'
17397     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17398     postinstall_cmds='base_file=`basename \${file}`~
17399       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17400       dldir=$destdir/`dirname \$dlpath`~
17401       test -d \$dldir || mkdir -p \$dldir~
17402       $install_prog $dir/$dlname \$dldir/$dlname'
17403     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17404       dlpath=$dir/\$dldll~
17405        $rm \$dlpath'
17406     shlibpath_overrides_runpath=yes
17407
17408     case $host_os in
17409     cygwin*)
17410       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17411       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17412       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17413       ;;
17414     mingw*)
17415       # MinGW DLLs use traditional 'lib' prefix
17416       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17417       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17418       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17419         # It is most probably a Windows format PATH printed by
17420         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17421         # path with ; separators, and with drive letters. We can handle the
17422         # drive letters (cygwin fileutils understands them), so leave them,
17423         # especially as we might pass files found there to a mingw objdump,
17424         # which wouldn't understand a cygwinified path. Ahh.
17425         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17426       else
17427         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17428       fi
17429       ;;
17430     pw32*)
17431       # pw32 DLLs use 'pw' prefix rather than 'lib'
17432       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17433       ;;
17434     esac
17435     ;;
17436
17437   *)
17438     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17439     ;;
17440   esac
17441   dynamic_linker='Win32 ld.exe'
17442   # FIXME: first we should search . and the directory the executable is in
17443   shlibpath_var=PATH
17444   ;;
17445
17446 darwin* | rhapsody*)
17447   dynamic_linker="$host_os dyld"
17448   version_type=darwin
17449   need_lib_prefix=no
17450   need_version=no
17451   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17452   soname_spec='${libname}${release}${major}$shared_ext'
17453   shlibpath_overrides_runpath=yes
17454   shlibpath_var=DYLD_LIBRARY_PATH
17455   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17456   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17457   if test "$GCC" = yes; then
17458     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"`
17459   else
17460     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17461   fi
17462   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17463   ;;
17464
17465 dgux*)
17466   version_type=linux
17467   need_lib_prefix=no
17468   need_version=no
17469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17470   soname_spec='${libname}${release}${shared_ext}$major'
17471   shlibpath_var=LD_LIBRARY_PATH
17472   ;;
17473
17474 freebsd1*)
17475   dynamic_linker=no
17476   ;;
17477
17478 kfreebsd*-gnu)
17479   version_type=linux
17480   need_lib_prefix=no
17481   need_version=no
17482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17483   soname_spec='${libname}${release}${shared_ext}$major'
17484   shlibpath_var=LD_LIBRARY_PATH
17485   shlibpath_overrides_runpath=no
17486   hardcode_into_libs=yes
17487   dynamic_linker='GNU ld.so'
17488   ;;
17489
17490 freebsd*)
17491   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17492   version_type=freebsd-$objformat
17493   case $version_type in
17494     freebsd-elf*)
17495       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17496       need_version=no
17497       need_lib_prefix=no
17498       ;;
17499     freebsd-*)
17500       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17501       need_version=yes
17502       ;;
17503   esac
17504   shlibpath_var=LD_LIBRARY_PATH
17505   case $host_os in
17506   freebsd2*)
17507     shlibpath_overrides_runpath=yes
17508     ;;
17509   freebsd3.01* | freebsdelf3.01*)
17510     shlibpath_overrides_runpath=yes
17511     hardcode_into_libs=yes
17512     ;;
17513   *) # from 3.2 on
17514     shlibpath_overrides_runpath=no
17515     hardcode_into_libs=yes
17516     ;;
17517   esac
17518   ;;
17519
17520 gnu*)
17521   version_type=linux
17522   need_lib_prefix=no
17523   need_version=no
17524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17525   soname_spec='${libname}${release}${shared_ext}$major'
17526   shlibpath_var=LD_LIBRARY_PATH
17527   hardcode_into_libs=yes
17528   ;;
17529
17530 hpux9* | hpux10* | hpux11*)
17531   # Give a soname corresponding to the major version so that dld.sl refuses to
17532   # link against other versions.
17533   version_type=sunos
17534   need_lib_prefix=no
17535   need_version=no
17536   case "$host_cpu" in
17537   ia64*)
17538     shrext_cmds='.so'
17539     hardcode_into_libs=yes
17540     dynamic_linker="$host_os dld.so"
17541     shlibpath_var=LD_LIBRARY_PATH
17542     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17543     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17544     soname_spec='${libname}${release}${shared_ext}$major'
17545     if test "X$HPUX_IA64_MODE" = X32; then
17546       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17547     else
17548       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17549     fi
17550     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17551     ;;
17552    hppa*64*)
17553      shrext_cmds='.sl'
17554      hardcode_into_libs=yes
17555      dynamic_linker="$host_os dld.sl"
17556      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17557      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17558      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17559      soname_spec='${libname}${release}${shared_ext}$major'
17560      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17561      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17562      ;;
17563    *)
17564     shrext_cmds='.sl'
17565     dynamic_linker="$host_os dld.sl"
17566     shlibpath_var=SHLIB_PATH
17567     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17568     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17569     soname_spec='${libname}${release}${shared_ext}$major'
17570     ;;
17571   esac
17572   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17573   postinstall_cmds='chmod 555 $lib'
17574   ;;
17575
17576 irix5* | irix6* | nonstopux*)
17577   case $host_os in
17578     nonstopux*) version_type=nonstopux ;;
17579     *)
17580         if test "$lt_cv_prog_gnu_ld" = yes; then
17581                 version_type=linux
17582         else
17583                 version_type=irix
17584         fi ;;
17585   esac
17586   need_lib_prefix=no
17587   need_version=no
17588   soname_spec='${libname}${release}${shared_ext}$major'
17589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17590   case $host_os in
17591   irix5* | nonstopux*)
17592     libsuff= shlibsuff=
17593     ;;
17594   *)
17595     case $LD in # libtool.m4 will add one of these switches to LD
17596     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17597       libsuff= shlibsuff= libmagic=32-bit;;
17598     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17599       libsuff=32 shlibsuff=N32 libmagic=N32;;
17600     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17601       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17602     *) libsuff= shlibsuff= libmagic=never-match;;
17603     esac
17604     ;;
17605   esac
17606   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17607   shlibpath_overrides_runpath=no
17608   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17609   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17610   hardcode_into_libs=yes
17611   ;;
17612
17613 # No shared lib support for Linux oldld, aout, or coff.
17614 linux*oldld* | linux*aout* | linux*coff*)
17615   dynamic_linker=no
17616   ;;
17617
17618 # This must be Linux ELF.
17619 linux*)
17620   version_type=linux
17621   need_lib_prefix=no
17622   need_version=no
17623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17624   soname_spec='${libname}${release}${shared_ext}$major'
17625   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17626   shlibpath_var=LD_LIBRARY_PATH
17627   shlibpath_overrides_runpath=no
17628   # This implies no fast_install, which is unacceptable.
17629   # Some rework will be needed to allow for fast_install
17630   # before this can be enabled.
17631   hardcode_into_libs=yes
17632
17633   # Append ld.so.conf contents to the search path
17634   if test -f /etc/ld.so.conf; then
17635     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17636     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17637   fi
17638
17639   # We used to test for /lib/ld.so.1 and disable shared libraries on
17640   # powerpc, because MkLinux only supported shared libraries with the
17641   # GNU dynamic linker.  Since this was broken with cross compilers,
17642   # most powerpc-linux boxes support dynamic linking these days and
17643   # people can always --disable-shared, the test was removed, and we
17644   # assume the GNU/Linux dynamic linker is in use.
17645   dynamic_linker='GNU/Linux ld.so'
17646   ;;
17647
17648 knetbsd*-gnu)
17649   version_type=linux
17650   need_lib_prefix=no
17651   need_version=no
17652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17653   soname_spec='${libname}${release}${shared_ext}$major'
17654   shlibpath_var=LD_LIBRARY_PATH
17655   shlibpath_overrides_runpath=no
17656   hardcode_into_libs=yes
17657   dynamic_linker='GNU ld.so'
17658   ;;
17659
17660 netbsd*)
17661   version_type=sunos
17662   need_lib_prefix=no
17663   need_version=no
17664   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17665     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17666     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17667     dynamic_linker='NetBSD (a.out) ld.so'
17668   else
17669     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17670     soname_spec='${libname}${release}${shared_ext}$major'
17671     dynamic_linker='NetBSD ld.elf_so'
17672   fi
17673   shlibpath_var=LD_LIBRARY_PATH
17674   shlibpath_overrides_runpath=yes
17675   hardcode_into_libs=yes
17676   ;;
17677
17678 newsos6)
17679   version_type=linux
17680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17681   shlibpath_var=LD_LIBRARY_PATH
17682   shlibpath_overrides_runpath=yes
17683   ;;
17684
17685 nto-qnx*)
17686   version_type=linux
17687   need_lib_prefix=no
17688   need_version=no
17689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17690   soname_spec='${libname}${release}${shared_ext}$major'
17691   shlibpath_var=LD_LIBRARY_PATH
17692   shlibpath_overrides_runpath=yes
17693   ;;
17694
17695 openbsd*)
17696   version_type=sunos
17697   need_lib_prefix=no
17698   need_version=no
17699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17700   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17701   shlibpath_var=LD_LIBRARY_PATH
17702   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17703     case $host_os in
17704       openbsd2.[89] | openbsd2.[89].*)
17705         shlibpath_overrides_runpath=no
17706         ;;
17707       *)
17708         shlibpath_overrides_runpath=yes
17709         ;;
17710       esac
17711   else
17712     shlibpath_overrides_runpath=yes
17713   fi
17714   ;;
17715
17716 os2*)
17717   libname_spec='$name'
17718   shrext_cmds=".dll"
17719   need_lib_prefix=no
17720   library_names_spec='$libname${shared_ext} $libname.a'
17721   dynamic_linker='OS/2 ld.exe'
17722   shlibpath_var=LIBPATH
17723   ;;
17724
17725 osf3* | osf4* | osf5*)
17726   version_type=osf
17727   need_lib_prefix=no
17728   need_version=no
17729   soname_spec='${libname}${release}${shared_ext}$major'
17730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17731   shlibpath_var=LD_LIBRARY_PATH
17732   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17733   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17734   ;;
17735
17736 sco3.2v5*)
17737   version_type=osf
17738   soname_spec='${libname}${release}${shared_ext}$major'
17739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17740   shlibpath_var=LD_LIBRARY_PATH
17741   ;;
17742
17743 solaris*)
17744   version_type=linux
17745   need_lib_prefix=no
17746   need_version=no
17747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17748   soname_spec='${libname}${release}${shared_ext}$major'
17749   shlibpath_var=LD_LIBRARY_PATH
17750   shlibpath_overrides_runpath=yes
17751   hardcode_into_libs=yes
17752   # ldd complains unless libraries are executable
17753   postinstall_cmds='chmod +x $lib'
17754   ;;
17755
17756 sunos4*)
17757   version_type=sunos
17758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17759   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17760   shlibpath_var=LD_LIBRARY_PATH
17761   shlibpath_overrides_runpath=yes
17762   if test "$with_gnu_ld" = yes; then
17763     need_lib_prefix=no
17764   fi
17765   need_version=yes
17766   ;;
17767
17768 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17769   version_type=linux
17770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17771   soname_spec='${libname}${release}${shared_ext}$major'
17772   shlibpath_var=LD_LIBRARY_PATH
17773   case $host_vendor in
17774     sni)
17775       shlibpath_overrides_runpath=no
17776       need_lib_prefix=no
17777       export_dynamic_flag_spec='${wl}-Blargedynsym'
17778       runpath_var=LD_RUN_PATH
17779       ;;
17780     siemens)
17781       need_lib_prefix=no
17782       ;;
17783     motorola)
17784       need_lib_prefix=no
17785       need_version=no
17786       shlibpath_overrides_runpath=no
17787       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17788       ;;
17789   esac
17790   ;;
17791
17792 sysv4*MP*)
17793   if test -d /usr/nec ;then
17794     version_type=linux
17795     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17796     soname_spec='$libname${shared_ext}.$major'
17797     shlibpath_var=LD_LIBRARY_PATH
17798   fi
17799   ;;
17800
17801 uts4*)
17802   version_type=linux
17803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17804   soname_spec='${libname}${release}${shared_ext}$major'
17805   shlibpath_var=LD_LIBRARY_PATH
17806   ;;
17807
17808 *)
17809   dynamic_linker=no
17810   ;;
17811 esac
17812 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17813 echo "${ECHO_T}$dynamic_linker" >&6
17814 test "$dynamic_linker" = no && can_build_shared=no
17815
17816 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17817 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17818 hardcode_action_CXX=
17819 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17820    test -n "$runpath_var_CXX" || \
17821    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17822
17823   # We can hardcode non-existant directories.
17824   if test "$hardcode_direct_CXX" != no &&
17825      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17826      # have to relink, otherwise we might link with an installed library
17827      # when we should be linking with a yet-to-be-installed one
17828      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17829      test "$hardcode_minus_L_CXX" != no; then
17830     # Linking always hardcodes the temporary library directory.
17831     hardcode_action_CXX=relink
17832   else
17833     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17834     hardcode_action_CXX=immediate
17835   fi
17836 else
17837   # We cannot hardcode anything, or else we can only hardcode existing
17838   # directories.
17839   hardcode_action_CXX=unsupported
17840 fi
17841 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17842 echo "${ECHO_T}$hardcode_action_CXX" >&6
17843
17844 if test "$hardcode_action_CXX" = relink; then
17845   # Fast installation is not supported
17846   enable_fast_install=no
17847 elif test "$shlibpath_overrides_runpath" = yes ||
17848      test "$enable_shared" = no; then
17849   # Fast installation is not necessary
17850   enable_fast_install=needless
17851 fi
17852
17853 striplib=
17854 old_striplib=
17855 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17856 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17857 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17858   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17859   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17860   echo "$as_me:$LINENO: result: yes" >&5
17861 echo "${ECHO_T}yes" >&6
17862 else
17863 # FIXME - insert some real tests, host_os isn't really good enough
17864   case $host_os in
17865    darwin*)
17866        if test -n "$STRIP" ; then
17867          striplib="$STRIP -x"
17868          echo "$as_me:$LINENO: result: yes" >&5
17869 echo "${ECHO_T}yes" >&6
17870        else
17871   echo "$as_me:$LINENO: result: no" >&5
17872 echo "${ECHO_T}no" >&6
17873 fi
17874        ;;
17875    *)
17876   echo "$as_me:$LINENO: result: no" >&5
17877 echo "${ECHO_T}no" >&6
17878     ;;
17879   esac
17880 fi
17881
17882 if test "x$enable_dlopen" != xyes; then
17883   enable_dlopen=unknown
17884   enable_dlopen_self=unknown
17885   enable_dlopen_self_static=unknown
17886 else
17887   lt_cv_dlopen=no
17888   lt_cv_dlopen_libs=
17889
17890   case $host_os in
17891   beos*)
17892     lt_cv_dlopen="load_add_on"
17893     lt_cv_dlopen_libs=
17894     lt_cv_dlopen_self=yes
17895     ;;
17896
17897   mingw* | pw32*)
17898     lt_cv_dlopen="LoadLibrary"
17899     lt_cv_dlopen_libs=
17900    ;;
17901
17902   cygwin*)
17903     lt_cv_dlopen="dlopen"
17904     lt_cv_dlopen_libs=
17905    ;;
17906
17907   darwin*)
17908   # if libdl is installed we need to link against it
17909     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17910 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17911 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17912   echo $ECHO_N "(cached) $ECHO_C" >&6
17913 else
17914   ac_check_lib_save_LIBS=$LIBS
17915 LIBS="-ldl  $LIBS"
17916 cat >conftest.$ac_ext <<_ACEOF
17917 /* confdefs.h.  */
17918 _ACEOF
17919 cat confdefs.h >>conftest.$ac_ext
17920 cat >>conftest.$ac_ext <<_ACEOF
17921 /* end confdefs.h.  */
17922
17923 /* Override any gcc2 internal prototype to avoid an error.  */
17924 #ifdef __cplusplus
17925 extern "C"
17926 #endif
17927 /* We use char because int might match the return type of a gcc2
17928    builtin and then its argument prototype would still apply.  */
17929 char dlopen ();
17930 int
17931 main ()
17932 {
17933 dlopen ();
17934   ;
17935   return 0;
17936 }
17937 _ACEOF
17938 rm -f conftest.$ac_objext conftest$ac_exeext
17939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17940   (eval $ac_link) 2>conftest.er1
17941   ac_status=$?
17942   grep -v '^ *+' conftest.er1 >conftest.err
17943   rm -f conftest.er1
17944   cat conftest.err >&5
17945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946   (exit $ac_status); } &&
17947          { ac_try='test -z "$ac_cxx_werror_flag"
17948                          || test ! -s conftest.err'
17949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950   (eval $ac_try) 2>&5
17951   ac_status=$?
17952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953   (exit $ac_status); }; } &&
17954          { ac_try='test -s conftest$ac_exeext'
17955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956   (eval $ac_try) 2>&5
17957   ac_status=$?
17958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959   (exit $ac_status); }; }; then
17960   ac_cv_lib_dl_dlopen=yes
17961 else
17962   echo "$as_me: failed program was:" >&5
17963 sed 's/^/| /' conftest.$ac_ext >&5
17964
17965 ac_cv_lib_dl_dlopen=no
17966 fi
17967 rm -f conftest.err conftest.$ac_objext \
17968       conftest$ac_exeext conftest.$ac_ext
17969 LIBS=$ac_check_lib_save_LIBS
17970 fi
17971 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17972 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17973 if test $ac_cv_lib_dl_dlopen = yes; then
17974   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17975 else
17976
17977     lt_cv_dlopen="dyld"
17978     lt_cv_dlopen_libs=
17979     lt_cv_dlopen_self=yes
17980
17981 fi
17982
17983    ;;
17984
17985   *)
17986     echo "$as_me:$LINENO: checking for shl_load" >&5
17987 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17988 if test "${ac_cv_func_shl_load+set}" = set; then
17989   echo $ECHO_N "(cached) $ECHO_C" >&6
17990 else
17991   cat >conftest.$ac_ext <<_ACEOF
17992 /* confdefs.h.  */
17993 _ACEOF
17994 cat confdefs.h >>conftest.$ac_ext
17995 cat >>conftest.$ac_ext <<_ACEOF
17996 /* end confdefs.h.  */
17997 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17999 #define shl_load innocuous_shl_load
18000
18001 /* System header to define __stub macros and hopefully few prototypes,
18002     which can conflict with char shl_load (); below.
18003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18004     <limits.h> exists even on freestanding compilers.  */
18005
18006 #ifdef __STDC__
18007 # include <limits.h>
18008 #else
18009 # include <assert.h>
18010 #endif
18011
18012 #undef shl_load
18013
18014 /* Override any gcc2 internal prototype to avoid an error.  */
18015 #ifdef __cplusplus
18016 extern "C"
18017 {
18018 #endif
18019 /* We use char because int might match the return type of a gcc2
18020    builtin and then its argument prototype would still apply.  */
18021 char shl_load ();
18022 /* The GNU C library defines this for functions which it implements
18023     to always fail with ENOSYS.  Some functions are actually named
18024     something starting with __ and the normal name is an alias.  */
18025 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18026 choke me
18027 #else
18028 char (*f) () = shl_load;
18029 #endif
18030 #ifdef __cplusplus
18031 }
18032 #endif
18033
18034 int
18035 main ()
18036 {
18037 return f != shl_load;
18038   ;
18039   return 0;
18040 }
18041 _ACEOF
18042 rm -f conftest.$ac_objext conftest$ac_exeext
18043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18044   (eval $ac_link) 2>conftest.er1
18045   ac_status=$?
18046   grep -v '^ *+' conftest.er1 >conftest.err
18047   rm -f conftest.er1
18048   cat conftest.err >&5
18049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050   (exit $ac_status); } &&
18051          { ac_try='test -z "$ac_cxx_werror_flag"
18052                          || test ! -s conftest.err'
18053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18054   (eval $ac_try) 2>&5
18055   ac_status=$?
18056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057   (exit $ac_status); }; } &&
18058          { ac_try='test -s conftest$ac_exeext'
18059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060   (eval $ac_try) 2>&5
18061   ac_status=$?
18062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063   (exit $ac_status); }; }; then
18064   ac_cv_func_shl_load=yes
18065 else
18066   echo "$as_me: failed program was:" >&5
18067 sed 's/^/| /' conftest.$ac_ext >&5
18068
18069 ac_cv_func_shl_load=no
18070 fi
18071 rm -f conftest.err conftest.$ac_objext \
18072       conftest$ac_exeext conftest.$ac_ext
18073 fi
18074 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18075 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18076 if test $ac_cv_func_shl_load = yes; then
18077   lt_cv_dlopen="shl_load"
18078 else
18079   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18080 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18081 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18082   echo $ECHO_N "(cached) $ECHO_C" >&6
18083 else
18084   ac_check_lib_save_LIBS=$LIBS
18085 LIBS="-ldld  $LIBS"
18086 cat >conftest.$ac_ext <<_ACEOF
18087 /* confdefs.h.  */
18088 _ACEOF
18089 cat confdefs.h >>conftest.$ac_ext
18090 cat >>conftest.$ac_ext <<_ACEOF
18091 /* end confdefs.h.  */
18092
18093 /* Override any gcc2 internal prototype to avoid an error.  */
18094 #ifdef __cplusplus
18095 extern "C"
18096 #endif
18097 /* We use char because int might match the return type of a gcc2
18098    builtin and then its argument prototype would still apply.  */
18099 char shl_load ();
18100 int
18101 main ()
18102 {
18103 shl_load ();
18104   ;
18105   return 0;
18106 }
18107 _ACEOF
18108 rm -f conftest.$ac_objext conftest$ac_exeext
18109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18110   (eval $ac_link) 2>conftest.er1
18111   ac_status=$?
18112   grep -v '^ *+' conftest.er1 >conftest.err
18113   rm -f conftest.er1
18114   cat conftest.err >&5
18115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116   (exit $ac_status); } &&
18117          { ac_try='test -z "$ac_cxx_werror_flag"
18118                          || test ! -s conftest.err'
18119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18120   (eval $ac_try) 2>&5
18121   ac_status=$?
18122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123   (exit $ac_status); }; } &&
18124          { ac_try='test -s conftest$ac_exeext'
18125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126   (eval $ac_try) 2>&5
18127   ac_status=$?
18128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129   (exit $ac_status); }; }; then
18130   ac_cv_lib_dld_shl_load=yes
18131 else
18132   echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18134
18135 ac_cv_lib_dld_shl_load=no
18136 fi
18137 rm -f conftest.err conftest.$ac_objext \
18138       conftest$ac_exeext conftest.$ac_ext
18139 LIBS=$ac_check_lib_save_LIBS
18140 fi
18141 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18142 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18143 if test $ac_cv_lib_dld_shl_load = yes; then
18144   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18145 else
18146   echo "$as_me:$LINENO: checking for dlopen" >&5
18147 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18148 if test "${ac_cv_func_dlopen+set}" = set; then
18149   echo $ECHO_N "(cached) $ECHO_C" >&6
18150 else
18151   cat >conftest.$ac_ext <<_ACEOF
18152 /* confdefs.h.  */
18153 _ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h.  */
18157 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18159 #define dlopen innocuous_dlopen
18160
18161 /* System header to define __stub macros and hopefully few prototypes,
18162     which can conflict with char dlopen (); below.
18163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18164     <limits.h> exists even on freestanding compilers.  */
18165
18166 #ifdef __STDC__
18167 # include <limits.h>
18168 #else
18169 # include <assert.h>
18170 #endif
18171
18172 #undef dlopen
18173
18174 /* Override any gcc2 internal prototype to avoid an error.  */
18175 #ifdef __cplusplus
18176 extern "C"
18177 {
18178 #endif
18179 /* We use char because int might match the return type of a gcc2
18180    builtin and then its argument prototype would still apply.  */
18181 char dlopen ();
18182 /* The GNU C library defines this for functions which it implements
18183     to always fail with ENOSYS.  Some functions are actually named
18184     something starting with __ and the normal name is an alias.  */
18185 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18186 choke me
18187 #else
18188 char (*f) () = dlopen;
18189 #endif
18190 #ifdef __cplusplus
18191 }
18192 #endif
18193
18194 int
18195 main ()
18196 {
18197 return f != dlopen;
18198   ;
18199   return 0;
18200 }
18201 _ACEOF
18202 rm -f conftest.$ac_objext conftest$ac_exeext
18203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18204   (eval $ac_link) 2>conftest.er1
18205   ac_status=$?
18206   grep -v '^ *+' conftest.er1 >conftest.err
18207   rm -f conftest.er1
18208   cat conftest.err >&5
18209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210   (exit $ac_status); } &&
18211          { ac_try='test -z "$ac_cxx_werror_flag"
18212                          || test ! -s conftest.err'
18213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214   (eval $ac_try) 2>&5
18215   ac_status=$?
18216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217   (exit $ac_status); }; } &&
18218          { ac_try='test -s conftest$ac_exeext'
18219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220   (eval $ac_try) 2>&5
18221   ac_status=$?
18222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223   (exit $ac_status); }; }; then
18224   ac_cv_func_dlopen=yes
18225 else
18226   echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18228
18229 ac_cv_func_dlopen=no
18230 fi
18231 rm -f conftest.err conftest.$ac_objext \
18232       conftest$ac_exeext conftest.$ac_ext
18233 fi
18234 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18235 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18236 if test $ac_cv_func_dlopen = yes; then
18237   lt_cv_dlopen="dlopen"
18238 else
18239   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18240 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18241 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18242   echo $ECHO_N "(cached) $ECHO_C" >&6
18243 else
18244   ac_check_lib_save_LIBS=$LIBS
18245 LIBS="-ldl  $LIBS"
18246 cat >conftest.$ac_ext <<_ACEOF
18247 /* confdefs.h.  */
18248 _ACEOF
18249 cat confdefs.h >>conftest.$ac_ext
18250 cat >>conftest.$ac_ext <<_ACEOF
18251 /* end confdefs.h.  */
18252
18253 /* Override any gcc2 internal prototype to avoid an error.  */
18254 #ifdef __cplusplus
18255 extern "C"
18256 #endif
18257 /* We use char because int might match the return type of a gcc2
18258    builtin and then its argument prototype would still apply.  */
18259 char dlopen ();
18260 int
18261 main ()
18262 {
18263 dlopen ();
18264   ;
18265   return 0;
18266 }
18267 _ACEOF
18268 rm -f conftest.$ac_objext conftest$ac_exeext
18269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18270   (eval $ac_link) 2>conftest.er1
18271   ac_status=$?
18272   grep -v '^ *+' conftest.er1 >conftest.err
18273   rm -f conftest.er1
18274   cat conftest.err >&5
18275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276   (exit $ac_status); } &&
18277          { ac_try='test -z "$ac_cxx_werror_flag"
18278                          || test ! -s conftest.err'
18279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280   (eval $ac_try) 2>&5
18281   ac_status=$?
18282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283   (exit $ac_status); }; } &&
18284          { ac_try='test -s conftest$ac_exeext'
18285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286   (eval $ac_try) 2>&5
18287   ac_status=$?
18288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289   (exit $ac_status); }; }; then
18290   ac_cv_lib_dl_dlopen=yes
18291 else
18292   echo "$as_me: failed program was:" >&5
18293 sed 's/^/| /' conftest.$ac_ext >&5
18294
18295 ac_cv_lib_dl_dlopen=no
18296 fi
18297 rm -f conftest.err conftest.$ac_objext \
18298       conftest$ac_exeext conftest.$ac_ext
18299 LIBS=$ac_check_lib_save_LIBS
18300 fi
18301 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18302 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18303 if test $ac_cv_lib_dl_dlopen = yes; then
18304   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18305 else
18306   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18307 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18308 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18309   echo $ECHO_N "(cached) $ECHO_C" >&6
18310 else
18311   ac_check_lib_save_LIBS=$LIBS
18312 LIBS="-lsvld  $LIBS"
18313 cat >conftest.$ac_ext <<_ACEOF
18314 /* confdefs.h.  */
18315 _ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h.  */
18319
18320 /* Override any gcc2 internal prototype to avoid an error.  */
18321 #ifdef __cplusplus
18322 extern "C"
18323 #endif
18324 /* We use char because int might match the return type of a gcc2
18325    builtin and then its argument prototype would still apply.  */
18326 char dlopen ();
18327 int
18328 main ()
18329 {
18330 dlopen ();
18331   ;
18332   return 0;
18333 }
18334 _ACEOF
18335 rm -f conftest.$ac_objext conftest$ac_exeext
18336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18337   (eval $ac_link) 2>conftest.er1
18338   ac_status=$?
18339   grep -v '^ *+' conftest.er1 >conftest.err
18340   rm -f conftest.er1
18341   cat conftest.err >&5
18342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343   (exit $ac_status); } &&
18344          { ac_try='test -z "$ac_cxx_werror_flag"
18345                          || test ! -s conftest.err'
18346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347   (eval $ac_try) 2>&5
18348   ac_status=$?
18349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350   (exit $ac_status); }; } &&
18351          { ac_try='test -s conftest$ac_exeext'
18352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353   (eval $ac_try) 2>&5
18354   ac_status=$?
18355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356   (exit $ac_status); }; }; then
18357   ac_cv_lib_svld_dlopen=yes
18358 else
18359   echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.$ac_ext >&5
18361
18362 ac_cv_lib_svld_dlopen=no
18363 fi
18364 rm -f conftest.err conftest.$ac_objext \
18365       conftest$ac_exeext conftest.$ac_ext
18366 LIBS=$ac_check_lib_save_LIBS
18367 fi
18368 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18369 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18370 if test $ac_cv_lib_svld_dlopen = yes; then
18371   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18372 else
18373   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18374 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18375 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18376   echo $ECHO_N "(cached) $ECHO_C" >&6
18377 else
18378   ac_check_lib_save_LIBS=$LIBS
18379 LIBS="-ldld  $LIBS"
18380 cat >conftest.$ac_ext <<_ACEOF
18381 /* confdefs.h.  */
18382 _ACEOF
18383 cat confdefs.h >>conftest.$ac_ext
18384 cat >>conftest.$ac_ext <<_ACEOF
18385 /* end confdefs.h.  */
18386
18387 /* Override any gcc2 internal prototype to avoid an error.  */
18388 #ifdef __cplusplus
18389 extern "C"
18390 #endif
18391 /* We use char because int might match the return type of a gcc2
18392    builtin and then its argument prototype would still apply.  */
18393 char dld_link ();
18394 int
18395 main ()
18396 {
18397 dld_link ();
18398   ;
18399   return 0;
18400 }
18401 _ACEOF
18402 rm -f conftest.$ac_objext conftest$ac_exeext
18403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18404   (eval $ac_link) 2>conftest.er1
18405   ac_status=$?
18406   grep -v '^ *+' conftest.er1 >conftest.err
18407   rm -f conftest.er1
18408   cat conftest.err >&5
18409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410   (exit $ac_status); } &&
18411          { ac_try='test -z "$ac_cxx_werror_flag"
18412                          || test ! -s conftest.err'
18413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414   (eval $ac_try) 2>&5
18415   ac_status=$?
18416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417   (exit $ac_status); }; } &&
18418          { ac_try='test -s conftest$ac_exeext'
18419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18420   (eval $ac_try) 2>&5
18421   ac_status=$?
18422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423   (exit $ac_status); }; }; then
18424   ac_cv_lib_dld_dld_link=yes
18425 else
18426   echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18428
18429 ac_cv_lib_dld_dld_link=no
18430 fi
18431 rm -f conftest.err conftest.$ac_objext \
18432       conftest$ac_exeext conftest.$ac_ext
18433 LIBS=$ac_check_lib_save_LIBS
18434 fi
18435 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18436 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18437 if test $ac_cv_lib_dld_dld_link = yes; then
18438   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18439 fi
18440
18441
18442 fi
18443
18444
18445 fi
18446
18447
18448 fi
18449
18450
18451 fi
18452
18453
18454 fi
18455
18456     ;;
18457   esac
18458
18459   if test "x$lt_cv_dlopen" != xno; then
18460     enable_dlopen=yes
18461   else
18462     enable_dlopen=no
18463   fi
18464
18465   case $lt_cv_dlopen in
18466   dlopen)
18467     save_CPPFLAGS="$CPPFLAGS"
18468     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18469
18470     save_LDFLAGS="$LDFLAGS"
18471     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18472
18473     save_LIBS="$LIBS"
18474     LIBS="$lt_cv_dlopen_libs $LIBS"
18475
18476     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18477 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18478 if test "${lt_cv_dlopen_self+set}" = set; then
18479   echo $ECHO_N "(cached) $ECHO_C" >&6
18480 else
18481           if test "$cross_compiling" = yes; then :
18482   lt_cv_dlopen_self=cross
18483 else
18484   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18485   lt_status=$lt_dlunknown
18486   cat > conftest.$ac_ext <<EOF
18487 #line 18487 "configure"
18488 #include "confdefs.h"
18489
18490 #if HAVE_DLFCN_H
18491 #include <dlfcn.h>
18492 #endif
18493
18494 #include <stdio.h>
18495
18496 #ifdef RTLD_GLOBAL
18497 #  define LT_DLGLOBAL           RTLD_GLOBAL
18498 #else
18499 #  ifdef DL_GLOBAL
18500 #    define LT_DLGLOBAL         DL_GLOBAL
18501 #  else
18502 #    define LT_DLGLOBAL         0
18503 #  endif
18504 #endif
18505
18506 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18507    find out it does not work in some platform. */
18508 #ifndef LT_DLLAZY_OR_NOW
18509 #  ifdef RTLD_LAZY
18510 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18511 #  else
18512 #    ifdef DL_LAZY
18513 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18514 #    else
18515 #      ifdef RTLD_NOW
18516 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18517 #      else
18518 #        ifdef DL_NOW
18519 #          define LT_DLLAZY_OR_NOW      DL_NOW
18520 #        else
18521 #          define LT_DLLAZY_OR_NOW      0
18522 #        endif
18523 #      endif
18524 #    endif
18525 #  endif
18526 #endif
18527
18528 #ifdef __cplusplus
18529 extern "C" void exit (int);
18530 #endif
18531
18532 void fnord() { int i=42;}
18533 int main ()
18534 {
18535   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18536   int status = $lt_dlunknown;
18537
18538   if (self)
18539     {
18540       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18541       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18542       /* dlclose (self); */
18543     }
18544
18545     exit (status);
18546 }
18547 EOF
18548   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18549   (eval $ac_link) 2>&5
18550   ac_status=$?
18551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18553     (./conftest; exit; ) 2>/dev/null
18554     lt_status=$?
18555     case x$lt_status in
18556       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18557       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18558       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18559     esac
18560   else :
18561     # compilation failed
18562     lt_cv_dlopen_self=no
18563   fi
18564 fi
18565 rm -fr conftest*
18566
18567
18568 fi
18569 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18570 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18571
18572     if test "x$lt_cv_dlopen_self" = xyes; then
18573       LDFLAGS="$LDFLAGS $link_static_flag"
18574       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18575 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18576 if test "${lt_cv_dlopen_self_static+set}" = set; then
18577   echo $ECHO_N "(cached) $ECHO_C" >&6
18578 else
18579           if test "$cross_compiling" = yes; then :
18580   lt_cv_dlopen_self_static=cross
18581 else
18582   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18583   lt_status=$lt_dlunknown
18584   cat > conftest.$ac_ext <<EOF
18585 #line 18585 "configure"
18586 #include "confdefs.h"
18587
18588 #if HAVE_DLFCN_H
18589 #include <dlfcn.h>
18590 #endif
18591
18592 #include <stdio.h>
18593
18594 #ifdef RTLD_GLOBAL
18595 #  define LT_DLGLOBAL           RTLD_GLOBAL
18596 #else
18597 #  ifdef DL_GLOBAL
18598 #    define LT_DLGLOBAL         DL_GLOBAL
18599 #  else
18600 #    define LT_DLGLOBAL         0
18601 #  endif
18602 #endif
18603
18604 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18605    find out it does not work in some platform. */
18606 #ifndef LT_DLLAZY_OR_NOW
18607 #  ifdef RTLD_LAZY
18608 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18609 #  else
18610 #    ifdef DL_LAZY
18611 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18612 #    else
18613 #      ifdef RTLD_NOW
18614 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18615 #      else
18616 #        ifdef DL_NOW
18617 #          define LT_DLLAZY_OR_NOW      DL_NOW
18618 #        else
18619 #          define LT_DLLAZY_OR_NOW      0
18620 #        endif
18621 #      endif
18622 #    endif
18623 #  endif
18624 #endif
18625
18626 #ifdef __cplusplus
18627 extern "C" void exit (int);
18628 #endif
18629
18630 void fnord() { int i=42;}
18631 int main ()
18632 {
18633   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18634   int status = $lt_dlunknown;
18635
18636   if (self)
18637     {
18638       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18639       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18640       /* dlclose (self); */
18641     }
18642
18643     exit (status);
18644 }
18645 EOF
18646   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18647   (eval $ac_link) 2>&5
18648   ac_status=$?
18649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18651     (./conftest; exit; ) 2>/dev/null
18652     lt_status=$?
18653     case x$lt_status in
18654       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18655       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18656       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18657     esac
18658   else :
18659     # compilation failed
18660     lt_cv_dlopen_self_static=no
18661   fi
18662 fi
18663 rm -fr conftest*
18664
18665
18666 fi
18667 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18668 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18669     fi
18670
18671     CPPFLAGS="$save_CPPFLAGS"
18672     LDFLAGS="$save_LDFLAGS"
18673     LIBS="$save_LIBS"
18674     ;;
18675   esac
18676
18677   case $lt_cv_dlopen_self in
18678   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18679   *) enable_dlopen_self=unknown ;;
18680   esac
18681
18682   case $lt_cv_dlopen_self_static in
18683   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18684   *) enable_dlopen_self_static=unknown ;;
18685   esac
18686 fi
18687
18688
18689 # The else clause should only fire when bootstrapping the
18690 # libtool distribution, otherwise you forgot to ship ltmain.sh
18691 # with your package, and you will get complaints that there are
18692 # no rules to generate ltmain.sh.
18693 if test -f "$ltmain"; then
18694   # See if we are running on zsh, and set the options which allow our commands through
18695   # without removal of \ escapes.
18696   if test -n "${ZSH_VERSION+set}" ; then
18697     setopt NO_GLOB_SUBST
18698   fi
18699   # Now quote all the things that may contain metacharacters while being
18700   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18701   # variables and quote the copies for generation of the libtool script.
18702   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18703     SED SHELL STRIP \
18704     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18705     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18706     deplibs_check_method reload_flag reload_cmds need_locks \
18707     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18708     lt_cv_sys_global_symbol_to_c_name_address \
18709     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18710     old_postinstall_cmds old_postuninstall_cmds \
18711     compiler_CXX \
18712     CC_CXX \
18713     LD_CXX \
18714     lt_prog_compiler_wl_CXX \
18715     lt_prog_compiler_pic_CXX \
18716     lt_prog_compiler_static_CXX \
18717     lt_prog_compiler_no_builtin_flag_CXX \
18718     export_dynamic_flag_spec_CXX \
18719     thread_safe_flag_spec_CXX \
18720     whole_archive_flag_spec_CXX \
18721     enable_shared_with_static_runtimes_CXX \
18722     old_archive_cmds_CXX \
18723     old_archive_from_new_cmds_CXX \
18724     predep_objects_CXX \
18725     postdep_objects_CXX \
18726     predeps_CXX \
18727     postdeps_CXX \
18728     compiler_lib_search_path_CXX \
18729     archive_cmds_CXX \
18730     archive_expsym_cmds_CXX \
18731     postinstall_cmds_CXX \
18732     postuninstall_cmds_CXX \
18733     old_archive_from_expsyms_cmds_CXX \
18734     allow_undefined_flag_CXX \
18735     no_undefined_flag_CXX \
18736     export_symbols_cmds_CXX \
18737     hardcode_libdir_flag_spec_CXX \
18738     hardcode_libdir_flag_spec_ld_CXX \
18739     hardcode_libdir_separator_CXX \
18740     hardcode_automatic_CXX \
18741     module_cmds_CXX \
18742     module_expsym_cmds_CXX \
18743     lt_cv_prog_compiler_c_o_CXX \
18744     exclude_expsyms_CXX \
18745     include_expsyms_CXX; do
18746
18747     case $var in
18748     old_archive_cmds_CXX | \
18749     old_archive_from_new_cmds_CXX | \
18750     archive_cmds_CXX | \
18751     archive_expsym_cmds_CXX | \
18752     module_cmds_CXX | \
18753     module_expsym_cmds_CXX | \
18754     old_archive_from_expsyms_cmds_CXX | \
18755     export_symbols_cmds_CXX | \
18756     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18757     postinstall_cmds | postuninstall_cmds | \
18758     old_postinstall_cmds | old_postuninstall_cmds | \
18759     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18760       # Double-quote double-evaled strings.
18761       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18762       ;;
18763     *)
18764       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18765       ;;
18766     esac
18767   done
18768
18769   case $lt_echo in
18770   *'\$0 --fallback-echo"')
18771     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18772     ;;
18773   esac
18774
18775 cfgfile="$ofile"
18776
18777   cat <<__EOF__ >> "$cfgfile"
18778 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18779
18780 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18781
18782 # Shell to use when invoking shell scripts.
18783 SHELL=$lt_SHELL
18784
18785 # Whether or not to build shared libraries.
18786 build_libtool_libs=$enable_shared
18787
18788 # Whether or not to build static libraries.
18789 build_old_libs=$enable_static
18790
18791 # Whether or not to add -lc for building shared libraries.
18792 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18793
18794 # Whether or not to disallow shared libs when runtime libs are static
18795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18796
18797 # Whether or not to optimize for fast installation.
18798 fast_install=$enable_fast_install
18799
18800 # The host system.
18801 host_alias=$host_alias
18802 host=$host
18803
18804 # An echo program that does not interpret backslashes.
18805 echo=$lt_echo
18806
18807 # The archiver.
18808 AR=$lt_AR
18809 AR_FLAGS=$lt_AR_FLAGS
18810
18811 # A C compiler.
18812 LTCC=$lt_LTCC
18813
18814 # A language-specific compiler.
18815 CC=$lt_compiler_CXX
18816
18817 # Is the compiler the GNU C compiler?
18818 with_gcc=$GCC_CXX
18819
18820 # An ERE matcher.
18821 EGREP=$lt_EGREP
18822
18823 # The linker used to build libraries.
18824 LD=$lt_LD_CXX
18825
18826 # Whether we need hard or soft links.
18827 LN_S=$lt_LN_S
18828
18829 # A BSD-compatible nm program.
18830 NM=$lt_NM
18831
18832 # A symbol stripping program
18833 STRIP=$lt_STRIP
18834
18835 # Used to examine libraries when file_magic_cmd begins "file"
18836 MAGIC_CMD=$MAGIC_CMD
18837
18838 # Used on cygwin: DLL creation program.
18839 DLLTOOL="$DLLTOOL"
18840
18841 # Used on cygwin: object dumper.
18842 OBJDUMP="$OBJDUMP"
18843
18844 # Used on cygwin: assembler.
18845 AS="$AS"
18846
18847 # The name of the directory that contains temporary libtool files.
18848 objdir=$objdir
18849
18850 # How to create reloadable object files.
18851 reload_flag=$lt_reload_flag
18852 reload_cmds=$lt_reload_cmds
18853
18854 # How to pass a linker flag through the compiler.
18855 wl=$lt_lt_prog_compiler_wl_CXX
18856
18857 # Object file suffix (normally "o").
18858 objext="$ac_objext"
18859
18860 # Old archive suffix (normally "a").
18861 libext="$libext"
18862
18863 # Shared library suffix (normally ".so").
18864 shrext_cmds='$shrext_cmds'
18865
18866 # Executable file suffix (normally "").
18867 exeext="$exeext"
18868
18869 # Additional compiler flags for building library objects.
18870 pic_flag=$lt_lt_prog_compiler_pic_CXX
18871 pic_mode=$pic_mode
18872
18873 # What is the maximum length of a command?
18874 max_cmd_len=$lt_cv_sys_max_cmd_len
18875
18876 # Does compiler simultaneously support -c and -o options?
18877 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18878
18879 # Must we lock files when doing compilation ?
18880 need_locks=$lt_need_locks
18881
18882 # Do we need the lib prefix for modules?
18883 need_lib_prefix=$need_lib_prefix
18884
18885 # Do we need a version for libraries?
18886 need_version=$need_version
18887
18888 # Whether dlopen is supported.
18889 dlopen_support=$enable_dlopen
18890
18891 # Whether dlopen of programs is supported.
18892 dlopen_self=$enable_dlopen_self
18893
18894 # Whether dlopen of statically linked programs is supported.
18895 dlopen_self_static=$enable_dlopen_self_static
18896
18897 # Compiler flag to prevent dynamic linking.
18898 link_static_flag=$lt_lt_prog_compiler_static_CXX
18899
18900 # Compiler flag to turn off builtin functions.
18901 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18902
18903 # Compiler flag to allow reflexive dlopens.
18904 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18905
18906 # Compiler flag to generate shared objects directly from archives.
18907 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18908
18909 # Compiler flag to generate thread-safe objects.
18910 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18911
18912 # Library versioning type.
18913 version_type=$version_type
18914
18915 # Format of library name prefix.
18916 libname_spec=$lt_libname_spec
18917
18918 # List of archive names.  First name is the real one, the rest are links.
18919 # The last name is the one that the linker finds with -lNAME.
18920 library_names_spec=$lt_library_names_spec
18921
18922 # The coded name of the library, if different from the real name.
18923 soname_spec=$lt_soname_spec
18924
18925 # Commands used to build and install an old-style archive.
18926 RANLIB=$lt_RANLIB
18927 old_archive_cmds=$lt_old_archive_cmds_CXX
18928 old_postinstall_cmds=$lt_old_postinstall_cmds
18929 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18930
18931 # Create an old-style archive from a shared archive.
18932 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18933
18934 # Create a temporary old-style archive to link instead of a shared archive.
18935 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18936
18937 # Commands used to build and install a shared archive.
18938 archive_cmds=$lt_archive_cmds_CXX
18939 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18940 postinstall_cmds=$lt_postinstall_cmds
18941 postuninstall_cmds=$lt_postuninstall_cmds
18942
18943 # Commands used to build a loadable module (assumed same as above if empty)
18944 module_cmds=$lt_module_cmds_CXX
18945 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18946
18947 # Commands to strip libraries.
18948 old_striplib=$lt_old_striplib
18949 striplib=$lt_striplib
18950
18951 # Dependencies to place before the objects being linked to create a
18952 # shared library.
18953 predep_objects=$lt_predep_objects_CXX
18954
18955 # Dependencies to place after the objects being linked to create a
18956 # shared library.
18957 postdep_objects=$lt_postdep_objects_CXX
18958
18959 # Dependencies to place before the objects being linked to create a
18960 # shared library.
18961 predeps=$lt_predeps_CXX
18962
18963 # Dependencies to place after the objects being linked to create a
18964 # shared library.
18965 postdeps=$lt_postdeps_CXX
18966
18967 # The library search path used internally by the compiler when linking
18968 # a shared library.
18969 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18970
18971 # Method to check whether dependent libraries are shared objects.
18972 deplibs_check_method=$lt_deplibs_check_method
18973
18974 # Command to use when deplibs_check_method == file_magic.
18975 file_magic_cmd=$lt_file_magic_cmd
18976
18977 # Flag that allows shared libraries with undefined symbols to be built.
18978 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18979
18980 # Flag that forces no undefined symbols.
18981 no_undefined_flag=$lt_no_undefined_flag_CXX
18982
18983 # Commands used to finish a libtool library installation in a directory.
18984 finish_cmds=$lt_finish_cmds
18985
18986 # Same as above, but a single script fragment to be evaled but not shown.
18987 finish_eval=$lt_finish_eval
18988
18989 # Take the output of nm and produce a listing of raw symbols and C names.
18990 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18991
18992 # Transform the output of nm in a proper C declaration
18993 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18994
18995 # Transform the output of nm in a C name address pair
18996 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18997
18998 # This is the shared library runtime path variable.
18999 runpath_var=$runpath_var
19000
19001 # This is the shared library path variable.
19002 shlibpath_var=$shlibpath_var
19003
19004 # Is shlibpath searched before the hard-coded library search path?
19005 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19006
19007 # How to hardcode a shared library path into an executable.
19008 hardcode_action=$hardcode_action_CXX
19009
19010 # Whether we should hardcode library paths into libraries.
19011 hardcode_into_libs=$hardcode_into_libs
19012
19013 # Flag to hardcode \$libdir into a binary during linking.
19014 # This must work even if \$libdir does not exist.
19015 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19016
19017 # If ld is used when linking, flag to hardcode \$libdir into
19018 # a binary during linking. This must work even if \$libdir does
19019 # not exist.
19020 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19021
19022 # Whether we need a single -rpath flag with a separated argument.
19023 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19024
19025 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19026 # resulting binary.
19027 hardcode_direct=$hardcode_direct_CXX
19028
19029 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19030 # resulting binary.
19031 hardcode_minus_L=$hardcode_minus_L_CXX
19032
19033 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19034 # the resulting binary.
19035 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19036
19037 # Set to yes if building a shared library automatically hardcodes DIR into the library
19038 # and all subsequent libraries and executables linked against it.
19039 hardcode_automatic=$hardcode_automatic_CXX
19040
19041 # Variables whose values should be saved in libtool wrapper scripts and
19042 # restored at relink time.
19043 variables_saved_for_relink="$variables_saved_for_relink"
19044
19045 # Whether libtool must link a program against all its dependency libraries.
19046 link_all_deplibs=$link_all_deplibs_CXX
19047
19048 # Compile-time system search path for libraries
19049 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19050
19051 # Run-time system search path for libraries
19052 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19053
19054 # Fix the shell variable \$srcfile for the compiler.
19055 fix_srcfile_path="$fix_srcfile_path_CXX"
19056
19057 # Set to yes if exported symbols are required.
19058 always_export_symbols=$always_export_symbols_CXX
19059
19060 # The commands to list exported symbols.
19061 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19062
19063 # The commands to extract the exported symbol list from a shared archive.
19064 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19065
19066 # Symbols that should not be listed in the preloaded symbols.
19067 exclude_expsyms=$lt_exclude_expsyms_CXX
19068
19069 # Symbols that must always be exported.
19070 include_expsyms=$lt_include_expsyms_CXX
19071
19072 # ### END LIBTOOL TAG CONFIG: $tagname
19073
19074 __EOF__
19075
19076
19077 else
19078   # If there is no Makefile yet, we rely on a make rule to execute
19079   # `config.status --recheck' to rerun these tests and create the
19080   # libtool script then.
19081   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19082   if test -f "$ltmain_in"; then
19083     test -f Makefile && make "$ltmain"
19084   fi
19085 fi
19086
19087
19088 ac_ext=c
19089 ac_cpp='$CPP $CPPFLAGS'
19090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19093
19094 CC=$lt_save_CC
19095 LDCXX=$LD
19096 LD=$lt_save_LD
19097 GCC=$lt_save_GCC
19098 with_gnu_ldcxx=$with_gnu_ld
19099 with_gnu_ld=$lt_save_with_gnu_ld
19100 lt_cv_path_LDCXX=$lt_cv_path_LD
19101 lt_cv_path_LD=$lt_save_path_LD
19102 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19103 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19104
19105         else
19106           tagname=""
19107         fi
19108         ;;
19109
19110       F77)
19111         if test -n "$F77" && test "X$F77" != "Xno"; then
19112
19113 ac_ext=f
19114 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19115 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19116 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19117
19118
19119 archive_cmds_need_lc_F77=no
19120 allow_undefined_flag_F77=
19121 always_export_symbols_F77=no
19122 archive_expsym_cmds_F77=
19123 export_dynamic_flag_spec_F77=
19124 hardcode_direct_F77=no
19125 hardcode_libdir_flag_spec_F77=
19126 hardcode_libdir_flag_spec_ld_F77=
19127 hardcode_libdir_separator_F77=
19128 hardcode_minus_L_F77=no
19129 hardcode_automatic_F77=no
19130 module_cmds_F77=
19131 module_expsym_cmds_F77=
19132 link_all_deplibs_F77=unknown
19133 old_archive_cmds_F77=$old_archive_cmds
19134 no_undefined_flag_F77=
19135 whole_archive_flag_spec_F77=
19136 enable_shared_with_static_runtimes_F77=no
19137
19138 # Source file extension for f77 test sources.
19139 ac_ext=f
19140
19141 # Object file extension for compiled f77 test sources.
19142 objext=o
19143 objext_F77=$objext
19144
19145 # Code to be used in simple compile tests
19146 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
19147
19148 # Code to be used in simple link tests
19149 lt_simple_link_test_code="      program t\n      end\n"
19150
19151 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19152
19153 # If no C compiler was specified, use CC.
19154 LTCC=${LTCC-"$CC"}
19155
19156 # Allow CC to be a program name with arguments.
19157 compiler=$CC
19158
19159
19160 # Allow CC to be a program name with arguments.
19161 lt_save_CC="$CC"
19162 CC=${F77-"f77"}
19163 compiler=$CC
19164 compiler_F77=$CC
19165 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
19166
19167 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19168 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19169 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19170 echo "${ECHO_T}$can_build_shared" >&6
19171
19172 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19173 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19174 test "$can_build_shared" = "no" && enable_shared=no
19175
19176 # On AIX, shared libraries and static libraries use the same namespace, and
19177 # are all built from PIC.
19178 case "$host_os" in
19179 aix3*)
19180   test "$enable_shared" = yes && enable_static=no
19181   if test -n "$RANLIB"; then
19182     archive_cmds="$archive_cmds~\$RANLIB \$lib"
19183     postinstall_cmds='$RANLIB $lib'
19184   fi
19185   ;;
19186 aix4* | aix5*)
19187   test "$enable_shared" = yes && enable_static=no
19188   ;;
19189 esac
19190 echo "$as_me:$LINENO: result: $enable_shared" >&5
19191 echo "${ECHO_T}$enable_shared" >&6
19192
19193 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19194 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19195 # Make sure either enable_shared or enable_static is yes.
19196 test "$enable_shared" = yes || enable_static=yes
19197 echo "$as_me:$LINENO: result: $enable_static" >&5
19198 echo "${ECHO_T}$enable_static" >&6
19199
19200 test "$ld_shlibs_F77" = no && can_build_shared=no
19201
19202 GCC_F77="$G77"
19203 LD_F77="$LD"
19204
19205 lt_prog_compiler_wl_F77=
19206 lt_prog_compiler_pic_F77=
19207 lt_prog_compiler_static_F77=
19208
19209 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19210 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19211
19212   if test "$GCC" = yes; then
19213     lt_prog_compiler_wl_F77='-Wl,'
19214     lt_prog_compiler_static_F77='-static'
19215
19216     case $host_os in
19217       aix*)
19218       # All AIX code is PIC.
19219       if test "$host_cpu" = ia64; then
19220         # AIX 5 now supports IA64 processor
19221         lt_prog_compiler_static_F77='-Bstatic'
19222       fi
19223       ;;
19224
19225     amigaos*)
19226       # FIXME: we need at least 68020 code to build shared libraries, but
19227       # adding the `-m68020' flag to GCC prevents building anything better,
19228       # like `-m68040'.
19229       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19230       ;;
19231
19232     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19233       # PIC is the default for these OSes.
19234       ;;
19235
19236     mingw* | pw32* | os2*)
19237       # This hack is so that the source file can tell whether it is being
19238       # built for inclusion in a dll (and should export symbols for example).
19239       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19240       ;;
19241
19242     darwin* | rhapsody*)
19243       # PIC is the default on this platform
19244       # Common symbols not allowed in MH_DYLIB files
19245       lt_prog_compiler_pic_F77='-fno-common'
19246       ;;
19247
19248     msdosdjgpp*)
19249       # Just because we use GCC doesn't mean we suddenly get shared libraries
19250       # on systems that don't support them.
19251       lt_prog_compiler_can_build_shared_F77=no
19252       enable_shared=no
19253       ;;
19254
19255     sysv4*MP*)
19256       if test -d /usr/nec; then
19257         lt_prog_compiler_pic_F77=-Kconform_pic
19258       fi
19259       ;;
19260
19261     hpux*)
19262       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19263       # not for PA HP-UX.
19264       case "$host_cpu" in
19265       hppa*64*|ia64*)
19266         # +Z the default
19267         ;;
19268       *)
19269         lt_prog_compiler_pic_F77='-fPIC'
19270         ;;
19271       esac
19272       ;;
19273
19274     *)
19275       lt_prog_compiler_pic_F77='-fPIC'
19276       ;;
19277     esac
19278   else
19279     # PORTME Check for flag to pass linker flags through the system compiler.
19280     case $host_os in
19281     aix*)
19282       lt_prog_compiler_wl_F77='-Wl,'
19283       if test "$host_cpu" = ia64; then
19284         # AIX 5 now supports IA64 processor
19285         lt_prog_compiler_static_F77='-Bstatic'
19286       else
19287         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19288       fi
19289       ;;
19290       darwin*)
19291         # PIC is the default on this platform
19292         # Common symbols not allowed in MH_DYLIB files
19293        case "$cc_basename" in
19294          xlc*)
19295          lt_prog_compiler_pic_F77='-qnocommon'
19296          lt_prog_compiler_wl_F77='-Wl,'
19297          ;;
19298        esac
19299        ;;
19300
19301     mingw* | pw32* | os2*)
19302       # This hack is so that the source file can tell whether it is being
19303       # built for inclusion in a dll (and should export symbols for example).
19304       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19305       ;;
19306
19307     hpux9* | hpux10* | hpux11*)
19308       lt_prog_compiler_wl_F77='-Wl,'
19309       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19310       # not for PA HP-UX.
19311       case "$host_cpu" in
19312       hppa*64*|ia64*)
19313         # +Z the default
19314         ;;
19315       *)
19316         lt_prog_compiler_pic_F77='+Z'
19317         ;;
19318       esac
19319       # Is there a better lt_prog_compiler_static that works with the bundled CC?
19320       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19321       ;;
19322
19323     irix5* | irix6* | nonstopux*)
19324       lt_prog_compiler_wl_F77='-Wl,'
19325       # PIC (with -KPIC) is the default.
19326       lt_prog_compiler_static_F77='-non_shared'
19327       ;;
19328
19329     newsos6)
19330       lt_prog_compiler_pic_F77='-KPIC'
19331       lt_prog_compiler_static_F77='-Bstatic'
19332       ;;
19333
19334     linux*)
19335       case $CC in
19336       icc* | ecc*)
19337         lt_prog_compiler_wl_F77='-Wl,'
19338         lt_prog_compiler_pic_F77='-KPIC'
19339         lt_prog_compiler_static_F77='-static'
19340         ;;
19341       ccc*)
19342         lt_prog_compiler_wl_F77='-Wl,'
19343         # All Alpha code is PIC.
19344         lt_prog_compiler_static_F77='-non_shared'
19345         ;;
19346       esac
19347       ;;
19348
19349     osf3* | osf4* | osf5*)
19350       lt_prog_compiler_wl_F77='-Wl,'
19351       # All OSF/1 code is PIC.
19352       lt_prog_compiler_static_F77='-non_shared'
19353       ;;
19354
19355     sco3.2v5*)
19356       lt_prog_compiler_pic_F77='-Kpic'
19357       lt_prog_compiler_static_F77='-dn'
19358       ;;
19359
19360     solaris*)
19361       lt_prog_compiler_wl_F77='-Wl,'
19362       lt_prog_compiler_pic_F77='-KPIC'
19363       lt_prog_compiler_static_F77='-Bstatic'
19364       ;;
19365
19366     sunos4*)
19367       lt_prog_compiler_wl_F77='-Qoption ld '
19368       lt_prog_compiler_pic_F77='-PIC'
19369       lt_prog_compiler_static_F77='-Bstatic'
19370       ;;
19371
19372     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19373       lt_prog_compiler_wl_F77='-Wl,'
19374       lt_prog_compiler_pic_F77='-KPIC'
19375       lt_prog_compiler_static_F77='-Bstatic'
19376       ;;
19377
19378     sysv4*MP*)
19379       if test -d /usr/nec ;then
19380         lt_prog_compiler_pic_F77='-Kconform_pic'
19381         lt_prog_compiler_static_F77='-Bstatic'
19382       fi
19383       ;;
19384
19385     uts4*)
19386       lt_prog_compiler_pic_F77='-pic'
19387       lt_prog_compiler_static_F77='-Bstatic'
19388       ;;
19389
19390     *)
19391       lt_prog_compiler_can_build_shared_F77=no
19392       ;;
19393     esac
19394   fi
19395
19396 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19397 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19398
19399 #
19400 # Check to make sure the PIC flag actually works.
19401 #
19402 if test -n "$lt_prog_compiler_pic_F77"; then
19403
19404 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19405 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19406 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19407   echo $ECHO_N "(cached) $ECHO_C" >&6
19408 else
19409   lt_prog_compiler_pic_works_F77=no
19410   ac_outfile=conftest.$ac_objext
19411    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19412    lt_compiler_flag="$lt_prog_compiler_pic_F77"
19413    # Insert the option either (1) after the last *FLAGS variable, or
19414    # (2) before a word containing "conftest.", or (3) at the end.
19415    # Note that $ac_compile itself does not contain backslashes and begins
19416    # with a dollar sign (not a hyphen), so the echo should work correctly.
19417    # The option is referenced via a variable to avoid confusing sed.
19418    lt_compile=`echo "$ac_compile" | $SED \
19419    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19420    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19421    -e 's:$: $lt_compiler_flag:'`
19422    (eval echo "\"\$as_me:19422: $lt_compile\"" >&5)
19423    (eval "$lt_compile" 2>conftest.err)
19424    ac_status=$?
19425    cat conftest.err >&5
19426    echo "$as_me:19426: \$? = $ac_status" >&5
19427    if (exit $ac_status) && test -s "$ac_outfile"; then
19428      # The compiler can only warn and ignore the option if not recognized
19429      # So say no if there are warnings
19430      if test ! -s conftest.err; then
19431        lt_prog_compiler_pic_works_F77=yes
19432      fi
19433    fi
19434    $rm conftest*
19435
19436 fi
19437 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19438 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19439
19440 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19441     case $lt_prog_compiler_pic_F77 in
19442      "" | " "*) ;;
19443      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19444      esac
19445 else
19446     lt_prog_compiler_pic_F77=
19447      lt_prog_compiler_can_build_shared_F77=no
19448 fi
19449
19450 fi
19451 case "$host_os" in
19452   # For platforms which do not support PIC, -DPIC is meaningless:
19453   *djgpp*)
19454     lt_prog_compiler_pic_F77=
19455     ;;
19456   *)
19457     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19458     ;;
19459 esac
19460
19461 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19462 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19463 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19464   echo $ECHO_N "(cached) $ECHO_C" >&6
19465 else
19466   lt_cv_prog_compiler_c_o_F77=no
19467    $rm -r conftest 2>/dev/null
19468    mkdir conftest
19469    cd conftest
19470    mkdir out
19471    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19472
19473    lt_compiler_flag="-o out/conftest2.$ac_objext"
19474    # Insert the option either (1) after the last *FLAGS variable, or
19475    # (2) before a word containing "conftest.", or (3) at the end.
19476    # Note that $ac_compile itself does not contain backslashes and begins
19477    # with a dollar sign (not a hyphen), so the echo should work correctly.
19478    lt_compile=`echo "$ac_compile" | $SED \
19479    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19480    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19481    -e 's:$: $lt_compiler_flag:'`
19482    (eval echo "\"\$as_me:19482: $lt_compile\"" >&5)
19483    (eval "$lt_compile" 2>out/conftest.err)
19484    ac_status=$?
19485    cat out/conftest.err >&5
19486    echo "$as_me:19486: \$? = $ac_status" >&5
19487    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19488    then
19489      # The compiler can only warn and ignore the option if not recognized
19490      # So say no if there are warnings
19491      if test ! -s out/conftest.err; then
19492        lt_cv_prog_compiler_c_o_F77=yes
19493      fi
19494    fi
19495    chmod u+w .
19496    $rm conftest*
19497    # SGI C++ compiler will create directory out/ii_files/ for
19498    # template instantiation
19499    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19500    $rm out/* && rmdir out
19501    cd ..
19502    rmdir conftest
19503    $rm conftest*
19504
19505 fi
19506 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19507 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19508
19509
19510 hard_links="nottested"
19511 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19512   # do not overwrite the value of need_locks provided by the user
19513   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19514 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19515   hard_links=yes
19516   $rm conftest*
19517   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19518   touch conftest.a
19519   ln conftest.a conftest.b 2>&5 || hard_links=no
19520   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19521   echo "$as_me:$LINENO: result: $hard_links" >&5
19522 echo "${ECHO_T}$hard_links" >&6
19523   if test "$hard_links" = no; then
19524     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19525 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19526     need_locks=warn
19527   fi
19528 else
19529   need_locks=no
19530 fi
19531
19532 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19533 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19534
19535   runpath_var=
19536   allow_undefined_flag_F77=
19537   enable_shared_with_static_runtimes_F77=no
19538   archive_cmds_F77=
19539   archive_expsym_cmds_F77=
19540   old_archive_From_new_cmds_F77=
19541   old_archive_from_expsyms_cmds_F77=
19542   export_dynamic_flag_spec_F77=
19543   whole_archive_flag_spec_F77=
19544   thread_safe_flag_spec_F77=
19545   hardcode_libdir_flag_spec_F77=
19546   hardcode_libdir_flag_spec_ld_F77=
19547   hardcode_libdir_separator_F77=
19548   hardcode_direct_F77=no
19549   hardcode_minus_L_F77=no
19550   hardcode_shlibpath_var_F77=unsupported
19551   link_all_deplibs_F77=unknown
19552   hardcode_automatic_F77=no
19553   module_cmds_F77=
19554   module_expsym_cmds_F77=
19555   always_export_symbols_F77=no
19556   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19557   # include_expsyms should be a list of space-separated symbols to be *always*
19558   # included in the symbol list
19559   include_expsyms_F77=
19560   # exclude_expsyms can be an extended regexp of symbols to exclude
19561   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19562   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19563   # as well as any symbol that contains `d'.
19564   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19565   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19566   # platforms (ab)use it in PIC code, but their linkers get confused if
19567   # the symbol is explicitly referenced.  Since portable code cannot
19568   # rely on this symbol name, it's probably fine to never include it in
19569   # preloaded symbol tables.
19570   extract_expsyms_cmds=
19571
19572   case $host_os in
19573   cygwin* | mingw* | pw32*)
19574     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19575     # When not using gcc, we currently assume that we are using
19576     # Microsoft Visual C++.
19577     if test "$GCC" != yes; then
19578       with_gnu_ld=no
19579     fi
19580     ;;
19581   openbsd*)
19582     with_gnu_ld=no
19583     ;;
19584   esac
19585
19586   ld_shlibs_F77=yes
19587   if test "$with_gnu_ld" = yes; then
19588     # If archive_cmds runs LD, not CC, wlarc should be empty
19589     wlarc='${wl}'
19590
19591     # See if GNU ld supports shared libraries.
19592     case $host_os in
19593     aix3* | aix4* | aix5*)
19594       # On AIX/PPC, the GNU linker is very broken
19595       if test "$host_cpu" != ia64; then
19596         ld_shlibs_F77=no
19597         cat <<EOF 1>&2
19598
19599 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19600 *** to be unable to reliably create shared libraries on AIX.
19601 *** Therefore, libtool is disabling shared libraries support.  If you
19602 *** really care for shared libraries, you may want to modify your PATH
19603 *** so that a non-GNU linker is found, and then restart.
19604
19605 EOF
19606       fi
19607       ;;
19608
19609     amigaos*)
19610       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)'
19611       hardcode_libdir_flag_spec_F77='-L$libdir'
19612       hardcode_minus_L_F77=yes
19613
19614       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19615       # that the semantics of dynamic libraries on AmigaOS, at least up
19616       # to version 4, is to share data among multiple programs linked
19617       # with the same dynamic library.  Since this doesn't match the
19618       # behavior of shared libraries on other platforms, we can't use
19619       # them.
19620       ld_shlibs_F77=no
19621       ;;
19622
19623     beos*)
19624       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19625         allow_undefined_flag_F77=unsupported
19626         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19627         # support --undefined.  This deserves some investigation.  FIXME
19628         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19629       else
19630         ld_shlibs_F77=no
19631       fi
19632       ;;
19633
19634     cygwin* | mingw* | pw32*)
19635       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19636       # as there is no search path for DLLs.
19637       hardcode_libdir_flag_spec_F77='-L$libdir'
19638       allow_undefined_flag_F77=unsupported
19639       always_export_symbols_F77=no
19640       enable_shared_with_static_runtimes_F77=yes
19641       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19642
19643       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19644         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19645         # If the export-symbols file already is a .def file (1st line
19646         # is EXPORTS), use it as is; otherwise, prepend...
19647         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19648           cp $export_symbols $output_objdir/$soname.def;
19649         else
19650           echo EXPORTS > $output_objdir/$soname.def;
19651           cat $export_symbols >> $output_objdir/$soname.def;
19652         fi~
19653         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19654       else
19655         ld_shlibs=no
19656       fi
19657       ;;
19658
19659     netbsd*)
19660       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19661         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19662         wlarc=
19663       else
19664         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19665         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19666       fi
19667       ;;
19668
19669     solaris* | sysv5*)
19670       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19671         ld_shlibs_F77=no
19672         cat <<EOF 1>&2
19673
19674 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19675 *** create shared libraries on Solaris systems.  Therefore, libtool
19676 *** is disabling shared libraries support.  We urge you to upgrade GNU
19677 *** binutils to release 2.9.1 or newer.  Another option is to modify
19678 *** your PATH or compiler configuration so that the native linker is
19679 *** used, and then restart.
19680
19681 EOF
19682       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19683         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19684         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19685       else
19686         ld_shlibs_F77=no
19687       fi
19688       ;;
19689
19690     sunos4*)
19691       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19692       wlarc=
19693       hardcode_direct_F77=yes
19694       hardcode_shlibpath_var_F77=no
19695       ;;
19696
19697   linux*)
19698     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19699         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19700         archive_cmds_F77="$tmp_archive_cmds"
19701       supports_anon_versioning=no
19702       case `$LD -v 2>/dev/null` in
19703         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19704         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19705         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19706         *\ 2.11.*) ;; # other 2.11 versions
19707         *) supports_anon_versioning=yes ;;
19708       esac
19709       if test $supports_anon_versioning = yes; then
19710         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19711 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19712 $echo "local: *; };" >> $output_objdir/$libname.ver~
19713         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19714       else
19715         archive_expsym_cmds_F77="$tmp_archive_cmds"
19716       fi
19717     else
19718       ld_shlibs_F77=no
19719     fi
19720     ;;
19721
19722     *)
19723       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19724         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19725         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19726       else
19727         ld_shlibs_F77=no
19728       fi
19729       ;;
19730     esac
19731
19732     if test "$ld_shlibs_F77" = yes; then
19733       runpath_var=LD_RUN_PATH
19734       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19735       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19736       # ancient GNU ld didn't support --whole-archive et. al.
19737       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19738         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19739       else
19740         whole_archive_flag_spec_F77=
19741       fi
19742     fi
19743   else
19744     # PORTME fill in a description of your system's linker (not GNU ld)
19745     case $host_os in
19746     aix3*)
19747       allow_undefined_flag_F77=unsupported
19748       always_export_symbols_F77=yes
19749       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'
19750       # Note: this linker hardcodes the directories in LIBPATH if there
19751       # are no directories specified by -L.
19752       hardcode_minus_L_F77=yes
19753       if test "$GCC" = yes && test -z "$link_static_flag"; then
19754         # Neither direct hardcoding nor static linking is supported with a
19755         # broken collect2.
19756         hardcode_direct_F77=unsupported
19757       fi
19758       ;;
19759
19760     aix4* | aix5*)
19761       if test "$host_cpu" = ia64; then
19762         # On IA64, the linker does run time linking by default, so we don't
19763         # have to do anything special.
19764         aix_use_runtimelinking=no
19765         exp_sym_flag='-Bexport'
19766         no_entry_flag=""
19767       else
19768         # If we're using GNU nm, then we don't want the "-C" option.
19769         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19770         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19771           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'
19772         else
19773           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'
19774         fi
19775         aix_use_runtimelinking=no
19776
19777         # Test if we are trying to use run time linking or normal
19778         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19779         # need to do runtime linking.
19780         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19781           for ld_flag in $LDFLAGS; do
19782           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19783             aix_use_runtimelinking=yes
19784             break
19785           fi
19786           done
19787         esac
19788
19789         exp_sym_flag='-bexport'
19790         no_entry_flag='-bnoentry'
19791       fi
19792
19793       # When large executables or shared objects are built, AIX ld can
19794       # have problems creating the table of contents.  If linking a library
19795       # or program results in "error TOC overflow" add -mminimal-toc to
19796       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19797       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19798
19799       archive_cmds_F77=''
19800       hardcode_direct_F77=yes
19801       hardcode_libdir_separator_F77=':'
19802       link_all_deplibs_F77=yes
19803
19804       if test "$GCC" = yes; then
19805         case $host_os in aix4.012|aix4.012.*)
19806         # We only want to do this on AIX 4.2 and lower, the check
19807         # below for broken collect2 doesn't work under 4.3+
19808           collect2name=`${CC} -print-prog-name=collect2`
19809           if test -f "$collect2name" && \
19810            strings "$collect2name" | grep resolve_lib_name >/dev/null
19811           then
19812           # We have reworked collect2
19813           hardcode_direct_F77=yes
19814           else
19815           # We have old collect2
19816           hardcode_direct_F77=unsupported
19817           # It fails to find uninstalled libraries when the uninstalled
19818           # path is not listed in the libpath.  Setting hardcode_minus_L
19819           # to unsupported forces relinking
19820           hardcode_minus_L_F77=yes
19821           hardcode_libdir_flag_spec_F77='-L$libdir'
19822           hardcode_libdir_separator_F77=
19823           fi
19824         esac
19825         shared_flag='-shared'
19826       else
19827         # not using gcc
19828         if test "$host_cpu" = ia64; then
19829         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19830         # chokes on -Wl,-G. The following line is correct:
19831           shared_flag='-G'
19832         else
19833         if test "$aix_use_runtimelinking" = yes; then
19834             shared_flag='${wl}-G'
19835           else
19836             shared_flag='${wl}-bM:SRE'
19837         fi
19838         fi
19839       fi
19840
19841       # It seems that -bexpall does not export symbols beginning with
19842       # underscore (_), so it is better to generate a list of symbols to export.
19843       always_export_symbols_F77=yes
19844       if test "$aix_use_runtimelinking" = yes; then
19845         # Warning - without using the other runtime loading flags (-brtl),
19846         # -berok will link without error, but may produce a broken library.
19847         allow_undefined_flag_F77='-berok'
19848        # Determine the default libpath from the value encoded in an empty executable.
19849        cat >conftest.$ac_ext <<_ACEOF
19850       program main
19851
19852       end
19853 _ACEOF
19854 rm -f conftest.$ac_objext conftest$ac_exeext
19855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19856   (eval $ac_link) 2>conftest.er1
19857   ac_status=$?
19858   grep -v '^ *+' conftest.er1 >conftest.err
19859   rm -f conftest.er1
19860   cat conftest.err >&5
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); } &&
19863          { ac_try='test -z "$ac_f77_werror_flag"
19864                          || test ! -s conftest.err'
19865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19866   (eval $ac_try) 2>&5
19867   ac_status=$?
19868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869   (exit $ac_status); }; } &&
19870          { ac_try='test -s conftest$ac_exeext'
19871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872   (eval $ac_try) 2>&5
19873   ac_status=$?
19874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); }; }; then
19876
19877 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19878 }'`
19879 # Check for a 64-bit object if we didn't find anything.
19880 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; }
19881 }'`; fi
19882 else
19883   echo "$as_me: failed program was:" >&5
19884 sed 's/^/| /' conftest.$ac_ext >&5
19885
19886 fi
19887 rm -f conftest.err conftest.$ac_objext \
19888       conftest$ac_exeext conftest.$ac_ext
19889 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19890
19891        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19892         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"
19893        else
19894         if test "$host_cpu" = ia64; then
19895           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19896           allow_undefined_flag_F77="-z nodefs"
19897           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"
19898         else
19899          # Determine the default libpath from the value encoded in an empty executable.
19900          cat >conftest.$ac_ext <<_ACEOF
19901       program main
19902
19903       end
19904 _ACEOF
19905 rm -f conftest.$ac_objext conftest$ac_exeext
19906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19907   (eval $ac_link) 2>conftest.er1
19908   ac_status=$?
19909   grep -v '^ *+' conftest.er1 >conftest.err
19910   rm -f conftest.er1
19911   cat conftest.err >&5
19912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913   (exit $ac_status); } &&
19914          { ac_try='test -z "$ac_f77_werror_flag"
19915                          || test ! -s conftest.err'
19916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917   (eval $ac_try) 2>&5
19918   ac_status=$?
19919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920   (exit $ac_status); }; } &&
19921          { ac_try='test -s conftest$ac_exeext'
19922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923   (eval $ac_try) 2>&5
19924   ac_status=$?
19925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926   (exit $ac_status); }; }; then
19927
19928 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19929 }'`
19930 # Check for a 64-bit object if we didn't find anything.
19931 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; }
19932 }'`; fi
19933 else
19934   echo "$as_me: failed program was:" >&5
19935 sed 's/^/| /' conftest.$ac_ext >&5
19936
19937 fi
19938 rm -f conftest.err conftest.$ac_objext \
19939       conftest$ac_exeext conftest.$ac_ext
19940 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19941
19942          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19943           # Warning - without using the other run time loading flags,
19944           # -berok will link without error, but may produce a broken library.
19945           no_undefined_flag_F77=' ${wl}-bernotok'
19946           allow_undefined_flag_F77=' ${wl}-berok'
19947           # -bexpall does not export symbols beginning with underscore (_)
19948           always_export_symbols_F77=yes
19949           # Exported symbols can be pulled into shared objects from archives
19950           whole_archive_flag_spec_F77=' '
19951           archive_cmds_need_lc_F77=yes
19952           # This is similar to how AIX traditionally builds it's shared libraries.
19953           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'
19954         fi
19955       fi
19956       ;;
19957
19958     amigaos*)
19959       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)'
19960       hardcode_libdir_flag_spec_F77='-L$libdir'
19961       hardcode_minus_L_F77=yes
19962       # see comment about different semantics on the GNU ld section
19963       ld_shlibs_F77=no
19964       ;;
19965
19966     bsdi[45]*)
19967       export_dynamic_flag_spec_F77=-rdynamic
19968       ;;
19969
19970     cygwin* | mingw* | pw32*)
19971       # When not using gcc, we currently assume that we are using
19972       # Microsoft Visual C++.
19973       # hardcode_libdir_flag_spec is actually meaningless, as there is
19974       # no search path for DLLs.
19975       hardcode_libdir_flag_spec_F77=' '
19976       allow_undefined_flag_F77=unsupported
19977       # Tell ltmain to make .lib files, not .a files.
19978       libext=lib
19979       # Tell ltmain to make .dll files, not .so files.
19980       shrext_cmds=".dll"
19981       # FIXME: Setting linknames here is a bad hack.
19982       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19983       # The linker will automatically build a .lib file if we build a DLL.
19984       old_archive_From_new_cmds_F77='true'
19985       # FIXME: Should let the user specify the lib program.
19986       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19987       fix_srcfile_path='`cygpath -w "$srcfile"`'
19988       enable_shared_with_static_runtimes_F77=yes
19989       ;;
19990
19991     darwin* | rhapsody*)
19992       case "$host_os" in
19993         rhapsody* | darwin1.[012])
19994          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19995          ;;
19996        *) # Darwin 1.3 on
19997          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19998            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19999          else
20000            case ${MACOSX_DEPLOYMENT_TARGET} in
20001              10.[012])
20002                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20003                ;;
20004              10.*)
20005                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20006                ;;
20007            esac
20008          fi
20009          ;;
20010       esac
20011       archive_cmds_need_lc_F77=no
20012       hardcode_direct_F77=no
20013       hardcode_automatic_F77=yes
20014       hardcode_shlibpath_var_F77=unsupported
20015       whole_archive_flag_spec_F77=''
20016       link_all_deplibs_F77=yes
20017     if test "$GCC" = yes ; then
20018         output_verbose_link_cmd='echo'
20019         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20020       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20021       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20022       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}'
20023       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}'
20024     else
20025       case "$cc_basename" in
20026         xlc*)
20027          output_verbose_link_cmd='echo'
20028          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20029          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20030           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20031          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}'
20032           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}'
20033           ;;
20034        *)
20035          ld_shlibs_F77=no
20036           ;;
20037       esac
20038     fi
20039       ;;
20040
20041     dgux*)
20042       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20043       hardcode_libdir_flag_spec_F77='-L$libdir'
20044       hardcode_shlibpath_var_F77=no
20045       ;;
20046
20047     freebsd1*)
20048       ld_shlibs_F77=no
20049       ;;
20050
20051     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20052     # support.  Future versions do this automatically, but an explicit c++rt0.o
20053     # does not break anything, and helps significantly (at the cost of a little
20054     # extra space).
20055     freebsd2.2*)
20056       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20057       hardcode_libdir_flag_spec_F77='-R$libdir'
20058       hardcode_direct_F77=yes
20059       hardcode_shlibpath_var_F77=no
20060       ;;
20061
20062     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20063     freebsd2*)
20064       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20065       hardcode_direct_F77=yes
20066       hardcode_minus_L_F77=yes
20067       hardcode_shlibpath_var_F77=no
20068       ;;
20069
20070     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20071     freebsd* | kfreebsd*-gnu)
20072       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20073       hardcode_libdir_flag_spec_F77='-R$libdir'
20074       hardcode_direct_F77=yes
20075       hardcode_shlibpath_var_F77=no
20076       ;;
20077
20078     hpux9*)
20079       if test "$GCC" = yes; then
20080         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'
20081       else
20082         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'
20083       fi
20084       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20085       hardcode_libdir_separator_F77=:
20086       hardcode_direct_F77=yes
20087
20088       # hardcode_minus_L: Not really in the search PATH,
20089       # but as the default location of the library.
20090       hardcode_minus_L_F77=yes
20091       export_dynamic_flag_spec_F77='${wl}-E'
20092       ;;
20093
20094     hpux10* | hpux11*)
20095       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20096         case "$host_cpu" in
20097         hppa*64*|ia64*)
20098           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20099           ;;
20100         *)
20101           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20102           ;;
20103         esac
20104       else
20105         case "$host_cpu" in
20106         hppa*64*|ia64*)
20107           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20108           ;;
20109         *)
20110           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20111           ;;
20112         esac
20113       fi
20114       if test "$with_gnu_ld" = no; then
20115         case "$host_cpu" in
20116         hppa*64*)
20117           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20118           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
20119           hardcode_libdir_separator_F77=:
20120           hardcode_direct_F77=no
20121           hardcode_shlibpath_var_F77=no
20122           ;;
20123         ia64*)
20124           hardcode_libdir_flag_spec_F77='-L$libdir'
20125           hardcode_direct_F77=no
20126           hardcode_shlibpath_var_F77=no
20127
20128           # hardcode_minus_L: Not really in the search PATH,
20129           # but as the default location of the library.
20130           hardcode_minus_L_F77=yes
20131           ;;
20132         *)
20133           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20134           hardcode_libdir_separator_F77=:
20135           hardcode_direct_F77=yes
20136           export_dynamic_flag_spec_F77='${wl}-E'
20137
20138           # hardcode_minus_L: Not really in the search PATH,
20139           # but as the default location of the library.
20140           hardcode_minus_L_F77=yes
20141           ;;
20142         esac
20143       fi
20144       ;;
20145
20146     irix5* | irix6* | nonstopux*)
20147       if test "$GCC" = yes; then
20148         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'
20149       else
20150         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'
20151         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
20152       fi
20153       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20154       hardcode_libdir_separator_F77=:
20155       link_all_deplibs_F77=yes
20156       ;;
20157
20158     netbsd*)
20159       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20160         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
20161       else
20162         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
20163       fi
20164       hardcode_libdir_flag_spec_F77='-R$libdir'
20165       hardcode_direct_F77=yes
20166       hardcode_shlibpath_var_F77=no
20167       ;;
20168
20169     newsos6)
20170       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20171       hardcode_direct_F77=yes
20172       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20173       hardcode_libdir_separator_F77=:
20174       hardcode_shlibpath_var_F77=no
20175       ;;
20176
20177     openbsd*)
20178       hardcode_direct_F77=yes
20179       hardcode_shlibpath_var_F77=no
20180       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20181         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20182         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20183         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20184         export_dynamic_flag_spec_F77='${wl}-E'
20185       else
20186        case $host_os in
20187          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20188            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20189            hardcode_libdir_flag_spec_F77='-R$libdir'
20190            ;;
20191          *)
20192            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20193            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20194            ;;
20195        esac
20196       fi
20197       ;;
20198
20199     os2*)
20200       hardcode_libdir_flag_spec_F77='-L$libdir'
20201       hardcode_minus_L_F77=yes
20202       allow_undefined_flag_F77=unsupported
20203       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'
20204       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20205       ;;
20206
20207     osf3*)
20208       if test "$GCC" = yes; then
20209         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20210         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'
20211       else
20212         allow_undefined_flag_F77=' -expect_unresolved \*'
20213         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'
20214       fi
20215       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20216       hardcode_libdir_separator_F77=:
20217       ;;
20218
20219     osf4* | osf5*)      # as osf3* with the addition of -msym flag
20220       if test "$GCC" = yes; then
20221         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20222         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'
20223         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20224       else
20225         allow_undefined_flag_F77=' -expect_unresolved \*'
20226         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'
20227         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~
20228         $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'
20229
20230         # Both c and cxx compiler support -rpath directly
20231         hardcode_libdir_flag_spec_F77='-rpath $libdir'
20232       fi
20233       hardcode_libdir_separator_F77=:
20234       ;;
20235
20236     sco3.2v5*)
20237       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20238       hardcode_shlibpath_var_F77=no
20239       export_dynamic_flag_spec_F77='${wl}-Bexport'
20240       runpath_var=LD_RUN_PATH
20241       hardcode_runpath_var=yes
20242       ;;
20243
20244     solaris*)
20245       no_undefined_flag_F77=' -z text'
20246       if test "$GCC" = yes; then
20247         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20248         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20249           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20250       else
20251         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20252         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20253         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20254       fi
20255       hardcode_libdir_flag_spec_F77='-R$libdir'
20256       hardcode_shlibpath_var_F77=no
20257       case $host_os in
20258       solaris2.[0-5] | solaris2.[0-5].*) ;;
20259       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20260         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20261       esac
20262       link_all_deplibs_F77=yes
20263       ;;
20264
20265     sunos4*)
20266       if test "x$host_vendor" = xsequent; then
20267         # Use $CC to link under sequent, because it throws in some extra .o
20268         # files that make .init and .fini sections work.
20269         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20270       else
20271         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20272       fi
20273       hardcode_libdir_flag_spec_F77='-L$libdir'
20274       hardcode_direct_F77=yes
20275       hardcode_minus_L_F77=yes
20276       hardcode_shlibpath_var_F77=no
20277       ;;
20278
20279     sysv4)
20280       case $host_vendor in
20281         sni)
20282           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20283           hardcode_direct_F77=yes # is this really true???
20284         ;;
20285         siemens)
20286           ## LD is ld it makes a PLAMLIB
20287           ## CC just makes a GrossModule.
20288           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20289           reload_cmds_F77='$CC -r -o $output$reload_objs'
20290           hardcode_direct_F77=no
20291         ;;
20292         motorola)
20293           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20294           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20295         ;;
20296       esac
20297       runpath_var='LD_RUN_PATH'
20298       hardcode_shlibpath_var_F77=no
20299       ;;
20300
20301     sysv4.3*)
20302       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20303       hardcode_shlibpath_var_F77=no
20304       export_dynamic_flag_spec_F77='-Bexport'
20305       ;;
20306
20307     sysv4*MP*)
20308       if test -d /usr/nec; then
20309         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20310         hardcode_shlibpath_var_F77=no
20311         runpath_var=LD_RUN_PATH
20312         hardcode_runpath_var=yes
20313         ld_shlibs_F77=yes
20314       fi
20315       ;;
20316
20317     sysv4.2uw2*)
20318       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20319       hardcode_direct_F77=yes
20320       hardcode_minus_L_F77=no
20321       hardcode_shlibpath_var_F77=no
20322       hardcode_runpath_var=yes
20323       runpath_var=LD_RUN_PATH
20324       ;;
20325
20326    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
20327       no_undefined_flag_F77='${wl}-z ${wl}text'
20328       if test "$GCC" = yes; then
20329         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20330       else
20331         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20332       fi
20333       runpath_var='LD_RUN_PATH'
20334       hardcode_shlibpath_var_F77=no
20335       ;;
20336
20337     sysv5*)
20338       no_undefined_flag_F77=' -z text'
20339       # $CC -shared without GNU ld will not create a library from C++
20340       # object files and a static libstdc++, better avoid it by now
20341       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20342       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20343                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20344       hardcode_libdir_flag_spec_F77=
20345       hardcode_shlibpath_var_F77=no
20346       runpath_var='LD_RUN_PATH'
20347       ;;
20348
20349     uts4*)
20350       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20351       hardcode_libdir_flag_spec_F77='-L$libdir'
20352       hardcode_shlibpath_var_F77=no
20353       ;;
20354
20355     *)
20356       ld_shlibs_F77=no
20357       ;;
20358     esac
20359   fi
20360
20361 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20362 echo "${ECHO_T}$ld_shlibs_F77" >&6
20363 test "$ld_shlibs_F77" = no && can_build_shared=no
20364
20365 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20366 if test "$GCC" = yes; then
20367   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20368 fi
20369
20370 #
20371 # Do we need to explicitly link libc?
20372 #
20373 case "x$archive_cmds_need_lc_F77" in
20374 x|xyes)
20375   # Assume -lc should be added
20376   archive_cmds_need_lc_F77=yes
20377
20378   if test "$enable_shared" = yes && test "$GCC" = yes; then
20379     case $archive_cmds_F77 in
20380     *'~'*)
20381       # FIXME: we may have to deal with multi-command sequences.
20382       ;;
20383     '$CC '*)
20384       # Test whether the compiler implicitly links with -lc since on some
20385       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20386       # to ld, don't add -lc before -lgcc.
20387       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20388 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20389       $rm conftest*
20390       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20391
20392       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20393   (eval $ac_compile) 2>&5
20394   ac_status=$?
20395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396   (exit $ac_status); } 2>conftest.err; then
20397         soname=conftest
20398         lib=conftest
20399         libobjs=conftest.$ac_objext
20400         deplibs=
20401         wl=$lt_prog_compiler_wl_F77
20402         compiler_flags=-v
20403         linker_flags=-v
20404         verstring=
20405         output_objdir=.
20406         libname=conftest
20407         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20408         allow_undefined_flag_F77=
20409         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20410   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20411   ac_status=$?
20412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); }
20414         then
20415           archive_cmds_need_lc_F77=no
20416         else
20417           archive_cmds_need_lc_F77=yes
20418         fi
20419         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20420       else
20421         cat conftest.err 1>&5
20422       fi
20423       $rm conftest*
20424       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20425 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20426       ;;
20427     esac
20428   fi
20429   ;;
20430 esac
20431
20432 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20433 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20434 library_names_spec=
20435 libname_spec='lib$name'
20436 soname_spec=
20437 shrext_cmds=".so"
20438 postinstall_cmds=
20439 postuninstall_cmds=
20440 finish_cmds=
20441 finish_eval=
20442 shlibpath_var=
20443 shlibpath_overrides_runpath=unknown
20444 version_type=none
20445 dynamic_linker="$host_os ld.so"
20446 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20447 if test "$GCC" = yes; then
20448   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20449   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20450     # if the path contains ";" then we assume it to be the separator
20451     # otherwise default to the standard path separator (i.e. ":") - it is
20452     # assumed that no part of a normal pathname contains ";" but that should
20453     # okay in the real world where ";" in dirpaths is itself problematic.
20454     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20455   else
20456     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20457   fi
20458 else
20459   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20460 fi
20461 need_lib_prefix=unknown
20462 hardcode_into_libs=no
20463
20464 # when you set need_version to no, make sure it does not cause -set_version
20465 # flags to be left without arguments
20466 need_version=unknown
20467
20468 case $host_os in
20469 aix3*)
20470   version_type=linux
20471   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20472   shlibpath_var=LIBPATH
20473
20474   # AIX 3 has no versioning support, so we append a major version to the name.
20475   soname_spec='${libname}${release}${shared_ext}$major'
20476   ;;
20477
20478 aix4* | aix5*)
20479   version_type=linux
20480   need_lib_prefix=no
20481   need_version=no
20482   hardcode_into_libs=yes
20483   if test "$host_cpu" = ia64; then
20484     # AIX 5 supports IA64
20485     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20486     shlibpath_var=LD_LIBRARY_PATH
20487   else
20488     # With GCC up to 2.95.x, collect2 would create an import file
20489     # for dependence libraries.  The import file would start with
20490     # the line `#! .'.  This would cause the generated library to
20491     # depend on `.', always an invalid library.  This was fixed in
20492     # development snapshots of GCC prior to 3.0.
20493     case $host_os in
20494       aix4 | aix4.[01] | aix4.[01].*)
20495       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20496            echo ' yes '
20497            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20498         :
20499       else
20500         can_build_shared=no
20501       fi
20502       ;;
20503     esac
20504     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20505     # soname into executable. Probably we can add versioning support to
20506     # collect2, so additional links can be useful in future.
20507     if test "$aix_use_runtimelinking" = yes; then
20508       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20509       # instead of lib<name>.a to let people know that these are not
20510       # typical AIX shared libraries.
20511       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20512     else
20513       # We preserve .a as extension for shared libraries through AIX4.2
20514       # and later when we are not doing run time linking.
20515       library_names_spec='${libname}${release}.a $libname.a'
20516       soname_spec='${libname}${release}${shared_ext}$major'
20517     fi
20518     shlibpath_var=LIBPATH
20519   fi
20520   ;;
20521
20522 amigaos*)
20523   library_names_spec='$libname.ixlibrary $libname.a'
20524   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20525   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'
20526   ;;
20527
20528 beos*)
20529   library_names_spec='${libname}${shared_ext}'
20530   dynamic_linker="$host_os ld.so"
20531   shlibpath_var=LIBRARY_PATH
20532   ;;
20533
20534 bsdi[45]*)
20535   version_type=linux
20536   need_version=no
20537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20538   soname_spec='${libname}${release}${shared_ext}$major'
20539   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20540   shlibpath_var=LD_LIBRARY_PATH
20541   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20542   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20543   # the default ld.so.conf also contains /usr/contrib/lib and
20544   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20545   # libtool to hard-code these into programs
20546   ;;
20547
20548 cygwin* | mingw* | pw32*)
20549   version_type=windows
20550   shrext_cmds=".dll"
20551   need_version=no
20552   need_lib_prefix=no
20553
20554   case $GCC,$host_os in
20555   yes,cygwin* | yes,mingw* | yes,pw32*)
20556     library_names_spec='$libname.dll.a'
20557     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20558     postinstall_cmds='base_file=`basename \${file}`~
20559       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20560       dldir=$destdir/`dirname \$dlpath`~
20561       test -d \$dldir || mkdir -p \$dldir~
20562       $install_prog $dir/$dlname \$dldir/$dlname'
20563     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20564       dlpath=$dir/\$dldll~
20565        $rm \$dlpath'
20566     shlibpath_overrides_runpath=yes
20567
20568     case $host_os in
20569     cygwin*)
20570       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20571       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20572       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20573       ;;
20574     mingw*)
20575       # MinGW DLLs use traditional 'lib' prefix
20576       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20577       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20578       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20579         # It is most probably a Windows format PATH printed by
20580         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20581         # path with ; separators, and with drive letters. We can handle the
20582         # drive letters (cygwin fileutils understands them), so leave them,
20583         # especially as we might pass files found there to a mingw objdump,
20584         # which wouldn't understand a cygwinified path. Ahh.
20585         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20586       else
20587         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20588       fi
20589       ;;
20590     pw32*)
20591       # pw32 DLLs use 'pw' prefix rather than 'lib'
20592       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20593       ;;
20594     esac
20595     ;;
20596
20597   *)
20598     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20599     ;;
20600   esac
20601   dynamic_linker='Win32 ld.exe'
20602   # FIXME: first we should search . and the directory the executable is in
20603   shlibpath_var=PATH
20604   ;;
20605
20606 darwin* | rhapsody*)
20607   dynamic_linker="$host_os dyld"
20608   version_type=darwin
20609   need_lib_prefix=no
20610   need_version=no
20611   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20612   soname_spec='${libname}${release}${major}$shared_ext'
20613   shlibpath_overrides_runpath=yes
20614   shlibpath_var=DYLD_LIBRARY_PATH
20615   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20616   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20617   if test "$GCC" = yes; then
20618     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"`
20619   else
20620     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20621   fi
20622   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20623   ;;
20624
20625 dgux*)
20626   version_type=linux
20627   need_lib_prefix=no
20628   need_version=no
20629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20630   soname_spec='${libname}${release}${shared_ext}$major'
20631   shlibpath_var=LD_LIBRARY_PATH
20632   ;;
20633
20634 freebsd1*)
20635   dynamic_linker=no
20636   ;;
20637
20638 kfreebsd*-gnu)
20639   version_type=linux
20640   need_lib_prefix=no
20641   need_version=no
20642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20643   soname_spec='${libname}${release}${shared_ext}$major'
20644   shlibpath_var=LD_LIBRARY_PATH
20645   shlibpath_overrides_runpath=no
20646   hardcode_into_libs=yes
20647   dynamic_linker='GNU ld.so'
20648   ;;
20649
20650 freebsd*)
20651   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20652   version_type=freebsd-$objformat
20653   case $version_type in
20654     freebsd-elf*)
20655       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20656       need_version=no
20657       need_lib_prefix=no
20658       ;;
20659     freebsd-*)
20660       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20661       need_version=yes
20662       ;;
20663   esac
20664   shlibpath_var=LD_LIBRARY_PATH
20665   case $host_os in
20666   freebsd2*)
20667     shlibpath_overrides_runpath=yes
20668     ;;
20669   freebsd3.01* | freebsdelf3.01*)
20670     shlibpath_overrides_runpath=yes
20671     hardcode_into_libs=yes
20672     ;;
20673   *) # from 3.2 on
20674     shlibpath_overrides_runpath=no
20675     hardcode_into_libs=yes
20676     ;;
20677   esac
20678   ;;
20679
20680 gnu*)
20681   version_type=linux
20682   need_lib_prefix=no
20683   need_version=no
20684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20685   soname_spec='${libname}${release}${shared_ext}$major'
20686   shlibpath_var=LD_LIBRARY_PATH
20687   hardcode_into_libs=yes
20688   ;;
20689
20690 hpux9* | hpux10* | hpux11*)
20691   # Give a soname corresponding to the major version so that dld.sl refuses to
20692   # link against other versions.
20693   version_type=sunos
20694   need_lib_prefix=no
20695   need_version=no
20696   case "$host_cpu" in
20697   ia64*)
20698     shrext_cmds='.so'
20699     hardcode_into_libs=yes
20700     dynamic_linker="$host_os dld.so"
20701     shlibpath_var=LD_LIBRARY_PATH
20702     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20703     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20704     soname_spec='${libname}${release}${shared_ext}$major'
20705     if test "X$HPUX_IA64_MODE" = X32; then
20706       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20707     else
20708       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20709     fi
20710     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20711     ;;
20712    hppa*64*)
20713      shrext_cmds='.sl'
20714      hardcode_into_libs=yes
20715      dynamic_linker="$host_os dld.sl"
20716      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20717      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20718      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20719      soname_spec='${libname}${release}${shared_ext}$major'
20720      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20721      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20722      ;;
20723    *)
20724     shrext_cmds='.sl'
20725     dynamic_linker="$host_os dld.sl"
20726     shlibpath_var=SHLIB_PATH
20727     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20728     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20729     soname_spec='${libname}${release}${shared_ext}$major'
20730     ;;
20731   esac
20732   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20733   postinstall_cmds='chmod 555 $lib'
20734   ;;
20735
20736 irix5* | irix6* | nonstopux*)
20737   case $host_os in
20738     nonstopux*) version_type=nonstopux ;;
20739     *)
20740         if test "$lt_cv_prog_gnu_ld" = yes; then
20741                 version_type=linux
20742         else
20743                 version_type=irix
20744         fi ;;
20745   esac
20746   need_lib_prefix=no
20747   need_version=no
20748   soname_spec='${libname}${release}${shared_ext}$major'
20749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20750   case $host_os in
20751   irix5* | nonstopux*)
20752     libsuff= shlibsuff=
20753     ;;
20754   *)
20755     case $LD in # libtool.m4 will add one of these switches to LD
20756     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20757       libsuff= shlibsuff= libmagic=32-bit;;
20758     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20759       libsuff=32 shlibsuff=N32 libmagic=N32;;
20760     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20761       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20762     *) libsuff= shlibsuff= libmagic=never-match;;
20763     esac
20764     ;;
20765   esac
20766   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20767   shlibpath_overrides_runpath=no
20768   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20769   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20770   hardcode_into_libs=yes
20771   ;;
20772
20773 # No shared lib support for Linux oldld, aout, or coff.
20774 linux*oldld* | linux*aout* | linux*coff*)
20775   dynamic_linker=no
20776   ;;
20777
20778 # This must be Linux ELF.
20779 linux*)
20780   version_type=linux
20781   need_lib_prefix=no
20782   need_version=no
20783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20784   soname_spec='${libname}${release}${shared_ext}$major'
20785   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20786   shlibpath_var=LD_LIBRARY_PATH
20787   shlibpath_overrides_runpath=no
20788   # This implies no fast_install, which is unacceptable.
20789   # Some rework will be needed to allow for fast_install
20790   # before this can be enabled.
20791   hardcode_into_libs=yes
20792
20793   # Append ld.so.conf contents to the search path
20794   if test -f /etc/ld.so.conf; then
20795     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20796     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20797   fi
20798
20799   # We used to test for /lib/ld.so.1 and disable shared libraries on
20800   # powerpc, because MkLinux only supported shared libraries with the
20801   # GNU dynamic linker.  Since this was broken with cross compilers,
20802   # most powerpc-linux boxes support dynamic linking these days and
20803   # people can always --disable-shared, the test was removed, and we
20804   # assume the GNU/Linux dynamic linker is in use.
20805   dynamic_linker='GNU/Linux ld.so'
20806   ;;
20807
20808 knetbsd*-gnu)
20809   version_type=linux
20810   need_lib_prefix=no
20811   need_version=no
20812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20813   soname_spec='${libname}${release}${shared_ext}$major'
20814   shlibpath_var=LD_LIBRARY_PATH
20815   shlibpath_overrides_runpath=no
20816   hardcode_into_libs=yes
20817   dynamic_linker='GNU ld.so'
20818   ;;
20819
20820 netbsd*)
20821   version_type=sunos
20822   need_lib_prefix=no
20823   need_version=no
20824   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20825     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20826     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20827     dynamic_linker='NetBSD (a.out) ld.so'
20828   else
20829     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20830     soname_spec='${libname}${release}${shared_ext}$major'
20831     dynamic_linker='NetBSD ld.elf_so'
20832   fi
20833   shlibpath_var=LD_LIBRARY_PATH
20834   shlibpath_overrides_runpath=yes
20835   hardcode_into_libs=yes
20836   ;;
20837
20838 newsos6)
20839   version_type=linux
20840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20841   shlibpath_var=LD_LIBRARY_PATH
20842   shlibpath_overrides_runpath=yes
20843   ;;
20844
20845 nto-qnx*)
20846   version_type=linux
20847   need_lib_prefix=no
20848   need_version=no
20849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20850   soname_spec='${libname}${release}${shared_ext}$major'
20851   shlibpath_var=LD_LIBRARY_PATH
20852   shlibpath_overrides_runpath=yes
20853   ;;
20854
20855 openbsd*)
20856   version_type=sunos
20857   need_lib_prefix=no
20858   need_version=no
20859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20860   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20861   shlibpath_var=LD_LIBRARY_PATH
20862   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20863     case $host_os in
20864       openbsd2.[89] | openbsd2.[89].*)
20865         shlibpath_overrides_runpath=no
20866         ;;
20867       *)
20868         shlibpath_overrides_runpath=yes
20869         ;;
20870       esac
20871   else
20872     shlibpath_overrides_runpath=yes
20873   fi
20874   ;;
20875
20876 os2*)
20877   libname_spec='$name'
20878   shrext_cmds=".dll"
20879   need_lib_prefix=no
20880   library_names_spec='$libname${shared_ext} $libname.a'
20881   dynamic_linker='OS/2 ld.exe'
20882   shlibpath_var=LIBPATH
20883   ;;
20884
20885 osf3* | osf4* | osf5*)
20886   version_type=osf
20887   need_lib_prefix=no
20888   need_version=no
20889   soname_spec='${libname}${release}${shared_ext}$major'
20890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20891   shlibpath_var=LD_LIBRARY_PATH
20892   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20893   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20894   ;;
20895
20896 sco3.2v5*)
20897   version_type=osf
20898   soname_spec='${libname}${release}${shared_ext}$major'
20899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20900   shlibpath_var=LD_LIBRARY_PATH
20901   ;;
20902
20903 solaris*)
20904   version_type=linux
20905   need_lib_prefix=no
20906   need_version=no
20907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20908   soname_spec='${libname}${release}${shared_ext}$major'
20909   shlibpath_var=LD_LIBRARY_PATH
20910   shlibpath_overrides_runpath=yes
20911   hardcode_into_libs=yes
20912   # ldd complains unless libraries are executable
20913   postinstall_cmds='chmod +x $lib'
20914   ;;
20915
20916 sunos4*)
20917   version_type=sunos
20918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20919   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20920   shlibpath_var=LD_LIBRARY_PATH
20921   shlibpath_overrides_runpath=yes
20922   if test "$with_gnu_ld" = yes; then
20923     need_lib_prefix=no
20924   fi
20925   need_version=yes
20926   ;;
20927
20928 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20929   version_type=linux
20930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20931   soname_spec='${libname}${release}${shared_ext}$major'
20932   shlibpath_var=LD_LIBRARY_PATH
20933   case $host_vendor in
20934     sni)
20935       shlibpath_overrides_runpath=no
20936       need_lib_prefix=no
20937       export_dynamic_flag_spec='${wl}-Blargedynsym'
20938       runpath_var=LD_RUN_PATH
20939       ;;
20940     siemens)
20941       need_lib_prefix=no
20942       ;;
20943     motorola)
20944       need_lib_prefix=no
20945       need_version=no
20946       shlibpath_overrides_runpath=no
20947       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20948       ;;
20949   esac
20950   ;;
20951
20952 sysv4*MP*)
20953   if test -d /usr/nec ;then
20954     version_type=linux
20955     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20956     soname_spec='$libname${shared_ext}.$major'
20957     shlibpath_var=LD_LIBRARY_PATH
20958   fi
20959   ;;
20960
20961 uts4*)
20962   version_type=linux
20963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20964   soname_spec='${libname}${release}${shared_ext}$major'
20965   shlibpath_var=LD_LIBRARY_PATH
20966   ;;
20967
20968 *)
20969   dynamic_linker=no
20970   ;;
20971 esac
20972 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20973 echo "${ECHO_T}$dynamic_linker" >&6
20974 test "$dynamic_linker" = no && can_build_shared=no
20975
20976 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20977 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20978 hardcode_action_F77=
20979 if test -n "$hardcode_libdir_flag_spec_F77" || \
20980    test -n "$runpath_var_F77" || \
20981    test "X$hardcode_automatic_F77" = "Xyes" ; then
20982
20983   # We can hardcode non-existant directories.
20984   if test "$hardcode_direct_F77" != no &&
20985      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20986      # have to relink, otherwise we might link with an installed library
20987      # when we should be linking with a yet-to-be-installed one
20988      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20989      test "$hardcode_minus_L_F77" != no; then
20990     # Linking always hardcodes the temporary library directory.
20991     hardcode_action_F77=relink
20992   else
20993     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20994     hardcode_action_F77=immediate
20995   fi
20996 else
20997   # We cannot hardcode anything, or else we can only hardcode existing
20998   # directories.
20999   hardcode_action_F77=unsupported
21000 fi
21001 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
21002 echo "${ECHO_T}$hardcode_action_F77" >&6
21003
21004 if test "$hardcode_action_F77" = relink; then
21005   # Fast installation is not supported
21006   enable_fast_install=no
21007 elif test "$shlibpath_overrides_runpath" = yes ||
21008      test "$enable_shared" = no; then
21009   # Fast installation is not necessary
21010   enable_fast_install=needless
21011 fi
21012
21013 striplib=
21014 old_striplib=
21015 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21016 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21017 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21018   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21019   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21020   echo "$as_me:$LINENO: result: yes" >&5
21021 echo "${ECHO_T}yes" >&6
21022 else
21023 # FIXME - insert some real tests, host_os isn't really good enough
21024   case $host_os in
21025    darwin*)
21026        if test -n "$STRIP" ; then
21027          striplib="$STRIP -x"
21028          echo "$as_me:$LINENO: result: yes" >&5
21029 echo "${ECHO_T}yes" >&6
21030        else
21031   echo "$as_me:$LINENO: result: no" >&5
21032 echo "${ECHO_T}no" >&6
21033 fi
21034        ;;
21035    *)
21036   echo "$as_me:$LINENO: result: no" >&5
21037 echo "${ECHO_T}no" >&6
21038     ;;
21039   esac
21040 fi
21041
21042
21043
21044 # The else clause should only fire when bootstrapping the
21045 # libtool distribution, otherwise you forgot to ship ltmain.sh
21046 # with your package, and you will get complaints that there are
21047 # no rules to generate ltmain.sh.
21048 if test -f "$ltmain"; then
21049   # See if we are running on zsh, and set the options which allow our commands through
21050   # without removal of \ escapes.
21051   if test -n "${ZSH_VERSION+set}" ; then
21052     setopt NO_GLOB_SUBST
21053   fi
21054   # Now quote all the things that may contain metacharacters while being
21055   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21056   # variables and quote the copies for generation of the libtool script.
21057   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21058     SED SHELL STRIP \
21059     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21060     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21061     deplibs_check_method reload_flag reload_cmds need_locks \
21062     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21063     lt_cv_sys_global_symbol_to_c_name_address \
21064     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21065     old_postinstall_cmds old_postuninstall_cmds \
21066     compiler_F77 \
21067     CC_F77 \
21068     LD_F77 \
21069     lt_prog_compiler_wl_F77 \
21070     lt_prog_compiler_pic_F77 \
21071     lt_prog_compiler_static_F77 \
21072     lt_prog_compiler_no_builtin_flag_F77 \
21073     export_dynamic_flag_spec_F77 \
21074     thread_safe_flag_spec_F77 \
21075     whole_archive_flag_spec_F77 \
21076     enable_shared_with_static_runtimes_F77 \
21077     old_archive_cmds_F77 \
21078     old_archive_from_new_cmds_F77 \
21079     predep_objects_F77 \
21080     postdep_objects_F77 \
21081     predeps_F77 \
21082     postdeps_F77 \
21083     compiler_lib_search_path_F77 \
21084     archive_cmds_F77 \
21085     archive_expsym_cmds_F77 \
21086     postinstall_cmds_F77 \
21087     postuninstall_cmds_F77 \
21088     old_archive_from_expsyms_cmds_F77 \
21089     allow_undefined_flag_F77 \
21090     no_undefined_flag_F77 \
21091     export_symbols_cmds_F77 \
21092     hardcode_libdir_flag_spec_F77 \
21093     hardcode_libdir_flag_spec_ld_F77 \
21094     hardcode_libdir_separator_F77 \
21095     hardcode_automatic_F77 \
21096     module_cmds_F77 \
21097     module_expsym_cmds_F77 \
21098     lt_cv_prog_compiler_c_o_F77 \
21099     exclude_expsyms_F77 \
21100     include_expsyms_F77; do
21101
21102     case $var in
21103     old_archive_cmds_F77 | \
21104     old_archive_from_new_cmds_F77 | \
21105     archive_cmds_F77 | \
21106     archive_expsym_cmds_F77 | \
21107     module_cmds_F77 | \
21108     module_expsym_cmds_F77 | \
21109     old_archive_from_expsyms_cmds_F77 | \
21110     export_symbols_cmds_F77 | \
21111     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21112     postinstall_cmds | postuninstall_cmds | \
21113     old_postinstall_cmds | old_postuninstall_cmds | \
21114     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21115       # Double-quote double-evaled strings.
21116       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21117       ;;
21118     *)
21119       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21120       ;;
21121     esac
21122   done
21123
21124   case $lt_echo in
21125   *'\$0 --fallback-echo"')
21126     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21127     ;;
21128   esac
21129
21130 cfgfile="$ofile"
21131
21132   cat <<__EOF__ >> "$cfgfile"
21133 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21134
21135 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21136
21137 # Shell to use when invoking shell scripts.
21138 SHELL=$lt_SHELL
21139
21140 # Whether or not to build shared libraries.
21141 build_libtool_libs=$enable_shared
21142
21143 # Whether or not to build static libraries.
21144 build_old_libs=$enable_static
21145
21146 # Whether or not to add -lc for building shared libraries.
21147 build_libtool_need_lc=$archive_cmds_need_lc_F77
21148
21149 # Whether or not to disallow shared libs when runtime libs are static
21150 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
21151
21152 # Whether or not to optimize for fast installation.
21153 fast_install=$enable_fast_install
21154
21155 # The host system.
21156 host_alias=$host_alias
21157 host=$host
21158
21159 # An echo program that does not interpret backslashes.
21160 echo=$lt_echo
21161
21162 # The archiver.
21163 AR=$lt_AR
21164 AR_FLAGS=$lt_AR_FLAGS
21165
21166 # A C compiler.
21167 LTCC=$lt_LTCC
21168
21169 # A language-specific compiler.
21170 CC=$lt_compiler_F77
21171
21172 # Is the compiler the GNU C compiler?
21173 with_gcc=$GCC_F77
21174
21175 # An ERE matcher.
21176 EGREP=$lt_EGREP
21177
21178 # The linker used to build libraries.
21179 LD=$lt_LD_F77
21180
21181 # Whether we need hard or soft links.
21182 LN_S=$lt_LN_S
21183
21184 # A BSD-compatible nm program.
21185 NM=$lt_NM
21186
21187 # A symbol stripping program
21188 STRIP=$lt_STRIP
21189
21190 # Used to examine libraries when file_magic_cmd begins "file"
21191 MAGIC_CMD=$MAGIC_CMD
21192
21193 # Used on cygwin: DLL creation program.
21194 DLLTOOL="$DLLTOOL"
21195
21196 # Used on cygwin: object dumper.
21197 OBJDUMP="$OBJDUMP"
21198
21199 # Used on cygwin: assembler.
21200 AS="$AS"
21201
21202 # The name of the directory that contains temporary libtool files.
21203 objdir=$objdir
21204
21205 # How to create reloadable object files.
21206 reload_flag=$lt_reload_flag
21207 reload_cmds=$lt_reload_cmds
21208
21209 # How to pass a linker flag through the compiler.
21210 wl=$lt_lt_prog_compiler_wl_F77
21211
21212 # Object file suffix (normally "o").
21213 objext="$ac_objext"
21214
21215 # Old archive suffix (normally "a").
21216 libext="$libext"
21217
21218 # Shared library suffix (normally ".so").
21219 shrext_cmds='$shrext_cmds'
21220
21221 # Executable file suffix (normally "").
21222 exeext="$exeext"
21223
21224 # Additional compiler flags for building library objects.
21225 pic_flag=$lt_lt_prog_compiler_pic_F77
21226 pic_mode=$pic_mode
21227
21228 # What is the maximum length of a command?
21229 max_cmd_len=$lt_cv_sys_max_cmd_len
21230
21231 # Does compiler simultaneously support -c and -o options?
21232 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21233
21234 # Must we lock files when doing compilation ?
21235 need_locks=$lt_need_locks
21236
21237 # Do we need the lib prefix for modules?
21238 need_lib_prefix=$need_lib_prefix
21239
21240 # Do we need a version for libraries?
21241 need_version=$need_version
21242
21243 # Whether dlopen is supported.
21244 dlopen_support=$enable_dlopen
21245
21246 # Whether dlopen of programs is supported.
21247 dlopen_self=$enable_dlopen_self
21248
21249 # Whether dlopen of statically linked programs is supported.
21250 dlopen_self_static=$enable_dlopen_self_static
21251
21252 # Compiler flag to prevent dynamic linking.
21253 link_static_flag=$lt_lt_prog_compiler_static_F77
21254
21255 # Compiler flag to turn off builtin functions.
21256 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21257
21258 # Compiler flag to allow reflexive dlopens.
21259 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21260
21261 # Compiler flag to generate shared objects directly from archives.
21262 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21263
21264 # Compiler flag to generate thread-safe objects.
21265 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21266
21267 # Library versioning type.
21268 version_type=$version_type
21269
21270 # Format of library name prefix.
21271 libname_spec=$lt_libname_spec
21272
21273 # List of archive names.  First name is the real one, the rest are links.
21274 # The last name is the one that the linker finds with -lNAME.
21275 library_names_spec=$lt_library_names_spec
21276
21277 # The coded name of the library, if different from the real name.
21278 soname_spec=$lt_soname_spec
21279
21280 # Commands used to build and install an old-style archive.
21281 RANLIB=$lt_RANLIB
21282 old_archive_cmds=$lt_old_archive_cmds_F77
21283 old_postinstall_cmds=$lt_old_postinstall_cmds
21284 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21285
21286 # Create an old-style archive from a shared archive.
21287 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21288
21289 # Create a temporary old-style archive to link instead of a shared archive.
21290 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21291
21292 # Commands used to build and install a shared archive.
21293 archive_cmds=$lt_archive_cmds_F77
21294 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21295 postinstall_cmds=$lt_postinstall_cmds
21296 postuninstall_cmds=$lt_postuninstall_cmds
21297
21298 # Commands used to build a loadable module (assumed same as above if empty)
21299 module_cmds=$lt_module_cmds_F77
21300 module_expsym_cmds=$lt_module_expsym_cmds_F77
21301
21302 # Commands to strip libraries.
21303 old_striplib=$lt_old_striplib
21304 striplib=$lt_striplib
21305
21306 # Dependencies to place before the objects being linked to create a
21307 # shared library.
21308 predep_objects=$lt_predep_objects_F77
21309
21310 # Dependencies to place after the objects being linked to create a
21311 # shared library.
21312 postdep_objects=$lt_postdep_objects_F77
21313
21314 # Dependencies to place before the objects being linked to create a
21315 # shared library.
21316 predeps=$lt_predeps_F77
21317
21318 # Dependencies to place after the objects being linked to create a
21319 # shared library.
21320 postdeps=$lt_postdeps_F77
21321
21322 # The library search path used internally by the compiler when linking
21323 # a shared library.
21324 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21325
21326 # Method to check whether dependent libraries are shared objects.
21327 deplibs_check_method=$lt_deplibs_check_method
21328
21329 # Command to use when deplibs_check_method == file_magic.
21330 file_magic_cmd=$lt_file_magic_cmd
21331
21332 # Flag that allows shared libraries with undefined symbols to be built.
21333 allow_undefined_flag=$lt_allow_undefined_flag_F77
21334
21335 # Flag that forces no undefined symbols.
21336 no_undefined_flag=$lt_no_undefined_flag_F77
21337
21338 # Commands used to finish a libtool library installation in a directory.
21339 finish_cmds=$lt_finish_cmds
21340
21341 # Same as above, but a single script fragment to be evaled but not shown.
21342 finish_eval=$lt_finish_eval
21343
21344 # Take the output of nm and produce a listing of raw symbols and C names.
21345 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21346
21347 # Transform the output of nm in a proper C declaration
21348 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21349
21350 # Transform the output of nm in a C name address pair
21351 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21352
21353 # This is the shared library runtime path variable.
21354 runpath_var=$runpath_var
21355
21356 # This is the shared library path variable.
21357 shlibpath_var=$shlibpath_var
21358
21359 # Is shlibpath searched before the hard-coded library search path?
21360 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21361
21362 # How to hardcode a shared library path into an executable.
21363 hardcode_action=$hardcode_action_F77
21364
21365 # Whether we should hardcode library paths into libraries.
21366 hardcode_into_libs=$hardcode_into_libs
21367
21368 # Flag to hardcode \$libdir into a binary during linking.
21369 # This must work even if \$libdir does not exist.
21370 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21371
21372 # If ld is used when linking, flag to hardcode \$libdir into
21373 # a binary during linking. This must work even if \$libdir does
21374 # not exist.
21375 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21376
21377 # Whether we need a single -rpath flag with a separated argument.
21378 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21379
21380 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21381 # resulting binary.
21382 hardcode_direct=$hardcode_direct_F77
21383
21384 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21385 # resulting binary.
21386 hardcode_minus_L=$hardcode_minus_L_F77
21387
21388 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21389 # the resulting binary.
21390 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21391
21392 # Set to yes if building a shared library automatically hardcodes DIR into the library
21393 # and all subsequent libraries and executables linked against it.
21394 hardcode_automatic=$hardcode_automatic_F77
21395
21396 # Variables whose values should be saved in libtool wrapper scripts and
21397 # restored at relink time.
21398 variables_saved_for_relink="$variables_saved_for_relink"
21399
21400 # Whether libtool must link a program against all its dependency libraries.
21401 link_all_deplibs=$link_all_deplibs_F77
21402
21403 # Compile-time system search path for libraries
21404 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21405
21406 # Run-time system search path for libraries
21407 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21408
21409 # Fix the shell variable \$srcfile for the compiler.
21410 fix_srcfile_path="$fix_srcfile_path_F77"
21411
21412 # Set to yes if exported symbols are required.
21413 always_export_symbols=$always_export_symbols_F77
21414
21415 # The commands to list exported symbols.
21416 export_symbols_cmds=$lt_export_symbols_cmds_F77
21417
21418 # The commands to extract the exported symbol list from a shared archive.
21419 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21420
21421 # Symbols that should not be listed in the preloaded symbols.
21422 exclude_expsyms=$lt_exclude_expsyms_F77
21423
21424 # Symbols that must always be exported.
21425 include_expsyms=$lt_include_expsyms_F77
21426
21427 # ### END LIBTOOL TAG CONFIG: $tagname
21428
21429 __EOF__
21430
21431
21432 else
21433   # If there is no Makefile yet, we rely on a make rule to execute
21434   # `config.status --recheck' to rerun these tests and create the
21435   # libtool script then.
21436   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21437   if test -f "$ltmain_in"; then
21438     test -f Makefile && make "$ltmain"
21439   fi
21440 fi
21441
21442
21443 ac_ext=c
21444 ac_cpp='$CPP $CPPFLAGS'
21445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21448
21449 CC="$lt_save_CC"
21450
21451         else
21452           tagname=""
21453         fi
21454         ;;
21455
21456       GCJ)
21457         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21458           ac_ext=c
21459 ac_cpp='$CPP $CPPFLAGS'
21460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21463
21464
21465 # Source file extension for Java test sources.
21466 ac_ext=java
21467
21468 # Object file extension for compiled Java test sources.
21469 objext=o
21470 objext_GCJ=$objext
21471
21472 # Code to be used in simple compile tests
21473 lt_simple_compile_test_code="class foo {}\n"
21474
21475 # Code to be used in simple link tests
21476 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21477
21478 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21479
21480 # If no C compiler was specified, use CC.
21481 LTCC=${LTCC-"$CC"}
21482
21483 # Allow CC to be a program name with arguments.
21484 compiler=$CC
21485
21486
21487 # Allow CC to be a program name with arguments.
21488 lt_save_CC="$CC"
21489 CC=${GCJ-"gcj"}
21490 compiler=$CC
21491 compiler_GCJ=$CC
21492
21493 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21494 archive_cmds_need_lc_GCJ=no
21495
21496
21497 lt_prog_compiler_no_builtin_flag_GCJ=
21498
21499 if test "$GCC" = yes; then
21500   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21501
21502
21503 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21504 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21505 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21506   echo $ECHO_N "(cached) $ECHO_C" >&6
21507 else
21508   lt_cv_prog_compiler_rtti_exceptions=no
21509   ac_outfile=conftest.$ac_objext
21510    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21511    lt_compiler_flag="-fno-rtti -fno-exceptions"
21512    # Insert the option either (1) after the last *FLAGS variable, or
21513    # (2) before a word containing "conftest.", or (3) at the end.
21514    # Note that $ac_compile itself does not contain backslashes and begins
21515    # with a dollar sign (not a hyphen), so the echo should work correctly.
21516    # The option is referenced via a variable to avoid confusing sed.
21517    lt_compile=`echo "$ac_compile" | $SED \
21518    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21519    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21520    -e 's:$: $lt_compiler_flag:'`
21521    (eval echo "\"\$as_me:21521: $lt_compile\"" >&5)
21522    (eval "$lt_compile" 2>conftest.err)
21523    ac_status=$?
21524    cat conftest.err >&5
21525    echo "$as_me:21525: \$? = $ac_status" >&5
21526    if (exit $ac_status) && test -s "$ac_outfile"; then
21527      # The compiler can only warn and ignore the option if not recognized
21528      # So say no if there are warnings
21529      if test ! -s conftest.err; then
21530        lt_cv_prog_compiler_rtti_exceptions=yes
21531      fi
21532    fi
21533    $rm conftest*
21534
21535 fi
21536 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21537 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21538
21539 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21540     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21541 else
21542     :
21543 fi
21544
21545 fi
21546
21547 lt_prog_compiler_wl_GCJ=
21548 lt_prog_compiler_pic_GCJ=
21549 lt_prog_compiler_static_GCJ=
21550
21551 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21552 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21553
21554   if test "$GCC" = yes; then
21555     lt_prog_compiler_wl_GCJ='-Wl,'
21556     lt_prog_compiler_static_GCJ='-static'
21557
21558     case $host_os in
21559       aix*)
21560       # All AIX code is PIC.
21561       if test "$host_cpu" = ia64; then
21562         # AIX 5 now supports IA64 processor
21563         lt_prog_compiler_static_GCJ='-Bstatic'
21564       fi
21565       ;;
21566
21567     amigaos*)
21568       # FIXME: we need at least 68020 code to build shared libraries, but
21569       # adding the `-m68020' flag to GCC prevents building anything better,
21570       # like `-m68040'.
21571       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21572       ;;
21573
21574     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21575       # PIC is the default for these OSes.
21576       ;;
21577
21578     mingw* | pw32* | os2*)
21579       # This hack is so that the source file can tell whether it is being
21580       # built for inclusion in a dll (and should export symbols for example).
21581       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21582       ;;
21583
21584     darwin* | rhapsody*)
21585       # PIC is the default on this platform
21586       # Common symbols not allowed in MH_DYLIB files
21587       lt_prog_compiler_pic_GCJ='-fno-common'
21588       ;;
21589
21590     msdosdjgpp*)
21591       # Just because we use GCC doesn't mean we suddenly get shared libraries
21592       # on systems that don't support them.
21593       lt_prog_compiler_can_build_shared_GCJ=no
21594       enable_shared=no
21595       ;;
21596
21597     sysv4*MP*)
21598       if test -d /usr/nec; then
21599         lt_prog_compiler_pic_GCJ=-Kconform_pic
21600       fi
21601       ;;
21602
21603     hpux*)
21604       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21605       # not for PA HP-UX.
21606       case "$host_cpu" in
21607       hppa*64*|ia64*)
21608         # +Z the default
21609         ;;
21610       *)
21611         lt_prog_compiler_pic_GCJ='-fPIC'
21612         ;;
21613       esac
21614       ;;
21615
21616     *)
21617       lt_prog_compiler_pic_GCJ='-fPIC'
21618       ;;
21619     esac
21620   else
21621     # PORTME Check for flag to pass linker flags through the system compiler.
21622     case $host_os in
21623     aix*)
21624       lt_prog_compiler_wl_GCJ='-Wl,'
21625       if test "$host_cpu" = ia64; then
21626         # AIX 5 now supports IA64 processor
21627         lt_prog_compiler_static_GCJ='-Bstatic'
21628       else
21629         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21630       fi
21631       ;;
21632       darwin*)
21633         # PIC is the default on this platform
21634         # Common symbols not allowed in MH_DYLIB files
21635        case "$cc_basename" in
21636          xlc*)
21637          lt_prog_compiler_pic_GCJ='-qnocommon'
21638          lt_prog_compiler_wl_GCJ='-Wl,'
21639          ;;
21640        esac
21641        ;;
21642
21643     mingw* | pw32* | os2*)
21644       # This hack is so that the source file can tell whether it is being
21645       # built for inclusion in a dll (and should export symbols for example).
21646       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21647       ;;
21648
21649     hpux9* | hpux10* | hpux11*)
21650       lt_prog_compiler_wl_GCJ='-Wl,'
21651       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21652       # not for PA HP-UX.
21653       case "$host_cpu" in
21654       hppa*64*|ia64*)
21655         # +Z the default
21656         ;;
21657       *)
21658         lt_prog_compiler_pic_GCJ='+Z'
21659         ;;
21660       esac
21661       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21662       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21663       ;;
21664
21665     irix5* | irix6* | nonstopux*)
21666       lt_prog_compiler_wl_GCJ='-Wl,'
21667       # PIC (with -KPIC) is the default.
21668       lt_prog_compiler_static_GCJ='-non_shared'
21669       ;;
21670
21671     newsos6)
21672       lt_prog_compiler_pic_GCJ='-KPIC'
21673       lt_prog_compiler_static_GCJ='-Bstatic'
21674       ;;
21675
21676     linux*)
21677       case $CC in
21678       icc* | ecc*)
21679         lt_prog_compiler_wl_GCJ='-Wl,'
21680         lt_prog_compiler_pic_GCJ='-KPIC'
21681         lt_prog_compiler_static_GCJ='-static'
21682         ;;
21683       ccc*)
21684         lt_prog_compiler_wl_GCJ='-Wl,'
21685         # All Alpha code is PIC.
21686         lt_prog_compiler_static_GCJ='-non_shared'
21687         ;;
21688       esac
21689       ;;
21690
21691     osf3* | osf4* | osf5*)
21692       lt_prog_compiler_wl_GCJ='-Wl,'
21693       # All OSF/1 code is PIC.
21694       lt_prog_compiler_static_GCJ='-non_shared'
21695       ;;
21696
21697     sco3.2v5*)
21698       lt_prog_compiler_pic_GCJ='-Kpic'
21699       lt_prog_compiler_static_GCJ='-dn'
21700       ;;
21701
21702     solaris*)
21703       lt_prog_compiler_wl_GCJ='-Wl,'
21704       lt_prog_compiler_pic_GCJ='-KPIC'
21705       lt_prog_compiler_static_GCJ='-Bstatic'
21706       ;;
21707
21708     sunos4*)
21709       lt_prog_compiler_wl_GCJ='-Qoption ld '
21710       lt_prog_compiler_pic_GCJ='-PIC'
21711       lt_prog_compiler_static_GCJ='-Bstatic'
21712       ;;
21713
21714     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21715       lt_prog_compiler_wl_GCJ='-Wl,'
21716       lt_prog_compiler_pic_GCJ='-KPIC'
21717       lt_prog_compiler_static_GCJ='-Bstatic'
21718       ;;
21719
21720     sysv4*MP*)
21721       if test -d /usr/nec ;then
21722         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21723         lt_prog_compiler_static_GCJ='-Bstatic'
21724       fi
21725       ;;
21726
21727     uts4*)
21728       lt_prog_compiler_pic_GCJ='-pic'
21729       lt_prog_compiler_static_GCJ='-Bstatic'
21730       ;;
21731
21732     *)
21733       lt_prog_compiler_can_build_shared_GCJ=no
21734       ;;
21735     esac
21736   fi
21737
21738 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21739 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21740
21741 #
21742 # Check to make sure the PIC flag actually works.
21743 #
21744 if test -n "$lt_prog_compiler_pic_GCJ"; then
21745
21746 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21747 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21748 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21749   echo $ECHO_N "(cached) $ECHO_C" >&6
21750 else
21751   lt_prog_compiler_pic_works_GCJ=no
21752   ac_outfile=conftest.$ac_objext
21753    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21754    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21755    # Insert the option either (1) after the last *FLAGS variable, or
21756    # (2) before a word containing "conftest.", or (3) at the end.
21757    # Note that $ac_compile itself does not contain backslashes and begins
21758    # with a dollar sign (not a hyphen), so the echo should work correctly.
21759    # The option is referenced via a variable to avoid confusing sed.
21760    lt_compile=`echo "$ac_compile" | $SED \
21761    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21762    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21763    -e 's:$: $lt_compiler_flag:'`
21764    (eval echo "\"\$as_me:21764: $lt_compile\"" >&5)
21765    (eval "$lt_compile" 2>conftest.err)
21766    ac_status=$?
21767    cat conftest.err >&5
21768    echo "$as_me:21768: \$? = $ac_status" >&5
21769    if (exit $ac_status) && test -s "$ac_outfile"; then
21770      # The compiler can only warn and ignore the option if not recognized
21771      # So say no if there are warnings
21772      if test ! -s conftest.err; then
21773        lt_prog_compiler_pic_works_GCJ=yes
21774      fi
21775    fi
21776    $rm conftest*
21777
21778 fi
21779 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21780 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21781
21782 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21783     case $lt_prog_compiler_pic_GCJ in
21784      "" | " "*) ;;
21785      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21786      esac
21787 else
21788     lt_prog_compiler_pic_GCJ=
21789      lt_prog_compiler_can_build_shared_GCJ=no
21790 fi
21791
21792 fi
21793 case "$host_os" in
21794   # For platforms which do not support PIC, -DPIC is meaningless:
21795   *djgpp*)
21796     lt_prog_compiler_pic_GCJ=
21797     ;;
21798   *)
21799     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21800     ;;
21801 esac
21802
21803 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21804 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21805 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21806   echo $ECHO_N "(cached) $ECHO_C" >&6
21807 else
21808   lt_cv_prog_compiler_c_o_GCJ=no
21809    $rm -r conftest 2>/dev/null
21810    mkdir conftest
21811    cd conftest
21812    mkdir out
21813    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21814
21815    lt_compiler_flag="-o out/conftest2.$ac_objext"
21816    # Insert the option either (1) after the last *FLAGS variable, or
21817    # (2) before a word containing "conftest.", or (3) at the end.
21818    # Note that $ac_compile itself does not contain backslashes and begins
21819    # with a dollar sign (not a hyphen), so the echo should work correctly.
21820    lt_compile=`echo "$ac_compile" | $SED \
21821    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21822    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21823    -e 's:$: $lt_compiler_flag:'`
21824    (eval echo "\"\$as_me:21824: $lt_compile\"" >&5)
21825    (eval "$lt_compile" 2>out/conftest.err)
21826    ac_status=$?
21827    cat out/conftest.err >&5
21828    echo "$as_me:21828: \$? = $ac_status" >&5
21829    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21830    then
21831      # The compiler can only warn and ignore the option if not recognized
21832      # So say no if there are warnings
21833      if test ! -s out/conftest.err; then
21834        lt_cv_prog_compiler_c_o_GCJ=yes
21835      fi
21836    fi
21837    chmod u+w .
21838    $rm conftest*
21839    # SGI C++ compiler will create directory out/ii_files/ for
21840    # template instantiation
21841    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21842    $rm out/* && rmdir out
21843    cd ..
21844    rmdir conftest
21845    $rm conftest*
21846
21847 fi
21848 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21849 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21850
21851
21852 hard_links="nottested"
21853 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21854   # do not overwrite the value of need_locks provided by the user
21855   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21856 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21857   hard_links=yes
21858   $rm conftest*
21859   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21860   touch conftest.a
21861   ln conftest.a conftest.b 2>&5 || hard_links=no
21862   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21863   echo "$as_me:$LINENO: result: $hard_links" >&5
21864 echo "${ECHO_T}$hard_links" >&6
21865   if test "$hard_links" = no; then
21866     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21867 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21868     need_locks=warn
21869   fi
21870 else
21871   need_locks=no
21872 fi
21873
21874 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21875 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21876
21877   runpath_var=
21878   allow_undefined_flag_GCJ=
21879   enable_shared_with_static_runtimes_GCJ=no
21880   archive_cmds_GCJ=
21881   archive_expsym_cmds_GCJ=
21882   old_archive_From_new_cmds_GCJ=
21883   old_archive_from_expsyms_cmds_GCJ=
21884   export_dynamic_flag_spec_GCJ=
21885   whole_archive_flag_spec_GCJ=
21886   thread_safe_flag_spec_GCJ=
21887   hardcode_libdir_flag_spec_GCJ=
21888   hardcode_libdir_flag_spec_ld_GCJ=
21889   hardcode_libdir_separator_GCJ=
21890   hardcode_direct_GCJ=no
21891   hardcode_minus_L_GCJ=no
21892   hardcode_shlibpath_var_GCJ=unsupported
21893   link_all_deplibs_GCJ=unknown
21894   hardcode_automatic_GCJ=no
21895   module_cmds_GCJ=
21896   module_expsym_cmds_GCJ=
21897   always_export_symbols_GCJ=no
21898   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21899   # include_expsyms should be a list of space-separated symbols to be *always*
21900   # included in the symbol list
21901   include_expsyms_GCJ=
21902   # exclude_expsyms can be an extended regexp of symbols to exclude
21903   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21904   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21905   # as well as any symbol that contains `d'.
21906   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21907   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21908   # platforms (ab)use it in PIC code, but their linkers get confused if
21909   # the symbol is explicitly referenced.  Since portable code cannot
21910   # rely on this symbol name, it's probably fine to never include it in
21911   # preloaded symbol tables.
21912   extract_expsyms_cmds=
21913
21914   case $host_os in
21915   cygwin* | mingw* | pw32*)
21916     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21917     # When not using gcc, we currently assume that we are using
21918     # Microsoft Visual C++.
21919     if test "$GCC" != yes; then
21920       with_gnu_ld=no
21921     fi
21922     ;;
21923   openbsd*)
21924     with_gnu_ld=no
21925     ;;
21926   esac
21927
21928   ld_shlibs_GCJ=yes
21929   if test "$with_gnu_ld" = yes; then
21930     # If archive_cmds runs LD, not CC, wlarc should be empty
21931     wlarc='${wl}'
21932
21933     # See if GNU ld supports shared libraries.
21934     case $host_os in
21935     aix3* | aix4* | aix5*)
21936       # On AIX/PPC, the GNU linker is very broken
21937       if test "$host_cpu" != ia64; then
21938         ld_shlibs_GCJ=no
21939         cat <<EOF 1>&2
21940
21941 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21942 *** to be unable to reliably create shared libraries on AIX.
21943 *** Therefore, libtool is disabling shared libraries support.  If you
21944 *** really care for shared libraries, you may want to modify your PATH
21945 *** so that a non-GNU linker is found, and then restart.
21946
21947 EOF
21948       fi
21949       ;;
21950
21951     amigaos*)
21952       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)'
21953       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21954       hardcode_minus_L_GCJ=yes
21955
21956       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21957       # that the semantics of dynamic libraries on AmigaOS, at least up
21958       # to version 4, is to share data among multiple programs linked
21959       # with the same dynamic library.  Since this doesn't match the
21960       # behavior of shared libraries on other platforms, we can't use
21961       # them.
21962       ld_shlibs_GCJ=no
21963       ;;
21964
21965     beos*)
21966       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21967         allow_undefined_flag_GCJ=unsupported
21968         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21969         # support --undefined.  This deserves some investigation.  FIXME
21970         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21971       else
21972         ld_shlibs_GCJ=no
21973       fi
21974       ;;
21975
21976     cygwin* | mingw* | pw32*)
21977       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21978       # as there is no search path for DLLs.
21979       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21980       allow_undefined_flag_GCJ=unsupported
21981       always_export_symbols_GCJ=no
21982       enable_shared_with_static_runtimes_GCJ=yes
21983       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21984
21985       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21986         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21987         # If the export-symbols file already is a .def file (1st line
21988         # is EXPORTS), use it as is; otherwise, prepend...
21989         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21990           cp $export_symbols $output_objdir/$soname.def;
21991         else
21992           echo EXPORTS > $output_objdir/$soname.def;
21993           cat $export_symbols >> $output_objdir/$soname.def;
21994         fi~
21995         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21996       else
21997         ld_shlibs=no
21998       fi
21999       ;;
22000
22001     netbsd*)
22002       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22003         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22004         wlarc=
22005       else
22006         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22007         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22008       fi
22009       ;;
22010
22011     solaris* | sysv5*)
22012       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22013         ld_shlibs_GCJ=no
22014         cat <<EOF 1>&2
22015
22016 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22017 *** create shared libraries on Solaris systems.  Therefore, libtool
22018 *** is disabling shared libraries support.  We urge you to upgrade GNU
22019 *** binutils to release 2.9.1 or newer.  Another option is to modify
22020 *** your PATH or compiler configuration so that the native linker is
22021 *** used, and then restart.
22022
22023 EOF
22024       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22025         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22026         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22027       else
22028         ld_shlibs_GCJ=no
22029       fi
22030       ;;
22031
22032     sunos4*)
22033       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22034       wlarc=
22035       hardcode_direct_GCJ=yes
22036       hardcode_shlibpath_var_GCJ=no
22037       ;;
22038
22039   linux*)
22040     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22041         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22042         archive_cmds_GCJ="$tmp_archive_cmds"
22043       supports_anon_versioning=no
22044       case `$LD -v 2>/dev/null` in
22045         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22046         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22047         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22048         *\ 2.11.*) ;; # other 2.11 versions
22049         *) supports_anon_versioning=yes ;;
22050       esac
22051       if test $supports_anon_versioning = yes; then
22052         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
22053 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22054 $echo "local: *; };" >> $output_objdir/$libname.ver~
22055         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22056       else
22057         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
22058       fi
22059     else
22060       ld_shlibs_GCJ=no
22061     fi
22062     ;;
22063
22064     *)
22065       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22066         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22067         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22068       else
22069         ld_shlibs_GCJ=no
22070       fi
22071       ;;
22072     esac
22073
22074     if test "$ld_shlibs_GCJ" = yes; then
22075       runpath_var=LD_RUN_PATH
22076       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22077       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22078       # ancient GNU ld didn't support --whole-archive et. al.
22079       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22080         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22081       else
22082         whole_archive_flag_spec_GCJ=
22083       fi
22084     fi
22085   else
22086     # PORTME fill in a description of your system's linker (not GNU ld)
22087     case $host_os in
22088     aix3*)
22089       allow_undefined_flag_GCJ=unsupported
22090       always_export_symbols_GCJ=yes
22091       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'
22092       # Note: this linker hardcodes the directories in LIBPATH if there
22093       # are no directories specified by -L.
22094       hardcode_minus_L_GCJ=yes
22095       if test "$GCC" = yes && test -z "$link_static_flag"; then
22096         # Neither direct hardcoding nor static linking is supported with a
22097         # broken collect2.
22098         hardcode_direct_GCJ=unsupported
22099       fi
22100       ;;
22101
22102     aix4* | aix5*)
22103       if test "$host_cpu" = ia64; then
22104         # On IA64, the linker does run time linking by default, so we don't
22105         # have to do anything special.
22106         aix_use_runtimelinking=no
22107         exp_sym_flag='-Bexport'
22108         no_entry_flag=""
22109       else
22110         # If we're using GNU nm, then we don't want the "-C" option.
22111         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22112         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22113           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'
22114         else
22115           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'
22116         fi
22117         aix_use_runtimelinking=no
22118
22119         # Test if we are trying to use run time linking or normal
22120         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22121         # need to do runtime linking.
22122         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22123           for ld_flag in $LDFLAGS; do
22124           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22125             aix_use_runtimelinking=yes
22126             break
22127           fi
22128           done
22129         esac
22130
22131         exp_sym_flag='-bexport'
22132         no_entry_flag='-bnoentry'
22133       fi
22134
22135       # When large executables or shared objects are built, AIX ld can
22136       # have problems creating the table of contents.  If linking a library
22137       # or program results in "error TOC overflow" add -mminimal-toc to
22138       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22139       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22140
22141       archive_cmds_GCJ=''
22142       hardcode_direct_GCJ=yes
22143       hardcode_libdir_separator_GCJ=':'
22144       link_all_deplibs_GCJ=yes
22145
22146       if test "$GCC" = yes; then
22147         case $host_os in aix4.012|aix4.012.*)
22148         # We only want to do this on AIX 4.2 and lower, the check
22149         # below for broken collect2 doesn't work under 4.3+
22150           collect2name=`${CC} -print-prog-name=collect2`
22151           if test -f "$collect2name" && \
22152            strings "$collect2name" | grep resolve_lib_name >/dev/null
22153           then
22154           # We have reworked collect2
22155           hardcode_direct_GCJ=yes
22156           else
22157           # We have old collect2
22158           hardcode_direct_GCJ=unsupported
22159           # It fails to find uninstalled libraries when the uninstalled
22160           # path is not listed in the libpath.  Setting hardcode_minus_L
22161           # to unsupported forces relinking
22162           hardcode_minus_L_GCJ=yes
22163           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22164           hardcode_libdir_separator_GCJ=
22165           fi
22166         esac
22167         shared_flag='-shared'
22168       else
22169         # not using gcc
22170         if test "$host_cpu" = ia64; then
22171         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22172         # chokes on -Wl,-G. The following line is correct:
22173           shared_flag='-G'
22174         else
22175         if test "$aix_use_runtimelinking" = yes; then
22176             shared_flag='${wl}-G'
22177           else
22178             shared_flag='${wl}-bM:SRE'
22179         fi
22180         fi
22181       fi
22182
22183       # It seems that -bexpall does not export symbols beginning with
22184       # underscore (_), so it is better to generate a list of symbols to export.
22185       always_export_symbols_GCJ=yes
22186       if test "$aix_use_runtimelinking" = yes; then
22187         # Warning - without using the other runtime loading flags (-brtl),
22188         # -berok will link without error, but may produce a broken library.
22189         allow_undefined_flag_GCJ='-berok'
22190        # Determine the default libpath from the value encoded in an empty executable.
22191        cat >conftest.$ac_ext <<_ACEOF
22192 /* confdefs.h.  */
22193 _ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h.  */
22197
22198 int
22199 main ()
22200 {
22201
22202   ;
22203   return 0;
22204 }
22205 _ACEOF
22206 rm -f conftest.$ac_objext conftest$ac_exeext
22207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22208   (eval $ac_link) 2>conftest.er1
22209   ac_status=$?
22210   grep -v '^ *+' conftest.er1 >conftest.err
22211   rm -f conftest.er1
22212   cat conftest.err >&5
22213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214   (exit $ac_status); } &&
22215          { ac_try='test -z "$ac_c_werror_flag"
22216                          || test ! -s conftest.err'
22217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218   (eval $ac_try) 2>&5
22219   ac_status=$?
22220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221   (exit $ac_status); }; } &&
22222          { ac_try='test -s conftest$ac_exeext'
22223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22224   (eval $ac_try) 2>&5
22225   ac_status=$?
22226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227   (exit $ac_status); }; }; then
22228
22229 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22230 }'`
22231 # Check for a 64-bit object if we didn't find anything.
22232 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; }
22233 }'`; fi
22234 else
22235   echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.$ac_ext >&5
22237
22238 fi
22239 rm -f conftest.err conftest.$ac_objext \
22240       conftest$ac_exeext conftest.$ac_ext
22241 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22242
22243        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22244         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"
22245        else
22246         if test "$host_cpu" = ia64; then
22247           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22248           allow_undefined_flag_GCJ="-z nodefs"
22249           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"
22250         else
22251          # Determine the default libpath from the value encoded in an empty executable.
22252          cat >conftest.$ac_ext <<_ACEOF
22253 /* confdefs.h.  */
22254 _ACEOF
22255 cat confdefs.h >>conftest.$ac_ext
22256 cat >>conftest.$ac_ext <<_ACEOF
22257 /* end confdefs.h.  */
22258
22259 int
22260 main ()
22261 {
22262
22263   ;
22264   return 0;
22265 }
22266 _ACEOF
22267 rm -f conftest.$ac_objext conftest$ac_exeext
22268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22269   (eval $ac_link) 2>conftest.er1
22270   ac_status=$?
22271   grep -v '^ *+' conftest.er1 >conftest.err
22272   rm -f conftest.er1
22273   cat conftest.err >&5
22274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275   (exit $ac_status); } &&
22276          { ac_try='test -z "$ac_c_werror_flag"
22277                          || test ! -s conftest.err'
22278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22279   (eval $ac_try) 2>&5
22280   ac_status=$?
22281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282   (exit $ac_status); }; } &&
22283          { ac_try='test -s conftest$ac_exeext'
22284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22285   (eval $ac_try) 2>&5
22286   ac_status=$?
22287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288   (exit $ac_status); }; }; then
22289
22290 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22291 }'`
22292 # Check for a 64-bit object if we didn't find anything.
22293 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; }
22294 }'`; fi
22295 else
22296   echo "$as_me: failed program was:" >&5
22297 sed 's/^/| /' conftest.$ac_ext >&5
22298
22299 fi
22300 rm -f conftest.err conftest.$ac_objext \
22301       conftest$ac_exeext conftest.$ac_ext
22302 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22303
22304          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22305           # Warning - without using the other run time loading flags,
22306           # -berok will link without error, but may produce a broken library.
22307           no_undefined_flag_GCJ=' ${wl}-bernotok'
22308           allow_undefined_flag_GCJ=' ${wl}-berok'
22309           # -bexpall does not export symbols beginning with underscore (_)
22310           always_export_symbols_GCJ=yes
22311           # Exported symbols can be pulled into shared objects from archives
22312           whole_archive_flag_spec_GCJ=' '
22313           archive_cmds_need_lc_GCJ=yes
22314           # This is similar to how AIX traditionally builds it's shared libraries.
22315           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'
22316         fi
22317       fi
22318       ;;
22319
22320     amigaos*)
22321       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)'
22322       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22323       hardcode_minus_L_GCJ=yes
22324       # see comment about different semantics on the GNU ld section
22325       ld_shlibs_GCJ=no
22326       ;;
22327
22328     bsdi[45]*)
22329       export_dynamic_flag_spec_GCJ=-rdynamic
22330       ;;
22331
22332     cygwin* | mingw* | pw32*)
22333       # When not using gcc, we currently assume that we are using
22334       # Microsoft Visual C++.
22335       # hardcode_libdir_flag_spec is actually meaningless, as there is
22336       # no search path for DLLs.
22337       hardcode_libdir_flag_spec_GCJ=' '
22338       allow_undefined_flag_GCJ=unsupported
22339       # Tell ltmain to make .lib files, not .a files.
22340       libext=lib
22341       # Tell ltmain to make .dll files, not .so files.
22342       shrext_cmds=".dll"
22343       # FIXME: Setting linknames here is a bad hack.
22344       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22345       # The linker will automatically build a .lib file if we build a DLL.
22346       old_archive_From_new_cmds_GCJ='true'
22347       # FIXME: Should let the user specify the lib program.
22348       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22349       fix_srcfile_path='`cygpath -w "$srcfile"`'
22350       enable_shared_with_static_runtimes_GCJ=yes
22351       ;;
22352
22353     darwin* | rhapsody*)
22354       case "$host_os" in
22355         rhapsody* | darwin1.[012])
22356          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22357          ;;
22358        *) # Darwin 1.3 on
22359          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22360            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22361          else
22362            case ${MACOSX_DEPLOYMENT_TARGET} in
22363              10.[012])
22364                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22365                ;;
22366              10.*)
22367                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22368                ;;
22369            esac
22370          fi
22371          ;;
22372       esac
22373       archive_cmds_need_lc_GCJ=no
22374       hardcode_direct_GCJ=no
22375       hardcode_automatic_GCJ=yes
22376       hardcode_shlibpath_var_GCJ=unsupported
22377       whole_archive_flag_spec_GCJ=''
22378       link_all_deplibs_GCJ=yes
22379     if test "$GCC" = yes ; then
22380         output_verbose_link_cmd='echo'
22381         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22382       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22383       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22384       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}'
22385       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}'
22386     else
22387       case "$cc_basename" in
22388         xlc*)
22389          output_verbose_link_cmd='echo'
22390          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22391          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22392           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22393          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}'
22394           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}'
22395           ;;
22396        *)
22397          ld_shlibs_GCJ=no
22398           ;;
22399       esac
22400     fi
22401       ;;
22402
22403     dgux*)
22404       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22405       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22406       hardcode_shlibpath_var_GCJ=no
22407       ;;
22408
22409     freebsd1*)
22410       ld_shlibs_GCJ=no
22411       ;;
22412
22413     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22414     # support.  Future versions do this automatically, but an explicit c++rt0.o
22415     # does not break anything, and helps significantly (at the cost of a little
22416     # extra space).
22417     freebsd2.2*)
22418       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22419       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22420       hardcode_direct_GCJ=yes
22421       hardcode_shlibpath_var_GCJ=no
22422       ;;
22423
22424     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22425     freebsd2*)
22426       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22427       hardcode_direct_GCJ=yes
22428       hardcode_minus_L_GCJ=yes
22429       hardcode_shlibpath_var_GCJ=no
22430       ;;
22431
22432     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22433     freebsd* | kfreebsd*-gnu)
22434       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22435       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22436       hardcode_direct_GCJ=yes
22437       hardcode_shlibpath_var_GCJ=no
22438       ;;
22439
22440     hpux9*)
22441       if test "$GCC" = yes; then
22442         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'
22443       else
22444         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'
22445       fi
22446       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22447       hardcode_libdir_separator_GCJ=:
22448       hardcode_direct_GCJ=yes
22449
22450       # hardcode_minus_L: Not really in the search PATH,
22451       # but as the default location of the library.
22452       hardcode_minus_L_GCJ=yes
22453       export_dynamic_flag_spec_GCJ='${wl}-E'
22454       ;;
22455
22456     hpux10* | hpux11*)
22457       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22458         case "$host_cpu" in
22459         hppa*64*|ia64*)
22460           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22461           ;;
22462         *)
22463           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22464           ;;
22465         esac
22466       else
22467         case "$host_cpu" in
22468         hppa*64*|ia64*)
22469           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22470           ;;
22471         *)
22472           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22473           ;;
22474         esac
22475       fi
22476       if test "$with_gnu_ld" = no; then
22477         case "$host_cpu" in
22478         hppa*64*)
22479           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22480           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22481           hardcode_libdir_separator_GCJ=:
22482           hardcode_direct_GCJ=no
22483           hardcode_shlibpath_var_GCJ=no
22484           ;;
22485         ia64*)
22486           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22487           hardcode_direct_GCJ=no
22488           hardcode_shlibpath_var_GCJ=no
22489
22490           # hardcode_minus_L: Not really in the search PATH,
22491           # but as the default location of the library.
22492           hardcode_minus_L_GCJ=yes
22493           ;;
22494         *)
22495           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22496           hardcode_libdir_separator_GCJ=:
22497           hardcode_direct_GCJ=yes
22498           export_dynamic_flag_spec_GCJ='${wl}-E'
22499
22500           # hardcode_minus_L: Not really in the search PATH,
22501           # but as the default location of the library.
22502           hardcode_minus_L_GCJ=yes
22503           ;;
22504         esac
22505       fi
22506       ;;
22507
22508     irix5* | irix6* | nonstopux*)
22509       if test "$GCC" = yes; then
22510         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'
22511       else
22512         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'
22513         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22514       fi
22515       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22516       hardcode_libdir_separator_GCJ=:
22517       link_all_deplibs_GCJ=yes
22518       ;;
22519
22520     netbsd*)
22521       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22522         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22523       else
22524         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22525       fi
22526       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22527       hardcode_direct_GCJ=yes
22528       hardcode_shlibpath_var_GCJ=no
22529       ;;
22530
22531     newsos6)
22532       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22533       hardcode_direct_GCJ=yes
22534       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22535       hardcode_libdir_separator_GCJ=:
22536       hardcode_shlibpath_var_GCJ=no
22537       ;;
22538
22539     openbsd*)
22540       hardcode_direct_GCJ=yes
22541       hardcode_shlibpath_var_GCJ=no
22542       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22543         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22544         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22545         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22546         export_dynamic_flag_spec_GCJ='${wl}-E'
22547       else
22548        case $host_os in
22549          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22550            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22551            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22552            ;;
22553          *)
22554            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22555            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22556            ;;
22557        esac
22558       fi
22559       ;;
22560
22561     os2*)
22562       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22563       hardcode_minus_L_GCJ=yes
22564       allow_undefined_flag_GCJ=unsupported
22565       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'
22566       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22567       ;;
22568
22569     osf3*)
22570       if test "$GCC" = yes; then
22571         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22572         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'
22573       else
22574         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22575         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'
22576       fi
22577       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22578       hardcode_libdir_separator_GCJ=:
22579       ;;
22580
22581     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22582       if test "$GCC" = yes; then
22583         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22584         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'
22585         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22586       else
22587         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22588         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'
22589         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~
22590         $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'
22591
22592         # Both c and cxx compiler support -rpath directly
22593         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22594       fi
22595       hardcode_libdir_separator_GCJ=:
22596       ;;
22597
22598     sco3.2v5*)
22599       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22600       hardcode_shlibpath_var_GCJ=no
22601       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22602       runpath_var=LD_RUN_PATH
22603       hardcode_runpath_var=yes
22604       ;;
22605
22606     solaris*)
22607       no_undefined_flag_GCJ=' -z text'
22608       if test "$GCC" = yes; then
22609         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22610         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22611           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22612       else
22613         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22614         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22615         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22616       fi
22617       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22618       hardcode_shlibpath_var_GCJ=no
22619       case $host_os in
22620       solaris2.[0-5] | solaris2.[0-5].*) ;;
22621       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22622         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22623       esac
22624       link_all_deplibs_GCJ=yes
22625       ;;
22626
22627     sunos4*)
22628       if test "x$host_vendor" = xsequent; then
22629         # Use $CC to link under sequent, because it throws in some extra .o
22630         # files that make .init and .fini sections work.
22631         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22632       else
22633         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22634       fi
22635       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22636       hardcode_direct_GCJ=yes
22637       hardcode_minus_L_GCJ=yes
22638       hardcode_shlibpath_var_GCJ=no
22639       ;;
22640
22641     sysv4)
22642       case $host_vendor in
22643         sni)
22644           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22645           hardcode_direct_GCJ=yes # is this really true???
22646         ;;
22647         siemens)
22648           ## LD is ld it makes a PLAMLIB
22649           ## CC just makes a GrossModule.
22650           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22651           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22652           hardcode_direct_GCJ=no
22653         ;;
22654         motorola)
22655           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22656           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22657         ;;
22658       esac
22659       runpath_var='LD_RUN_PATH'
22660       hardcode_shlibpath_var_GCJ=no
22661       ;;
22662
22663     sysv4.3*)
22664       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22665       hardcode_shlibpath_var_GCJ=no
22666       export_dynamic_flag_spec_GCJ='-Bexport'
22667       ;;
22668
22669     sysv4*MP*)
22670       if test -d /usr/nec; then
22671         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22672         hardcode_shlibpath_var_GCJ=no
22673         runpath_var=LD_RUN_PATH
22674         hardcode_runpath_var=yes
22675         ld_shlibs_GCJ=yes
22676       fi
22677       ;;
22678
22679     sysv4.2uw2*)
22680       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22681       hardcode_direct_GCJ=yes
22682       hardcode_minus_L_GCJ=no
22683       hardcode_shlibpath_var_GCJ=no
22684       hardcode_runpath_var=yes
22685       runpath_var=LD_RUN_PATH
22686       ;;
22687
22688    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22689       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22690       if test "$GCC" = yes; then
22691         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22692       else
22693         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22694       fi
22695       runpath_var='LD_RUN_PATH'
22696       hardcode_shlibpath_var_GCJ=no
22697       ;;
22698
22699     sysv5*)
22700       no_undefined_flag_GCJ=' -z text'
22701       # $CC -shared without GNU ld will not create a library from C++
22702       # object files and a static libstdc++, better avoid it by now
22703       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22704       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22705                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22706       hardcode_libdir_flag_spec_GCJ=
22707       hardcode_shlibpath_var_GCJ=no
22708       runpath_var='LD_RUN_PATH'
22709       ;;
22710
22711     uts4*)
22712       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22713       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22714       hardcode_shlibpath_var_GCJ=no
22715       ;;
22716
22717     *)
22718       ld_shlibs_GCJ=no
22719       ;;
22720     esac
22721   fi
22722
22723 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22724 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22725 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22726
22727 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22728 if test "$GCC" = yes; then
22729   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22730 fi
22731
22732 #
22733 # Do we need to explicitly link libc?
22734 #
22735 case "x$archive_cmds_need_lc_GCJ" in
22736 x|xyes)
22737   # Assume -lc should be added
22738   archive_cmds_need_lc_GCJ=yes
22739
22740   if test "$enable_shared" = yes && test "$GCC" = yes; then
22741     case $archive_cmds_GCJ in
22742     *'~'*)
22743       # FIXME: we may have to deal with multi-command sequences.
22744       ;;
22745     '$CC '*)
22746       # Test whether the compiler implicitly links with -lc since on some
22747       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22748       # to ld, don't add -lc before -lgcc.
22749       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22750 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22751       $rm conftest*
22752       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22753
22754       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22755   (eval $ac_compile) 2>&5
22756   ac_status=$?
22757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758   (exit $ac_status); } 2>conftest.err; then
22759         soname=conftest
22760         lib=conftest
22761         libobjs=conftest.$ac_objext
22762         deplibs=
22763         wl=$lt_prog_compiler_wl_GCJ
22764         compiler_flags=-v
22765         linker_flags=-v
22766         verstring=
22767         output_objdir=.
22768         libname=conftest
22769         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22770         allow_undefined_flag_GCJ=
22771         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22772   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22773   ac_status=$?
22774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775   (exit $ac_status); }
22776         then
22777           archive_cmds_need_lc_GCJ=no
22778         else
22779           archive_cmds_need_lc_GCJ=yes
22780         fi
22781         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22782       else
22783         cat conftest.err 1>&5
22784       fi
22785       $rm conftest*
22786       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22787 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22788       ;;
22789     esac
22790   fi
22791   ;;
22792 esac
22793
22794 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22795 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22796 library_names_spec=
22797 libname_spec='lib$name'
22798 soname_spec=
22799 shrext_cmds=".so"
22800 postinstall_cmds=
22801 postuninstall_cmds=
22802 finish_cmds=
22803 finish_eval=
22804 shlibpath_var=
22805 shlibpath_overrides_runpath=unknown
22806 version_type=none
22807 dynamic_linker="$host_os ld.so"
22808 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22809 if test "$GCC" = yes; then
22810   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22811   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22812     # if the path contains ";" then we assume it to be the separator
22813     # otherwise default to the standard path separator (i.e. ":") - it is
22814     # assumed that no part of a normal pathname contains ";" but that should
22815     # okay in the real world where ";" in dirpaths is itself problematic.
22816     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22817   else
22818     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22819   fi
22820 else
22821   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22822 fi
22823 need_lib_prefix=unknown
22824 hardcode_into_libs=no
22825
22826 # when you set need_version to no, make sure it does not cause -set_version
22827 # flags to be left without arguments
22828 need_version=unknown
22829
22830 case $host_os in
22831 aix3*)
22832   version_type=linux
22833   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22834   shlibpath_var=LIBPATH
22835
22836   # AIX 3 has no versioning support, so we append a major version to the name.
22837   soname_spec='${libname}${release}${shared_ext}$major'
22838   ;;
22839
22840 aix4* | aix5*)
22841   version_type=linux
22842   need_lib_prefix=no
22843   need_version=no
22844   hardcode_into_libs=yes
22845   if test "$host_cpu" = ia64; then
22846     # AIX 5 supports IA64
22847     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22848     shlibpath_var=LD_LIBRARY_PATH
22849   else
22850     # With GCC up to 2.95.x, collect2 would create an import file
22851     # for dependence libraries.  The import file would start with
22852     # the line `#! .'.  This would cause the generated library to
22853     # depend on `.', always an invalid library.  This was fixed in
22854     # development snapshots of GCC prior to 3.0.
22855     case $host_os in
22856       aix4 | aix4.[01] | aix4.[01].*)
22857       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22858            echo ' yes '
22859            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22860         :
22861       else
22862         can_build_shared=no
22863       fi
22864       ;;
22865     esac
22866     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22867     # soname into executable. Probably we can add versioning support to
22868     # collect2, so additional links can be useful in future.
22869     if test "$aix_use_runtimelinking" = yes; then
22870       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22871       # instead of lib<name>.a to let people know that these are not
22872       # typical AIX shared libraries.
22873       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22874     else
22875       # We preserve .a as extension for shared libraries through AIX4.2
22876       # and later when we are not doing run time linking.
22877       library_names_spec='${libname}${release}.a $libname.a'
22878       soname_spec='${libname}${release}${shared_ext}$major'
22879     fi
22880     shlibpath_var=LIBPATH
22881   fi
22882   ;;
22883
22884 amigaos*)
22885   library_names_spec='$libname.ixlibrary $libname.a'
22886   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22887   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'
22888   ;;
22889
22890 beos*)
22891   library_names_spec='${libname}${shared_ext}'
22892   dynamic_linker="$host_os ld.so"
22893   shlibpath_var=LIBRARY_PATH
22894   ;;
22895
22896 bsdi[45]*)
22897   version_type=linux
22898   need_version=no
22899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22900   soname_spec='${libname}${release}${shared_ext}$major'
22901   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22902   shlibpath_var=LD_LIBRARY_PATH
22903   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22904   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22905   # the default ld.so.conf also contains /usr/contrib/lib and
22906   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22907   # libtool to hard-code these into programs
22908   ;;
22909
22910 cygwin* | mingw* | pw32*)
22911   version_type=windows
22912   shrext_cmds=".dll"
22913   need_version=no
22914   need_lib_prefix=no
22915
22916   case $GCC,$host_os in
22917   yes,cygwin* | yes,mingw* | yes,pw32*)
22918     library_names_spec='$libname.dll.a'
22919     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22920     postinstall_cmds='base_file=`basename \${file}`~
22921       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22922       dldir=$destdir/`dirname \$dlpath`~
22923       test -d \$dldir || mkdir -p \$dldir~
22924       $install_prog $dir/$dlname \$dldir/$dlname'
22925     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22926       dlpath=$dir/\$dldll~
22927        $rm \$dlpath'
22928     shlibpath_overrides_runpath=yes
22929
22930     case $host_os in
22931     cygwin*)
22932       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22933       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22934       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22935       ;;
22936     mingw*)
22937       # MinGW DLLs use traditional 'lib' prefix
22938       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22939       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22940       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22941         # It is most probably a Windows format PATH printed by
22942         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22943         # path with ; separators, and with drive letters. We can handle the
22944         # drive letters (cygwin fileutils understands them), so leave them,
22945         # especially as we might pass files found there to a mingw objdump,
22946         # which wouldn't understand a cygwinified path. Ahh.
22947         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22948       else
22949         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22950       fi
22951       ;;
22952     pw32*)
22953       # pw32 DLLs use 'pw' prefix rather than 'lib'
22954       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22955       ;;
22956     esac
22957     ;;
22958
22959   *)
22960     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22961     ;;
22962   esac
22963   dynamic_linker='Win32 ld.exe'
22964   # FIXME: first we should search . and the directory the executable is in
22965   shlibpath_var=PATH
22966   ;;
22967
22968 darwin* | rhapsody*)
22969   dynamic_linker="$host_os dyld"
22970   version_type=darwin
22971   need_lib_prefix=no
22972   need_version=no
22973   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22974   soname_spec='${libname}${release}${major}$shared_ext'
22975   shlibpath_overrides_runpath=yes
22976   shlibpath_var=DYLD_LIBRARY_PATH
22977   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22978   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22979   if test "$GCC" = yes; then
22980     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"`
22981   else
22982     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22983   fi
22984   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22985   ;;
22986
22987 dgux*)
22988   version_type=linux
22989   need_lib_prefix=no
22990   need_version=no
22991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22992   soname_spec='${libname}${release}${shared_ext}$major'
22993   shlibpath_var=LD_LIBRARY_PATH
22994   ;;
22995
22996 freebsd1*)
22997   dynamic_linker=no
22998   ;;
22999
23000 kfreebsd*-gnu)
23001   version_type=linux
23002   need_lib_prefix=no
23003   need_version=no
23004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23005   soname_spec='${libname}${release}${shared_ext}$major'
23006   shlibpath_var=LD_LIBRARY_PATH
23007   shlibpath_overrides_runpath=no
23008   hardcode_into_libs=yes
23009   dynamic_linker='GNU ld.so'
23010   ;;
23011
23012 freebsd*)
23013   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
23014   version_type=freebsd-$objformat
23015   case $version_type in
23016     freebsd-elf*)
23017       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23018       need_version=no
23019       need_lib_prefix=no
23020       ;;
23021     freebsd-*)
23022       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23023       need_version=yes
23024       ;;
23025   esac
23026   shlibpath_var=LD_LIBRARY_PATH
23027   case $host_os in
23028   freebsd2*)
23029     shlibpath_overrides_runpath=yes
23030     ;;
23031   freebsd3.01* | freebsdelf3.01*)
23032     shlibpath_overrides_runpath=yes
23033     hardcode_into_libs=yes
23034     ;;
23035   *) # from 3.2 on
23036     shlibpath_overrides_runpath=no
23037     hardcode_into_libs=yes
23038     ;;
23039   esac
23040   ;;
23041
23042 gnu*)
23043   version_type=linux
23044   need_lib_prefix=no
23045   need_version=no
23046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23047   soname_spec='${libname}${release}${shared_ext}$major'
23048   shlibpath_var=LD_LIBRARY_PATH
23049   hardcode_into_libs=yes
23050   ;;
23051
23052 hpux9* | hpux10* | hpux11*)
23053   # Give a soname corresponding to the major version so that dld.sl refuses to
23054   # link against other versions.
23055   version_type=sunos
23056   need_lib_prefix=no
23057   need_version=no
23058   case "$host_cpu" in
23059   ia64*)
23060     shrext_cmds='.so'
23061     hardcode_into_libs=yes
23062     dynamic_linker="$host_os dld.so"
23063     shlibpath_var=LD_LIBRARY_PATH
23064     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23065     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23066     soname_spec='${libname}${release}${shared_ext}$major'
23067     if test "X$HPUX_IA64_MODE" = X32; then
23068       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23069     else
23070       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23071     fi
23072     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23073     ;;
23074    hppa*64*)
23075      shrext_cmds='.sl'
23076      hardcode_into_libs=yes
23077      dynamic_linker="$host_os dld.sl"
23078      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23079      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23080      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23081      soname_spec='${libname}${release}${shared_ext}$major'
23082      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23083      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23084      ;;
23085    *)
23086     shrext_cmds='.sl'
23087     dynamic_linker="$host_os dld.sl"
23088     shlibpath_var=SHLIB_PATH
23089     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23090     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23091     soname_spec='${libname}${release}${shared_ext}$major'
23092     ;;
23093   esac
23094   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23095   postinstall_cmds='chmod 555 $lib'
23096   ;;
23097
23098 irix5* | irix6* | nonstopux*)
23099   case $host_os in
23100     nonstopux*) version_type=nonstopux ;;
23101     *)
23102         if test "$lt_cv_prog_gnu_ld" = yes; then
23103                 version_type=linux
23104         else
23105                 version_type=irix
23106         fi ;;
23107   esac
23108   need_lib_prefix=no
23109   need_version=no
23110   soname_spec='${libname}${release}${shared_ext}$major'
23111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23112   case $host_os in
23113   irix5* | nonstopux*)
23114     libsuff= shlibsuff=
23115     ;;
23116   *)
23117     case $LD in # libtool.m4 will add one of these switches to LD
23118     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23119       libsuff= shlibsuff= libmagic=32-bit;;
23120     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23121       libsuff=32 shlibsuff=N32 libmagic=N32;;
23122     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23123       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23124     *) libsuff= shlibsuff= libmagic=never-match;;
23125     esac
23126     ;;
23127   esac
23128   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23129   shlibpath_overrides_runpath=no
23130   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23131   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23132   hardcode_into_libs=yes
23133   ;;
23134
23135 # No shared lib support for Linux oldld, aout, or coff.
23136 linux*oldld* | linux*aout* | linux*coff*)
23137   dynamic_linker=no
23138   ;;
23139
23140 # This must be Linux ELF.
23141 linux*)
23142   version_type=linux
23143   need_lib_prefix=no
23144   need_version=no
23145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23146   soname_spec='${libname}${release}${shared_ext}$major'
23147   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23148   shlibpath_var=LD_LIBRARY_PATH
23149   shlibpath_overrides_runpath=no
23150   # This implies no fast_install, which is unacceptable.
23151   # Some rework will be needed to allow for fast_install
23152   # before this can be enabled.
23153   hardcode_into_libs=yes
23154
23155   # Append ld.so.conf contents to the search path
23156   if test -f /etc/ld.so.conf; then
23157     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
23158     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23159   fi
23160
23161   # We used to test for /lib/ld.so.1 and disable shared libraries on
23162   # powerpc, because MkLinux only supported shared libraries with the
23163   # GNU dynamic linker.  Since this was broken with cross compilers,
23164   # most powerpc-linux boxes support dynamic linking these days and
23165   # people can always --disable-shared, the test was removed, and we
23166   # assume the GNU/Linux dynamic linker is in use.
23167   dynamic_linker='GNU/Linux ld.so'
23168   ;;
23169
23170 knetbsd*-gnu)
23171   version_type=linux
23172   need_lib_prefix=no
23173   need_version=no
23174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23175   soname_spec='${libname}${release}${shared_ext}$major'
23176   shlibpath_var=LD_LIBRARY_PATH
23177   shlibpath_overrides_runpath=no
23178   hardcode_into_libs=yes
23179   dynamic_linker='GNU ld.so'
23180   ;;
23181
23182 netbsd*)
23183   version_type=sunos
23184   need_lib_prefix=no
23185   need_version=no
23186   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23187     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23188     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23189     dynamic_linker='NetBSD (a.out) ld.so'
23190   else
23191     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23192     soname_spec='${libname}${release}${shared_ext}$major'
23193     dynamic_linker='NetBSD ld.elf_so'
23194   fi
23195   shlibpath_var=LD_LIBRARY_PATH
23196   shlibpath_overrides_runpath=yes
23197   hardcode_into_libs=yes
23198   ;;
23199
23200 newsos6)
23201   version_type=linux
23202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23203   shlibpath_var=LD_LIBRARY_PATH
23204   shlibpath_overrides_runpath=yes
23205   ;;
23206
23207 nto-qnx*)
23208   version_type=linux
23209   need_lib_prefix=no
23210   need_version=no
23211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23212   soname_spec='${libname}${release}${shared_ext}$major'
23213   shlibpath_var=LD_LIBRARY_PATH
23214   shlibpath_overrides_runpath=yes
23215   ;;
23216
23217 openbsd*)
23218   version_type=sunos
23219   need_lib_prefix=no
23220   need_version=no
23221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23222   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23223   shlibpath_var=LD_LIBRARY_PATH
23224   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23225     case $host_os in
23226       openbsd2.[89] | openbsd2.[89].*)
23227         shlibpath_overrides_runpath=no
23228         ;;
23229       *)
23230         shlibpath_overrides_runpath=yes
23231         ;;
23232       esac
23233   else
23234     shlibpath_overrides_runpath=yes
23235   fi
23236   ;;
23237
23238 os2*)
23239   libname_spec='$name'
23240   shrext_cmds=".dll"
23241   need_lib_prefix=no
23242   library_names_spec='$libname${shared_ext} $libname.a'
23243   dynamic_linker='OS/2 ld.exe'
23244   shlibpath_var=LIBPATH
23245   ;;
23246
23247 osf3* | osf4* | osf5*)
23248   version_type=osf
23249   need_lib_prefix=no
23250   need_version=no
23251   soname_spec='${libname}${release}${shared_ext}$major'
23252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23253   shlibpath_var=LD_LIBRARY_PATH
23254   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23255   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23256   ;;
23257
23258 sco3.2v5*)
23259   version_type=osf
23260   soname_spec='${libname}${release}${shared_ext}$major'
23261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23262   shlibpath_var=LD_LIBRARY_PATH
23263   ;;
23264
23265 solaris*)
23266   version_type=linux
23267   need_lib_prefix=no
23268   need_version=no
23269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23270   soname_spec='${libname}${release}${shared_ext}$major'
23271   shlibpath_var=LD_LIBRARY_PATH
23272   shlibpath_overrides_runpath=yes
23273   hardcode_into_libs=yes
23274   # ldd complains unless libraries are executable
23275   postinstall_cmds='chmod +x $lib'
23276   ;;
23277
23278 sunos4*)
23279   version_type=sunos
23280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23281   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23282   shlibpath_var=LD_LIBRARY_PATH
23283   shlibpath_overrides_runpath=yes
23284   if test "$with_gnu_ld" = yes; then
23285     need_lib_prefix=no
23286   fi
23287   need_version=yes
23288   ;;
23289
23290 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23291   version_type=linux
23292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23293   soname_spec='${libname}${release}${shared_ext}$major'
23294   shlibpath_var=LD_LIBRARY_PATH
23295   case $host_vendor in
23296     sni)
23297       shlibpath_overrides_runpath=no
23298       need_lib_prefix=no
23299       export_dynamic_flag_spec='${wl}-Blargedynsym'
23300       runpath_var=LD_RUN_PATH
23301       ;;
23302     siemens)
23303       need_lib_prefix=no
23304       ;;
23305     motorola)
23306       need_lib_prefix=no
23307       need_version=no
23308       shlibpath_overrides_runpath=no
23309       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23310       ;;
23311   esac
23312   ;;
23313
23314 sysv4*MP*)
23315   if test -d /usr/nec ;then
23316     version_type=linux
23317     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23318     soname_spec='$libname${shared_ext}.$major'
23319     shlibpath_var=LD_LIBRARY_PATH
23320   fi
23321   ;;
23322
23323 uts4*)
23324   version_type=linux
23325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23326   soname_spec='${libname}${release}${shared_ext}$major'
23327   shlibpath_var=LD_LIBRARY_PATH
23328   ;;
23329
23330 *)
23331   dynamic_linker=no
23332   ;;
23333 esac
23334 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23335 echo "${ECHO_T}$dynamic_linker" >&6
23336 test "$dynamic_linker" = no && can_build_shared=no
23337
23338 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23339 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23340 hardcode_action_GCJ=
23341 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23342    test -n "$runpath_var_GCJ" || \
23343    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23344
23345   # We can hardcode non-existant directories.
23346   if test "$hardcode_direct_GCJ" != no &&
23347      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23348      # have to relink, otherwise we might link with an installed library
23349      # when we should be linking with a yet-to-be-installed one
23350      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23351      test "$hardcode_minus_L_GCJ" != no; then
23352     # Linking always hardcodes the temporary library directory.
23353     hardcode_action_GCJ=relink
23354   else
23355     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23356     hardcode_action_GCJ=immediate
23357   fi
23358 else
23359   # We cannot hardcode anything, or else we can only hardcode existing
23360   # directories.
23361   hardcode_action_GCJ=unsupported
23362 fi
23363 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23364 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23365
23366 if test "$hardcode_action_GCJ" = relink; then
23367   # Fast installation is not supported
23368   enable_fast_install=no
23369 elif test "$shlibpath_overrides_runpath" = yes ||
23370      test "$enable_shared" = no; then
23371   # Fast installation is not necessary
23372   enable_fast_install=needless
23373 fi
23374
23375 striplib=
23376 old_striplib=
23377 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23378 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23379 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23380   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23381   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23382   echo "$as_me:$LINENO: result: yes" >&5
23383 echo "${ECHO_T}yes" >&6
23384 else
23385 # FIXME - insert some real tests, host_os isn't really good enough
23386   case $host_os in
23387    darwin*)
23388        if test -n "$STRIP" ; then
23389          striplib="$STRIP -x"
23390          echo "$as_me:$LINENO: result: yes" >&5
23391 echo "${ECHO_T}yes" >&6
23392        else
23393   echo "$as_me:$LINENO: result: no" >&5
23394 echo "${ECHO_T}no" >&6
23395 fi
23396        ;;
23397    *)
23398   echo "$as_me:$LINENO: result: no" >&5
23399 echo "${ECHO_T}no" >&6
23400     ;;
23401   esac
23402 fi
23403
23404 if test "x$enable_dlopen" != xyes; then
23405   enable_dlopen=unknown
23406   enable_dlopen_self=unknown
23407   enable_dlopen_self_static=unknown
23408 else
23409   lt_cv_dlopen=no
23410   lt_cv_dlopen_libs=
23411
23412   case $host_os in
23413   beos*)
23414     lt_cv_dlopen="load_add_on"
23415     lt_cv_dlopen_libs=
23416     lt_cv_dlopen_self=yes
23417     ;;
23418
23419   mingw* | pw32*)
23420     lt_cv_dlopen="LoadLibrary"
23421     lt_cv_dlopen_libs=
23422    ;;
23423
23424   cygwin*)
23425     lt_cv_dlopen="dlopen"
23426     lt_cv_dlopen_libs=
23427    ;;
23428
23429   darwin*)
23430   # if libdl is installed we need to link against it
23431     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23432 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23433 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23434   echo $ECHO_N "(cached) $ECHO_C" >&6
23435 else
23436   ac_check_lib_save_LIBS=$LIBS
23437 LIBS="-ldl  $LIBS"
23438 cat >conftest.$ac_ext <<_ACEOF
23439 /* confdefs.h.  */
23440 _ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h.  */
23444
23445 /* Override any gcc2 internal prototype to avoid an error.  */
23446 #ifdef __cplusplus
23447 extern "C"
23448 #endif
23449 /* We use char because int might match the return type of a gcc2
23450    builtin and then its argument prototype would still apply.  */
23451 char dlopen ();
23452 int
23453 main ()
23454 {
23455 dlopen ();
23456   ;
23457   return 0;
23458 }
23459 _ACEOF
23460 rm -f conftest.$ac_objext conftest$ac_exeext
23461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23462   (eval $ac_link) 2>conftest.er1
23463   ac_status=$?
23464   grep -v '^ *+' conftest.er1 >conftest.err
23465   rm -f conftest.er1
23466   cat conftest.err >&5
23467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468   (exit $ac_status); } &&
23469          { ac_try='test -z "$ac_c_werror_flag"
23470                          || test ! -s conftest.err'
23471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23472   (eval $ac_try) 2>&5
23473   ac_status=$?
23474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475   (exit $ac_status); }; } &&
23476          { ac_try='test -s conftest$ac_exeext'
23477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23478   (eval $ac_try) 2>&5
23479   ac_status=$?
23480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481   (exit $ac_status); }; }; then
23482   ac_cv_lib_dl_dlopen=yes
23483 else
23484   echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23486
23487 ac_cv_lib_dl_dlopen=no
23488 fi
23489 rm -f conftest.err conftest.$ac_objext \
23490       conftest$ac_exeext conftest.$ac_ext
23491 LIBS=$ac_check_lib_save_LIBS
23492 fi
23493 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23494 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23495 if test $ac_cv_lib_dl_dlopen = yes; then
23496   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23497 else
23498
23499     lt_cv_dlopen="dyld"
23500     lt_cv_dlopen_libs=
23501     lt_cv_dlopen_self=yes
23502
23503 fi
23504
23505    ;;
23506
23507   *)
23508     echo "$as_me:$LINENO: checking for shl_load" >&5
23509 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23510 if test "${ac_cv_func_shl_load+set}" = set; then
23511   echo $ECHO_N "(cached) $ECHO_C" >&6
23512 else
23513   cat >conftest.$ac_ext <<_ACEOF
23514 /* confdefs.h.  */
23515 _ACEOF
23516 cat confdefs.h >>conftest.$ac_ext
23517 cat >>conftest.$ac_ext <<_ACEOF
23518 /* end confdefs.h.  */
23519 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23521 #define shl_load innocuous_shl_load
23522
23523 /* System header to define __stub macros and hopefully few prototypes,
23524     which can conflict with char shl_load (); below.
23525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23526     <limits.h> exists even on freestanding compilers.  */
23527
23528 #ifdef __STDC__
23529 # include <limits.h>
23530 #else
23531 # include <assert.h>
23532 #endif
23533
23534 #undef shl_load
23535
23536 /* Override any gcc2 internal prototype to avoid an error.  */
23537 #ifdef __cplusplus
23538 extern "C"
23539 {
23540 #endif
23541 /* We use char because int might match the return type of a gcc2
23542    builtin and then its argument prototype would still apply.  */
23543 char shl_load ();
23544 /* The GNU C library defines this for functions which it implements
23545     to always fail with ENOSYS.  Some functions are actually named
23546     something starting with __ and the normal name is an alias.  */
23547 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23548 choke me
23549 #else
23550 char (*f) () = shl_load;
23551 #endif
23552 #ifdef __cplusplus
23553 }
23554 #endif
23555
23556 int
23557 main ()
23558 {
23559 return f != shl_load;
23560   ;
23561   return 0;
23562 }
23563 _ACEOF
23564 rm -f conftest.$ac_objext conftest$ac_exeext
23565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23566   (eval $ac_link) 2>conftest.er1
23567   ac_status=$?
23568   grep -v '^ *+' conftest.er1 >conftest.err
23569   rm -f conftest.er1
23570   cat conftest.err >&5
23571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572   (exit $ac_status); } &&
23573          { ac_try='test -z "$ac_c_werror_flag"
23574                          || test ! -s conftest.err'
23575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23576   (eval $ac_try) 2>&5
23577   ac_status=$?
23578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579   (exit $ac_status); }; } &&
23580          { ac_try='test -s conftest$ac_exeext'
23581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23582   (eval $ac_try) 2>&5
23583   ac_status=$?
23584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585   (exit $ac_status); }; }; then
23586   ac_cv_func_shl_load=yes
23587 else
23588   echo "$as_me: failed program was:" >&5
23589 sed 's/^/| /' conftest.$ac_ext >&5
23590
23591 ac_cv_func_shl_load=no
23592 fi
23593 rm -f conftest.err conftest.$ac_objext \
23594       conftest$ac_exeext conftest.$ac_ext
23595 fi
23596 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23597 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23598 if test $ac_cv_func_shl_load = yes; then
23599   lt_cv_dlopen="shl_load"
23600 else
23601   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23602 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23603 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23604   echo $ECHO_N "(cached) $ECHO_C" >&6
23605 else
23606   ac_check_lib_save_LIBS=$LIBS
23607 LIBS="-ldld  $LIBS"
23608 cat >conftest.$ac_ext <<_ACEOF
23609 /* confdefs.h.  */
23610 _ACEOF
23611 cat confdefs.h >>conftest.$ac_ext
23612 cat >>conftest.$ac_ext <<_ACEOF
23613 /* end confdefs.h.  */
23614
23615 /* Override any gcc2 internal prototype to avoid an error.  */
23616 #ifdef __cplusplus
23617 extern "C"
23618 #endif
23619 /* We use char because int might match the return type of a gcc2
23620    builtin and then its argument prototype would still apply.  */
23621 char shl_load ();
23622 int
23623 main ()
23624 {
23625 shl_load ();
23626   ;
23627   return 0;
23628 }
23629 _ACEOF
23630 rm -f conftest.$ac_objext conftest$ac_exeext
23631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23632   (eval $ac_link) 2>conftest.er1
23633   ac_status=$?
23634   grep -v '^ *+' conftest.er1 >conftest.err
23635   rm -f conftest.er1
23636   cat conftest.err >&5
23637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638   (exit $ac_status); } &&
23639          { ac_try='test -z "$ac_c_werror_flag"
23640                          || test ! -s conftest.err'
23641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642   (eval $ac_try) 2>&5
23643   ac_status=$?
23644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645   (exit $ac_status); }; } &&
23646          { ac_try='test -s conftest$ac_exeext'
23647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23648   (eval $ac_try) 2>&5
23649   ac_status=$?
23650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651   (exit $ac_status); }; }; then
23652   ac_cv_lib_dld_shl_load=yes
23653 else
23654   echo "$as_me: failed program was:" >&5
23655 sed 's/^/| /' conftest.$ac_ext >&5
23656
23657 ac_cv_lib_dld_shl_load=no
23658 fi
23659 rm -f conftest.err conftest.$ac_objext \
23660       conftest$ac_exeext conftest.$ac_ext
23661 LIBS=$ac_check_lib_save_LIBS
23662 fi
23663 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23664 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23665 if test $ac_cv_lib_dld_shl_load = yes; then
23666   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23667 else
23668   echo "$as_me:$LINENO: checking for dlopen" >&5
23669 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23670 if test "${ac_cv_func_dlopen+set}" = set; then
23671   echo $ECHO_N "(cached) $ECHO_C" >&6
23672 else
23673   cat >conftest.$ac_ext <<_ACEOF
23674 /* confdefs.h.  */
23675 _ACEOF
23676 cat confdefs.h >>conftest.$ac_ext
23677 cat >>conftest.$ac_ext <<_ACEOF
23678 /* end confdefs.h.  */
23679 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23681 #define dlopen innocuous_dlopen
23682
23683 /* System header to define __stub macros and hopefully few prototypes,
23684     which can conflict with char dlopen (); below.
23685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23686     <limits.h> exists even on freestanding compilers.  */
23687
23688 #ifdef __STDC__
23689 # include <limits.h>
23690 #else
23691 # include <assert.h>
23692 #endif
23693
23694 #undef dlopen
23695
23696 /* Override any gcc2 internal prototype to avoid an error.  */
23697 #ifdef __cplusplus
23698 extern "C"
23699 {
23700 #endif
23701 /* We use char because int might match the return type of a gcc2
23702    builtin and then its argument prototype would still apply.  */
23703 char dlopen ();
23704 /* The GNU C library defines this for functions which it implements
23705     to always fail with ENOSYS.  Some functions are actually named
23706     something starting with __ and the normal name is an alias.  */
23707 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23708 choke me
23709 #else
23710 char (*f) () = dlopen;
23711 #endif
23712 #ifdef __cplusplus
23713 }
23714 #endif
23715
23716 int
23717 main ()
23718 {
23719 return f != dlopen;
23720   ;
23721   return 0;
23722 }
23723 _ACEOF
23724 rm -f conftest.$ac_objext conftest$ac_exeext
23725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23726   (eval $ac_link) 2>conftest.er1
23727   ac_status=$?
23728   grep -v '^ *+' conftest.er1 >conftest.err
23729   rm -f conftest.er1
23730   cat conftest.err >&5
23731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732   (exit $ac_status); } &&
23733          { ac_try='test -z "$ac_c_werror_flag"
23734                          || test ! -s conftest.err'
23735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736   (eval $ac_try) 2>&5
23737   ac_status=$?
23738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739   (exit $ac_status); }; } &&
23740          { ac_try='test -s conftest$ac_exeext'
23741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23742   (eval $ac_try) 2>&5
23743   ac_status=$?
23744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745   (exit $ac_status); }; }; then
23746   ac_cv_func_dlopen=yes
23747 else
23748   echo "$as_me: failed program was:" >&5
23749 sed 's/^/| /' conftest.$ac_ext >&5
23750
23751 ac_cv_func_dlopen=no
23752 fi
23753 rm -f conftest.err conftest.$ac_objext \
23754       conftest$ac_exeext conftest.$ac_ext
23755 fi
23756 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23757 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23758 if test $ac_cv_func_dlopen = yes; then
23759   lt_cv_dlopen="dlopen"
23760 else
23761   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23762 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23763 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23764   echo $ECHO_N "(cached) $ECHO_C" >&6
23765 else
23766   ac_check_lib_save_LIBS=$LIBS
23767 LIBS="-ldl  $LIBS"
23768 cat >conftest.$ac_ext <<_ACEOF
23769 /* confdefs.h.  */
23770 _ACEOF
23771 cat confdefs.h >>conftest.$ac_ext
23772 cat >>conftest.$ac_ext <<_ACEOF
23773 /* end confdefs.h.  */
23774
23775 /* Override any gcc2 internal prototype to avoid an error.  */
23776 #ifdef __cplusplus
23777 extern "C"
23778 #endif
23779 /* We use char because int might match the return type of a gcc2
23780    builtin and then its argument prototype would still apply.  */
23781 char dlopen ();
23782 int
23783 main ()
23784 {
23785 dlopen ();
23786   ;
23787   return 0;
23788 }
23789 _ACEOF
23790 rm -f conftest.$ac_objext conftest$ac_exeext
23791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23792   (eval $ac_link) 2>conftest.er1
23793   ac_status=$?
23794   grep -v '^ *+' conftest.er1 >conftest.err
23795   rm -f conftest.er1
23796   cat conftest.err >&5
23797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798   (exit $ac_status); } &&
23799          { ac_try='test -z "$ac_c_werror_flag"
23800                          || test ! -s conftest.err'
23801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23802   (eval $ac_try) 2>&5
23803   ac_status=$?
23804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805   (exit $ac_status); }; } &&
23806          { ac_try='test -s conftest$ac_exeext'
23807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23808   (eval $ac_try) 2>&5
23809   ac_status=$?
23810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811   (exit $ac_status); }; }; then
23812   ac_cv_lib_dl_dlopen=yes
23813 else
23814   echo "$as_me: failed program was:" >&5
23815 sed 's/^/| /' conftest.$ac_ext >&5
23816
23817 ac_cv_lib_dl_dlopen=no
23818 fi
23819 rm -f conftest.err conftest.$ac_objext \
23820       conftest$ac_exeext conftest.$ac_ext
23821 LIBS=$ac_check_lib_save_LIBS
23822 fi
23823 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23824 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23825 if test $ac_cv_lib_dl_dlopen = yes; then
23826   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23827 else
23828   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23829 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23830 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23831   echo $ECHO_N "(cached) $ECHO_C" >&6
23832 else
23833   ac_check_lib_save_LIBS=$LIBS
23834 LIBS="-lsvld  $LIBS"
23835 cat >conftest.$ac_ext <<_ACEOF
23836 /* confdefs.h.  */
23837 _ACEOF
23838 cat confdefs.h >>conftest.$ac_ext
23839 cat >>conftest.$ac_ext <<_ACEOF
23840 /* end confdefs.h.  */
23841
23842 /* Override any gcc2 internal prototype to avoid an error.  */
23843 #ifdef __cplusplus
23844 extern "C"
23845 #endif
23846 /* We use char because int might match the return type of a gcc2
23847    builtin and then its argument prototype would still apply.  */
23848 char dlopen ();
23849 int
23850 main ()
23851 {
23852 dlopen ();
23853   ;
23854   return 0;
23855 }
23856 _ACEOF
23857 rm -f conftest.$ac_objext conftest$ac_exeext
23858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23859   (eval $ac_link) 2>conftest.er1
23860   ac_status=$?
23861   grep -v '^ *+' conftest.er1 >conftest.err
23862   rm -f conftest.er1
23863   cat conftest.err >&5
23864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865   (exit $ac_status); } &&
23866          { ac_try='test -z "$ac_c_werror_flag"
23867                          || test ! -s conftest.err'
23868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23869   (eval $ac_try) 2>&5
23870   ac_status=$?
23871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23872   (exit $ac_status); }; } &&
23873          { ac_try='test -s conftest$ac_exeext'
23874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23875   (eval $ac_try) 2>&5
23876   ac_status=$?
23877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878   (exit $ac_status); }; }; then
23879   ac_cv_lib_svld_dlopen=yes
23880 else
23881   echo "$as_me: failed program was:" >&5
23882 sed 's/^/| /' conftest.$ac_ext >&5
23883
23884 ac_cv_lib_svld_dlopen=no
23885 fi
23886 rm -f conftest.err conftest.$ac_objext \
23887       conftest$ac_exeext conftest.$ac_ext
23888 LIBS=$ac_check_lib_save_LIBS
23889 fi
23890 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23891 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23892 if test $ac_cv_lib_svld_dlopen = yes; then
23893   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23894 else
23895   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23896 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23897 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23898   echo $ECHO_N "(cached) $ECHO_C" >&6
23899 else
23900   ac_check_lib_save_LIBS=$LIBS
23901 LIBS="-ldld  $LIBS"
23902 cat >conftest.$ac_ext <<_ACEOF
23903 /* confdefs.h.  */
23904 _ACEOF
23905 cat confdefs.h >>conftest.$ac_ext
23906 cat >>conftest.$ac_ext <<_ACEOF
23907 /* end confdefs.h.  */
23908
23909 /* Override any gcc2 internal prototype to avoid an error.  */
23910 #ifdef __cplusplus
23911 extern "C"
23912 #endif
23913 /* We use char because int might match the return type of a gcc2
23914    builtin and then its argument prototype would still apply.  */
23915 char dld_link ();
23916 int
23917 main ()
23918 {
23919 dld_link ();
23920   ;
23921   return 0;
23922 }
23923 _ACEOF
23924 rm -f conftest.$ac_objext conftest$ac_exeext
23925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23926   (eval $ac_link) 2>conftest.er1
23927   ac_status=$?
23928   grep -v '^ *+' conftest.er1 >conftest.err
23929   rm -f conftest.er1
23930   cat conftest.err >&5
23931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932   (exit $ac_status); } &&
23933          { ac_try='test -z "$ac_c_werror_flag"
23934                          || test ! -s conftest.err'
23935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23936   (eval $ac_try) 2>&5
23937   ac_status=$?
23938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939   (exit $ac_status); }; } &&
23940          { ac_try='test -s conftest$ac_exeext'
23941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23942   (eval $ac_try) 2>&5
23943   ac_status=$?
23944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945   (exit $ac_status); }; }; then
23946   ac_cv_lib_dld_dld_link=yes
23947 else
23948   echo "$as_me: failed program was:" >&5
23949 sed 's/^/| /' conftest.$ac_ext >&5
23950
23951 ac_cv_lib_dld_dld_link=no
23952 fi
23953 rm -f conftest.err conftest.$ac_objext \
23954       conftest$ac_exeext conftest.$ac_ext
23955 LIBS=$ac_check_lib_save_LIBS
23956 fi
23957 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23958 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23959 if test $ac_cv_lib_dld_dld_link = yes; then
23960   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23961 fi
23962
23963
23964 fi
23965
23966
23967 fi
23968
23969
23970 fi
23971
23972
23973 fi
23974
23975
23976 fi
23977
23978     ;;
23979   esac
23980
23981   if test "x$lt_cv_dlopen" != xno; then
23982     enable_dlopen=yes
23983   else
23984     enable_dlopen=no
23985   fi
23986
23987   case $lt_cv_dlopen in
23988   dlopen)
23989     save_CPPFLAGS="$CPPFLAGS"
23990     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23991
23992     save_LDFLAGS="$LDFLAGS"
23993     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23994
23995     save_LIBS="$LIBS"
23996     LIBS="$lt_cv_dlopen_libs $LIBS"
23997
23998     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23999 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
24000 if test "${lt_cv_dlopen_self+set}" = set; then
24001   echo $ECHO_N "(cached) $ECHO_C" >&6
24002 else
24003           if test "$cross_compiling" = yes; then :
24004   lt_cv_dlopen_self=cross
24005 else
24006   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24007   lt_status=$lt_dlunknown
24008   cat > conftest.$ac_ext <<EOF
24009 #line 24009 "configure"
24010 #include "confdefs.h"
24011
24012 #if HAVE_DLFCN_H
24013 #include <dlfcn.h>
24014 #endif
24015
24016 #include <stdio.h>
24017
24018 #ifdef RTLD_GLOBAL
24019 #  define LT_DLGLOBAL           RTLD_GLOBAL
24020 #else
24021 #  ifdef DL_GLOBAL
24022 #    define LT_DLGLOBAL         DL_GLOBAL
24023 #  else
24024 #    define LT_DLGLOBAL         0
24025 #  endif
24026 #endif
24027
24028 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24029    find out it does not work in some platform. */
24030 #ifndef LT_DLLAZY_OR_NOW
24031 #  ifdef RTLD_LAZY
24032 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
24033 #  else
24034 #    ifdef DL_LAZY
24035 #      define LT_DLLAZY_OR_NOW          DL_LAZY
24036 #    else
24037 #      ifdef RTLD_NOW
24038 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
24039 #      else
24040 #        ifdef DL_NOW
24041 #          define LT_DLLAZY_OR_NOW      DL_NOW
24042 #        else
24043 #          define LT_DLLAZY_OR_NOW      0
24044 #        endif
24045 #      endif
24046 #    endif
24047 #  endif
24048 #endif
24049
24050 #ifdef __cplusplus
24051 extern "C" void exit (int);
24052 #endif
24053
24054 void fnord() { int i=42;}
24055 int main ()
24056 {
24057   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24058   int status = $lt_dlunknown;
24059
24060   if (self)
24061     {
24062       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
24063       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24064       /* dlclose (self); */
24065     }
24066
24067     exit (status);
24068 }
24069 EOF
24070   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24071   (eval $ac_link) 2>&5
24072   ac_status=$?
24073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24075     (./conftest; exit; ) 2>/dev/null
24076     lt_status=$?
24077     case x$lt_status in
24078       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
24079       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
24080       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
24081     esac
24082   else :
24083     # compilation failed
24084     lt_cv_dlopen_self=no
24085   fi
24086 fi
24087 rm -fr conftest*
24088
24089
24090 fi
24091 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
24092 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
24093
24094     if test "x$lt_cv_dlopen_self" = xyes; then
24095       LDFLAGS="$LDFLAGS $link_static_flag"
24096       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
24097 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
24098 if test "${lt_cv_dlopen_self_static+set}" = set; then
24099   echo $ECHO_N "(cached) $ECHO_C" >&6
24100 else
24101           if test "$cross_compiling" = yes; then :
24102   lt_cv_dlopen_self_static=cross
24103 else
24104   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24105   lt_status=$lt_dlunknown
24106   cat > conftest.$ac_ext <<EOF
24107 #line 24107 "configure"
24108 #include "confdefs.h"
24109
24110 #if HAVE_DLFCN_H
24111 #include <dlfcn.h>
24112 #endif
24113
24114 #include <stdio.h>
24115
24116 #ifdef RTLD_GLOBAL
24117 #  define LT_DLGLOBAL           RTLD_GLOBAL
24118 #else
24119 #  ifdef DL_GLOBAL
24120 #    define LT_DLGLOBAL         DL_GLOBAL
24121 #  else
24122 #    define LT_DLGLOBAL         0
24123 #  endif
24124 #endif
24125
24126 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24127    find out it does not work in some platform. */
24128 #ifndef LT_DLLAZY_OR_NOW
24129 #  ifdef RTLD_LAZY
24130 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
24131 #  else
24132 #    ifdef DL_LAZY
24133 #      define LT_DLLAZY_OR_NOW          DL_LAZY
24134 #    else
24135 #      ifdef RTLD_NOW
24136 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
24137 #      else
24138 #        ifdef DL_NOW
24139 #          define LT_DLLAZY_OR_NOW      DL_NOW
24140 #        else
24141 #          define LT_DLLAZY_OR_NOW      0
24142 #        endif
24143 #      endif
24144 #    endif
24145 #  endif
24146 #endif
24147
24148 #ifdef __cplusplus
24149 extern "C" void exit (int);
24150 #endif
24151
24152 void fnord() { int i=42;}
24153 int main ()
24154 {
24155   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24156   int status = $lt_dlunknown;
24157
24158   if (self)
24159     {
24160       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
24161       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24162       /* dlclose (self); */
24163     }
24164
24165     exit (status);
24166 }
24167 EOF
24168   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24169   (eval $ac_link) 2>&5
24170   ac_status=$?
24171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24173     (./conftest; exit; ) 2>/dev/null
24174     lt_status=$?
24175     case x$lt_status in
24176       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
24177       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
24178       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
24179     esac
24180   else :
24181     # compilation failed
24182     lt_cv_dlopen_self_static=no
24183   fi
24184 fi
24185 rm -fr conftest*
24186
24187
24188 fi
24189 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
24190 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
24191     fi
24192
24193     CPPFLAGS="$save_CPPFLAGS"
24194     LDFLAGS="$save_LDFLAGS"
24195     LIBS="$save_LIBS"
24196     ;;
24197   esac
24198
24199   case $lt_cv_dlopen_self in
24200   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24201   *) enable_dlopen_self=unknown ;;
24202   esac
24203
24204   case $lt_cv_dlopen_self_static in
24205   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24206   *) enable_dlopen_self_static=unknown ;;
24207   esac
24208 fi
24209
24210
24211 # The else clause should only fire when bootstrapping the
24212 # libtool distribution, otherwise you forgot to ship ltmain.sh
24213 # with your package, and you will get complaints that there are
24214 # no rules to generate ltmain.sh.
24215 if test -f "$ltmain"; then
24216   # See if we are running on zsh, and set the options which allow our commands through
24217   # without removal of \ escapes.
24218   if test -n "${ZSH_VERSION+set}" ; then
24219     setopt NO_GLOB_SUBST
24220   fi
24221   # Now quote all the things that may contain metacharacters while being
24222   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24223   # variables and quote the copies for generation of the libtool script.
24224   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24225     SED SHELL STRIP \
24226     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24227     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24228     deplibs_check_method reload_flag reload_cmds need_locks \
24229     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24230     lt_cv_sys_global_symbol_to_c_name_address \
24231     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24232     old_postinstall_cmds old_postuninstall_cmds \
24233     compiler_GCJ \
24234     CC_GCJ \
24235     LD_GCJ \
24236     lt_prog_compiler_wl_GCJ \
24237     lt_prog_compiler_pic_GCJ \
24238     lt_prog_compiler_static_GCJ \
24239     lt_prog_compiler_no_builtin_flag_GCJ \
24240     export_dynamic_flag_spec_GCJ \
24241     thread_safe_flag_spec_GCJ \
24242     whole_archive_flag_spec_GCJ \
24243     enable_shared_with_static_runtimes_GCJ \
24244     old_archive_cmds_GCJ \
24245     old_archive_from_new_cmds_GCJ \
24246     predep_objects_GCJ \
24247     postdep_objects_GCJ \
24248     predeps_GCJ \
24249     postdeps_GCJ \
24250     compiler_lib_search_path_GCJ \
24251     archive_cmds_GCJ \
24252     archive_expsym_cmds_GCJ \
24253     postinstall_cmds_GCJ \
24254     postuninstall_cmds_GCJ \
24255     old_archive_from_expsyms_cmds_GCJ \
24256     allow_undefined_flag_GCJ \
24257     no_undefined_flag_GCJ \
24258     export_symbols_cmds_GCJ \
24259     hardcode_libdir_flag_spec_GCJ \
24260     hardcode_libdir_flag_spec_ld_GCJ \
24261     hardcode_libdir_separator_GCJ \
24262     hardcode_automatic_GCJ \
24263     module_cmds_GCJ \
24264     module_expsym_cmds_GCJ \
24265     lt_cv_prog_compiler_c_o_GCJ \
24266     exclude_expsyms_GCJ \
24267     include_expsyms_GCJ; do
24268
24269     case $var in
24270     old_archive_cmds_GCJ | \
24271     old_archive_from_new_cmds_GCJ | \
24272     archive_cmds_GCJ | \
24273     archive_expsym_cmds_GCJ | \
24274     module_cmds_GCJ | \
24275     module_expsym_cmds_GCJ | \
24276     old_archive_from_expsyms_cmds_GCJ | \
24277     export_symbols_cmds_GCJ | \
24278     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24279     postinstall_cmds | postuninstall_cmds | \
24280     old_postinstall_cmds | old_postuninstall_cmds | \
24281     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24282       # Double-quote double-evaled strings.
24283       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24284       ;;
24285     *)
24286       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24287       ;;
24288     esac
24289   done
24290
24291   case $lt_echo in
24292   *'\$0 --fallback-echo"')
24293     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24294     ;;
24295   esac
24296
24297 cfgfile="$ofile"
24298
24299   cat <<__EOF__ >> "$cfgfile"
24300 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24301
24302 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24303
24304 # Shell to use when invoking shell scripts.
24305 SHELL=$lt_SHELL
24306
24307 # Whether or not to build shared libraries.
24308 build_libtool_libs=$enable_shared
24309
24310 # Whether or not to build static libraries.
24311 build_old_libs=$enable_static
24312
24313 # Whether or not to add -lc for building shared libraries.
24314 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24315
24316 # Whether or not to disallow shared libs when runtime libs are static
24317 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24318
24319 # Whether or not to optimize for fast installation.
24320 fast_install=$enable_fast_install
24321
24322 # The host system.
24323 host_alias=$host_alias
24324 host=$host
24325
24326 # An echo program that does not interpret backslashes.
24327 echo=$lt_echo
24328
24329 # The archiver.
24330 AR=$lt_AR
24331 AR_FLAGS=$lt_AR_FLAGS
24332
24333 # A C compiler.
24334 LTCC=$lt_LTCC
24335
24336 # A language-specific compiler.
24337 CC=$lt_compiler_GCJ
24338
24339 # Is the compiler the GNU C compiler?
24340 with_gcc=$GCC_GCJ
24341
24342 # An ERE matcher.
24343 EGREP=$lt_EGREP
24344
24345 # The linker used to build libraries.
24346 LD=$lt_LD_GCJ
24347
24348 # Whether we need hard or soft links.
24349 LN_S=$lt_LN_S
24350
24351 # A BSD-compatible nm program.
24352 NM=$lt_NM
24353
24354 # A symbol stripping program
24355 STRIP=$lt_STRIP
24356
24357 # Used to examine libraries when file_magic_cmd begins "file"
24358 MAGIC_CMD=$MAGIC_CMD
24359
24360 # Used on cygwin: DLL creation program.
24361 DLLTOOL="$DLLTOOL"
24362
24363 # Used on cygwin: object dumper.
24364 OBJDUMP="$OBJDUMP"
24365
24366 # Used on cygwin: assembler.
24367 AS="$AS"
24368
24369 # The name of the directory that contains temporary libtool files.
24370 objdir=$objdir
24371
24372 # How to create reloadable object files.
24373 reload_flag=$lt_reload_flag
24374 reload_cmds=$lt_reload_cmds
24375
24376 # How to pass a linker flag through the compiler.
24377 wl=$lt_lt_prog_compiler_wl_GCJ
24378
24379 # Object file suffix (normally "o").
24380 objext="$ac_objext"
24381
24382 # Old archive suffix (normally "a").
24383 libext="$libext"
24384
24385 # Shared library suffix (normally ".so").
24386 shrext_cmds='$shrext_cmds'
24387
24388 # Executable file suffix (normally "").
24389 exeext="$exeext"
24390
24391 # Additional compiler flags for building library objects.
24392 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24393 pic_mode=$pic_mode
24394
24395 # What is the maximum length of a command?
24396 max_cmd_len=$lt_cv_sys_max_cmd_len
24397
24398 # Does compiler simultaneously support -c and -o options?
24399 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24400
24401 # Must we lock files when doing compilation ?
24402 need_locks=$lt_need_locks
24403
24404 # Do we need the lib prefix for modules?
24405 need_lib_prefix=$need_lib_prefix
24406
24407 # Do we need a version for libraries?
24408 need_version=$need_version
24409
24410 # Whether dlopen is supported.
24411 dlopen_support=$enable_dlopen
24412
24413 # Whether dlopen of programs is supported.
24414 dlopen_self=$enable_dlopen_self
24415
24416 # Whether dlopen of statically linked programs is supported.
24417 dlopen_self_static=$enable_dlopen_self_static
24418
24419 # Compiler flag to prevent dynamic linking.
24420 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24421
24422 # Compiler flag to turn off builtin functions.
24423 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24424
24425 # Compiler flag to allow reflexive dlopens.
24426 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24427
24428 # Compiler flag to generate shared objects directly from archives.
24429 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24430
24431 # Compiler flag to generate thread-safe objects.
24432 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24433
24434 # Library versioning type.
24435 version_type=$version_type
24436
24437 # Format of library name prefix.
24438 libname_spec=$lt_libname_spec
24439
24440 # List of archive names.  First name is the real one, the rest are links.
24441 # The last name is the one that the linker finds with -lNAME.
24442 library_names_spec=$lt_library_names_spec
24443
24444 # The coded name of the library, if different from the real name.
24445 soname_spec=$lt_soname_spec
24446
24447 # Commands used to build and install an old-style archive.
24448 RANLIB=$lt_RANLIB
24449 old_archive_cmds=$lt_old_archive_cmds_GCJ
24450 old_postinstall_cmds=$lt_old_postinstall_cmds
24451 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24452
24453 # Create an old-style archive from a shared archive.
24454 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24455
24456 # Create a temporary old-style archive to link instead of a shared archive.
24457 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24458
24459 # Commands used to build and install a shared archive.
24460 archive_cmds=$lt_archive_cmds_GCJ
24461 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24462 postinstall_cmds=$lt_postinstall_cmds
24463 postuninstall_cmds=$lt_postuninstall_cmds
24464
24465 # Commands used to build a loadable module (assumed same as above if empty)
24466 module_cmds=$lt_module_cmds_GCJ
24467 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24468
24469 # Commands to strip libraries.
24470 old_striplib=$lt_old_striplib
24471 striplib=$lt_striplib
24472
24473 # Dependencies to place before the objects being linked to create a
24474 # shared library.
24475 predep_objects=$lt_predep_objects_GCJ
24476
24477 # Dependencies to place after the objects being linked to create a
24478 # shared library.
24479 postdep_objects=$lt_postdep_objects_GCJ
24480
24481 # Dependencies to place before the objects being linked to create a
24482 # shared library.
24483 predeps=$lt_predeps_GCJ
24484
24485 # Dependencies to place after the objects being linked to create a
24486 # shared library.
24487 postdeps=$lt_postdeps_GCJ
24488
24489 # The library search path used internally by the compiler when linking
24490 # a shared library.
24491 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24492
24493 # Method to check whether dependent libraries are shared objects.
24494 deplibs_check_method=$lt_deplibs_check_method
24495
24496 # Command to use when deplibs_check_method == file_magic.
24497 file_magic_cmd=$lt_file_magic_cmd
24498
24499 # Flag that allows shared libraries with undefined symbols to be built.
24500 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24501
24502 # Flag that forces no undefined symbols.
24503 no_undefined_flag=$lt_no_undefined_flag_GCJ
24504
24505 # Commands used to finish a libtool library installation in a directory.
24506 finish_cmds=$lt_finish_cmds
24507
24508 # Same as above, but a single script fragment to be evaled but not shown.
24509 finish_eval=$lt_finish_eval
24510
24511 # Take the output of nm and produce a listing of raw symbols and C names.
24512 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24513
24514 # Transform the output of nm in a proper C declaration
24515 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24516
24517 # Transform the output of nm in a C name address pair
24518 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24519
24520 # This is the shared library runtime path variable.
24521 runpath_var=$runpath_var
24522
24523 # This is the shared library path variable.
24524 shlibpath_var=$shlibpath_var
24525
24526 # Is shlibpath searched before the hard-coded library search path?
24527 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24528
24529 # How to hardcode a shared library path into an executable.
24530 hardcode_action=$hardcode_action_GCJ
24531
24532 # Whether we should hardcode library paths into libraries.
24533 hardcode_into_libs=$hardcode_into_libs
24534
24535 # Flag to hardcode \$libdir into a binary during linking.
24536 # This must work even if \$libdir does not exist.
24537 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24538
24539 # If ld is used when linking, flag to hardcode \$libdir into
24540 # a binary during linking. This must work even if \$libdir does
24541 # not exist.
24542 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24543
24544 # Whether we need a single -rpath flag with a separated argument.
24545 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24546
24547 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24548 # resulting binary.
24549 hardcode_direct=$hardcode_direct_GCJ
24550
24551 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24552 # resulting binary.
24553 hardcode_minus_L=$hardcode_minus_L_GCJ
24554
24555 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24556 # the resulting binary.
24557 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24558
24559 # Set to yes if building a shared library automatically hardcodes DIR into the library
24560 # and all subsequent libraries and executables linked against it.
24561 hardcode_automatic=$hardcode_automatic_GCJ
24562
24563 # Variables whose values should be saved in libtool wrapper scripts and
24564 # restored at relink time.
24565 variables_saved_for_relink="$variables_saved_for_relink"
24566
24567 # Whether libtool must link a program against all its dependency libraries.
24568 link_all_deplibs=$link_all_deplibs_GCJ
24569
24570 # Compile-time system search path for libraries
24571 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24572
24573 # Run-time system search path for libraries
24574 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24575
24576 # Fix the shell variable \$srcfile for the compiler.
24577 fix_srcfile_path="$fix_srcfile_path_GCJ"
24578
24579 # Set to yes if exported symbols are required.
24580 always_export_symbols=$always_export_symbols_GCJ
24581
24582 # The commands to list exported symbols.
24583 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24584
24585 # The commands to extract the exported symbol list from a shared archive.
24586 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24587
24588 # Symbols that should not be listed in the preloaded symbols.
24589 exclude_expsyms=$lt_exclude_expsyms_GCJ
24590
24591 # Symbols that must always be exported.
24592 include_expsyms=$lt_include_expsyms_GCJ
24593
24594 # ### END LIBTOOL TAG CONFIG: $tagname
24595
24596 __EOF__
24597
24598
24599 else
24600   # If there is no Makefile yet, we rely on a make rule to execute
24601   # `config.status --recheck' to rerun these tests and create the
24602   # libtool script then.
24603   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24604   if test -f "$ltmain_in"; then
24605     test -f Makefile && make "$ltmain"
24606   fi
24607 fi
24608
24609
24610 ac_ext=c
24611 ac_cpp='$CPP $CPPFLAGS'
24612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24615
24616 CC="$lt_save_CC"
24617
24618         else
24619           tagname=""
24620         fi
24621         ;;
24622
24623       RC)
24624         ac_ext=c
24625 ac_cpp='$CPP $CPPFLAGS'
24626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24629
24630
24631 # Source file extension for RC test sources.
24632 ac_ext=rc
24633
24634 # Object file extension for compiled RC test sources.
24635 objext=o
24636 objext_RC=$objext
24637
24638 # Code to be used in simple compile tests
24639 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24640
24641 # Code to be used in simple link tests
24642 lt_simple_link_test_code="$lt_simple_compile_test_code"
24643
24644 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24645
24646 # If no C compiler was specified, use CC.
24647 LTCC=${LTCC-"$CC"}
24648
24649 # Allow CC to be a program name with arguments.
24650 compiler=$CC
24651
24652
24653 # Allow CC to be a program name with arguments.
24654 lt_save_CC="$CC"
24655 CC=${RC-"windres"}
24656 compiler=$CC
24657 compiler_RC=$CC
24658 lt_cv_prog_compiler_c_o_RC=yes
24659
24660 # The else clause should only fire when bootstrapping the
24661 # libtool distribution, otherwise you forgot to ship ltmain.sh
24662 # with your package, and you will get complaints that there are
24663 # no rules to generate ltmain.sh.
24664 if test -f "$ltmain"; then
24665   # See if we are running on zsh, and set the options which allow our commands through
24666   # without removal of \ escapes.
24667   if test -n "${ZSH_VERSION+set}" ; then
24668     setopt NO_GLOB_SUBST
24669   fi
24670   # Now quote all the things that may contain metacharacters while being
24671   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24672   # variables and quote the copies for generation of the libtool script.
24673   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24674     SED SHELL STRIP \
24675     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24676     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24677     deplibs_check_method reload_flag reload_cmds need_locks \
24678     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24679     lt_cv_sys_global_symbol_to_c_name_address \
24680     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24681     old_postinstall_cmds old_postuninstall_cmds \
24682     compiler_RC \
24683     CC_RC \
24684     LD_RC \
24685     lt_prog_compiler_wl_RC \
24686     lt_prog_compiler_pic_RC \
24687     lt_prog_compiler_static_RC \
24688     lt_prog_compiler_no_builtin_flag_RC \
24689     export_dynamic_flag_spec_RC \
24690     thread_safe_flag_spec_RC \
24691     whole_archive_flag_spec_RC \
24692     enable_shared_with_static_runtimes_RC \
24693     old_archive_cmds_RC \
24694     old_archive_from_new_cmds_RC \
24695     predep_objects_RC \
24696     postdep_objects_RC \
24697     predeps_RC \
24698     postdeps_RC \
24699     compiler_lib_search_path_RC \
24700     archive_cmds_RC \
24701     archive_expsym_cmds_RC \
24702     postinstall_cmds_RC \
24703     postuninstall_cmds_RC \
24704     old_archive_from_expsyms_cmds_RC \
24705     allow_undefined_flag_RC \
24706     no_undefined_flag_RC \
24707     export_symbols_cmds_RC \
24708     hardcode_libdir_flag_spec_RC \
24709     hardcode_libdir_flag_spec_ld_RC \
24710     hardcode_libdir_separator_RC \
24711     hardcode_automatic_RC \
24712     module_cmds_RC \
24713     module_expsym_cmds_RC \
24714     lt_cv_prog_compiler_c_o_RC \
24715     exclude_expsyms_RC \
24716     include_expsyms_RC; do
24717
24718     case $var in
24719     old_archive_cmds_RC | \
24720     old_archive_from_new_cmds_RC | \
24721     archive_cmds_RC | \
24722     archive_expsym_cmds_RC | \
24723     module_cmds_RC | \
24724     module_expsym_cmds_RC | \
24725     old_archive_from_expsyms_cmds_RC | \
24726     export_symbols_cmds_RC | \
24727     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24728     postinstall_cmds | postuninstall_cmds | \
24729     old_postinstall_cmds | old_postuninstall_cmds | \
24730     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24731       # Double-quote double-evaled strings.
24732       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24733       ;;
24734     *)
24735       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24736       ;;
24737     esac
24738   done
24739
24740   case $lt_echo in
24741   *'\$0 --fallback-echo"')
24742     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24743     ;;
24744   esac
24745
24746 cfgfile="$ofile"
24747
24748   cat <<__EOF__ >> "$cfgfile"
24749 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24750
24751 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24752
24753 # Shell to use when invoking shell scripts.
24754 SHELL=$lt_SHELL
24755
24756 # Whether or not to build shared libraries.
24757 build_libtool_libs=$enable_shared
24758
24759 # Whether or not to build static libraries.
24760 build_old_libs=$enable_static
24761
24762 # Whether or not to add -lc for building shared libraries.
24763 build_libtool_need_lc=$archive_cmds_need_lc_RC
24764
24765 # Whether or not to disallow shared libs when runtime libs are static
24766 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24767
24768 # Whether or not to optimize for fast installation.
24769 fast_install=$enable_fast_install
24770
24771 # The host system.
24772 host_alias=$host_alias
24773 host=$host
24774
24775 # An echo program that does not interpret backslashes.
24776 echo=$lt_echo
24777
24778 # The archiver.
24779 AR=$lt_AR
24780 AR_FLAGS=$lt_AR_FLAGS
24781
24782 # A C compiler.
24783 LTCC=$lt_LTCC
24784
24785 # A language-specific compiler.
24786 CC=$lt_compiler_RC
24787
24788 # Is the compiler the GNU C compiler?
24789 with_gcc=$GCC_RC
24790
24791 # An ERE matcher.
24792 EGREP=$lt_EGREP
24793
24794 # The linker used to build libraries.
24795 LD=$lt_LD_RC
24796
24797 # Whether we need hard or soft links.
24798 LN_S=$lt_LN_S
24799
24800 # A BSD-compatible nm program.
24801 NM=$lt_NM
24802
24803 # A symbol stripping program
24804 STRIP=$lt_STRIP
24805
24806 # Used to examine libraries when file_magic_cmd begins "file"
24807 MAGIC_CMD=$MAGIC_CMD
24808
24809 # Used on cygwin: DLL creation program.
24810 DLLTOOL="$DLLTOOL"
24811
24812 # Used on cygwin: object dumper.
24813 OBJDUMP="$OBJDUMP"
24814
24815 # Used on cygwin: assembler.
24816 AS="$AS"
24817
24818 # The name of the directory that contains temporary libtool files.
24819 objdir=$objdir
24820
24821 # How to create reloadable object files.
24822 reload_flag=$lt_reload_flag
24823 reload_cmds=$lt_reload_cmds
24824
24825 # How to pass a linker flag through the compiler.
24826 wl=$lt_lt_prog_compiler_wl_RC
24827
24828 # Object file suffix (normally "o").
24829 objext="$ac_objext"
24830
24831 # Old archive suffix (normally "a").
24832 libext="$libext"
24833
24834 # Shared library suffix (normally ".so").
24835 shrext_cmds='$shrext_cmds'
24836
24837 # Executable file suffix (normally "").
24838 exeext="$exeext"
24839
24840 # Additional compiler flags for building library objects.
24841 pic_flag=$lt_lt_prog_compiler_pic_RC
24842 pic_mode=$pic_mode
24843
24844 # What is the maximum length of a command?
24845 max_cmd_len=$lt_cv_sys_max_cmd_len
24846
24847 # Does compiler simultaneously support -c and -o options?
24848 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24849
24850 # Must we lock files when doing compilation ?
24851 need_locks=$lt_need_locks
24852
24853 # Do we need the lib prefix for modules?
24854 need_lib_prefix=$need_lib_prefix
24855
24856 # Do we need a version for libraries?
24857 need_version=$need_version
24858
24859 # Whether dlopen is supported.
24860 dlopen_support=$enable_dlopen
24861
24862 # Whether dlopen of programs is supported.
24863 dlopen_self=$enable_dlopen_self
24864
24865 # Whether dlopen of statically linked programs is supported.
24866 dlopen_self_static=$enable_dlopen_self_static
24867
24868 # Compiler flag to prevent dynamic linking.
24869 link_static_flag=$lt_lt_prog_compiler_static_RC
24870
24871 # Compiler flag to turn off builtin functions.
24872 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24873
24874 # Compiler flag to allow reflexive dlopens.
24875 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24876
24877 # Compiler flag to generate shared objects directly from archives.
24878 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24879
24880 # Compiler flag to generate thread-safe objects.
24881 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24882
24883 # Library versioning type.
24884 version_type=$version_type
24885
24886 # Format of library name prefix.
24887 libname_spec=$lt_libname_spec
24888
24889 # List of archive names.  First name is the real one, the rest are links.
24890 # The last name is the one that the linker finds with -lNAME.
24891 library_names_spec=$lt_library_names_spec
24892
24893 # The coded name of the library, if different from the real name.
24894 soname_spec=$lt_soname_spec
24895
24896 # Commands used to build and install an old-style archive.
24897 RANLIB=$lt_RANLIB
24898 old_archive_cmds=$lt_old_archive_cmds_RC
24899 old_postinstall_cmds=$lt_old_postinstall_cmds
24900 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24901
24902 # Create an old-style archive from a shared archive.
24903 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24904
24905 # Create a temporary old-style archive to link instead of a shared archive.
24906 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24907
24908 # Commands used to build and install a shared archive.
24909 archive_cmds=$lt_archive_cmds_RC
24910 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24911 postinstall_cmds=$lt_postinstall_cmds
24912 postuninstall_cmds=$lt_postuninstall_cmds
24913
24914 # Commands used to build a loadable module (assumed same as above if empty)
24915 module_cmds=$lt_module_cmds_RC
24916 module_expsym_cmds=$lt_module_expsym_cmds_RC
24917
24918 # Commands to strip libraries.
24919 old_striplib=$lt_old_striplib
24920 striplib=$lt_striplib
24921
24922 # Dependencies to place before the objects being linked to create a
24923 # shared library.
24924 predep_objects=$lt_predep_objects_RC
24925
24926 # Dependencies to place after the objects being linked to create a
24927 # shared library.
24928 postdep_objects=$lt_postdep_objects_RC
24929
24930 # Dependencies to place before the objects being linked to create a
24931 # shared library.
24932 predeps=$lt_predeps_RC
24933
24934 # Dependencies to place after the objects being linked to create a
24935 # shared library.
24936 postdeps=$lt_postdeps_RC
24937
24938 # The library search path used internally by the compiler when linking
24939 # a shared library.
24940 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24941
24942 # Method to check whether dependent libraries are shared objects.
24943 deplibs_check_method=$lt_deplibs_check_method
24944
24945 # Command to use when deplibs_check_method == file_magic.
24946 file_magic_cmd=$lt_file_magic_cmd
24947
24948 # Flag that allows shared libraries with undefined symbols to be built.
24949 allow_undefined_flag=$lt_allow_undefined_flag_RC
24950
24951 # Flag that forces no undefined symbols.
24952 no_undefined_flag=$lt_no_undefined_flag_RC
24953
24954 # Commands used to finish a libtool library installation in a directory.
24955 finish_cmds=$lt_finish_cmds
24956
24957 # Same as above, but a single script fragment to be evaled but not shown.
24958 finish_eval=$lt_finish_eval
24959
24960 # Take the output of nm and produce a listing of raw symbols and C names.
24961 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24962
24963 # Transform the output of nm in a proper C declaration
24964 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24965
24966 # Transform the output of nm in a C name address pair
24967 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24968
24969 # This is the shared library runtime path variable.
24970 runpath_var=$runpath_var
24971
24972 # This is the shared library path variable.
24973 shlibpath_var=$shlibpath_var
24974
24975 # Is shlibpath searched before the hard-coded library search path?
24976 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24977
24978 # How to hardcode a shared library path into an executable.
24979 hardcode_action=$hardcode_action_RC
24980
24981 # Whether we should hardcode library paths into libraries.
24982 hardcode_into_libs=$hardcode_into_libs
24983
24984 # Flag to hardcode \$libdir into a binary during linking.
24985 # This must work even if \$libdir does not exist.
24986 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24987
24988 # If ld is used when linking, flag to hardcode \$libdir into
24989 # a binary during linking. This must work even if \$libdir does
24990 # not exist.
24991 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24992
24993 # Whether we need a single -rpath flag with a separated argument.
24994 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24995
24996 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24997 # resulting binary.
24998 hardcode_direct=$hardcode_direct_RC
24999
25000 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25001 # resulting binary.
25002 hardcode_minus_L=$hardcode_minus_L_RC
25003
25004 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25005 # the resulting binary.
25006 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25007
25008 # Set to yes if building a shared library automatically hardcodes DIR into the library
25009 # and all subsequent libraries and executables linked against it.
25010 hardcode_automatic=$hardcode_automatic_RC
25011
25012 # Variables whose values should be saved in libtool wrapper scripts and
25013 # restored at relink time.
25014 variables_saved_for_relink="$variables_saved_for_relink"
25015
25016 # Whether libtool must link a program against all its dependency libraries.
25017 link_all_deplibs=$link_all_deplibs_RC
25018
25019 # Compile-time system search path for libraries
25020 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25021
25022 # Run-time system search path for libraries
25023 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25024
25025 # Fix the shell variable \$srcfile for the compiler.
25026 fix_srcfile_path="$fix_srcfile_path_RC"
25027
25028 # Set to yes if exported symbols are required.
25029 always_export_symbols=$always_export_symbols_RC
25030
25031 # The commands to list exported symbols.
25032 export_symbols_cmds=$lt_export_symbols_cmds_RC
25033
25034 # The commands to extract the exported symbol list from a shared archive.
25035 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25036
25037 # Symbols that should not be listed in the preloaded symbols.
25038 exclude_expsyms=$lt_exclude_expsyms_RC
25039
25040 # Symbols that must always be exported.
25041 include_expsyms=$lt_include_expsyms_RC
25042
25043 # ### END LIBTOOL TAG CONFIG: $tagname
25044
25045 __EOF__
25046
25047
25048 else
25049   # If there is no Makefile yet, we rely on a make rule to execute
25050   # `config.status --recheck' to rerun these tests and create the
25051   # libtool script then.
25052   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25053   if test -f "$ltmain_in"; then
25054     test -f Makefile && make "$ltmain"
25055   fi
25056 fi
25057
25058
25059 ac_ext=c
25060 ac_cpp='$CPP $CPPFLAGS'
25061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25064
25065 CC="$lt_save_CC"
25066
25067         ;;
25068
25069       *)
25070         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25071 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25072    { (exit 1); exit 1; }; }
25073         ;;
25074       esac
25075
25076       # Append the new tag name to the list of available tags.
25077       if test -n "$tagname" ; then
25078       available_tags="$available_tags $tagname"
25079     fi
25080     fi
25081   done
25082   IFS="$lt_save_ifs"
25083
25084   # Now substitute the updated list of available tags.
25085   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25086     mv "${ofile}T" "$ofile"
25087     chmod +x "$ofile"
25088   else
25089     rm -f "${ofile}T"
25090     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25091 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25092    { (exit 1); exit 1; }; }
25093   fi
25094 fi
25095
25096
25097
25098 # This can be used to rebuild libtool when needed
25099 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25100
25101 # Always use our own libtool.
25102 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
25103
25104 # Prevent multiple expansion
25105
25106
25107
25108
25109
25110
25111
25112
25113
25114
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
25125
25126 if test "$lt_cv_dlopen_self" = "yes" ; then
25127
25128 cat >>confdefs.h <<\_ACEOF
25129 #define CAN_DLOPEN_SELF 1
25130 _ACEOF
25131
25132 fi
25133
25134 etags_version=`$ETAGS --version 2>&1`
25135 case "$etags_version" in
25136         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
25137         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
25138         *) ETAGSFLAGS="" ;;
25139 esac
25140 ETAGSFLAGS=$ETAGSFLAGS
25141
25142
25143 if test "$WITH_LLVMGCCDIR" = "default" ; then
25144   LLVMGCC="llvm-gcc${EXEEXT}"
25145   LLVMGXX="llvm-g++${EXEEXT}"
25146   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25147 set dummy $LLVMGCC; ac_word=$2
25148 echo "$as_me:$LINENO: checking for $ac_word" >&5
25149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25150 if test "${ac_cv_path_LLVMGCC+set}" = set; then
25151   echo $ECHO_N "(cached) $ECHO_C" >&6
25152 else
25153   case $LLVMGCC in
25154   [\\/]* | ?:[\\/]*)
25155   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25156   ;;
25157   *)
25158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25159 for as_dir in $PATH
25160 do
25161   IFS=$as_save_IFS
25162   test -z "$as_dir" && as_dir=.
25163   for ac_exec_ext in '' $ac_executable_extensions; do
25164   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25165     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25167     break 2
25168   fi
25169 done
25170 done
25171
25172   ;;
25173 esac
25174 fi
25175 LLVMGCC=$ac_cv_path_LLVMGCC
25176
25177 if test -n "$LLVMGCC"; then
25178   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25179 echo "${ECHO_T}$LLVMGCC" >&6
25180 else
25181   echo "$as_me:$LINENO: result: no" >&5
25182 echo "${ECHO_T}no" >&6
25183 fi
25184
25185   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25186 set dummy $LLVMGXX; ac_word=$2
25187 echo "$as_me:$LINENO: checking for $ac_word" >&5
25188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25189 if test "${ac_cv_path_LLVMGXX+set}" = set; then
25190   echo $ECHO_N "(cached) $ECHO_C" >&6
25191 else
25192   case $LLVMGXX in
25193   [\\/]* | ?:[\\/]*)
25194   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25195   ;;
25196   *)
25197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25198 for as_dir in $PATH
25199 do
25200   IFS=$as_save_IFS
25201   test -z "$as_dir" && as_dir=.
25202   for ac_exec_ext in '' $ac_executable_extensions; do
25203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25204     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25206     break 2
25207   fi
25208 done
25209 done
25210
25211   ;;
25212 esac
25213 fi
25214 LLVMGXX=$ac_cv_path_LLVMGXX
25215
25216 if test -n "$LLVMGXX"; then
25217   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25218 echo "${ECHO_T}$LLVMGXX" >&6
25219 else
25220   echo "$as_me:$LINENO: result: no" >&5
25221 echo "${ECHO_T}no" >&6
25222 fi
25223
25224 else
25225   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25226   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25227   LLVMGCC=$LLVMGCC
25228
25229   LLVMGXX=$LLVMGXX
25230
25231 fi
25232
25233 echo "$as_me:$LINENO: checking tool compatibility" >&5
25234 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
25235
25236 ICC=no
25237 IXX=no
25238 case $CC in
25239   icc*|icpc*)
25240     ICC=yes
25241     IXX=yes
25242     ;;
25243    *)
25244     ;;
25245 esac
25246
25247 if test "$GCC" != "yes" && test "$ICC" != "yes"
25248 then
25249   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25250 echo "$as_me: error: gcc|icc required but not found" >&2;}
25251    { (exit 1); exit 1; }; }
25252 fi
25253
25254 if test "$GXX" != "yes" && test "$IXX" != "yes"
25255 then
25256   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25257 echo "$as_me: error: g++|icc required but not found" >&2;}
25258    { (exit 1); exit 1; }; }
25259 fi
25260
25261 if test "$GCC" = "yes"
25262 then
25263   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
25264   if test "$gccmajor" -lt "3"
25265   then
25266     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25267 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25268    { (exit 1); exit 1; }; }
25269   fi
25270 fi
25271
25272 if test -z "$llvm_cv_gnu_make_command"
25273 then
25274   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25275 echo "$as_me: error: GNU Make required but not found" >&2;}
25276    { (exit 1); exit 1; }; }
25277 fi
25278
25279 echo "$as_me:$LINENO: result: ok" >&5
25280 echo "${ECHO_T}ok" >&6
25281
25282
25283
25284 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25285 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25286 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25287   echo $ECHO_N "(cached) $ECHO_C" >&6
25288 else
25289   ac_check_lib_save_LIBS=$LIBS
25290 LIBS="-lelf  $LIBS"
25291 cat >conftest.$ac_ext <<_ACEOF
25292 /* confdefs.h.  */
25293 _ACEOF
25294 cat confdefs.h >>conftest.$ac_ext
25295 cat >>conftest.$ac_ext <<_ACEOF
25296 /* end confdefs.h.  */
25297
25298 /* Override any gcc2 internal prototype to avoid an error.  */
25299 #ifdef __cplusplus
25300 extern "C"
25301 #endif
25302 /* We use char because int might match the return type of a gcc2
25303    builtin and then its argument prototype would still apply.  */
25304 char elf_begin ();
25305 int
25306 main ()
25307 {
25308 elf_begin ();
25309   ;
25310   return 0;
25311 }
25312 _ACEOF
25313 rm -f conftest.$ac_objext conftest$ac_exeext
25314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25315   (eval $ac_link) 2>conftest.er1
25316   ac_status=$?
25317   grep -v '^ *+' conftest.er1 >conftest.err
25318   rm -f conftest.er1
25319   cat conftest.err >&5
25320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321   (exit $ac_status); } &&
25322          { ac_try='test -z "$ac_c_werror_flag"
25323                          || test ! -s conftest.err'
25324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25325   (eval $ac_try) 2>&5
25326   ac_status=$?
25327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328   (exit $ac_status); }; } &&
25329          { ac_try='test -s conftest$ac_exeext'
25330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25331   (eval $ac_try) 2>&5
25332   ac_status=$?
25333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334   (exit $ac_status); }; }; then
25335   ac_cv_lib_elf_elf_begin=yes
25336 else
25337   echo "$as_me: failed program was:" >&5
25338 sed 's/^/| /' conftest.$ac_ext >&5
25339
25340 ac_cv_lib_elf_elf_begin=no
25341 fi
25342 rm -f conftest.err conftest.$ac_objext \
25343       conftest$ac_exeext conftest.$ac_ext
25344 LIBS=$ac_check_lib_save_LIBS
25345 fi
25346 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25347 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25348 if test $ac_cv_lib_elf_elf_begin = yes; then
25349   cat >>confdefs.h <<_ACEOF
25350 #define HAVE_LIBELF 1
25351 _ACEOF
25352
25353   LIBS="-lelf $LIBS"
25354
25355 fi
25356
25357
25358 echo "$as_me:$LINENO: checking for sin in -lm" >&5
25359 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25360 if test "${ac_cv_lib_m_sin+set}" = set; then
25361   echo $ECHO_N "(cached) $ECHO_C" >&6
25362 else
25363   ac_check_lib_save_LIBS=$LIBS
25364 LIBS="-lm  $LIBS"
25365 cat >conftest.$ac_ext <<_ACEOF
25366 /* confdefs.h.  */
25367 _ACEOF
25368 cat confdefs.h >>conftest.$ac_ext
25369 cat >>conftest.$ac_ext <<_ACEOF
25370 /* end confdefs.h.  */
25371
25372 /* Override any gcc2 internal prototype to avoid an error.  */
25373 #ifdef __cplusplus
25374 extern "C"
25375 #endif
25376 /* We use char because int might match the return type of a gcc2
25377    builtin and then its argument prototype would still apply.  */
25378 char sin ();
25379 int
25380 main ()
25381 {
25382 sin ();
25383   ;
25384   return 0;
25385 }
25386 _ACEOF
25387 rm -f conftest.$ac_objext conftest$ac_exeext
25388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25389   (eval $ac_link) 2>conftest.er1
25390   ac_status=$?
25391   grep -v '^ *+' conftest.er1 >conftest.err
25392   rm -f conftest.er1
25393   cat conftest.err >&5
25394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395   (exit $ac_status); } &&
25396          { ac_try='test -z "$ac_c_werror_flag"
25397                          || test ! -s conftest.err'
25398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25399   (eval $ac_try) 2>&5
25400   ac_status=$?
25401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402   (exit $ac_status); }; } &&
25403          { ac_try='test -s conftest$ac_exeext'
25404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25405   (eval $ac_try) 2>&5
25406   ac_status=$?
25407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408   (exit $ac_status); }; }; then
25409   ac_cv_lib_m_sin=yes
25410 else
25411   echo "$as_me: failed program was:" >&5
25412 sed 's/^/| /' conftest.$ac_ext >&5
25413
25414 ac_cv_lib_m_sin=no
25415 fi
25416 rm -f conftest.err conftest.$ac_objext \
25417       conftest$ac_exeext conftest.$ac_ext
25418 LIBS=$ac_check_lib_save_LIBS
25419 fi
25420 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25421 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25422 if test $ac_cv_lib_m_sin = yes; then
25423   cat >>confdefs.h <<_ACEOF
25424 #define HAVE_LIBM 1
25425 _ACEOF
25426
25427   LIBS="-lm $LIBS"
25428
25429 fi
25430
25431 if test "$llvm_cv_os_type" == "MingW" ; then
25432
25433 echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25434 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6
25435 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25436   echo $ECHO_N "(cached) $ECHO_C" >&6
25437 else
25438   ac_check_lib_save_LIBS=$LIBS
25439 LIBS="-limagehlp  $LIBS"
25440 cat >conftest.$ac_ext <<_ACEOF
25441 /* confdefs.h.  */
25442 _ACEOF
25443 cat confdefs.h >>conftest.$ac_ext
25444 cat >>conftest.$ac_ext <<_ACEOF
25445 /* end confdefs.h.  */
25446
25447
25448 int
25449 main ()
25450 {
25451 main ();
25452   ;
25453   return 0;
25454 }
25455 _ACEOF
25456 rm -f conftest.$ac_objext conftest$ac_exeext
25457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25458   (eval $ac_link) 2>conftest.er1
25459   ac_status=$?
25460   grep -v '^ *+' conftest.er1 >conftest.err
25461   rm -f conftest.er1
25462   cat conftest.err >&5
25463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464   (exit $ac_status); } &&
25465          { ac_try='test -z "$ac_c_werror_flag"
25466                          || test ! -s conftest.err'
25467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25468   (eval $ac_try) 2>&5
25469   ac_status=$?
25470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471   (exit $ac_status); }; } &&
25472          { ac_try='test -s conftest$ac_exeext'
25473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25474   (eval $ac_try) 2>&5
25475   ac_status=$?
25476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477   (exit $ac_status); }; }; then
25478   ac_cv_lib_imagehlp_main=yes
25479 else
25480   echo "$as_me: failed program was:" >&5
25481 sed 's/^/| /' conftest.$ac_ext >&5
25482
25483 ac_cv_lib_imagehlp_main=no
25484 fi
25485 rm -f conftest.err conftest.$ac_objext \
25486       conftest$ac_exeext conftest.$ac_ext
25487 LIBS=$ac_check_lib_save_LIBS
25488 fi
25489 echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25490 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6
25491 if test $ac_cv_lib_imagehlp_main = yes; then
25492   cat >>confdefs.h <<_ACEOF
25493 #define HAVE_LIBIMAGEHLP 1
25494 _ACEOF
25495
25496   LIBS="-limagehlp $LIBS"
25497
25498 fi
25499
25500
25501 echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25502 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6
25503 if test "${ac_cv_lib_psapi_main+set}" = set; then
25504   echo $ECHO_N "(cached) $ECHO_C" >&6
25505 else
25506   ac_check_lib_save_LIBS=$LIBS
25507 LIBS="-lpsapi  $LIBS"
25508 cat >conftest.$ac_ext <<_ACEOF
25509 /* confdefs.h.  */
25510 _ACEOF
25511 cat confdefs.h >>conftest.$ac_ext
25512 cat >>conftest.$ac_ext <<_ACEOF
25513 /* end confdefs.h.  */
25514
25515
25516 int
25517 main ()
25518 {
25519 main ();
25520   ;
25521   return 0;
25522 }
25523 _ACEOF
25524 rm -f conftest.$ac_objext conftest$ac_exeext
25525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25526   (eval $ac_link) 2>conftest.er1
25527   ac_status=$?
25528   grep -v '^ *+' conftest.er1 >conftest.err
25529   rm -f conftest.er1
25530   cat conftest.err >&5
25531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532   (exit $ac_status); } &&
25533          { ac_try='test -z "$ac_c_werror_flag"
25534                          || test ! -s conftest.err'
25535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25536   (eval $ac_try) 2>&5
25537   ac_status=$?
25538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539   (exit $ac_status); }; } &&
25540          { ac_try='test -s conftest$ac_exeext'
25541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25542   (eval $ac_try) 2>&5
25543   ac_status=$?
25544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545   (exit $ac_status); }; }; then
25546   ac_cv_lib_psapi_main=yes
25547 else
25548   echo "$as_me: failed program was:" >&5
25549 sed 's/^/| /' conftest.$ac_ext >&5
25550
25551 ac_cv_lib_psapi_main=no
25552 fi
25553 rm -f conftest.err conftest.$ac_objext \
25554       conftest$ac_exeext conftest.$ac_ext
25555 LIBS=$ac_check_lib_save_LIBS
25556 fi
25557 echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25558 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6
25559 if test $ac_cv_lib_psapi_main = yes; then
25560   cat >>confdefs.h <<_ACEOF
25561 #define HAVE_LIBPSAPI 1
25562 _ACEOF
25563
25564   LIBS="-lpsapi $LIBS"
25565
25566 fi
25567
25568 fi
25569
25570 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25571 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25572 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25573   echo $ECHO_N "(cached) $ECHO_C" >&6
25574 else
25575   ac_func_search_save_LIBS=$LIBS
25576 ac_cv_search_lt_dlopen=no
25577 cat >conftest.$ac_ext <<_ACEOF
25578 /* confdefs.h.  */
25579 _ACEOF
25580 cat confdefs.h >>conftest.$ac_ext
25581 cat >>conftest.$ac_ext <<_ACEOF
25582 /* end confdefs.h.  */
25583
25584 /* Override any gcc2 internal prototype to avoid an error.  */
25585 #ifdef __cplusplus
25586 extern "C"
25587 #endif
25588 /* We use char because int might match the return type of a gcc2
25589    builtin and then its argument prototype would still apply.  */
25590 char lt_dlopen ();
25591 int
25592 main ()
25593 {
25594 lt_dlopen ();
25595   ;
25596   return 0;
25597 }
25598 _ACEOF
25599 rm -f conftest.$ac_objext conftest$ac_exeext
25600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25601   (eval $ac_link) 2>conftest.er1
25602   ac_status=$?
25603   grep -v '^ *+' conftest.er1 >conftest.err
25604   rm -f conftest.er1
25605   cat conftest.err >&5
25606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607   (exit $ac_status); } &&
25608          { ac_try='test -z "$ac_c_werror_flag"
25609                          || test ! -s conftest.err'
25610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25611   (eval $ac_try) 2>&5
25612   ac_status=$?
25613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614   (exit $ac_status); }; } &&
25615          { ac_try='test -s conftest$ac_exeext'
25616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25617   (eval $ac_try) 2>&5
25618   ac_status=$?
25619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620   (exit $ac_status); }; }; then
25621   ac_cv_search_lt_dlopen="none required"
25622 else
25623   echo "$as_me: failed program was:" >&5
25624 sed 's/^/| /' conftest.$ac_ext >&5
25625
25626 fi
25627 rm -f conftest.err conftest.$ac_objext \
25628       conftest$ac_exeext conftest.$ac_ext
25629 if test "$ac_cv_search_lt_dlopen" = no; then
25630   for ac_lib in ltdl; do
25631     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25632     cat >conftest.$ac_ext <<_ACEOF
25633 /* confdefs.h.  */
25634 _ACEOF
25635 cat confdefs.h >>conftest.$ac_ext
25636 cat >>conftest.$ac_ext <<_ACEOF
25637 /* end confdefs.h.  */
25638
25639 /* Override any gcc2 internal prototype to avoid an error.  */
25640 #ifdef __cplusplus
25641 extern "C"
25642 #endif
25643 /* We use char because int might match the return type of a gcc2
25644    builtin and then its argument prototype would still apply.  */
25645 char lt_dlopen ();
25646 int
25647 main ()
25648 {
25649 lt_dlopen ();
25650   ;
25651   return 0;
25652 }
25653 _ACEOF
25654 rm -f conftest.$ac_objext conftest$ac_exeext
25655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25656   (eval $ac_link) 2>conftest.er1
25657   ac_status=$?
25658   grep -v '^ *+' conftest.er1 >conftest.err
25659   rm -f conftest.er1
25660   cat conftest.err >&5
25661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662   (exit $ac_status); } &&
25663          { ac_try='test -z "$ac_c_werror_flag"
25664                          || test ! -s conftest.err'
25665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25666   (eval $ac_try) 2>&5
25667   ac_status=$?
25668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669   (exit $ac_status); }; } &&
25670          { ac_try='test -s conftest$ac_exeext'
25671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25672   (eval $ac_try) 2>&5
25673   ac_status=$?
25674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675   (exit $ac_status); }; }; then
25676   ac_cv_search_lt_dlopen="-l$ac_lib"
25677 break
25678 else
25679   echo "$as_me: failed program was:" >&5
25680 sed 's/^/| /' conftest.$ac_ext >&5
25681
25682 fi
25683 rm -f conftest.err conftest.$ac_objext \
25684       conftest$ac_exeext conftest.$ac_ext
25685   done
25686 fi
25687 LIBS=$ac_func_search_save_LIBS
25688 fi
25689 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25690 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25691 if test "$ac_cv_search_lt_dlopen" != no; then
25692   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25693
25694 cat >>confdefs.h <<\_ACEOF
25695 #define HAVE_LT_DLOPEN 1
25696 _ACEOF
25697
25698 else
25699   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25700                            not be available" >&5
25701 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25702                            not be available" >&2;}
25703 fi
25704
25705
25706 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25707 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25708 if test "${ac_cv_search_dlopen+set}" = set; then
25709   echo $ECHO_N "(cached) $ECHO_C" >&6
25710 else
25711   ac_func_search_save_LIBS=$LIBS
25712 ac_cv_search_dlopen=no
25713 cat >conftest.$ac_ext <<_ACEOF
25714 /* confdefs.h.  */
25715 _ACEOF
25716 cat confdefs.h >>conftest.$ac_ext
25717 cat >>conftest.$ac_ext <<_ACEOF
25718 /* end confdefs.h.  */
25719
25720 /* Override any gcc2 internal prototype to avoid an error.  */
25721 #ifdef __cplusplus
25722 extern "C"
25723 #endif
25724 /* We use char because int might match the return type of a gcc2
25725    builtin and then its argument prototype would still apply.  */
25726 char dlopen ();
25727 int
25728 main ()
25729 {
25730 dlopen ();
25731   ;
25732   return 0;
25733 }
25734 _ACEOF
25735 rm -f conftest.$ac_objext conftest$ac_exeext
25736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25737   (eval $ac_link) 2>conftest.er1
25738   ac_status=$?
25739   grep -v '^ *+' conftest.er1 >conftest.err
25740   rm -f conftest.er1
25741   cat conftest.err >&5
25742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743   (exit $ac_status); } &&
25744          { ac_try='test -z "$ac_c_werror_flag"
25745                          || test ! -s conftest.err'
25746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25747   (eval $ac_try) 2>&5
25748   ac_status=$?
25749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750   (exit $ac_status); }; } &&
25751          { ac_try='test -s conftest$ac_exeext'
25752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25753   (eval $ac_try) 2>&5
25754   ac_status=$?
25755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756   (exit $ac_status); }; }; then
25757   ac_cv_search_dlopen="none required"
25758 else
25759   echo "$as_me: failed program was:" >&5
25760 sed 's/^/| /' conftest.$ac_ext >&5
25761
25762 fi
25763 rm -f conftest.err conftest.$ac_objext \
25764       conftest$ac_exeext conftest.$ac_ext
25765 if test "$ac_cv_search_dlopen" = no; then
25766   for ac_lib in dl; do
25767     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25768     cat >conftest.$ac_ext <<_ACEOF
25769 /* confdefs.h.  */
25770 _ACEOF
25771 cat confdefs.h >>conftest.$ac_ext
25772 cat >>conftest.$ac_ext <<_ACEOF
25773 /* end confdefs.h.  */
25774
25775 /* Override any gcc2 internal prototype to avoid an error.  */
25776 #ifdef __cplusplus
25777 extern "C"
25778 #endif
25779 /* We use char because int might match the return type of a gcc2
25780    builtin and then its argument prototype would still apply.  */
25781 char dlopen ();
25782 int
25783 main ()
25784 {
25785 dlopen ();
25786   ;
25787   return 0;
25788 }
25789 _ACEOF
25790 rm -f conftest.$ac_objext conftest$ac_exeext
25791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25792   (eval $ac_link) 2>conftest.er1
25793   ac_status=$?
25794   grep -v '^ *+' conftest.er1 >conftest.err
25795   rm -f conftest.er1
25796   cat conftest.err >&5
25797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25798   (exit $ac_status); } &&
25799          { ac_try='test -z "$ac_c_werror_flag"
25800                          || test ! -s conftest.err'
25801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25802   (eval $ac_try) 2>&5
25803   ac_status=$?
25804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25805   (exit $ac_status); }; } &&
25806          { ac_try='test -s conftest$ac_exeext'
25807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25808   (eval $ac_try) 2>&5
25809   ac_status=$?
25810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811   (exit $ac_status); }; }; then
25812   ac_cv_search_dlopen="-l$ac_lib"
25813 break
25814 else
25815   echo "$as_me: failed program was:" >&5
25816 sed 's/^/| /' conftest.$ac_ext >&5
25817
25818 fi
25819 rm -f conftest.err conftest.$ac_objext \
25820       conftest$ac_exeext conftest.$ac_ext
25821   done
25822 fi
25823 LIBS=$ac_func_search_save_LIBS
25824 fi
25825 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25826 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25827 if test "$ac_cv_search_dlopen" != no; then
25828   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25829
25830 cat >>confdefs.h <<\_ACEOF
25831 #define HAVE_DLOPEN 1
25832 _ACEOF
25833
25834 else
25835   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25836 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25837 fi
25838
25839
25840 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25841 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25842 if test "${ac_cv_search_mallinfo+set}" = set; then
25843   echo $ECHO_N "(cached) $ECHO_C" >&6
25844 else
25845   ac_func_search_save_LIBS=$LIBS
25846 ac_cv_search_mallinfo=no
25847 cat >conftest.$ac_ext <<_ACEOF
25848 /* confdefs.h.  */
25849 _ACEOF
25850 cat confdefs.h >>conftest.$ac_ext
25851 cat >>conftest.$ac_ext <<_ACEOF
25852 /* end confdefs.h.  */
25853
25854 /* Override any gcc2 internal prototype to avoid an error.  */
25855 #ifdef __cplusplus
25856 extern "C"
25857 #endif
25858 /* We use char because int might match the return type of a gcc2
25859    builtin and then its argument prototype would still apply.  */
25860 char mallinfo ();
25861 int
25862 main ()
25863 {
25864 mallinfo ();
25865   ;
25866   return 0;
25867 }
25868 _ACEOF
25869 rm -f conftest.$ac_objext conftest$ac_exeext
25870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25871   (eval $ac_link) 2>conftest.er1
25872   ac_status=$?
25873   grep -v '^ *+' conftest.er1 >conftest.err
25874   rm -f conftest.er1
25875   cat conftest.err >&5
25876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877   (exit $ac_status); } &&
25878          { ac_try='test -z "$ac_c_werror_flag"
25879                          || test ! -s conftest.err'
25880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25881   (eval $ac_try) 2>&5
25882   ac_status=$?
25883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884   (exit $ac_status); }; } &&
25885          { ac_try='test -s conftest$ac_exeext'
25886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25887   (eval $ac_try) 2>&5
25888   ac_status=$?
25889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25890   (exit $ac_status); }; }; then
25891   ac_cv_search_mallinfo="none required"
25892 else
25893   echo "$as_me: failed program was:" >&5
25894 sed 's/^/| /' conftest.$ac_ext >&5
25895
25896 fi
25897 rm -f conftest.err conftest.$ac_objext \
25898       conftest$ac_exeext conftest.$ac_ext
25899 if test "$ac_cv_search_mallinfo" = no; then
25900   for ac_lib in malloc; do
25901     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25902     cat >conftest.$ac_ext <<_ACEOF
25903 /* confdefs.h.  */
25904 _ACEOF
25905 cat confdefs.h >>conftest.$ac_ext
25906 cat >>conftest.$ac_ext <<_ACEOF
25907 /* end confdefs.h.  */
25908
25909 /* Override any gcc2 internal prototype to avoid an error.  */
25910 #ifdef __cplusplus
25911 extern "C"
25912 #endif
25913 /* We use char because int might match the return type of a gcc2
25914    builtin and then its argument prototype would still apply.  */
25915 char mallinfo ();
25916 int
25917 main ()
25918 {
25919 mallinfo ();
25920   ;
25921   return 0;
25922 }
25923 _ACEOF
25924 rm -f conftest.$ac_objext conftest$ac_exeext
25925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25926   (eval $ac_link) 2>conftest.er1
25927   ac_status=$?
25928   grep -v '^ *+' conftest.er1 >conftest.err
25929   rm -f conftest.er1
25930   cat conftest.err >&5
25931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25932   (exit $ac_status); } &&
25933          { ac_try='test -z "$ac_c_werror_flag"
25934                          || test ! -s conftest.err'
25935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25936   (eval $ac_try) 2>&5
25937   ac_status=$?
25938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25939   (exit $ac_status); }; } &&
25940          { ac_try='test -s conftest$ac_exeext'
25941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25942   (eval $ac_try) 2>&5
25943   ac_status=$?
25944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945   (exit $ac_status); }; }; then
25946   ac_cv_search_mallinfo="-l$ac_lib"
25947 break
25948 else
25949   echo "$as_me: failed program was:" >&5
25950 sed 's/^/| /' conftest.$ac_ext >&5
25951
25952 fi
25953 rm -f conftest.err conftest.$ac_objext \
25954       conftest$ac_exeext conftest.$ac_ext
25955   done
25956 fi
25957 LIBS=$ac_func_search_save_LIBS
25958 fi
25959 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25960 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25961 if test "$ac_cv_search_mallinfo" != no; then
25962   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25963
25964 cat >>confdefs.h <<\_ACEOF
25965 #define HAVE_MALLINFO 1
25966 _ACEOF
25967
25968 fi
25969
25970
25971 if test "$ENABLE_THREADS" -eq 1 ; then
25972
25973 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25974 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25975 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25976   echo $ECHO_N "(cached) $ECHO_C" >&6
25977 else
25978   ac_check_lib_save_LIBS=$LIBS
25979 LIBS="-lpthread  $LIBS"
25980 cat >conftest.$ac_ext <<_ACEOF
25981 /* confdefs.h.  */
25982 _ACEOF
25983 cat confdefs.h >>conftest.$ac_ext
25984 cat >>conftest.$ac_ext <<_ACEOF
25985 /* end confdefs.h.  */
25986
25987 /* Override any gcc2 internal prototype to avoid an error.  */
25988 #ifdef __cplusplus
25989 extern "C"
25990 #endif
25991 /* We use char because int might match the return type of a gcc2
25992    builtin and then its argument prototype would still apply.  */
25993 char pthread_mutex_init ();
25994 int
25995 main ()
25996 {
25997 pthread_mutex_init ();
25998   ;
25999   return 0;
26000 }
26001 _ACEOF
26002 rm -f conftest.$ac_objext conftest$ac_exeext
26003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26004   (eval $ac_link) 2>conftest.er1
26005   ac_status=$?
26006   grep -v '^ *+' conftest.er1 >conftest.err
26007   rm -f conftest.er1
26008   cat conftest.err >&5
26009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010   (exit $ac_status); } &&
26011          { ac_try='test -z "$ac_c_werror_flag"
26012                          || test ! -s conftest.err'
26013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26014   (eval $ac_try) 2>&5
26015   ac_status=$?
26016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017   (exit $ac_status); }; } &&
26018          { ac_try='test -s conftest$ac_exeext'
26019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26020   (eval $ac_try) 2>&5
26021   ac_status=$?
26022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26023   (exit $ac_status); }; }; then
26024   ac_cv_lib_pthread_pthread_mutex_init=yes
26025 else
26026   echo "$as_me: failed program was:" >&5
26027 sed 's/^/| /' conftest.$ac_ext >&5
26028
26029 ac_cv_lib_pthread_pthread_mutex_init=no
26030 fi
26031 rm -f conftest.err conftest.$ac_objext \
26032       conftest$ac_exeext conftest.$ac_ext
26033 LIBS=$ac_check_lib_save_LIBS
26034 fi
26035 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26036 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
26037 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26038   cat >>confdefs.h <<_ACEOF
26039 #define HAVE_LIBPTHREAD 1
26040 _ACEOF
26041
26042   LIBS="-lpthread $LIBS"
26043
26044 fi
26045
26046   echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26047 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
26048 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26049   echo $ECHO_N "(cached) $ECHO_C" >&6
26050 else
26051   ac_func_search_save_LIBS=$LIBS
26052 ac_cv_search_pthread_mutex_lock=no
26053 cat >conftest.$ac_ext <<_ACEOF
26054 /* confdefs.h.  */
26055 _ACEOF
26056 cat confdefs.h >>conftest.$ac_ext
26057 cat >>conftest.$ac_ext <<_ACEOF
26058 /* end confdefs.h.  */
26059
26060 /* Override any gcc2 internal prototype to avoid an error.  */
26061 #ifdef __cplusplus
26062 extern "C"
26063 #endif
26064 /* We use char because int might match the return type of a gcc2
26065    builtin and then its argument prototype would still apply.  */
26066 char pthread_mutex_lock ();
26067 int
26068 main ()
26069 {
26070 pthread_mutex_lock ();
26071   ;
26072   return 0;
26073 }
26074 _ACEOF
26075 rm -f conftest.$ac_objext conftest$ac_exeext
26076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26077   (eval $ac_link) 2>conftest.er1
26078   ac_status=$?
26079   grep -v '^ *+' conftest.er1 >conftest.err
26080   rm -f conftest.er1
26081   cat conftest.err >&5
26082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083   (exit $ac_status); } &&
26084          { ac_try='test -z "$ac_c_werror_flag"
26085                          || test ! -s conftest.err'
26086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26087   (eval $ac_try) 2>&5
26088   ac_status=$?
26089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090   (exit $ac_status); }; } &&
26091          { ac_try='test -s conftest$ac_exeext'
26092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26093   (eval $ac_try) 2>&5
26094   ac_status=$?
26095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096   (exit $ac_status); }; }; then
26097   ac_cv_search_pthread_mutex_lock="none required"
26098 else
26099   echo "$as_me: failed program was:" >&5
26100 sed 's/^/| /' conftest.$ac_ext >&5
26101
26102 fi
26103 rm -f conftest.err conftest.$ac_objext \
26104       conftest$ac_exeext conftest.$ac_ext
26105 if test "$ac_cv_search_pthread_mutex_lock" = no; then
26106   for ac_lib in pthread; do
26107     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26108     cat >conftest.$ac_ext <<_ACEOF
26109 /* confdefs.h.  */
26110 _ACEOF
26111 cat confdefs.h >>conftest.$ac_ext
26112 cat >>conftest.$ac_ext <<_ACEOF
26113 /* end confdefs.h.  */
26114
26115 /* Override any gcc2 internal prototype to avoid an error.  */
26116 #ifdef __cplusplus
26117 extern "C"
26118 #endif
26119 /* We use char because int might match the return type of a gcc2
26120    builtin and then its argument prototype would still apply.  */
26121 char pthread_mutex_lock ();
26122 int
26123 main ()
26124 {
26125 pthread_mutex_lock ();
26126   ;
26127   return 0;
26128 }
26129 _ACEOF
26130 rm -f conftest.$ac_objext conftest$ac_exeext
26131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26132   (eval $ac_link) 2>conftest.er1
26133   ac_status=$?
26134   grep -v '^ *+' conftest.er1 >conftest.err
26135   rm -f conftest.er1
26136   cat conftest.err >&5
26137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138   (exit $ac_status); } &&
26139          { ac_try='test -z "$ac_c_werror_flag"
26140                          || test ! -s conftest.err'
26141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26142   (eval $ac_try) 2>&5
26143   ac_status=$?
26144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145   (exit $ac_status); }; } &&
26146          { ac_try='test -s conftest$ac_exeext'
26147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148   (eval $ac_try) 2>&5
26149   ac_status=$?
26150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151   (exit $ac_status); }; }; then
26152   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
26153 break
26154 else
26155   echo "$as_me: failed program was:" >&5
26156 sed 's/^/| /' conftest.$ac_ext >&5
26157
26158 fi
26159 rm -f conftest.err conftest.$ac_objext \
26160       conftest$ac_exeext conftest.$ac_ext
26161   done
26162 fi
26163 LIBS=$ac_func_search_save_LIBS
26164 fi
26165 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26166 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
26167 if test "$ac_cv_search_pthread_mutex_lock" != no; then
26168   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
26169
26170 cat >>confdefs.h <<\_ACEOF
26171 #define HAVE_PTHREAD_MUTEX_LOCK 1
26172 _ACEOF
26173
26174 fi
26175
26176 fi
26177
26178
26179
26180
26181
26182
26183
26184 ac_header_dirent=no
26185 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26186   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26187 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26188 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
26189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26190   echo $ECHO_N "(cached) $ECHO_C" >&6
26191 else
26192   cat >conftest.$ac_ext <<_ACEOF
26193 /* confdefs.h.  */
26194 _ACEOF
26195 cat confdefs.h >>conftest.$ac_ext
26196 cat >>conftest.$ac_ext <<_ACEOF
26197 /* end confdefs.h.  */
26198 #include <sys/types.h>
26199 #include <$ac_hdr>
26200
26201 int
26202 main ()
26203 {
26204 if ((DIR *) 0)
26205 return 0;
26206   ;
26207   return 0;
26208 }
26209 _ACEOF
26210 rm -f conftest.$ac_objext
26211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26212   (eval $ac_compile) 2>conftest.er1
26213   ac_status=$?
26214   grep -v '^ *+' conftest.er1 >conftest.err
26215   rm -f conftest.er1
26216   cat conftest.err >&5
26217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26218   (exit $ac_status); } &&
26219          { ac_try='test -z "$ac_c_werror_flag"
26220                          || test ! -s conftest.err'
26221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26222   (eval $ac_try) 2>&5
26223   ac_status=$?
26224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225   (exit $ac_status); }; } &&
26226          { ac_try='test -s conftest.$ac_objext'
26227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26228   (eval $ac_try) 2>&5
26229   ac_status=$?
26230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26231   (exit $ac_status); }; }; then
26232   eval "$as_ac_Header=yes"
26233 else
26234   echo "$as_me: failed program was:" >&5
26235 sed 's/^/| /' conftest.$ac_ext >&5
26236
26237 eval "$as_ac_Header=no"
26238 fi
26239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26240 fi
26241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26244   cat >>confdefs.h <<_ACEOF
26245 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26246 _ACEOF
26247
26248 ac_header_dirent=$ac_hdr; break
26249 fi
26250
26251 done
26252 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26253 if test $ac_header_dirent = dirent.h; then
26254   echo "$as_me:$LINENO: checking for library containing opendir" >&5
26255 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26256 if test "${ac_cv_search_opendir+set}" = set; then
26257   echo $ECHO_N "(cached) $ECHO_C" >&6
26258 else
26259   ac_func_search_save_LIBS=$LIBS
26260 ac_cv_search_opendir=no
26261 cat >conftest.$ac_ext <<_ACEOF
26262 /* confdefs.h.  */
26263 _ACEOF
26264 cat confdefs.h >>conftest.$ac_ext
26265 cat >>conftest.$ac_ext <<_ACEOF
26266 /* end confdefs.h.  */
26267
26268 /* Override any gcc2 internal prototype to avoid an error.  */
26269 #ifdef __cplusplus
26270 extern "C"
26271 #endif
26272 /* We use char because int might match the return type of a gcc2
26273    builtin and then its argument prototype would still apply.  */
26274 char opendir ();
26275 int
26276 main ()
26277 {
26278 opendir ();
26279   ;
26280   return 0;
26281 }
26282 _ACEOF
26283 rm -f conftest.$ac_objext conftest$ac_exeext
26284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26285   (eval $ac_link) 2>conftest.er1
26286   ac_status=$?
26287   grep -v '^ *+' conftest.er1 >conftest.err
26288   rm -f conftest.er1
26289   cat conftest.err >&5
26290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291   (exit $ac_status); } &&
26292          { ac_try='test -z "$ac_c_werror_flag"
26293                          || test ! -s conftest.err'
26294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26295   (eval $ac_try) 2>&5
26296   ac_status=$?
26297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26298   (exit $ac_status); }; } &&
26299          { ac_try='test -s conftest$ac_exeext'
26300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26301   (eval $ac_try) 2>&5
26302   ac_status=$?
26303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26304   (exit $ac_status); }; }; then
26305   ac_cv_search_opendir="none required"
26306 else
26307   echo "$as_me: failed program was:" >&5
26308 sed 's/^/| /' conftest.$ac_ext >&5
26309
26310 fi
26311 rm -f conftest.err conftest.$ac_objext \
26312       conftest$ac_exeext conftest.$ac_ext
26313 if test "$ac_cv_search_opendir" = no; then
26314   for ac_lib in dir; do
26315     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26316     cat >conftest.$ac_ext <<_ACEOF
26317 /* confdefs.h.  */
26318 _ACEOF
26319 cat confdefs.h >>conftest.$ac_ext
26320 cat >>conftest.$ac_ext <<_ACEOF
26321 /* end confdefs.h.  */
26322
26323 /* Override any gcc2 internal prototype to avoid an error.  */
26324 #ifdef __cplusplus
26325 extern "C"
26326 #endif
26327 /* We use char because int might match the return type of a gcc2
26328    builtin and then its argument prototype would still apply.  */
26329 char opendir ();
26330 int
26331 main ()
26332 {
26333 opendir ();
26334   ;
26335   return 0;
26336 }
26337 _ACEOF
26338 rm -f conftest.$ac_objext conftest$ac_exeext
26339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26340   (eval $ac_link) 2>conftest.er1
26341   ac_status=$?
26342   grep -v '^ *+' conftest.er1 >conftest.err
26343   rm -f conftest.er1
26344   cat conftest.err >&5
26345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346   (exit $ac_status); } &&
26347          { ac_try='test -z "$ac_c_werror_flag"
26348                          || test ! -s conftest.err'
26349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26350   (eval $ac_try) 2>&5
26351   ac_status=$?
26352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353   (exit $ac_status); }; } &&
26354          { ac_try='test -s conftest$ac_exeext'
26355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26356   (eval $ac_try) 2>&5
26357   ac_status=$?
26358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359   (exit $ac_status); }; }; then
26360   ac_cv_search_opendir="-l$ac_lib"
26361 break
26362 else
26363   echo "$as_me: failed program was:" >&5
26364 sed 's/^/| /' conftest.$ac_ext >&5
26365
26366 fi
26367 rm -f conftest.err conftest.$ac_objext \
26368       conftest$ac_exeext conftest.$ac_ext
26369   done
26370 fi
26371 LIBS=$ac_func_search_save_LIBS
26372 fi
26373 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26374 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26375 if test "$ac_cv_search_opendir" != no; then
26376   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26377
26378 fi
26379
26380 else
26381   echo "$as_me:$LINENO: checking for library containing opendir" >&5
26382 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26383 if test "${ac_cv_search_opendir+set}" = set; then
26384   echo $ECHO_N "(cached) $ECHO_C" >&6
26385 else
26386   ac_func_search_save_LIBS=$LIBS
26387 ac_cv_search_opendir=no
26388 cat >conftest.$ac_ext <<_ACEOF
26389 /* confdefs.h.  */
26390 _ACEOF
26391 cat confdefs.h >>conftest.$ac_ext
26392 cat >>conftest.$ac_ext <<_ACEOF
26393 /* end confdefs.h.  */
26394
26395 /* Override any gcc2 internal prototype to avoid an error.  */
26396 #ifdef __cplusplus
26397 extern "C"
26398 #endif
26399 /* We use char because int might match the return type of a gcc2
26400    builtin and then its argument prototype would still apply.  */
26401 char opendir ();
26402 int
26403 main ()
26404 {
26405 opendir ();
26406   ;
26407   return 0;
26408 }
26409 _ACEOF
26410 rm -f conftest.$ac_objext conftest$ac_exeext
26411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26412   (eval $ac_link) 2>conftest.er1
26413   ac_status=$?
26414   grep -v '^ *+' conftest.er1 >conftest.err
26415   rm -f conftest.er1
26416   cat conftest.err >&5
26417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418   (exit $ac_status); } &&
26419          { ac_try='test -z "$ac_c_werror_flag"
26420                          || test ! -s conftest.err'
26421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26422   (eval $ac_try) 2>&5
26423   ac_status=$?
26424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425   (exit $ac_status); }; } &&
26426          { ac_try='test -s conftest$ac_exeext'
26427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26428   (eval $ac_try) 2>&5
26429   ac_status=$?
26430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431   (exit $ac_status); }; }; then
26432   ac_cv_search_opendir="none required"
26433 else
26434   echo "$as_me: failed program was:" >&5
26435 sed 's/^/| /' conftest.$ac_ext >&5
26436
26437 fi
26438 rm -f conftest.err conftest.$ac_objext \
26439       conftest$ac_exeext conftest.$ac_ext
26440 if test "$ac_cv_search_opendir" = no; then
26441   for ac_lib in x; do
26442     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26443     cat >conftest.$ac_ext <<_ACEOF
26444 /* confdefs.h.  */
26445 _ACEOF
26446 cat confdefs.h >>conftest.$ac_ext
26447 cat >>conftest.$ac_ext <<_ACEOF
26448 /* end confdefs.h.  */
26449
26450 /* Override any gcc2 internal prototype to avoid an error.  */
26451 #ifdef __cplusplus
26452 extern "C"
26453 #endif
26454 /* We use char because int might match the return type of a gcc2
26455    builtin and then its argument prototype would still apply.  */
26456 char opendir ();
26457 int
26458 main ()
26459 {
26460 opendir ();
26461   ;
26462   return 0;
26463 }
26464 _ACEOF
26465 rm -f conftest.$ac_objext conftest$ac_exeext
26466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26467   (eval $ac_link) 2>conftest.er1
26468   ac_status=$?
26469   grep -v '^ *+' conftest.er1 >conftest.err
26470   rm -f conftest.er1
26471   cat conftest.err >&5
26472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473   (exit $ac_status); } &&
26474          { ac_try='test -z "$ac_c_werror_flag"
26475                          || test ! -s conftest.err'
26476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26477   (eval $ac_try) 2>&5
26478   ac_status=$?
26479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480   (exit $ac_status); }; } &&
26481          { ac_try='test -s conftest$ac_exeext'
26482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483   (eval $ac_try) 2>&5
26484   ac_status=$?
26485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486   (exit $ac_status); }; }; then
26487   ac_cv_search_opendir="-l$ac_lib"
26488 break
26489 else
26490   echo "$as_me: failed program was:" >&5
26491 sed 's/^/| /' conftest.$ac_ext >&5
26492
26493 fi
26494 rm -f conftest.err conftest.$ac_objext \
26495       conftest$ac_exeext conftest.$ac_ext
26496   done
26497 fi
26498 LIBS=$ac_func_search_save_LIBS
26499 fi
26500 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26501 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26502 if test "$ac_cv_search_opendir" != no; then
26503   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26504
26505 fi
26506
26507 fi
26508
26509 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26510 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26511 if test "${ac_cv_header_mmap_anon+set}" = set; then
26512   echo $ECHO_N "(cached) $ECHO_C" >&6
26513 else
26514    ac_ext=c
26515 ac_cpp='$CPP $CPPFLAGS'
26516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26519
26520   cat >conftest.$ac_ext <<_ACEOF
26521 /* confdefs.h.  */
26522 _ACEOF
26523 cat confdefs.h >>conftest.$ac_ext
26524 cat >>conftest.$ac_ext <<_ACEOF
26525 /* end confdefs.h.  */
26526 #include <sys/mman.h>
26527 #include <unistd.h>
26528 #include <fcntl.h>
26529 int
26530 main ()
26531 {
26532 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26533   ;
26534   return 0;
26535 }
26536 _ACEOF
26537 rm -f conftest.$ac_objext
26538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26539   (eval $ac_compile) 2>conftest.er1
26540   ac_status=$?
26541   grep -v '^ *+' conftest.er1 >conftest.err
26542   rm -f conftest.er1
26543   cat conftest.err >&5
26544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545   (exit $ac_status); } &&
26546          { ac_try='test -z "$ac_c_werror_flag"
26547                          || test ! -s conftest.err'
26548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26549   (eval $ac_try) 2>&5
26550   ac_status=$?
26551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552   (exit $ac_status); }; } &&
26553          { ac_try='test -s conftest.$ac_objext'
26554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26555   (eval $ac_try) 2>&5
26556   ac_status=$?
26557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26558   (exit $ac_status); }; }; then
26559   ac_cv_header_mmap_anon=yes
26560 else
26561   echo "$as_me: failed program was:" >&5
26562 sed 's/^/| /' conftest.$ac_ext >&5
26563
26564 ac_cv_header_mmap_anon=no
26565 fi
26566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26567   ac_ext=c
26568 ac_cpp='$CPP $CPPFLAGS'
26569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26572
26573
26574 fi
26575 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26576 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26577 if test "$ac_cv_header_mmap_anon" = yes; then
26578
26579 cat >>confdefs.h <<\_ACEOF
26580 #define HAVE_MMAP_ANONYMOUS 1
26581 _ACEOF
26582
26583 fi
26584
26585 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26586 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26587 if test "${ac_cv_header_stat_broken+set}" = set; then
26588   echo $ECHO_N "(cached) $ECHO_C" >&6
26589 else
26590   cat >conftest.$ac_ext <<_ACEOF
26591 /* confdefs.h.  */
26592 _ACEOF
26593 cat confdefs.h >>conftest.$ac_ext
26594 cat >>conftest.$ac_ext <<_ACEOF
26595 /* end confdefs.h.  */
26596 #include <sys/types.h>
26597 #include <sys/stat.h>
26598
26599 #if defined(S_ISBLK) && defined(S_IFDIR)
26600 # if S_ISBLK (S_IFDIR)
26601 You lose.
26602 # endif
26603 #endif
26604
26605 #if defined(S_ISBLK) && defined(S_IFCHR)
26606 # if S_ISBLK (S_IFCHR)
26607 You lose.
26608 # endif
26609 #endif
26610
26611 #if defined(S_ISLNK) && defined(S_IFREG)
26612 # if S_ISLNK (S_IFREG)
26613 You lose.
26614 # endif
26615 #endif
26616
26617 #if defined(S_ISSOCK) && defined(S_IFREG)
26618 # if S_ISSOCK (S_IFREG)
26619 You lose.
26620 # endif
26621 #endif
26622
26623 _ACEOF
26624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26625   $EGREP "You lose" >/dev/null 2>&1; then
26626   ac_cv_header_stat_broken=yes
26627 else
26628   ac_cv_header_stat_broken=no
26629 fi
26630 rm -f conftest*
26631
26632 fi
26633 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26634 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26635 if test $ac_cv_header_stat_broken = yes; then
26636
26637 cat >>confdefs.h <<\_ACEOF
26638 #define STAT_MACROS_BROKEN 1
26639 _ACEOF
26640
26641 fi
26642
26643 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26644 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26645 if test "${ac_cv_header_stdc+set}" = set; then
26646   echo $ECHO_N "(cached) $ECHO_C" >&6
26647 else
26648   cat >conftest.$ac_ext <<_ACEOF
26649 /* confdefs.h.  */
26650 _ACEOF
26651 cat confdefs.h >>conftest.$ac_ext
26652 cat >>conftest.$ac_ext <<_ACEOF
26653 /* end confdefs.h.  */
26654 #include <stdlib.h>
26655 #include <stdarg.h>
26656 #include <string.h>
26657 #include <float.h>
26658
26659 int
26660 main ()
26661 {
26662
26663   ;
26664   return 0;
26665 }
26666 _ACEOF
26667 rm -f conftest.$ac_objext
26668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26669   (eval $ac_compile) 2>conftest.er1
26670   ac_status=$?
26671   grep -v '^ *+' conftest.er1 >conftest.err
26672   rm -f conftest.er1
26673   cat conftest.err >&5
26674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675   (exit $ac_status); } &&
26676          { ac_try='test -z "$ac_c_werror_flag"
26677                          || test ! -s conftest.err'
26678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26679   (eval $ac_try) 2>&5
26680   ac_status=$?
26681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682   (exit $ac_status); }; } &&
26683          { ac_try='test -s conftest.$ac_objext'
26684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26685   (eval $ac_try) 2>&5
26686   ac_status=$?
26687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688   (exit $ac_status); }; }; then
26689   ac_cv_header_stdc=yes
26690 else
26691   echo "$as_me: failed program was:" >&5
26692 sed 's/^/| /' conftest.$ac_ext >&5
26693
26694 ac_cv_header_stdc=no
26695 fi
26696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26697
26698 if test $ac_cv_header_stdc = yes; then
26699   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26700   cat >conftest.$ac_ext <<_ACEOF
26701 /* confdefs.h.  */
26702 _ACEOF
26703 cat confdefs.h >>conftest.$ac_ext
26704 cat >>conftest.$ac_ext <<_ACEOF
26705 /* end confdefs.h.  */
26706 #include <string.h>
26707
26708 _ACEOF
26709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26710   $EGREP "memchr" >/dev/null 2>&1; then
26711   :
26712 else
26713   ac_cv_header_stdc=no
26714 fi
26715 rm -f conftest*
26716
26717 fi
26718
26719 if test $ac_cv_header_stdc = yes; then
26720   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26721   cat >conftest.$ac_ext <<_ACEOF
26722 /* confdefs.h.  */
26723 _ACEOF
26724 cat confdefs.h >>conftest.$ac_ext
26725 cat >>conftest.$ac_ext <<_ACEOF
26726 /* end confdefs.h.  */
26727 #include <stdlib.h>
26728
26729 _ACEOF
26730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26731   $EGREP "free" >/dev/null 2>&1; then
26732   :
26733 else
26734   ac_cv_header_stdc=no
26735 fi
26736 rm -f conftest*
26737
26738 fi
26739
26740 if test $ac_cv_header_stdc = yes; then
26741   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26742   if test "$cross_compiling" = yes; then
26743   :
26744 else
26745   cat >conftest.$ac_ext <<_ACEOF
26746 /* confdefs.h.  */
26747 _ACEOF
26748 cat confdefs.h >>conftest.$ac_ext
26749 cat >>conftest.$ac_ext <<_ACEOF
26750 /* end confdefs.h.  */
26751 #include <ctype.h>
26752 #if ((' ' & 0x0FF) == 0x020)
26753 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26754 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26755 #else
26756 # define ISLOWER(c) \
26757                    (('a' <= (c) && (c) <= 'i') \
26758                      || ('j' <= (c) && (c) <= 'r') \
26759                      || ('s' <= (c) && (c) <= 'z'))
26760 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26761 #endif
26762
26763 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26764 int
26765 main ()
26766 {
26767   int i;
26768   for (i = 0; i < 256; i++)
26769     if (XOR (islower (i), ISLOWER (i))
26770         || toupper (i) != TOUPPER (i))
26771       exit(2);
26772   exit (0);
26773 }
26774 _ACEOF
26775 rm -f conftest$ac_exeext
26776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26777   (eval $ac_link) 2>&5
26778   ac_status=$?
26779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26782   (eval $ac_try) 2>&5
26783   ac_status=$?
26784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785   (exit $ac_status); }; }; then
26786   :
26787 else
26788   echo "$as_me: program exited with status $ac_status" >&5
26789 echo "$as_me: failed program was:" >&5
26790 sed 's/^/| /' conftest.$ac_ext >&5
26791
26792 ( exit $ac_status )
26793 ac_cv_header_stdc=no
26794 fi
26795 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26796 fi
26797 fi
26798 fi
26799 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26800 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26801 if test $ac_cv_header_stdc = yes; then
26802
26803 cat >>confdefs.h <<\_ACEOF
26804 #define STDC_HEADERS 1
26805 _ACEOF
26806
26807 fi
26808
26809 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26810 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26811 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26812   echo $ECHO_N "(cached) $ECHO_C" >&6
26813 else
26814   cat >conftest.$ac_ext <<_ACEOF
26815 /* confdefs.h.  */
26816 _ACEOF
26817 cat confdefs.h >>conftest.$ac_ext
26818 cat >>conftest.$ac_ext <<_ACEOF
26819 /* end confdefs.h.  */
26820 #include <sys/types.h>
26821 #include <sys/wait.h>
26822 #ifndef WEXITSTATUS
26823 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26824 #endif
26825 #ifndef WIFEXITED
26826 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26827 #endif
26828
26829 int
26830 main ()
26831 {
26832   int s;
26833   wait (&s);
26834   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26835   ;
26836   return 0;
26837 }
26838 _ACEOF
26839 rm -f conftest.$ac_objext
26840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26841   (eval $ac_compile) 2>conftest.er1
26842   ac_status=$?
26843   grep -v '^ *+' conftest.er1 >conftest.err
26844   rm -f conftest.er1
26845   cat conftest.err >&5
26846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847   (exit $ac_status); } &&
26848          { ac_try='test -z "$ac_c_werror_flag"
26849                          || test ! -s conftest.err'
26850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26851   (eval $ac_try) 2>&5
26852   ac_status=$?
26853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854   (exit $ac_status); }; } &&
26855          { ac_try='test -s conftest.$ac_objext'
26856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26857   (eval $ac_try) 2>&5
26858   ac_status=$?
26859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860   (exit $ac_status); }; }; then
26861   ac_cv_header_sys_wait_h=yes
26862 else
26863   echo "$as_me: failed program was:" >&5
26864 sed 's/^/| /' conftest.$ac_ext >&5
26865
26866 ac_cv_header_sys_wait_h=no
26867 fi
26868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26869 fi
26870 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26871 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26872 if test $ac_cv_header_sys_wait_h = yes; then
26873
26874 cat >>confdefs.h <<\_ACEOF
26875 #define HAVE_SYS_WAIT_H 1
26876 _ACEOF
26877
26878 fi
26879
26880 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26881 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26882 if test "${ac_cv_header_time+set}" = set; then
26883   echo $ECHO_N "(cached) $ECHO_C" >&6
26884 else
26885   cat >conftest.$ac_ext <<_ACEOF
26886 /* confdefs.h.  */
26887 _ACEOF
26888 cat confdefs.h >>conftest.$ac_ext
26889 cat >>conftest.$ac_ext <<_ACEOF
26890 /* end confdefs.h.  */
26891 #include <sys/types.h>
26892 #include <sys/time.h>
26893 #include <time.h>
26894
26895 int
26896 main ()
26897 {
26898 if ((struct tm *) 0)
26899 return 0;
26900   ;
26901   return 0;
26902 }
26903 _ACEOF
26904 rm -f conftest.$ac_objext
26905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26906   (eval $ac_compile) 2>conftest.er1
26907   ac_status=$?
26908   grep -v '^ *+' conftest.er1 >conftest.err
26909   rm -f conftest.er1
26910   cat conftest.err >&5
26911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912   (exit $ac_status); } &&
26913          { ac_try='test -z "$ac_c_werror_flag"
26914                          || test ! -s conftest.err'
26915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916   (eval $ac_try) 2>&5
26917   ac_status=$?
26918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919   (exit $ac_status); }; } &&
26920          { ac_try='test -s conftest.$ac_objext'
26921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26922   (eval $ac_try) 2>&5
26923   ac_status=$?
26924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925   (exit $ac_status); }; }; then
26926   ac_cv_header_time=yes
26927 else
26928   echo "$as_me: failed program was:" >&5
26929 sed 's/^/| /' conftest.$ac_ext >&5
26930
26931 ac_cv_header_time=no
26932 fi
26933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26934 fi
26935 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26936 echo "${ECHO_T}$ac_cv_header_time" >&6
26937 if test $ac_cv_header_time = yes; then
26938
26939 cat >>confdefs.h <<\_ACEOF
26940 #define TIME_WITH_SYS_TIME 1
26941 _ACEOF
26942
26943 fi
26944
26945
26946
26947
26948
26949
26950
26951
26952 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26953 do
26954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26956   echo "$as_me:$LINENO: checking for $ac_header" >&5
26957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26959   echo $ECHO_N "(cached) $ECHO_C" >&6
26960 fi
26961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26963 else
26964   # Is the header compilable?
26965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26967 cat >conftest.$ac_ext <<_ACEOF
26968 /* confdefs.h.  */
26969 _ACEOF
26970 cat confdefs.h >>conftest.$ac_ext
26971 cat >>conftest.$ac_ext <<_ACEOF
26972 /* end confdefs.h.  */
26973 $ac_includes_default
26974 #include <$ac_header>
26975 _ACEOF
26976 rm -f conftest.$ac_objext
26977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26978   (eval $ac_compile) 2>conftest.er1
26979   ac_status=$?
26980   grep -v '^ *+' conftest.er1 >conftest.err
26981   rm -f conftest.er1
26982   cat conftest.err >&5
26983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984   (exit $ac_status); } &&
26985          { ac_try='test -z "$ac_c_werror_flag"
26986                          || test ! -s conftest.err'
26987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26988   (eval $ac_try) 2>&5
26989   ac_status=$?
26990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991   (exit $ac_status); }; } &&
26992          { ac_try='test -s conftest.$ac_objext'
26993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26994   (eval $ac_try) 2>&5
26995   ac_status=$?
26996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997   (exit $ac_status); }; }; then
26998   ac_header_compiler=yes
26999 else
27000   echo "$as_me: failed program was:" >&5
27001 sed 's/^/| /' conftest.$ac_ext >&5
27002
27003 ac_header_compiler=no
27004 fi
27005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27007 echo "${ECHO_T}$ac_header_compiler" >&6
27008
27009 # Is the header present?
27010 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27012 cat >conftest.$ac_ext <<_ACEOF
27013 /* confdefs.h.  */
27014 _ACEOF
27015 cat confdefs.h >>conftest.$ac_ext
27016 cat >>conftest.$ac_ext <<_ACEOF
27017 /* end confdefs.h.  */
27018 #include <$ac_header>
27019 _ACEOF
27020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27021   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27022   ac_status=$?
27023   grep -v '^ *+' conftest.er1 >conftest.err
27024   rm -f conftest.er1
27025   cat conftest.err >&5
27026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027   (exit $ac_status); } >/dev/null; then
27028   if test -s conftest.err; then
27029     ac_cpp_err=$ac_c_preproc_warn_flag
27030     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27031   else
27032     ac_cpp_err=
27033   fi
27034 else
27035   ac_cpp_err=yes
27036 fi
27037 if test -z "$ac_cpp_err"; then
27038   ac_header_preproc=yes
27039 else
27040   echo "$as_me: failed program was:" >&5
27041 sed 's/^/| /' conftest.$ac_ext >&5
27042
27043   ac_header_preproc=no
27044 fi
27045 rm -f conftest.err conftest.$ac_ext
27046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27047 echo "${ECHO_T}$ac_header_preproc" >&6
27048
27049 # So?  What about this header?
27050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27051   yes:no: )
27052     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27056     ac_header_preproc=yes
27057     ;;
27058   no:yes:* )
27059     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27061     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27062 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27063     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27065     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27066 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27069     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27071     (
27072       cat <<\_ASBOX
27073 ## ----------------------------------- ##
27074 ## Report this to llvmbugs@cs.uiuc.edu ##
27075 ## ----------------------------------- ##
27076 _ASBOX
27077     ) |
27078       sed "s/^/$as_me: WARNING:     /" >&2
27079     ;;
27080 esac
27081 echo "$as_me:$LINENO: checking for $ac_header" >&5
27082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27084   echo $ECHO_N "(cached) $ECHO_C" >&6
27085 else
27086   eval "$as_ac_Header=\$ac_header_preproc"
27087 fi
27088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27090
27091 fi
27092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27093   cat >>confdefs.h <<_ACEOF
27094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27095 _ACEOF
27096
27097 fi
27098
27099 done
27100
27101
27102
27103
27104
27105
27106
27107 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
27108 do
27109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27111   echo "$as_me:$LINENO: checking for $ac_header" >&5
27112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27114   echo $ECHO_N "(cached) $ECHO_C" >&6
27115 fi
27116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27118 else
27119   # Is the header compilable?
27120 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27122 cat >conftest.$ac_ext <<_ACEOF
27123 /* confdefs.h.  */
27124 _ACEOF
27125 cat confdefs.h >>conftest.$ac_ext
27126 cat >>conftest.$ac_ext <<_ACEOF
27127 /* end confdefs.h.  */
27128 $ac_includes_default
27129 #include <$ac_header>
27130 _ACEOF
27131 rm -f conftest.$ac_objext
27132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27133   (eval $ac_compile) 2>conftest.er1
27134   ac_status=$?
27135   grep -v '^ *+' conftest.er1 >conftest.err
27136   rm -f conftest.er1
27137   cat conftest.err >&5
27138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139   (exit $ac_status); } &&
27140          { ac_try='test -z "$ac_c_werror_flag"
27141                          || test ! -s conftest.err'
27142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27143   (eval $ac_try) 2>&5
27144   ac_status=$?
27145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146   (exit $ac_status); }; } &&
27147          { ac_try='test -s conftest.$ac_objext'
27148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27149   (eval $ac_try) 2>&5
27150   ac_status=$?
27151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152   (exit $ac_status); }; }; then
27153   ac_header_compiler=yes
27154 else
27155   echo "$as_me: failed program was:" >&5
27156 sed 's/^/| /' conftest.$ac_ext >&5
27157
27158 ac_header_compiler=no
27159 fi
27160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27162 echo "${ECHO_T}$ac_header_compiler" >&6
27163
27164 # Is the header present?
27165 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27167 cat >conftest.$ac_ext <<_ACEOF
27168 /* confdefs.h.  */
27169 _ACEOF
27170 cat confdefs.h >>conftest.$ac_ext
27171 cat >>conftest.$ac_ext <<_ACEOF
27172 /* end confdefs.h.  */
27173 #include <$ac_header>
27174 _ACEOF
27175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27176   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27177   ac_status=$?
27178   grep -v '^ *+' conftest.er1 >conftest.err
27179   rm -f conftest.er1
27180   cat conftest.err >&5
27181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182   (exit $ac_status); } >/dev/null; then
27183   if test -s conftest.err; then
27184     ac_cpp_err=$ac_c_preproc_warn_flag
27185     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27186   else
27187     ac_cpp_err=
27188   fi
27189 else
27190   ac_cpp_err=yes
27191 fi
27192 if test -z "$ac_cpp_err"; then
27193   ac_header_preproc=yes
27194 else
27195   echo "$as_me: failed program was:" >&5
27196 sed 's/^/| /' conftest.$ac_ext >&5
27197
27198   ac_header_preproc=no
27199 fi
27200 rm -f conftest.err conftest.$ac_ext
27201 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27202 echo "${ECHO_T}$ac_header_preproc" >&6
27203
27204 # So?  What about this header?
27205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27206   yes:no: )
27207     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27211     ac_header_preproc=yes
27212     ;;
27213   no:yes:* )
27214     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27216     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27217 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27218     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27220     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27221 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27222     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27224     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27226     (
27227       cat <<\_ASBOX
27228 ## ----------------------------------- ##
27229 ## Report this to llvmbugs@cs.uiuc.edu ##
27230 ## ----------------------------------- ##
27231 _ASBOX
27232     ) |
27233       sed "s/^/$as_me: WARNING:     /" >&2
27234     ;;
27235 esac
27236 echo "$as_me:$LINENO: checking for $ac_header" >&5
27237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27239   echo $ECHO_N "(cached) $ECHO_C" >&6
27240 else
27241   eval "$as_ac_Header=\$ac_header_preproc"
27242 fi
27243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27245
27246 fi
27247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27248   cat >>confdefs.h <<_ACEOF
27249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27250 _ACEOF
27251
27252 fi
27253
27254 done
27255
27256
27257
27258
27259
27260
27261 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
27262 do
27263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27265   echo "$as_me:$LINENO: checking for $ac_header" >&5
27266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27268   echo $ECHO_N "(cached) $ECHO_C" >&6
27269 fi
27270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27272 else
27273   # Is the header compilable?
27274 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27276 cat >conftest.$ac_ext <<_ACEOF
27277 /* confdefs.h.  */
27278 _ACEOF
27279 cat confdefs.h >>conftest.$ac_ext
27280 cat >>conftest.$ac_ext <<_ACEOF
27281 /* end confdefs.h.  */
27282 $ac_includes_default
27283 #include <$ac_header>
27284 _ACEOF
27285 rm -f conftest.$ac_objext
27286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27287   (eval $ac_compile) 2>conftest.er1
27288   ac_status=$?
27289   grep -v '^ *+' conftest.er1 >conftest.err
27290   rm -f conftest.er1
27291   cat conftest.err >&5
27292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293   (exit $ac_status); } &&
27294          { ac_try='test -z "$ac_c_werror_flag"
27295                          || test ! -s conftest.err'
27296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27297   (eval $ac_try) 2>&5
27298   ac_status=$?
27299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27300   (exit $ac_status); }; } &&
27301          { ac_try='test -s conftest.$ac_objext'
27302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303   (eval $ac_try) 2>&5
27304   ac_status=$?
27305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306   (exit $ac_status); }; }; then
27307   ac_header_compiler=yes
27308 else
27309   echo "$as_me: failed program was:" >&5
27310 sed 's/^/| /' conftest.$ac_ext >&5
27311
27312 ac_header_compiler=no
27313 fi
27314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27316 echo "${ECHO_T}$ac_header_compiler" >&6
27317
27318 # Is the header present?
27319 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27321 cat >conftest.$ac_ext <<_ACEOF
27322 /* confdefs.h.  */
27323 _ACEOF
27324 cat confdefs.h >>conftest.$ac_ext
27325 cat >>conftest.$ac_ext <<_ACEOF
27326 /* end confdefs.h.  */
27327 #include <$ac_header>
27328 _ACEOF
27329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27330   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27331   ac_status=$?
27332   grep -v '^ *+' conftest.er1 >conftest.err
27333   rm -f conftest.er1
27334   cat conftest.err >&5
27335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336   (exit $ac_status); } >/dev/null; then
27337   if test -s conftest.err; then
27338     ac_cpp_err=$ac_c_preproc_warn_flag
27339     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27340   else
27341     ac_cpp_err=
27342   fi
27343 else
27344   ac_cpp_err=yes
27345 fi
27346 if test -z "$ac_cpp_err"; then
27347   ac_header_preproc=yes
27348 else
27349   echo "$as_me: failed program was:" >&5
27350 sed 's/^/| /' conftest.$ac_ext >&5
27351
27352   ac_header_preproc=no
27353 fi
27354 rm -f conftest.err conftest.$ac_ext
27355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27356 echo "${ECHO_T}$ac_header_preproc" >&6
27357
27358 # So?  What about this header?
27359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27360   yes:no: )
27361     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27363     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27365     ac_header_preproc=yes
27366     ;;
27367   no:yes:* )
27368     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27370     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27371 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27372     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27374     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27375 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27378     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27380     (
27381       cat <<\_ASBOX
27382 ## ----------------------------------- ##
27383 ## Report this to llvmbugs@cs.uiuc.edu ##
27384 ## ----------------------------------- ##
27385 _ASBOX
27386     ) |
27387       sed "s/^/$as_me: WARNING:     /" >&2
27388     ;;
27389 esac
27390 echo "$as_me:$LINENO: checking for $ac_header" >&5
27391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27393   echo $ECHO_N "(cached) $ECHO_C" >&6
27394 else
27395   eval "$as_ac_Header=\$ac_header_preproc"
27396 fi
27397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27399
27400 fi
27401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27402   cat >>confdefs.h <<_ACEOF
27403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27404 _ACEOF
27405
27406 fi
27407
27408 done
27409
27410
27411
27412 for ac_header in sys/types.h malloc/malloc.h
27413 do
27414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27416   echo "$as_me:$LINENO: checking for $ac_header" >&5
27417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27419   echo $ECHO_N "(cached) $ECHO_C" >&6
27420 fi
27421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27423 else
27424   # Is the header compilable?
27425 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27427 cat >conftest.$ac_ext <<_ACEOF
27428 /* confdefs.h.  */
27429 _ACEOF
27430 cat confdefs.h >>conftest.$ac_ext
27431 cat >>conftest.$ac_ext <<_ACEOF
27432 /* end confdefs.h.  */
27433 $ac_includes_default
27434 #include <$ac_header>
27435 _ACEOF
27436 rm -f conftest.$ac_objext
27437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27438   (eval $ac_compile) 2>conftest.er1
27439   ac_status=$?
27440   grep -v '^ *+' conftest.er1 >conftest.err
27441   rm -f conftest.er1
27442   cat conftest.err >&5
27443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444   (exit $ac_status); } &&
27445          { ac_try='test -z "$ac_c_werror_flag"
27446                          || test ! -s conftest.err'
27447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27448   (eval $ac_try) 2>&5
27449   ac_status=$?
27450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451   (exit $ac_status); }; } &&
27452          { ac_try='test -s conftest.$ac_objext'
27453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27454   (eval $ac_try) 2>&5
27455   ac_status=$?
27456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457   (exit $ac_status); }; }; then
27458   ac_header_compiler=yes
27459 else
27460   echo "$as_me: failed program was:" >&5
27461 sed 's/^/| /' conftest.$ac_ext >&5
27462
27463 ac_header_compiler=no
27464 fi
27465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27467 echo "${ECHO_T}$ac_header_compiler" >&6
27468
27469 # Is the header present?
27470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27472 cat >conftest.$ac_ext <<_ACEOF
27473 /* confdefs.h.  */
27474 _ACEOF
27475 cat confdefs.h >>conftest.$ac_ext
27476 cat >>conftest.$ac_ext <<_ACEOF
27477 /* end confdefs.h.  */
27478 #include <$ac_header>
27479 _ACEOF
27480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27481   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27482   ac_status=$?
27483   grep -v '^ *+' conftest.er1 >conftest.err
27484   rm -f conftest.er1
27485   cat conftest.err >&5
27486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27487   (exit $ac_status); } >/dev/null; then
27488   if test -s conftest.err; then
27489     ac_cpp_err=$ac_c_preproc_warn_flag
27490     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27491   else
27492     ac_cpp_err=
27493   fi
27494 else
27495   ac_cpp_err=yes
27496 fi
27497 if test -z "$ac_cpp_err"; then
27498   ac_header_preproc=yes
27499 else
27500   echo "$as_me: failed program was:" >&5
27501 sed 's/^/| /' conftest.$ac_ext >&5
27502
27503   ac_header_preproc=no
27504 fi
27505 rm -f conftest.err conftest.$ac_ext
27506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27507 echo "${ECHO_T}$ac_header_preproc" >&6
27508
27509 # So?  What about this header?
27510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27511   yes:no: )
27512     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27516     ac_header_preproc=yes
27517     ;;
27518   no:yes:* )
27519     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27521     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27522 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27523     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27525     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27526 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27529     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27531     (
27532       cat <<\_ASBOX
27533 ## ----------------------------------- ##
27534 ## Report this to llvmbugs@cs.uiuc.edu ##
27535 ## ----------------------------------- ##
27536 _ASBOX
27537     ) |
27538       sed "s/^/$as_me: WARNING:     /" >&2
27539     ;;
27540 esac
27541 echo "$as_me:$LINENO: checking for $ac_header" >&5
27542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27544   echo $ECHO_N "(cached) $ECHO_C" >&6
27545 else
27546   eval "$as_ac_Header=\$ac_header_preproc"
27547 fi
27548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27550
27551 fi
27552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27553   cat >>confdefs.h <<_ACEOF
27554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27555 _ACEOF
27556
27557 fi
27558
27559 done
27560
27561 if test "$ENABLE_THREADS" -eq 1 ; then
27562
27563 for ac_header in pthread.h
27564 do
27565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27567   echo "$as_me:$LINENO: checking for $ac_header" >&5
27568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27570   echo $ECHO_N "(cached) $ECHO_C" >&6
27571 fi
27572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27574 else
27575   # Is the header compilable?
27576 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27578 cat >conftest.$ac_ext <<_ACEOF
27579 /* confdefs.h.  */
27580 _ACEOF
27581 cat confdefs.h >>conftest.$ac_ext
27582 cat >>conftest.$ac_ext <<_ACEOF
27583 /* end confdefs.h.  */
27584 $ac_includes_default
27585 #include <$ac_header>
27586 _ACEOF
27587 rm -f conftest.$ac_objext
27588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27589   (eval $ac_compile) 2>conftest.er1
27590   ac_status=$?
27591   grep -v '^ *+' conftest.er1 >conftest.err
27592   rm -f conftest.er1
27593   cat conftest.err >&5
27594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595   (exit $ac_status); } &&
27596          { ac_try='test -z "$ac_c_werror_flag"
27597                          || test ! -s conftest.err'
27598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27599   (eval $ac_try) 2>&5
27600   ac_status=$?
27601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602   (exit $ac_status); }; } &&
27603          { ac_try='test -s conftest.$ac_objext'
27604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27605   (eval $ac_try) 2>&5
27606   ac_status=$?
27607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608   (exit $ac_status); }; }; then
27609   ac_header_compiler=yes
27610 else
27611   echo "$as_me: failed program was:" >&5
27612 sed 's/^/| /' conftest.$ac_ext >&5
27613
27614 ac_header_compiler=no
27615 fi
27616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27618 echo "${ECHO_T}$ac_header_compiler" >&6
27619
27620 # Is the header present?
27621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27623 cat >conftest.$ac_ext <<_ACEOF
27624 /* confdefs.h.  */
27625 _ACEOF
27626 cat confdefs.h >>conftest.$ac_ext
27627 cat >>conftest.$ac_ext <<_ACEOF
27628 /* end confdefs.h.  */
27629 #include <$ac_header>
27630 _ACEOF
27631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27632   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27633   ac_status=$?
27634   grep -v '^ *+' conftest.er1 >conftest.err
27635   rm -f conftest.er1
27636   cat conftest.err >&5
27637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638   (exit $ac_status); } >/dev/null; then
27639   if test -s conftest.err; then
27640     ac_cpp_err=$ac_c_preproc_warn_flag
27641     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27642   else
27643     ac_cpp_err=
27644   fi
27645 else
27646   ac_cpp_err=yes
27647 fi
27648 if test -z "$ac_cpp_err"; then
27649   ac_header_preproc=yes
27650 else
27651   echo "$as_me: failed program was:" >&5
27652 sed 's/^/| /' conftest.$ac_ext >&5
27653
27654   ac_header_preproc=no
27655 fi
27656 rm -f conftest.err conftest.$ac_ext
27657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27658 echo "${ECHO_T}$ac_header_preproc" >&6
27659
27660 # So?  What about this header?
27661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27662   yes:no: )
27663     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27667     ac_header_preproc=yes
27668     ;;
27669   no:yes:* )
27670     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27672     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27673 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27674     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27676     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27677 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27680     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27682     (
27683       cat <<\_ASBOX
27684 ## ----------------------------------- ##
27685 ## Report this to llvmbugs@cs.uiuc.edu ##
27686 ## ----------------------------------- ##
27687 _ASBOX
27688     ) |
27689       sed "s/^/$as_me: WARNING:     /" >&2
27690     ;;
27691 esac
27692 echo "$as_me:$LINENO: checking for $ac_header" >&5
27693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27695   echo $ECHO_N "(cached) $ECHO_C" >&6
27696 else
27697   eval "$as_ac_Header=\$ac_header_preproc"
27698 fi
27699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27701
27702 fi
27703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27704   cat >>confdefs.h <<_ACEOF
27705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27706 _ACEOF
27707
27708 fi
27709
27710 done
27711
27712 fi
27713
27714
27715 echo "$as_me:$LINENO: checking for pid_t" >&5
27716 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27717 if test "${ac_cv_type_pid_t+set}" = set; then
27718   echo $ECHO_N "(cached) $ECHO_C" >&6
27719 else
27720   cat >conftest.$ac_ext <<_ACEOF
27721 /* confdefs.h.  */
27722 _ACEOF
27723 cat confdefs.h >>conftest.$ac_ext
27724 cat >>conftest.$ac_ext <<_ACEOF
27725 /* end confdefs.h.  */
27726 $ac_includes_default
27727 int
27728 main ()
27729 {
27730 if ((pid_t *) 0)
27731   return 0;
27732 if (sizeof (pid_t))
27733   return 0;
27734   ;
27735   return 0;
27736 }
27737 _ACEOF
27738 rm -f conftest.$ac_objext
27739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27740   (eval $ac_compile) 2>conftest.er1
27741   ac_status=$?
27742   grep -v '^ *+' conftest.er1 >conftest.err
27743   rm -f conftest.er1
27744   cat conftest.err >&5
27745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746   (exit $ac_status); } &&
27747          { ac_try='test -z "$ac_c_werror_flag"
27748                          || test ! -s conftest.err'
27749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27750   (eval $ac_try) 2>&5
27751   ac_status=$?
27752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753   (exit $ac_status); }; } &&
27754          { ac_try='test -s conftest.$ac_objext'
27755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27756   (eval $ac_try) 2>&5
27757   ac_status=$?
27758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759   (exit $ac_status); }; }; then
27760   ac_cv_type_pid_t=yes
27761 else
27762   echo "$as_me: failed program was:" >&5
27763 sed 's/^/| /' conftest.$ac_ext >&5
27764
27765 ac_cv_type_pid_t=no
27766 fi
27767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27768 fi
27769 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27770 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27771 if test $ac_cv_type_pid_t = yes; then
27772   :
27773 else
27774
27775 cat >>confdefs.h <<_ACEOF
27776 #define pid_t int
27777 _ACEOF
27778
27779 fi
27780
27781 echo "$as_me:$LINENO: checking for size_t" >&5
27782 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27783 if test "${ac_cv_type_size_t+set}" = set; then
27784   echo $ECHO_N "(cached) $ECHO_C" >&6
27785 else
27786   cat >conftest.$ac_ext <<_ACEOF
27787 /* confdefs.h.  */
27788 _ACEOF
27789 cat confdefs.h >>conftest.$ac_ext
27790 cat >>conftest.$ac_ext <<_ACEOF
27791 /* end confdefs.h.  */
27792 $ac_includes_default
27793 int
27794 main ()
27795 {
27796 if ((size_t *) 0)
27797   return 0;
27798 if (sizeof (size_t))
27799   return 0;
27800   ;
27801   return 0;
27802 }
27803 _ACEOF
27804 rm -f conftest.$ac_objext
27805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27806   (eval $ac_compile) 2>conftest.er1
27807   ac_status=$?
27808   grep -v '^ *+' conftest.er1 >conftest.err
27809   rm -f conftest.er1
27810   cat conftest.err >&5
27811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812   (exit $ac_status); } &&
27813          { ac_try='test -z "$ac_c_werror_flag"
27814                          || test ! -s conftest.err'
27815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27816   (eval $ac_try) 2>&5
27817   ac_status=$?
27818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819   (exit $ac_status); }; } &&
27820          { ac_try='test -s conftest.$ac_objext'
27821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27822   (eval $ac_try) 2>&5
27823   ac_status=$?
27824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825   (exit $ac_status); }; }; then
27826   ac_cv_type_size_t=yes
27827 else
27828   echo "$as_me: failed program was:" >&5
27829 sed 's/^/| /' conftest.$ac_ext >&5
27830
27831 ac_cv_type_size_t=no
27832 fi
27833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27834 fi
27835 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27836 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27837 if test $ac_cv_type_size_t = yes; then
27838   :
27839 else
27840
27841 cat >>confdefs.h <<_ACEOF
27842 #define size_t unsigned
27843 _ACEOF
27844
27845 fi
27846
27847 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27848 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27849 if test "${ac_cv_type_signal+set}" = set; then
27850   echo $ECHO_N "(cached) $ECHO_C" >&6
27851 else
27852   cat >conftest.$ac_ext <<_ACEOF
27853 /* confdefs.h.  */
27854 _ACEOF
27855 cat confdefs.h >>conftest.$ac_ext
27856 cat >>conftest.$ac_ext <<_ACEOF
27857 /* end confdefs.h.  */
27858 #include <sys/types.h>
27859 #include <signal.h>
27860 #ifdef signal
27861 # undef signal
27862 #endif
27863 #ifdef __cplusplus
27864 extern "C" void (*signal (int, void (*)(int)))(int);
27865 #else
27866 void (*signal ()) ();
27867 #endif
27868
27869 int
27870 main ()
27871 {
27872 int i;
27873   ;
27874   return 0;
27875 }
27876 _ACEOF
27877 rm -f conftest.$ac_objext
27878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27879   (eval $ac_compile) 2>conftest.er1
27880   ac_status=$?
27881   grep -v '^ *+' conftest.er1 >conftest.err
27882   rm -f conftest.er1
27883   cat conftest.err >&5
27884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885   (exit $ac_status); } &&
27886          { ac_try='test -z "$ac_c_werror_flag"
27887                          || test ! -s conftest.err'
27888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27889   (eval $ac_try) 2>&5
27890   ac_status=$?
27891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892   (exit $ac_status); }; } &&
27893          { ac_try='test -s conftest.$ac_objext'
27894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27895   (eval $ac_try) 2>&5
27896   ac_status=$?
27897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898   (exit $ac_status); }; }; then
27899   ac_cv_type_signal=void
27900 else
27901   echo "$as_me: failed program was:" >&5
27902 sed 's/^/| /' conftest.$ac_ext >&5
27903
27904 ac_cv_type_signal=int
27905 fi
27906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27907 fi
27908 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27909 echo "${ECHO_T}$ac_cv_type_signal" >&6
27910
27911 cat >>confdefs.h <<_ACEOF
27912 #define RETSIGTYPE $ac_cv_type_signal
27913 _ACEOF
27914
27915
27916 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27917 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27918 if test "${ac_cv_struct_tm+set}" = set; then
27919   echo $ECHO_N "(cached) $ECHO_C" >&6
27920 else
27921   cat >conftest.$ac_ext <<_ACEOF
27922 /* confdefs.h.  */
27923 _ACEOF
27924 cat confdefs.h >>conftest.$ac_ext
27925 cat >>conftest.$ac_ext <<_ACEOF
27926 /* end confdefs.h.  */
27927 #include <sys/types.h>
27928 #include <time.h>
27929
27930 int
27931 main ()
27932 {
27933 struct tm *tp; tp->tm_sec;
27934   ;
27935   return 0;
27936 }
27937 _ACEOF
27938 rm -f conftest.$ac_objext
27939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27940   (eval $ac_compile) 2>conftest.er1
27941   ac_status=$?
27942   grep -v '^ *+' conftest.er1 >conftest.err
27943   rm -f conftest.er1
27944   cat conftest.err >&5
27945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946   (exit $ac_status); } &&
27947          { ac_try='test -z "$ac_c_werror_flag"
27948                          || test ! -s conftest.err'
27949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27950   (eval $ac_try) 2>&5
27951   ac_status=$?
27952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953   (exit $ac_status); }; } &&
27954          { ac_try='test -s conftest.$ac_objext'
27955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27956   (eval $ac_try) 2>&5
27957   ac_status=$?
27958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959   (exit $ac_status); }; }; then
27960   ac_cv_struct_tm=time.h
27961 else
27962   echo "$as_me: failed program was:" >&5
27963 sed 's/^/| /' conftest.$ac_ext >&5
27964
27965 ac_cv_struct_tm=sys/time.h
27966 fi
27967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27968 fi
27969 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27970 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27971 if test $ac_cv_struct_tm = sys/time.h; then
27972
27973 cat >>confdefs.h <<\_ACEOF
27974 #define TM_IN_SYS_TIME 1
27975 _ACEOF
27976
27977 fi
27978
27979 echo "$as_me:$LINENO: checking for int64_t" >&5
27980 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27981 if test "${ac_cv_type_int64_t+set}" = set; then
27982   echo $ECHO_N "(cached) $ECHO_C" >&6
27983 else
27984   cat >conftest.$ac_ext <<_ACEOF
27985 /* confdefs.h.  */
27986 _ACEOF
27987 cat confdefs.h >>conftest.$ac_ext
27988 cat >>conftest.$ac_ext <<_ACEOF
27989 /* end confdefs.h.  */
27990 $ac_includes_default
27991 int
27992 main ()
27993 {
27994 if ((int64_t *) 0)
27995   return 0;
27996 if (sizeof (int64_t))
27997   return 0;
27998   ;
27999   return 0;
28000 }
28001 _ACEOF
28002 rm -f conftest.$ac_objext
28003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28004   (eval $ac_compile) 2>conftest.er1
28005   ac_status=$?
28006   grep -v '^ *+' conftest.er1 >conftest.err
28007   rm -f conftest.er1
28008   cat conftest.err >&5
28009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010   (exit $ac_status); } &&
28011          { ac_try='test -z "$ac_c_werror_flag"
28012                          || test ! -s conftest.err'
28013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28014   (eval $ac_try) 2>&5
28015   ac_status=$?
28016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017   (exit $ac_status); }; } &&
28018          { ac_try='test -s conftest.$ac_objext'
28019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28020   (eval $ac_try) 2>&5
28021   ac_status=$?
28022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023   (exit $ac_status); }; }; then
28024   ac_cv_type_int64_t=yes
28025 else
28026   echo "$as_me: failed program was:" >&5
28027 sed 's/^/| /' conftest.$ac_ext >&5
28028
28029 ac_cv_type_int64_t=no
28030 fi
28031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28032 fi
28033 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28034 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
28035 if test $ac_cv_type_int64_t = yes; then
28036
28037 cat >>confdefs.h <<_ACEOF
28038 #define HAVE_INT64_T 1
28039 _ACEOF
28040
28041
28042 else
28043   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28044 echo "$as_me: error: Type int64_t required but not found" >&2;}
28045    { (exit 1); exit 1; }; }
28046 fi
28047
28048 echo "$as_me:$LINENO: checking for uint64_t" >&5
28049 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
28050 if test "${ac_cv_type_uint64_t+set}" = set; then
28051   echo $ECHO_N "(cached) $ECHO_C" >&6
28052 else
28053   cat >conftest.$ac_ext <<_ACEOF
28054 /* confdefs.h.  */
28055 _ACEOF
28056 cat confdefs.h >>conftest.$ac_ext
28057 cat >>conftest.$ac_ext <<_ACEOF
28058 /* end confdefs.h.  */
28059 $ac_includes_default
28060 int
28061 main ()
28062 {
28063 if ((uint64_t *) 0)
28064   return 0;
28065 if (sizeof (uint64_t))
28066   return 0;
28067   ;
28068   return 0;
28069 }
28070 _ACEOF
28071 rm -f conftest.$ac_objext
28072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28073   (eval $ac_compile) 2>conftest.er1
28074   ac_status=$?
28075   grep -v '^ *+' conftest.er1 >conftest.err
28076   rm -f conftest.er1
28077   cat conftest.err >&5
28078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079   (exit $ac_status); } &&
28080          { ac_try='test -z "$ac_c_werror_flag"
28081                          || test ! -s conftest.err'
28082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28083   (eval $ac_try) 2>&5
28084   ac_status=$?
28085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086   (exit $ac_status); }; } &&
28087          { ac_try='test -s conftest.$ac_objext'
28088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28089   (eval $ac_try) 2>&5
28090   ac_status=$?
28091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092   (exit $ac_status); }; }; then
28093   ac_cv_type_uint64_t=yes
28094 else
28095   echo "$as_me: failed program was:" >&5
28096 sed 's/^/| /' conftest.$ac_ext >&5
28097
28098 ac_cv_type_uint64_t=no
28099 fi
28100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28101 fi
28102 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28103 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
28104 if test $ac_cv_type_uint64_t = yes; then
28105
28106 cat >>confdefs.h <<_ACEOF
28107 #define HAVE_UINT64_T 1
28108 _ACEOF
28109
28110
28111 else
28112   echo "$as_me:$LINENO: checking for u_int64_t" >&5
28113 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
28114 if test "${ac_cv_type_u_int64_t+set}" = set; then
28115   echo $ECHO_N "(cached) $ECHO_C" >&6
28116 else
28117   cat >conftest.$ac_ext <<_ACEOF
28118 /* confdefs.h.  */
28119 _ACEOF
28120 cat confdefs.h >>conftest.$ac_ext
28121 cat >>conftest.$ac_ext <<_ACEOF
28122 /* end confdefs.h.  */
28123 $ac_includes_default
28124 int
28125 main ()
28126 {
28127 if ((u_int64_t *) 0)
28128   return 0;
28129 if (sizeof (u_int64_t))
28130   return 0;
28131   ;
28132   return 0;
28133 }
28134 _ACEOF
28135 rm -f conftest.$ac_objext
28136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28137   (eval $ac_compile) 2>conftest.er1
28138   ac_status=$?
28139   grep -v '^ *+' conftest.er1 >conftest.err
28140   rm -f conftest.er1
28141   cat conftest.err >&5
28142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143   (exit $ac_status); } &&
28144          { ac_try='test -z "$ac_c_werror_flag"
28145                          || test ! -s conftest.err'
28146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28147   (eval $ac_try) 2>&5
28148   ac_status=$?
28149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150   (exit $ac_status); }; } &&
28151          { ac_try='test -s conftest.$ac_objext'
28152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28153   (eval $ac_try) 2>&5
28154   ac_status=$?
28155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156   (exit $ac_status); }; }; then
28157   ac_cv_type_u_int64_t=yes
28158 else
28159   echo "$as_me: failed program was:" >&5
28160 sed 's/^/| /' conftest.$ac_ext >&5
28161
28162 ac_cv_type_u_int64_t=no
28163 fi
28164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28165 fi
28166 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28167 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
28168 if test $ac_cv_type_u_int64_t = yes; then
28169
28170 cat >>confdefs.h <<_ACEOF
28171 #define HAVE_U_INT64_T 1
28172 _ACEOF
28173
28174
28175 else
28176   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28177 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28178    { (exit 1); exit 1; }; }
28179 fi
28180
28181 fi
28182
28183
28184
28185
28186
28187
28188
28189
28190
28191
28192 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28193 do
28194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28195 echo "$as_me:$LINENO: checking for $ac_func" >&5
28196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28197 if eval "test \"\${$as_ac_var+set}\" = set"; then
28198   echo $ECHO_N "(cached) $ECHO_C" >&6
28199 else
28200   cat >conftest.$ac_ext <<_ACEOF
28201 /* confdefs.h.  */
28202 _ACEOF
28203 cat confdefs.h >>conftest.$ac_ext
28204 cat >>conftest.$ac_ext <<_ACEOF
28205 /* end confdefs.h.  */
28206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28207    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28208 #define $ac_func innocuous_$ac_func
28209
28210 /* System header to define __stub macros and hopefully few prototypes,
28211     which can conflict with char $ac_func (); below.
28212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28213     <limits.h> exists even on freestanding compilers.  */
28214
28215 #ifdef __STDC__
28216 # include <limits.h>
28217 #else
28218 # include <assert.h>
28219 #endif
28220
28221 #undef $ac_func
28222
28223 /* Override any gcc2 internal prototype to avoid an error.  */
28224 #ifdef __cplusplus
28225 extern "C"
28226 {
28227 #endif
28228 /* We use char because int might match the return type of a gcc2
28229    builtin and then its argument prototype would still apply.  */
28230 char $ac_func ();
28231 /* The GNU C library defines this for functions which it implements
28232     to always fail with ENOSYS.  Some functions are actually named
28233     something starting with __ and the normal name is an alias.  */
28234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28235 choke me
28236 #else
28237 char (*f) () = $ac_func;
28238 #endif
28239 #ifdef __cplusplus
28240 }
28241 #endif
28242
28243 int
28244 main ()
28245 {
28246 return f != $ac_func;
28247   ;
28248   return 0;
28249 }
28250 _ACEOF
28251 rm -f conftest.$ac_objext conftest$ac_exeext
28252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28253   (eval $ac_link) 2>conftest.er1
28254   ac_status=$?
28255   grep -v '^ *+' conftest.er1 >conftest.err
28256   rm -f conftest.er1
28257   cat conftest.err >&5
28258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28259   (exit $ac_status); } &&
28260          { ac_try='test -z "$ac_c_werror_flag"
28261                          || test ! -s conftest.err'
28262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28263   (eval $ac_try) 2>&5
28264   ac_status=$?
28265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266   (exit $ac_status); }; } &&
28267          { ac_try='test -s conftest$ac_exeext'
28268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28269   (eval $ac_try) 2>&5
28270   ac_status=$?
28271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272   (exit $ac_status); }; }; then
28273   eval "$as_ac_var=yes"
28274 else
28275   echo "$as_me: failed program was:" >&5
28276 sed 's/^/| /' conftest.$ac_ext >&5
28277
28278 eval "$as_ac_var=no"
28279 fi
28280 rm -f conftest.err conftest.$ac_objext \
28281       conftest$ac_exeext conftest.$ac_ext
28282 fi
28283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28285 if test `eval echo '${'$as_ac_var'}'` = yes; then
28286   cat >>confdefs.h <<_ACEOF
28287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28288 _ACEOF
28289
28290 fi
28291 done
28292
28293
28294
28295
28296
28297
28298
28299 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28300 do
28301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28302 echo "$as_me:$LINENO: checking for $ac_func" >&5
28303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28304 if eval "test \"\${$as_ac_var+set}\" = set"; then
28305   echo $ECHO_N "(cached) $ECHO_C" >&6
28306 else
28307   cat >conftest.$ac_ext <<_ACEOF
28308 /* confdefs.h.  */
28309 _ACEOF
28310 cat confdefs.h >>conftest.$ac_ext
28311 cat >>conftest.$ac_ext <<_ACEOF
28312 /* end confdefs.h.  */
28313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28314    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28315 #define $ac_func innocuous_$ac_func
28316
28317 /* System header to define __stub macros and hopefully few prototypes,
28318     which can conflict with char $ac_func (); below.
28319     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28320     <limits.h> exists even on freestanding compilers.  */
28321
28322 #ifdef __STDC__
28323 # include <limits.h>
28324 #else
28325 # include <assert.h>
28326 #endif
28327
28328 #undef $ac_func
28329
28330 /* Override any gcc2 internal prototype to avoid an error.  */
28331 #ifdef __cplusplus
28332 extern "C"
28333 {
28334 #endif
28335 /* We use char because int might match the return type of a gcc2
28336    builtin and then its argument prototype would still apply.  */
28337 char $ac_func ();
28338 /* The GNU C library defines this for functions which it implements
28339     to always fail with ENOSYS.  Some functions are actually named
28340     something starting with __ and the normal name is an alias.  */
28341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28342 choke me
28343 #else
28344 char (*f) () = $ac_func;
28345 #endif
28346 #ifdef __cplusplus
28347 }
28348 #endif
28349
28350 int
28351 main ()
28352 {
28353 return f != $ac_func;
28354   ;
28355   return 0;
28356 }
28357 _ACEOF
28358 rm -f conftest.$ac_objext conftest$ac_exeext
28359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28360   (eval $ac_link) 2>conftest.er1
28361   ac_status=$?
28362   grep -v '^ *+' conftest.er1 >conftest.err
28363   rm -f conftest.er1
28364   cat conftest.err >&5
28365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366   (exit $ac_status); } &&
28367          { ac_try='test -z "$ac_c_werror_flag"
28368                          || test ! -s conftest.err'
28369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28370   (eval $ac_try) 2>&5
28371   ac_status=$?
28372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373   (exit $ac_status); }; } &&
28374          { ac_try='test -s conftest$ac_exeext'
28375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28376   (eval $ac_try) 2>&5
28377   ac_status=$?
28378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379   (exit $ac_status); }; }; then
28380   eval "$as_ac_var=yes"
28381 else
28382   echo "$as_me: failed program was:" >&5
28383 sed 's/^/| /' conftest.$ac_ext >&5
28384
28385 eval "$as_ac_var=no"
28386 fi
28387 rm -f conftest.err conftest.$ac_objext \
28388       conftest$ac_exeext conftest.$ac_ext
28389 fi
28390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28392 if test `eval echo '${'$as_ac_var'}'` = yes; then
28393   cat >>confdefs.h <<_ACEOF
28394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28395 _ACEOF
28396
28397 fi
28398 done
28399
28400
28401
28402
28403
28404
28405
28406
28407 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
28408 do
28409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28410 echo "$as_me:$LINENO: checking for $ac_func" >&5
28411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28412 if eval "test \"\${$as_ac_var+set}\" = set"; then
28413   echo $ECHO_N "(cached) $ECHO_C" >&6
28414 else
28415   cat >conftest.$ac_ext <<_ACEOF
28416 /* confdefs.h.  */
28417 _ACEOF
28418 cat confdefs.h >>conftest.$ac_ext
28419 cat >>conftest.$ac_ext <<_ACEOF
28420 /* end confdefs.h.  */
28421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28423 #define $ac_func innocuous_$ac_func
28424
28425 /* System header to define __stub macros and hopefully few prototypes,
28426     which can conflict with char $ac_func (); below.
28427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28428     <limits.h> exists even on freestanding compilers.  */
28429
28430 #ifdef __STDC__
28431 # include <limits.h>
28432 #else
28433 # include <assert.h>
28434 #endif
28435
28436 #undef $ac_func
28437
28438 /* Override any gcc2 internal prototype to avoid an error.  */
28439 #ifdef __cplusplus
28440 extern "C"
28441 {
28442 #endif
28443 /* We use char because int might match the return type of a gcc2
28444    builtin and then its argument prototype would still apply.  */
28445 char $ac_func ();
28446 /* The GNU C library defines this for functions which it implements
28447     to always fail with ENOSYS.  Some functions are actually named
28448     something starting with __ and the normal name is an alias.  */
28449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28450 choke me
28451 #else
28452 char (*f) () = $ac_func;
28453 #endif
28454 #ifdef __cplusplus
28455 }
28456 #endif
28457
28458 int
28459 main ()
28460 {
28461 return f != $ac_func;
28462   ;
28463   return 0;
28464 }
28465 _ACEOF
28466 rm -f conftest.$ac_objext conftest$ac_exeext
28467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28468   (eval $ac_link) 2>conftest.er1
28469   ac_status=$?
28470   grep -v '^ *+' conftest.er1 >conftest.err
28471   rm -f conftest.er1
28472   cat conftest.err >&5
28473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474   (exit $ac_status); } &&
28475          { ac_try='test -z "$ac_c_werror_flag"
28476                          || test ! -s conftest.err'
28477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28478   (eval $ac_try) 2>&5
28479   ac_status=$?
28480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481   (exit $ac_status); }; } &&
28482          { ac_try='test -s conftest$ac_exeext'
28483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28484   (eval $ac_try) 2>&5
28485   ac_status=$?
28486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487   (exit $ac_status); }; }; then
28488   eval "$as_ac_var=yes"
28489 else
28490   echo "$as_me: failed program was:" >&5
28491 sed 's/^/| /' conftest.$ac_ext >&5
28492
28493 eval "$as_ac_var=no"
28494 fi
28495 rm -f conftest.err conftest.$ac_objext \
28496       conftest$ac_exeext conftest.$ac_ext
28497 fi
28498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28500 if test `eval echo '${'$as_ac_var'}'` = yes; then
28501   cat >>confdefs.h <<_ACEOF
28502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28503 _ACEOF
28504
28505 fi
28506 done
28507
28508
28509
28510
28511
28512 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28513 do
28514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28515 echo "$as_me:$LINENO: checking for $ac_func" >&5
28516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28517 if eval "test \"\${$as_ac_var+set}\" = set"; then
28518   echo $ECHO_N "(cached) $ECHO_C" >&6
28519 else
28520   cat >conftest.$ac_ext <<_ACEOF
28521 /* confdefs.h.  */
28522 _ACEOF
28523 cat confdefs.h >>conftest.$ac_ext
28524 cat >>conftest.$ac_ext <<_ACEOF
28525 /* end confdefs.h.  */
28526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28528 #define $ac_func innocuous_$ac_func
28529
28530 /* System header to define __stub macros and hopefully few prototypes,
28531     which can conflict with char $ac_func (); below.
28532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28533     <limits.h> exists even on freestanding compilers.  */
28534
28535 #ifdef __STDC__
28536 # include <limits.h>
28537 #else
28538 # include <assert.h>
28539 #endif
28540
28541 #undef $ac_func
28542
28543 /* Override any gcc2 internal prototype to avoid an error.  */
28544 #ifdef __cplusplus
28545 extern "C"
28546 {
28547 #endif
28548 /* We use char because int might match the return type of a gcc2
28549    builtin and then its argument prototype would still apply.  */
28550 char $ac_func ();
28551 /* The GNU C library defines this for functions which it implements
28552     to always fail with ENOSYS.  Some functions are actually named
28553     something starting with __ and the normal name is an alias.  */
28554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28555 choke me
28556 #else
28557 char (*f) () = $ac_func;
28558 #endif
28559 #ifdef __cplusplus
28560 }
28561 #endif
28562
28563 int
28564 main ()
28565 {
28566 return f != $ac_func;
28567   ;
28568   return 0;
28569 }
28570 _ACEOF
28571 rm -f conftest.$ac_objext conftest$ac_exeext
28572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28573   (eval $ac_link) 2>conftest.er1
28574   ac_status=$?
28575   grep -v '^ *+' conftest.er1 >conftest.err
28576   rm -f conftest.er1
28577   cat conftest.err >&5
28578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579   (exit $ac_status); } &&
28580          { ac_try='test -z "$ac_c_werror_flag"
28581                          || test ! -s conftest.err'
28582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28583   (eval $ac_try) 2>&5
28584   ac_status=$?
28585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586   (exit $ac_status); }; } &&
28587          { ac_try='test -s conftest$ac_exeext'
28588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28589   (eval $ac_try) 2>&5
28590   ac_status=$?
28591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592   (exit $ac_status); }; }; then
28593   eval "$as_ac_var=yes"
28594 else
28595   echo "$as_me: failed program was:" >&5
28596 sed 's/^/| /' conftest.$ac_ext >&5
28597
28598 eval "$as_ac_var=no"
28599 fi
28600 rm -f conftest.err conftest.$ac_objext \
28601       conftest$ac_exeext conftest.$ac_ext
28602 fi
28603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28605 if test `eval echo '${'$as_ac_var'}'` = yes; then
28606   cat >>confdefs.h <<_ACEOF
28607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28608 _ACEOF
28609
28610 fi
28611 done
28612
28613
28614
28615
28616
28617
28618
28619 for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
28620 do
28621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28622 echo "$as_me:$LINENO: checking for $ac_func" >&5
28623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28624 if eval "test \"\${$as_ac_var+set}\" = set"; then
28625   echo $ECHO_N "(cached) $ECHO_C" >&6
28626 else
28627   cat >conftest.$ac_ext <<_ACEOF
28628 /* confdefs.h.  */
28629 _ACEOF
28630 cat confdefs.h >>conftest.$ac_ext
28631 cat >>conftest.$ac_ext <<_ACEOF
28632 /* end confdefs.h.  */
28633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28634    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28635 #define $ac_func innocuous_$ac_func
28636
28637 /* System header to define __stub macros and hopefully few prototypes,
28638     which can conflict with char $ac_func (); below.
28639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28640     <limits.h> exists even on freestanding compilers.  */
28641
28642 #ifdef __STDC__
28643 # include <limits.h>
28644 #else
28645 # include <assert.h>
28646 #endif
28647
28648 #undef $ac_func
28649
28650 /* Override any gcc2 internal prototype to avoid an error.  */
28651 #ifdef __cplusplus
28652 extern "C"
28653 {
28654 #endif
28655 /* We use char because int might match the return type of a gcc2
28656    builtin and then its argument prototype would still apply.  */
28657 char $ac_func ();
28658 /* The GNU C library defines this for functions which it implements
28659     to always fail with ENOSYS.  Some functions are actually named
28660     something starting with __ and the normal name is an alias.  */
28661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28662 choke me
28663 #else
28664 char (*f) () = $ac_func;
28665 #endif
28666 #ifdef __cplusplus
28667 }
28668 #endif
28669
28670 int
28671 main ()
28672 {
28673 return f != $ac_func;
28674   ;
28675   return 0;
28676 }
28677 _ACEOF
28678 rm -f conftest.$ac_objext conftest$ac_exeext
28679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28680   (eval $ac_link) 2>conftest.er1
28681   ac_status=$?
28682   grep -v '^ *+' conftest.er1 >conftest.err
28683   rm -f conftest.er1
28684   cat conftest.err >&5
28685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686   (exit $ac_status); } &&
28687          { ac_try='test -z "$ac_c_werror_flag"
28688                          || test ! -s conftest.err'
28689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28690   (eval $ac_try) 2>&5
28691   ac_status=$?
28692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693   (exit $ac_status); }; } &&
28694          { ac_try='test -s conftest$ac_exeext'
28695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28696   (eval $ac_try) 2>&5
28697   ac_status=$?
28698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699   (exit $ac_status); }; }; then
28700   eval "$as_ac_var=yes"
28701 else
28702   echo "$as_me: failed program was:" >&5
28703 sed 's/^/| /' conftest.$ac_ext >&5
28704
28705 eval "$as_ac_var=no"
28706 fi
28707 rm -f conftest.err conftest.$ac_objext \
28708       conftest$ac_exeext conftest.$ac_ext
28709 fi
28710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28712 if test `eval echo '${'$as_ac_var'}'` = yes; then
28713   cat >>confdefs.h <<_ACEOF
28714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28715 _ACEOF
28716
28717 fi
28718 done
28719
28720 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28721 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28722 if test "${llvm_cv_c_printf_a+set}" = set; then
28723   echo $ECHO_N "(cached) $ECHO_C" >&6
28724 else
28725   ac_ext=c
28726 ac_cpp='$CPP $CPPFLAGS'
28727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28730
28731  if test "$cross_compiling" = yes; then
28732   llvmac_cv_c_printf_a=no
28733 else
28734   cat >conftest.$ac_ext <<_ACEOF
28735
28736   /* confdefs.h.  */
28737 _ACEOF
28738 cat confdefs.h >>conftest.$ac_ext
28739 cat >>conftest.$ac_ext <<_ACEOF
28740 /* end confdefs.h.  */
28741
28742 #include <stdio.h>
28743 #include <stdlib.h>
28744
28745 int
28746 main ()
28747 {
28748
28749 volatile double A, B;
28750 char Buffer[100];
28751 A = 1;
28752 A /= 10.0;
28753 sprintf(Buffer, "%a", A);
28754 B = atof(Buffer);
28755 if (A != B)
28756   return (1);
28757 if (A != 0x1.999999999999ap-4)
28758   return (1);
28759 return (0);
28760   ;
28761   return 0;
28762 }
28763 _ACEOF
28764 rm -f conftest$ac_exeext
28765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28766   (eval $ac_link) 2>&5
28767   ac_status=$?
28768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28771   (eval $ac_try) 2>&5
28772   ac_status=$?
28773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774   (exit $ac_status); }; }; then
28775   llvm_cv_c_printf_a=yes
28776 else
28777   echo "$as_me: program exited with status $ac_status" >&5
28778 echo "$as_me: failed program was:" >&5
28779 sed 's/^/| /' conftest.$ac_ext >&5
28780
28781 ( exit $ac_status )
28782 llvmac_cv_c_printf_a=no
28783 fi
28784 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28785 fi
28786  ac_ext=c
28787 ac_cpp='$CPP $CPPFLAGS'
28788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28791
28792 fi
28793 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28794 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28795  if test "$llvm_cv_c_printf_a" = "yes"; then
28796
28797 cat >>confdefs.h <<\_ACEOF
28798 #define HAVE_PRINTF_A 1
28799 _ACEOF
28800
28801  fi
28802
28803 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28804 # for constant arguments.  Useless!
28805 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28806 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28807 if test "${ac_cv_working_alloca_h+set}" = set; then
28808   echo $ECHO_N "(cached) $ECHO_C" >&6
28809 else
28810   cat >conftest.$ac_ext <<_ACEOF
28811 /* confdefs.h.  */
28812 _ACEOF
28813 cat confdefs.h >>conftest.$ac_ext
28814 cat >>conftest.$ac_ext <<_ACEOF
28815 /* end confdefs.h.  */
28816 #include <alloca.h>
28817 int
28818 main ()
28819 {
28820 char *p = (char *) alloca (2 * sizeof (int));
28821   ;
28822   return 0;
28823 }
28824 _ACEOF
28825 rm -f conftest.$ac_objext conftest$ac_exeext
28826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28827   (eval $ac_link) 2>conftest.er1
28828   ac_status=$?
28829   grep -v '^ *+' conftest.er1 >conftest.err
28830   rm -f conftest.er1
28831   cat conftest.err >&5
28832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833   (exit $ac_status); } &&
28834          { ac_try='test -z "$ac_c_werror_flag"
28835                          || test ! -s conftest.err'
28836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28837   (eval $ac_try) 2>&5
28838   ac_status=$?
28839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840   (exit $ac_status); }; } &&
28841          { ac_try='test -s conftest$ac_exeext'
28842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28843   (eval $ac_try) 2>&5
28844   ac_status=$?
28845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846   (exit $ac_status); }; }; then
28847   ac_cv_working_alloca_h=yes
28848 else
28849   echo "$as_me: failed program was:" >&5
28850 sed 's/^/| /' conftest.$ac_ext >&5
28851
28852 ac_cv_working_alloca_h=no
28853 fi
28854 rm -f conftest.err conftest.$ac_objext \
28855       conftest$ac_exeext conftest.$ac_ext
28856 fi
28857 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28858 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28859 if test $ac_cv_working_alloca_h = yes; then
28860
28861 cat >>confdefs.h <<\_ACEOF
28862 #define HAVE_ALLOCA_H 1
28863 _ACEOF
28864
28865 fi
28866
28867 echo "$as_me:$LINENO: checking for alloca" >&5
28868 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28869 if test "${ac_cv_func_alloca_works+set}" = set; then
28870   echo $ECHO_N "(cached) $ECHO_C" >&6
28871 else
28872   cat >conftest.$ac_ext <<_ACEOF
28873 /* confdefs.h.  */
28874 _ACEOF
28875 cat confdefs.h >>conftest.$ac_ext
28876 cat >>conftest.$ac_ext <<_ACEOF
28877 /* end confdefs.h.  */
28878 #ifdef __GNUC__
28879 # define alloca __builtin_alloca
28880 #else
28881 # ifdef _MSC_VER
28882 #  include <malloc.h>
28883 #  define alloca _alloca
28884 # else
28885 #  if HAVE_ALLOCA_H
28886 #   include <alloca.h>
28887 #  else
28888 #   ifdef _AIX
28889  #pragma alloca
28890 #   else
28891 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28892 char *alloca ();
28893 #    endif
28894 #   endif
28895 #  endif
28896 # endif
28897 #endif
28898
28899 int
28900 main ()
28901 {
28902 char *p = (char *) alloca (1);
28903   ;
28904   return 0;
28905 }
28906 _ACEOF
28907 rm -f conftest.$ac_objext conftest$ac_exeext
28908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28909   (eval $ac_link) 2>conftest.er1
28910   ac_status=$?
28911   grep -v '^ *+' conftest.er1 >conftest.err
28912   rm -f conftest.er1
28913   cat conftest.err >&5
28914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915   (exit $ac_status); } &&
28916          { ac_try='test -z "$ac_c_werror_flag"
28917                          || test ! -s conftest.err'
28918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28919   (eval $ac_try) 2>&5
28920   ac_status=$?
28921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922   (exit $ac_status); }; } &&
28923          { ac_try='test -s conftest$ac_exeext'
28924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28925   (eval $ac_try) 2>&5
28926   ac_status=$?
28927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928   (exit $ac_status); }; }; then
28929   ac_cv_func_alloca_works=yes
28930 else
28931   echo "$as_me: failed program was:" >&5
28932 sed 's/^/| /' conftest.$ac_ext >&5
28933
28934 ac_cv_func_alloca_works=no
28935 fi
28936 rm -f conftest.err conftest.$ac_objext \
28937       conftest$ac_exeext conftest.$ac_ext
28938 fi
28939 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28940 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28941
28942 if test $ac_cv_func_alloca_works = yes; then
28943
28944 cat >>confdefs.h <<\_ACEOF
28945 #define HAVE_ALLOCA 1
28946 _ACEOF
28947
28948 else
28949   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28950 # that cause trouble.  Some versions do not even contain alloca or
28951 # contain a buggy version.  If you still want to use their alloca,
28952 # use ar to extract alloca.o from them instead of compiling alloca.c.
28953
28954 ALLOCA=alloca.$ac_objext
28955
28956 cat >>confdefs.h <<\_ACEOF
28957 #define C_ALLOCA 1
28958 _ACEOF
28959
28960
28961 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28962 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28963 if test "${ac_cv_os_cray+set}" = set; then
28964   echo $ECHO_N "(cached) $ECHO_C" >&6
28965 else
28966   cat >conftest.$ac_ext <<_ACEOF
28967 /* confdefs.h.  */
28968 _ACEOF
28969 cat confdefs.h >>conftest.$ac_ext
28970 cat >>conftest.$ac_ext <<_ACEOF
28971 /* end confdefs.h.  */
28972 #if defined(CRAY) && ! defined(CRAY2)
28973 webecray
28974 #else
28975 wenotbecray
28976 #endif
28977
28978 _ACEOF
28979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28980   $EGREP "webecray" >/dev/null 2>&1; then
28981   ac_cv_os_cray=yes
28982 else
28983   ac_cv_os_cray=no
28984 fi
28985 rm -f conftest*
28986
28987 fi
28988 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28989 echo "${ECHO_T}$ac_cv_os_cray" >&6
28990 if test $ac_cv_os_cray = yes; then
28991   for ac_func in _getb67 GETB67 getb67; do
28992     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28993 echo "$as_me:$LINENO: checking for $ac_func" >&5
28994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28995 if eval "test \"\${$as_ac_var+set}\" = set"; then
28996   echo $ECHO_N "(cached) $ECHO_C" >&6
28997 else
28998   cat >conftest.$ac_ext <<_ACEOF
28999 /* confdefs.h.  */
29000 _ACEOF
29001 cat confdefs.h >>conftest.$ac_ext
29002 cat >>conftest.$ac_ext <<_ACEOF
29003 /* end confdefs.h.  */
29004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29006 #define $ac_func innocuous_$ac_func
29007
29008 /* System header to define __stub macros and hopefully few prototypes,
29009     which can conflict with char $ac_func (); below.
29010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29011     <limits.h> exists even on freestanding compilers.  */
29012
29013 #ifdef __STDC__
29014 # include <limits.h>
29015 #else
29016 # include <assert.h>
29017 #endif
29018
29019 #undef $ac_func
29020
29021 /* Override any gcc2 internal prototype to avoid an error.  */
29022 #ifdef __cplusplus
29023 extern "C"
29024 {
29025 #endif
29026 /* We use char because int might match the return type of a gcc2
29027    builtin and then its argument prototype would still apply.  */
29028 char $ac_func ();
29029 /* The GNU C library defines this for functions which it implements
29030     to always fail with ENOSYS.  Some functions are actually named
29031     something starting with __ and the normal name is an alias.  */
29032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29033 choke me
29034 #else
29035 char (*f) () = $ac_func;
29036 #endif
29037 #ifdef __cplusplus
29038 }
29039 #endif
29040
29041 int
29042 main ()
29043 {
29044 return f != $ac_func;
29045   ;
29046   return 0;
29047 }
29048 _ACEOF
29049 rm -f conftest.$ac_objext conftest$ac_exeext
29050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29051   (eval $ac_link) 2>conftest.er1
29052   ac_status=$?
29053   grep -v '^ *+' conftest.er1 >conftest.err
29054   rm -f conftest.er1
29055   cat conftest.err >&5
29056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057   (exit $ac_status); } &&
29058          { ac_try='test -z "$ac_c_werror_flag"
29059                          || test ! -s conftest.err'
29060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29061   (eval $ac_try) 2>&5
29062   ac_status=$?
29063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064   (exit $ac_status); }; } &&
29065          { ac_try='test -s conftest$ac_exeext'
29066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29067   (eval $ac_try) 2>&5
29068   ac_status=$?
29069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070   (exit $ac_status); }; }; then
29071   eval "$as_ac_var=yes"
29072 else
29073   echo "$as_me: failed program was:" >&5
29074 sed 's/^/| /' conftest.$ac_ext >&5
29075
29076 eval "$as_ac_var=no"
29077 fi
29078 rm -f conftest.err conftest.$ac_objext \
29079       conftest$ac_exeext conftest.$ac_ext
29080 fi
29081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29083 if test `eval echo '${'$as_ac_var'}'` = yes; then
29084
29085 cat >>confdefs.h <<_ACEOF
29086 #define CRAY_STACKSEG_END $ac_func
29087 _ACEOF
29088
29089     break
29090 fi
29091
29092   done
29093 fi
29094
29095 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29096 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
29097 if test "${ac_cv_c_stack_direction+set}" = set; then
29098   echo $ECHO_N "(cached) $ECHO_C" >&6
29099 else
29100   if test "$cross_compiling" = yes; then
29101   ac_cv_c_stack_direction=0
29102 else
29103   cat >conftest.$ac_ext <<_ACEOF
29104 /* confdefs.h.  */
29105 _ACEOF
29106 cat confdefs.h >>conftest.$ac_ext
29107 cat >>conftest.$ac_ext <<_ACEOF
29108 /* end confdefs.h.  */
29109 int
29110 find_stack_direction ()
29111 {
29112   static char *addr = 0;
29113   auto char dummy;
29114   if (addr == 0)
29115     {
29116       addr = &dummy;
29117       return find_stack_direction ();
29118     }
29119   else
29120     return (&dummy > addr) ? 1 : -1;
29121 }
29122
29123 int
29124 main ()
29125 {
29126   exit (find_stack_direction () < 0);
29127 }
29128 _ACEOF
29129 rm -f conftest$ac_exeext
29130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29131   (eval $ac_link) 2>&5
29132   ac_status=$?
29133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29136   (eval $ac_try) 2>&5
29137   ac_status=$?
29138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139   (exit $ac_status); }; }; then
29140   ac_cv_c_stack_direction=1
29141 else
29142   echo "$as_me: program exited with status $ac_status" >&5
29143 echo "$as_me: failed program was:" >&5
29144 sed 's/^/| /' conftest.$ac_ext >&5
29145
29146 ( exit $ac_status )
29147 ac_cv_c_stack_direction=-1
29148 fi
29149 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29150 fi
29151 fi
29152 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29153 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
29154
29155 cat >>confdefs.h <<_ACEOF
29156 #define STACK_DIRECTION $ac_cv_c_stack_direction
29157 _ACEOF
29158
29159
29160 fi
29161
29162
29163 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29164 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
29165 if test "${ac_cv_func_rand48+set}" = set; then
29166   echo $ECHO_N "(cached) $ECHO_C" >&6
29167 else
29168   ac_ext=cc
29169 ac_cpp='$CXXCPP $CPPFLAGS'
29170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29173
29174    cat >conftest.$ac_ext <<_ACEOF
29175 /* confdefs.h.  */
29176 _ACEOF
29177 cat confdefs.h >>conftest.$ac_ext
29178 cat >>conftest.$ac_ext <<_ACEOF
29179 /* end confdefs.h.  */
29180 #include <stdlib.h>
29181 int
29182 main ()
29183 {
29184 srand48(0);lrand48();drand48();
29185   ;
29186   return 0;
29187 }
29188 _ACEOF
29189 rm -f conftest.$ac_objext
29190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29191   (eval $ac_compile) 2>conftest.er1
29192   ac_status=$?
29193   grep -v '^ *+' conftest.er1 >conftest.err
29194   rm -f conftest.er1
29195   cat conftest.err >&5
29196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29197   (exit $ac_status); } &&
29198          { ac_try='test -z "$ac_cxx_werror_flag"
29199                          || test ! -s conftest.err'
29200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29201   (eval $ac_try) 2>&5
29202   ac_status=$?
29203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204   (exit $ac_status); }; } &&
29205          { ac_try='test -s conftest.$ac_objext'
29206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29207   (eval $ac_try) 2>&5
29208   ac_status=$?
29209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210   (exit $ac_status); }; }; then
29211   ac_cv_func_rand48=yes
29212 else
29213   echo "$as_me: failed program was:" >&5
29214 sed 's/^/| /' conftest.$ac_ext >&5
29215
29216 ac_cv_func_rand48=no
29217 fi
29218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29219   ac_ext=c
29220 ac_cpp='$CPP $CPPFLAGS'
29221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29224
29225 fi
29226 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29227 echo "${ECHO_T}$ac_cv_func_rand48" >&6
29228
29229 if test "$ac_cv_func_rand48" = "yes" ; then
29230
29231 cat >>confdefs.h <<\_ACEOF
29232 #define HAVE_RAND48 1
29233 _ACEOF
29234
29235 fi
29236
29237
29238 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29239 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
29240 if test "${ac_cv_cxx_namespaces+set}" = set; then
29241   echo $ECHO_N "(cached) $ECHO_C" >&6
29242 else
29243   ac_ext=cc
29244 ac_cpp='$CXXCPP $CPPFLAGS'
29245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29248
29249  cat >conftest.$ac_ext <<_ACEOF
29250 /* confdefs.h.  */
29251 _ACEOF
29252 cat confdefs.h >>conftest.$ac_ext
29253 cat >>conftest.$ac_ext <<_ACEOF
29254 /* end confdefs.h.  */
29255 namespace Outer { namespace Inner { int i = 0; }}
29256 int
29257 main ()
29258 {
29259 using namespace Outer::Inner; return i;
29260   ;
29261   return 0;
29262 }
29263 _ACEOF
29264 rm -f conftest.$ac_objext
29265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29266   (eval $ac_compile) 2>conftest.er1
29267   ac_status=$?
29268   grep -v '^ *+' conftest.er1 >conftest.err
29269   rm -f conftest.er1
29270   cat conftest.err >&5
29271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272   (exit $ac_status); } &&
29273          { ac_try='test -z "$ac_cxx_werror_flag"
29274                          || test ! -s conftest.err'
29275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29276   (eval $ac_try) 2>&5
29277   ac_status=$?
29278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279   (exit $ac_status); }; } &&
29280          { ac_try='test -s conftest.$ac_objext'
29281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29282   (eval $ac_try) 2>&5
29283   ac_status=$?
29284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285   (exit $ac_status); }; }; then
29286   ac_cv_cxx_namespaces=yes
29287 else
29288   echo "$as_me: failed program was:" >&5
29289 sed 's/^/| /' conftest.$ac_ext >&5
29290
29291 ac_cv_cxx_namespaces=no
29292 fi
29293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29294  ac_ext=c
29295 ac_cpp='$CPP $CPPFLAGS'
29296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29299
29300
29301 fi
29302 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29303 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
29304 if test "$ac_cv_cxx_namespaces" = yes; then
29305
29306 cat >>confdefs.h <<\_ACEOF
29307 #define HAVE_NAMESPACES
29308 _ACEOF
29309
29310 fi
29311
29312 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29313 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
29314 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
29315   echo $ECHO_N "(cached) $ECHO_C" >&6
29316 else
29317
29318   ac_ext=cc
29319 ac_cpp='$CXXCPP $CPPFLAGS'
29320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29323
29324   cat >conftest.$ac_ext <<_ACEOF
29325 /* confdefs.h.  */
29326 _ACEOF
29327 cat confdefs.h >>conftest.$ac_ext
29328 cat >>conftest.$ac_ext <<_ACEOF
29329 /* end confdefs.h.  */
29330 #include <ext/hash_map>
29331 #ifdef HAVE_NAMESPACES
29332 using namespace std;
29333 #endif
29334 int
29335 main ()
29336 {
29337 hash_map<int, int> t;
29338   ;
29339   return 0;
29340 }
29341 _ACEOF
29342 rm -f conftest.$ac_objext
29343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29344   (eval $ac_compile) 2>conftest.er1
29345   ac_status=$?
29346   grep -v '^ *+' conftest.er1 >conftest.err
29347   rm -f conftest.er1
29348   cat conftest.err >&5
29349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350   (exit $ac_status); } &&
29351          { ac_try='test -z "$ac_cxx_werror_flag"
29352                          || test ! -s conftest.err'
29353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29354   (eval $ac_try) 2>&5
29355   ac_status=$?
29356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357   (exit $ac_status); }; } &&
29358          { ac_try='test -s conftest.$ac_objext'
29359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29360   (eval $ac_try) 2>&5
29361   ac_status=$?
29362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363   (exit $ac_status); }; }; then
29364   ac_cv_cxx_have_std_ext_hash_map=yes
29365 else
29366   echo "$as_me: failed program was:" >&5
29367 sed 's/^/| /' conftest.$ac_ext >&5
29368
29369 ac_cv_cxx_have_std_ext_hash_map=no
29370 fi
29371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29372   ac_ext=c
29373 ac_cpp='$CPP $CPPFLAGS'
29374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29377
29378 fi
29379 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29380 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
29381  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29382  then
29383
29384 cat >>confdefs.h <<\_ACEOF
29385 #define HAVE_STD_EXT_HASH_MAP 1
29386 _ACEOF
29387
29388  else
29389
29390 cat >>confdefs.h <<\_ACEOF
29391 #define HAVE_STD_EXT_HASH_MAP 0
29392 _ACEOF
29393
29394  fi
29395
29396  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29397 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29398 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29399   echo $ECHO_N "(cached) $ECHO_C" >&6
29400 else
29401
29402   ac_ext=cc
29403 ac_cpp='$CXXCPP $CPPFLAGS'
29404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29407
29408   cat >conftest.$ac_ext <<_ACEOF
29409 /* confdefs.h.  */
29410 _ACEOF
29411 cat confdefs.h >>conftest.$ac_ext
29412 cat >>conftest.$ac_ext <<_ACEOF
29413 /* end confdefs.h.  */
29414 #include <ext/hash_map>
29415 #ifdef HAVE_NAMESPACES
29416 using namespace __gnu_cxx;
29417 #endif
29418 int
29419 main ()
29420 {
29421 hash_map<int,int> t;
29422   ;
29423   return 0;
29424 }
29425 _ACEOF
29426 rm -f conftest.$ac_objext
29427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29428   (eval $ac_compile) 2>conftest.er1
29429   ac_status=$?
29430   grep -v '^ *+' conftest.er1 >conftest.err
29431   rm -f conftest.er1
29432   cat conftest.err >&5
29433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434   (exit $ac_status); } &&
29435          { ac_try='test -z "$ac_cxx_werror_flag"
29436                          || test ! -s conftest.err'
29437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29438   (eval $ac_try) 2>&5
29439   ac_status=$?
29440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441   (exit $ac_status); }; } &&
29442          { ac_try='test -s conftest.$ac_objext'
29443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29444   (eval $ac_try) 2>&5
29445   ac_status=$?
29446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29447   (exit $ac_status); }; }; then
29448   ac_cv_cxx_have_gnu_ext_hash_map=yes
29449 else
29450   echo "$as_me: failed program was:" >&5
29451 sed 's/^/| /' conftest.$ac_ext >&5
29452
29453 ac_cv_cxx_have_gnu_ext_hash_map=no
29454 fi
29455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29456   ac_ext=c
29457 ac_cpp='$CPP $CPPFLAGS'
29458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29461
29462 fi
29463 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29464 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
29465  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29466  then
29467
29468 cat >>confdefs.h <<\_ACEOF
29469 #define HAVE_GNU_EXT_HASH_MAP 1
29470 _ACEOF
29471
29472  else
29473
29474 cat >>confdefs.h <<\_ACEOF
29475 #define HAVE_GNU_EXT_HASH_MAP 0
29476 _ACEOF
29477
29478  fi
29479
29480  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29481 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29482 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29483   echo $ECHO_N "(cached) $ECHO_C" >&6
29484 else
29485
29486   ac_ext=cc
29487 ac_cpp='$CXXCPP $CPPFLAGS'
29488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29491
29492   cat >conftest.$ac_ext <<_ACEOF
29493 /* confdefs.h.  */
29494 _ACEOF
29495 cat confdefs.h >>conftest.$ac_ext
29496 cat >>conftest.$ac_ext <<_ACEOF
29497 /* end confdefs.h.  */
29498 #include <hash_map>
29499 int
29500 main ()
29501 {
29502 hash_map<int,int> t;
29503   ;
29504   return 0;
29505 }
29506 _ACEOF
29507 rm -f conftest.$ac_objext
29508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29509   (eval $ac_compile) 2>conftest.er1
29510   ac_status=$?
29511   grep -v '^ *+' conftest.er1 >conftest.err
29512   rm -f conftest.er1
29513   cat conftest.err >&5
29514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515   (exit $ac_status); } &&
29516          { ac_try='test -z "$ac_cxx_werror_flag"
29517                          || test ! -s conftest.err'
29518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29519   (eval $ac_try) 2>&5
29520   ac_status=$?
29521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522   (exit $ac_status); }; } &&
29523          { ac_try='test -s conftest.$ac_objext'
29524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29525   (eval $ac_try) 2>&5
29526   ac_status=$?
29527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528   (exit $ac_status); }; }; then
29529   ac_cv_cxx_have_global_hash_map=yes
29530 else
29531   echo "$as_me: failed program was:" >&5
29532 sed 's/^/| /' conftest.$ac_ext >&5
29533
29534 ac_cv_cxx_have_global_hash_map=no
29535 fi
29536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29537   ac_ext=c
29538 ac_cpp='$CPP $CPPFLAGS'
29539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29542
29543 fi
29544 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29545 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29546  if test "$ac_cv_cxx_have_global_hash_map" = yes
29547  then
29548
29549 cat >>confdefs.h <<\_ACEOF
29550 #define HAVE_GLOBAL_HASH_MAP 1
29551 _ACEOF
29552
29553  else
29554
29555 cat >>confdefs.h <<\_ACEOF
29556 #define HAVE_GLOBAL_HASH_MAP 0
29557 _ACEOF
29558
29559  fi
29560
29561 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29562 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29563 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29564   echo $ECHO_N "(cached) $ECHO_C" >&6
29565 else
29566
29567   ac_ext=cc
29568 ac_cpp='$CXXCPP $CPPFLAGS'
29569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29572
29573   cat >conftest.$ac_ext <<_ACEOF
29574 /* confdefs.h.  */
29575 _ACEOF
29576 cat confdefs.h >>conftest.$ac_ext
29577 cat >>conftest.$ac_ext <<_ACEOF
29578 /* end confdefs.h.  */
29579 #include <ext/hash_set>
29580 #ifdef HAVE_NAMESPACES
29581 using namespace std;
29582 #endif
29583 int
29584 main ()
29585 {
29586 hash_set<int> t;
29587   ;
29588   return 0;
29589 }
29590 _ACEOF
29591 rm -f conftest.$ac_objext
29592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29593   (eval $ac_compile) 2>conftest.er1
29594   ac_status=$?
29595   grep -v '^ *+' conftest.er1 >conftest.err
29596   rm -f conftest.er1
29597   cat conftest.err >&5
29598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599   (exit $ac_status); } &&
29600          { ac_try='test -z "$ac_cxx_werror_flag"
29601                          || test ! -s conftest.err'
29602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29603   (eval $ac_try) 2>&5
29604   ac_status=$?
29605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606   (exit $ac_status); }; } &&
29607          { ac_try='test -s conftest.$ac_objext'
29608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29609   (eval $ac_try) 2>&5
29610   ac_status=$?
29611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612   (exit $ac_status); }; }; then
29613   ac_cv_cxx_have_std_ext_hash_set=yes
29614 else
29615   echo "$as_me: failed program was:" >&5
29616 sed 's/^/| /' conftest.$ac_ext >&5
29617
29618 ac_cv_cxx_have_std_ext_hash_set=no
29619 fi
29620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29621   ac_ext=c
29622 ac_cpp='$CPP $CPPFLAGS'
29623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29626
29627 fi
29628 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29629 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29630  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29631  then
29632
29633 cat >>confdefs.h <<\_ACEOF
29634 #define HAVE_STD_EXT_HASH_SET 1
29635 _ACEOF
29636
29637  else
29638
29639 cat >>confdefs.h <<\_ACEOF
29640 #define HAVE_STD_EXT_HASH_SET 0
29641 _ACEOF
29642
29643  fi
29644
29645  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29646 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29647 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29648   echo $ECHO_N "(cached) $ECHO_C" >&6
29649 else
29650
29651   ac_ext=cc
29652 ac_cpp='$CXXCPP $CPPFLAGS'
29653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29656
29657   cat >conftest.$ac_ext <<_ACEOF
29658 /* confdefs.h.  */
29659 _ACEOF
29660 cat confdefs.h >>conftest.$ac_ext
29661 cat >>conftest.$ac_ext <<_ACEOF
29662 /* end confdefs.h.  */
29663 #include <ext/hash_set>
29664 #ifdef HAVE_NAMESPACES
29665 using namespace __gnu_cxx;
29666 #endif
29667 int
29668 main ()
29669 {
29670 hash_set<int> t;
29671   ;
29672   return 0;
29673 }
29674 _ACEOF
29675 rm -f conftest.$ac_objext
29676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29677   (eval $ac_compile) 2>conftest.er1
29678   ac_status=$?
29679   grep -v '^ *+' conftest.er1 >conftest.err
29680   rm -f conftest.er1
29681   cat conftest.err >&5
29682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683   (exit $ac_status); } &&
29684          { ac_try='test -z "$ac_cxx_werror_flag"
29685                          || test ! -s conftest.err'
29686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29687   (eval $ac_try) 2>&5
29688   ac_status=$?
29689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690   (exit $ac_status); }; } &&
29691          { ac_try='test -s conftest.$ac_objext'
29692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29693   (eval $ac_try) 2>&5
29694   ac_status=$?
29695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696   (exit $ac_status); }; }; then
29697   ac_cv_cxx_have_gnu_ext_hash_set=yes
29698 else
29699   echo "$as_me: failed program was:" >&5
29700 sed 's/^/| /' conftest.$ac_ext >&5
29701
29702 ac_cv_cxx_have_gnu_ext_hash_set=no
29703 fi
29704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29705   ac_ext=c
29706 ac_cpp='$CPP $CPPFLAGS'
29707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29710
29711 fi
29712 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29713 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29714  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29715  then
29716
29717 cat >>confdefs.h <<\_ACEOF
29718 #define HAVE_GNU_EXT_HASH_SET 1
29719 _ACEOF
29720
29721  else
29722
29723 cat >>confdefs.h <<\_ACEOF
29724 #define HAVE_GNU_EXT_HASH_SET 0
29725 _ACEOF
29726
29727  fi
29728
29729  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29730 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29731 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29732   echo $ECHO_N "(cached) $ECHO_C" >&6
29733 else
29734
29735   ac_ext=cc
29736 ac_cpp='$CXXCPP $CPPFLAGS'
29737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29740
29741   cat >conftest.$ac_ext <<_ACEOF
29742 /* confdefs.h.  */
29743 _ACEOF
29744 cat confdefs.h >>conftest.$ac_ext
29745 cat >>conftest.$ac_ext <<_ACEOF
29746 /* end confdefs.h.  */
29747 #include <hash_set>
29748 int
29749 main ()
29750 {
29751 hash_set<int> t; return 0;
29752   ;
29753   return 0;
29754 }
29755 _ACEOF
29756 rm -f conftest.$ac_objext
29757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29758   (eval $ac_compile) 2>conftest.er1
29759   ac_status=$?
29760   grep -v '^ *+' conftest.er1 >conftest.err
29761   rm -f conftest.er1
29762   cat conftest.err >&5
29763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764   (exit $ac_status); } &&
29765          { ac_try='test -z "$ac_cxx_werror_flag"
29766                          || test ! -s conftest.err'
29767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29768   (eval $ac_try) 2>&5
29769   ac_status=$?
29770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771   (exit $ac_status); }; } &&
29772          { ac_try='test -s conftest.$ac_objext'
29773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29774   (eval $ac_try) 2>&5
29775   ac_status=$?
29776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777   (exit $ac_status); }; }; then
29778   ac_cv_cxx_have_global_hash_set=yes
29779 else
29780   echo "$as_me: failed program was:" >&5
29781 sed 's/^/| /' conftest.$ac_ext >&5
29782
29783 ac_cv_cxx_have_global_hash_set=no
29784 fi
29785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29786   ac_ext=c
29787 ac_cpp='$CPP $CPPFLAGS'
29788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29791
29792 fi
29793 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29794 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29795  if test "$ac_cv_cxx_have_global_hash_set" = yes
29796  then
29797
29798 cat >>confdefs.h <<\_ACEOF
29799 #define HAVE_GLOBAL_HASH_SET 1
29800 _ACEOF
29801
29802  else
29803
29804 cat >>confdefs.h <<\_ACEOF
29805 #define HAVE_GLOBAL_HASH_SET 0
29806 _ACEOF
29807
29808  fi
29809
29810 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29811 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29812 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29813   echo $ECHO_N "(cached) $ECHO_C" >&6
29814 else
29815
29816   ac_ext=cc
29817 ac_cpp='$CXXCPP $CPPFLAGS'
29818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29821
29822   cat >conftest.$ac_ext <<_ACEOF
29823 /* confdefs.h.  */
29824 _ACEOF
29825 cat confdefs.h >>conftest.$ac_ext
29826 cat >>conftest.$ac_ext <<_ACEOF
29827 /* end confdefs.h.  */
29828 #include <iterator>
29829 #ifdef HAVE_NAMESPACES
29830 using namespace std;
29831 #endif
29832 int
29833 main ()
29834 {
29835 iterator<int,int,int> t; return 0;
29836   ;
29837   return 0;
29838 }
29839 _ACEOF
29840 rm -f conftest.$ac_objext
29841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29842   (eval $ac_compile) 2>conftest.er1
29843   ac_status=$?
29844   grep -v '^ *+' conftest.er1 >conftest.err
29845   rm -f conftest.er1
29846   cat conftest.err >&5
29847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848   (exit $ac_status); } &&
29849          { ac_try='test -z "$ac_cxx_werror_flag"
29850                          || test ! -s conftest.err'
29851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29852   (eval $ac_try) 2>&5
29853   ac_status=$?
29854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855   (exit $ac_status); }; } &&
29856          { ac_try='test -s conftest.$ac_objext'
29857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29858   (eval $ac_try) 2>&5
29859   ac_status=$?
29860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861   (exit $ac_status); }; }; then
29862   ac_cv_cxx_have_std_iterator=yes
29863 else
29864   echo "$as_me: failed program was:" >&5
29865 sed 's/^/| /' conftest.$ac_ext >&5
29866
29867 ac_cv_cxx_have_std_iterator=no
29868 fi
29869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29870   ac_ext=c
29871 ac_cpp='$CPP $CPPFLAGS'
29872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29875
29876
29877 fi
29878 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29879 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29880 if test "$ac_cv_cxx_have_std_iterator" = yes
29881 then
29882
29883 cat >>confdefs.h <<\_ACEOF
29884 #define HAVE_STD_ITERATOR 1
29885 _ACEOF
29886
29887 else
29888
29889 cat >>confdefs.h <<\_ACEOF
29890 #define HAVE_STD_ITERATOR 0
29891 _ACEOF
29892
29893 fi
29894
29895 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29896 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29897 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29898   echo $ECHO_N "(cached) $ECHO_C" >&6
29899 else
29900
29901   ac_ext=cc
29902 ac_cpp='$CXXCPP $CPPFLAGS'
29903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29906
29907   cat >conftest.$ac_ext <<_ACEOF
29908 /* confdefs.h.  */
29909 _ACEOF
29910 cat confdefs.h >>conftest.$ac_ext
29911 cat >>conftest.$ac_ext <<_ACEOF
29912 /* end confdefs.h.  */
29913 #include <iterator>
29914 #ifdef HAVE_NAMESPACES
29915 using namespace std;
29916 #endif
29917 int
29918 main ()
29919 {
29920 bidirectional_iterator<int,int> t; return 0;
29921   ;
29922   return 0;
29923 }
29924 _ACEOF
29925 rm -f conftest.$ac_objext
29926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29927   (eval $ac_compile) 2>conftest.er1
29928   ac_status=$?
29929   grep -v '^ *+' conftest.er1 >conftest.err
29930   rm -f conftest.er1
29931   cat conftest.err >&5
29932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933   (exit $ac_status); } &&
29934          { ac_try='test -z "$ac_cxx_werror_flag"
29935                          || test ! -s conftest.err'
29936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29937   (eval $ac_try) 2>&5
29938   ac_status=$?
29939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940   (exit $ac_status); }; } &&
29941          { ac_try='test -s conftest.$ac_objext'
29942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29943   (eval $ac_try) 2>&5
29944   ac_status=$?
29945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946   (exit $ac_status); }; }; then
29947   ac_cv_cxx_have_bi_iterator=yes
29948 else
29949   echo "$as_me: failed program was:" >&5
29950 sed 's/^/| /' conftest.$ac_ext >&5
29951
29952 ac_cv_cxx_have_bi_iterator=no
29953 fi
29954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29955   ac_ext=c
29956 ac_cpp='$CPP $CPPFLAGS'
29957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29960
29961
29962 fi
29963 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29964 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29965 if test "$ac_cv_cxx_have_bi_iterator" = yes
29966 then
29967
29968 cat >>confdefs.h <<\_ACEOF
29969 #define HAVE_BI_ITERATOR 1
29970 _ACEOF
29971
29972 else
29973
29974 cat >>confdefs.h <<\_ACEOF
29975 #define HAVE_BI_ITERATOR 0
29976 _ACEOF
29977
29978 fi
29979
29980 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29981 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29982 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29983   echo $ECHO_N "(cached) $ECHO_C" >&6
29984 else
29985
29986   ac_ext=cc
29987 ac_cpp='$CXXCPP $CPPFLAGS'
29988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29991
29992   cat >conftest.$ac_ext <<_ACEOF
29993 /* confdefs.h.  */
29994 _ACEOF
29995 cat confdefs.h >>conftest.$ac_ext
29996 cat >>conftest.$ac_ext <<_ACEOF
29997 /* end confdefs.h.  */
29998 #include <iterator>
29999 #ifdef HAVE_NAMESPACES
30000 using namespace std;
30001 #endif
30002 int
30003 main ()
30004 {
30005 forward_iterator<int,int> t; return 0;
30006   ;
30007   return 0;
30008 }
30009 _ACEOF
30010 rm -f conftest.$ac_objext
30011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30012   (eval $ac_compile) 2>conftest.er1
30013   ac_status=$?
30014   grep -v '^ *+' conftest.er1 >conftest.err
30015   rm -f conftest.er1
30016   cat conftest.err >&5
30017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018   (exit $ac_status); } &&
30019          { ac_try='test -z "$ac_cxx_werror_flag"
30020                          || test ! -s conftest.err'
30021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30022   (eval $ac_try) 2>&5
30023   ac_status=$?
30024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025   (exit $ac_status); }; } &&
30026          { ac_try='test -s conftest.$ac_objext'
30027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30028   (eval $ac_try) 2>&5
30029   ac_status=$?
30030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30031   (exit $ac_status); }; }; then
30032   ac_cv_cxx_have_fwd_iterator=yes
30033 else
30034   echo "$as_me: failed program was:" >&5
30035 sed 's/^/| /' conftest.$ac_ext >&5
30036
30037 ac_cv_cxx_have_fwd_iterator=no
30038 fi
30039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30040   ac_ext=c
30041 ac_cpp='$CPP $CPPFLAGS'
30042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30045
30046
30047 fi
30048 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30049 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
30050 if test "$ac_cv_cxx_have_fwd_iterator" = yes
30051 then
30052
30053 cat >>confdefs.h <<\_ACEOF
30054 #define HAVE_FWD_ITERATOR 1
30055 _ACEOF
30056
30057 else
30058
30059 cat >>confdefs.h <<\_ACEOF
30060 #define HAVE_FWD_ITERATOR 0
30061 _ACEOF
30062
30063 fi
30064
30065
30066 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30067 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
30068 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30069   echo $ECHO_N "(cached) $ECHO_C" >&6
30070 else
30071   ac_ext=cc
30072 ac_cpp='$CXXCPP $CPPFLAGS'
30073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30076
30077    cat >conftest.$ac_ext <<_ACEOF
30078 /* confdefs.h.  */
30079 _ACEOF
30080 cat confdefs.h >>conftest.$ac_ext
30081 cat >>conftest.$ac_ext <<_ACEOF
30082 /* end confdefs.h.  */
30083 #include <math.h>
30084 int
30085 main ()
30086 {
30087 float f; isnan(f);
30088   ;
30089   return 0;
30090 }
30091 _ACEOF
30092 rm -f conftest.$ac_objext
30093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30094   (eval $ac_compile) 2>conftest.er1
30095   ac_status=$?
30096   grep -v '^ *+' conftest.er1 >conftest.err
30097   rm -f conftest.er1
30098   cat conftest.err >&5
30099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30100   (exit $ac_status); } &&
30101          { ac_try='test -z "$ac_cxx_werror_flag"
30102                          || test ! -s conftest.err'
30103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30104   (eval $ac_try) 2>&5
30105   ac_status=$?
30106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30107   (exit $ac_status); }; } &&
30108          { ac_try='test -s conftest.$ac_objext'
30109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30110   (eval $ac_try) 2>&5
30111   ac_status=$?
30112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30113   (exit $ac_status); }; }; then
30114   ac_cv_func_isnan_in_math_h=yes
30115 else
30116   echo "$as_me: failed program was:" >&5
30117 sed 's/^/| /' conftest.$ac_ext >&5
30118
30119 ac_cv_func_isnan_in_math_h=no
30120 fi
30121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30122   ac_ext=c
30123 ac_cpp='$CPP $CPPFLAGS'
30124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30127
30128 fi
30129 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30130 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
30131
30132
30133 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
30134
30135 cat >>confdefs.h <<\_ACEOF
30136 #define HAVE_ISNAN_IN_MATH_H 1
30137 _ACEOF
30138
30139 fi
30140
30141 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30142 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
30143 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30144   echo $ECHO_N "(cached) $ECHO_C" >&6
30145 else
30146   ac_ext=cc
30147 ac_cpp='$CXXCPP $CPPFLAGS'
30148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30151
30152    cat >conftest.$ac_ext <<_ACEOF
30153 /* confdefs.h.  */
30154 _ACEOF
30155 cat confdefs.h >>conftest.$ac_ext
30156 cat >>conftest.$ac_ext <<_ACEOF
30157 /* end confdefs.h.  */
30158 #include <cmath>
30159 int
30160 main ()
30161 {
30162 float f; isnan(f);
30163   ;
30164   return 0;
30165 }
30166 _ACEOF
30167 rm -f conftest.$ac_objext
30168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30169   (eval $ac_compile) 2>conftest.er1
30170   ac_status=$?
30171   grep -v '^ *+' conftest.er1 >conftest.err
30172   rm -f conftest.er1
30173   cat conftest.err >&5
30174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175   (exit $ac_status); } &&
30176          { ac_try='test -z "$ac_cxx_werror_flag"
30177                          || test ! -s conftest.err'
30178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30179   (eval $ac_try) 2>&5
30180   ac_status=$?
30181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182   (exit $ac_status); }; } &&
30183          { ac_try='test -s conftest.$ac_objext'
30184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30185   (eval $ac_try) 2>&5
30186   ac_status=$?
30187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30188   (exit $ac_status); }; }; then
30189   ac_cv_func_isnan_in_cmath=yes
30190 else
30191   echo "$as_me: failed program was:" >&5
30192 sed 's/^/| /' conftest.$ac_ext >&5
30193
30194 ac_cv_func_isnan_in_cmath=no
30195 fi
30196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30197   ac_ext=c
30198 ac_cpp='$CPP $CPPFLAGS'
30199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30202
30203 fi
30204 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30205 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
30206
30207 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30208
30209 cat >>confdefs.h <<\_ACEOF
30210 #define HAVE_ISNAN_IN_CMATH 1
30211 _ACEOF
30212
30213 fi
30214
30215 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30216 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
30217 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30218   echo $ECHO_N "(cached) $ECHO_C" >&6
30219 else
30220   ac_ext=cc
30221 ac_cpp='$CXXCPP $CPPFLAGS'
30222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30225
30226    cat >conftest.$ac_ext <<_ACEOF
30227 /* confdefs.h.  */
30228 _ACEOF
30229 cat confdefs.h >>conftest.$ac_ext
30230 cat >>conftest.$ac_ext <<_ACEOF
30231 /* end confdefs.h.  */
30232 #include <cmath>
30233 int
30234 main ()
30235 {
30236 float f; std::isnan(f);
30237   ;
30238   return 0;
30239 }
30240 _ACEOF
30241 rm -f conftest.$ac_objext
30242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30243   (eval $ac_compile) 2>conftest.er1
30244   ac_status=$?
30245   grep -v '^ *+' conftest.er1 >conftest.err
30246   rm -f conftest.er1
30247   cat conftest.err >&5
30248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249   (exit $ac_status); } &&
30250          { ac_try='test -z "$ac_cxx_werror_flag"
30251                          || test ! -s conftest.err'
30252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30253   (eval $ac_try) 2>&5
30254   ac_status=$?
30255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256   (exit $ac_status); }; } &&
30257          { ac_try='test -s conftest.$ac_objext'
30258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30259   (eval $ac_try) 2>&5
30260   ac_status=$?
30261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262   (exit $ac_status); }; }; then
30263   ac_cv_func_std_isnan_in_cmath=yes
30264 else
30265   echo "$as_me: failed program was:" >&5
30266 sed 's/^/| /' conftest.$ac_ext >&5
30267
30268 ac_cv_func_std_isnan_in_cmath=no
30269 fi
30270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30271   ac_ext=c
30272 ac_cpp='$CPP $CPPFLAGS'
30273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30276
30277 fi
30278 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30279 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
30280
30281 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30282
30283 cat >>confdefs.h <<\_ACEOF
30284 #define HAVE_STD_ISNAN_IN_CMATH 1
30285 _ACEOF
30286
30287 fi
30288
30289
30290 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30291 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
30292 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30293   echo $ECHO_N "(cached) $ECHO_C" >&6
30294 else
30295   ac_ext=cc
30296 ac_cpp='$CXXCPP $CPPFLAGS'
30297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30300
30301    cat >conftest.$ac_ext <<_ACEOF
30302 /* confdefs.h.  */
30303 _ACEOF
30304 cat confdefs.h >>conftest.$ac_ext
30305 cat >>conftest.$ac_ext <<_ACEOF
30306 /* end confdefs.h.  */
30307 #include <math.h>
30308 int
30309 main ()
30310 {
30311 float f; isinf(f);
30312   ;
30313   return 0;
30314 }
30315 _ACEOF
30316 rm -f conftest.$ac_objext
30317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30318   (eval $ac_compile) 2>conftest.er1
30319   ac_status=$?
30320   grep -v '^ *+' conftest.er1 >conftest.err
30321   rm -f conftest.er1
30322   cat conftest.err >&5
30323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324   (exit $ac_status); } &&
30325          { ac_try='test -z "$ac_cxx_werror_flag"
30326                          || test ! -s conftest.err'
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); }; } &&
30332          { ac_try='test -s conftest.$ac_objext'
30333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30334   (eval $ac_try) 2>&5
30335   ac_status=$?
30336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337   (exit $ac_status); }; }; then
30338   ac_cv_func_isinf_in_math_h=yes
30339 else
30340   echo "$as_me: failed program was:" >&5
30341 sed 's/^/| /' conftest.$ac_ext >&5
30342
30343 ac_cv_func_isinf_in_math_h=no
30344 fi
30345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30346   ac_ext=c
30347 ac_cpp='$CPP $CPPFLAGS'
30348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30351
30352 fi
30353 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30354 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
30355
30356 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30357
30358 cat >>confdefs.h <<\_ACEOF
30359 #define HAVE_ISINF_IN_MATH_H 1
30360 _ACEOF
30361
30362 fi
30363
30364 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30365 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30366 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30367   echo $ECHO_N "(cached) $ECHO_C" >&6
30368 else
30369   ac_ext=cc
30370 ac_cpp='$CXXCPP $CPPFLAGS'
30371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30374
30375    cat >conftest.$ac_ext <<_ACEOF
30376 /* confdefs.h.  */
30377 _ACEOF
30378 cat confdefs.h >>conftest.$ac_ext
30379 cat >>conftest.$ac_ext <<_ACEOF
30380 /* end confdefs.h.  */
30381 #include <cmath>
30382 int
30383 main ()
30384 {
30385 float f; isinf(f);
30386   ;
30387   return 0;
30388 }
30389 _ACEOF
30390 rm -f conftest.$ac_objext
30391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30392   (eval $ac_compile) 2>conftest.er1
30393   ac_status=$?
30394   grep -v '^ *+' conftest.er1 >conftest.err
30395   rm -f conftest.er1
30396   cat conftest.err >&5
30397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398   (exit $ac_status); } &&
30399          { ac_try='test -z "$ac_cxx_werror_flag"
30400                          || test ! -s conftest.err'
30401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30402   (eval $ac_try) 2>&5
30403   ac_status=$?
30404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405   (exit $ac_status); }; } &&
30406          { ac_try='test -s conftest.$ac_objext'
30407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30408   (eval $ac_try) 2>&5
30409   ac_status=$?
30410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411   (exit $ac_status); }; }; then
30412   ac_cv_func_isinf_in_cmath=yes
30413 else
30414   echo "$as_me: failed program was:" >&5
30415 sed 's/^/| /' conftest.$ac_ext >&5
30416
30417 ac_cv_func_isinf_in_cmath=no
30418 fi
30419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30420   ac_ext=c
30421 ac_cpp='$CPP $CPPFLAGS'
30422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30425
30426 fi
30427 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30428 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
30429
30430 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30431
30432 cat >>confdefs.h <<\_ACEOF
30433 #define HAVE_ISINF_IN_CMATH 1
30434 _ACEOF
30435
30436 fi
30437
30438 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30439 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30440 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30441   echo $ECHO_N "(cached) $ECHO_C" >&6
30442 else
30443   ac_ext=cc
30444 ac_cpp='$CXXCPP $CPPFLAGS'
30445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30448
30449    cat >conftest.$ac_ext <<_ACEOF
30450 /* confdefs.h.  */
30451 _ACEOF
30452 cat confdefs.h >>conftest.$ac_ext
30453 cat >>conftest.$ac_ext <<_ACEOF
30454 /* end confdefs.h.  */
30455 #include <cmath>
30456 int
30457 main ()
30458 {
30459 float f; std::isinf(f)}
30460   ;
30461   return 0;
30462 }
30463 _ACEOF
30464 rm -f conftest.$ac_objext
30465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30466   (eval $ac_compile) 2>conftest.er1
30467   ac_status=$?
30468   grep -v '^ *+' conftest.er1 >conftest.err
30469   rm -f conftest.er1
30470   cat conftest.err >&5
30471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30472   (exit $ac_status); } &&
30473          { ac_try='test -z "$ac_cxx_werror_flag"
30474                          || test ! -s conftest.err'
30475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30476   (eval $ac_try) 2>&5
30477   ac_status=$?
30478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479   (exit $ac_status); }; } &&
30480          { ac_try='test -s conftest.$ac_objext'
30481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30482   (eval $ac_try) 2>&5
30483   ac_status=$?
30484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485   (exit $ac_status); }; }; then
30486   ac_cv_func_std_isinf_in_cmath=yes
30487 else
30488   echo "$as_me: failed program was:" >&5
30489 sed 's/^/| /' conftest.$ac_ext >&5
30490
30491 ac_cv_func_std_isinf_in_cmath=no
30492 fi
30493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30494   ac_ext=c
30495 ac_cpp='$CPP $CPPFLAGS'
30496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30499
30500 fi
30501 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30502 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
30503
30504 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
30505
30506 cat >>confdefs.h <<\_ACEOF
30507 #define HAVE_STD_ISINF_IN_CMATH 1
30508 _ACEOF
30509
30510 fi
30511
30512 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30513 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30514 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30515   echo $ECHO_N "(cached) $ECHO_C" >&6
30516 else
30517   ac_ext=cc
30518 ac_cpp='$CXXCPP $CPPFLAGS'
30519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30522
30523    cat >conftest.$ac_ext <<_ACEOF
30524 /* confdefs.h.  */
30525 _ACEOF
30526 cat confdefs.h >>conftest.$ac_ext
30527 cat >>conftest.$ac_ext <<_ACEOF
30528 /* end confdefs.h.  */
30529 #include <ieeefp.h>
30530 int
30531 main ()
30532 {
30533 float f; finite(f);
30534   ;
30535   return 0;
30536 }
30537 _ACEOF
30538 rm -f conftest.$ac_objext
30539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30540   (eval $ac_compile) 2>conftest.er1
30541   ac_status=$?
30542   grep -v '^ *+' conftest.er1 >conftest.err
30543   rm -f conftest.er1
30544   cat conftest.err >&5
30545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546   (exit $ac_status); } &&
30547          { ac_try='test -z "$ac_cxx_werror_flag"
30548                          || test ! -s conftest.err'
30549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30550   (eval $ac_try) 2>&5
30551   ac_status=$?
30552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30553   (exit $ac_status); }; } &&
30554          { ac_try='test -s conftest.$ac_objext'
30555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30556   (eval $ac_try) 2>&5
30557   ac_status=$?
30558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559   (exit $ac_status); }; }; then
30560   ac_cv_func_finite_in_ieeefp_h=yes
30561 else
30562   echo "$as_me: failed program was:" >&5
30563 sed 's/^/| /' conftest.$ac_ext >&5
30564
30565 ac_cv_func_finite_in_ieeefp_h=no
30566 fi
30567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30568   ac_ext=c
30569 ac_cpp='$CPP $CPPFLAGS'
30570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30573
30574 fi
30575 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30576 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30577
30578 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30579
30580 cat >>confdefs.h <<\_ACEOF
30581 #define HAVE_FINITE_IN_IEEEFP_H 1
30582 _ACEOF
30583
30584 fi
30585
30586
30587
30588
30589
30590 for ac_header in stdlib.h unistd.h
30591 do
30592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30594   echo "$as_me:$LINENO: checking for $ac_header" >&5
30595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30597   echo $ECHO_N "(cached) $ECHO_C" >&6
30598 fi
30599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30601 else
30602   # Is the header compilable?
30603 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30605 cat >conftest.$ac_ext <<_ACEOF
30606 /* confdefs.h.  */
30607 _ACEOF
30608 cat confdefs.h >>conftest.$ac_ext
30609 cat >>conftest.$ac_ext <<_ACEOF
30610 /* end confdefs.h.  */
30611 $ac_includes_default
30612 #include <$ac_header>
30613 _ACEOF
30614 rm -f conftest.$ac_objext
30615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30616   (eval $ac_compile) 2>conftest.er1
30617   ac_status=$?
30618   grep -v '^ *+' conftest.er1 >conftest.err
30619   rm -f conftest.er1
30620   cat conftest.err >&5
30621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622   (exit $ac_status); } &&
30623          { ac_try='test -z "$ac_c_werror_flag"
30624                          || test ! -s conftest.err'
30625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30626   (eval $ac_try) 2>&5
30627   ac_status=$?
30628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629   (exit $ac_status); }; } &&
30630          { ac_try='test -s conftest.$ac_objext'
30631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30632   (eval $ac_try) 2>&5
30633   ac_status=$?
30634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635   (exit $ac_status); }; }; then
30636   ac_header_compiler=yes
30637 else
30638   echo "$as_me: failed program was:" >&5
30639 sed 's/^/| /' conftest.$ac_ext >&5
30640
30641 ac_header_compiler=no
30642 fi
30643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30645 echo "${ECHO_T}$ac_header_compiler" >&6
30646
30647 # Is the header present?
30648 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30650 cat >conftest.$ac_ext <<_ACEOF
30651 /* confdefs.h.  */
30652 _ACEOF
30653 cat confdefs.h >>conftest.$ac_ext
30654 cat >>conftest.$ac_ext <<_ACEOF
30655 /* end confdefs.h.  */
30656 #include <$ac_header>
30657 _ACEOF
30658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30659   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30660   ac_status=$?
30661   grep -v '^ *+' conftest.er1 >conftest.err
30662   rm -f conftest.er1
30663   cat conftest.err >&5
30664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665   (exit $ac_status); } >/dev/null; then
30666   if test -s conftest.err; then
30667     ac_cpp_err=$ac_c_preproc_warn_flag
30668     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30669   else
30670     ac_cpp_err=
30671   fi
30672 else
30673   ac_cpp_err=yes
30674 fi
30675 if test -z "$ac_cpp_err"; then
30676   ac_header_preproc=yes
30677 else
30678   echo "$as_me: failed program was:" >&5
30679 sed 's/^/| /' conftest.$ac_ext >&5
30680
30681   ac_header_preproc=no
30682 fi
30683 rm -f conftest.err conftest.$ac_ext
30684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30685 echo "${ECHO_T}$ac_header_preproc" >&6
30686
30687 # So?  What about this header?
30688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30689   yes:no: )
30690     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30692     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30694     ac_header_preproc=yes
30695     ;;
30696   no:yes:* )
30697     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30699     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30700 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30701     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30703     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30704 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30707     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30709     (
30710       cat <<\_ASBOX
30711 ## ----------------------------------- ##
30712 ## Report this to llvmbugs@cs.uiuc.edu ##
30713 ## ----------------------------------- ##
30714 _ASBOX
30715     ) |
30716       sed "s/^/$as_me: WARNING:     /" >&2
30717     ;;
30718 esac
30719 echo "$as_me:$LINENO: checking for $ac_header" >&5
30720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30722   echo $ECHO_N "(cached) $ECHO_C" >&6
30723 else
30724   eval "$as_ac_Header=\$ac_header_preproc"
30725 fi
30726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30728
30729 fi
30730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30731   cat >>confdefs.h <<_ACEOF
30732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30733 _ACEOF
30734
30735 fi
30736
30737 done
30738
30739
30740 for ac_func in getpagesize
30741 do
30742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30743 echo "$as_me:$LINENO: checking for $ac_func" >&5
30744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30745 if eval "test \"\${$as_ac_var+set}\" = set"; then
30746   echo $ECHO_N "(cached) $ECHO_C" >&6
30747 else
30748   cat >conftest.$ac_ext <<_ACEOF
30749 /* confdefs.h.  */
30750 _ACEOF
30751 cat confdefs.h >>conftest.$ac_ext
30752 cat >>conftest.$ac_ext <<_ACEOF
30753 /* end confdefs.h.  */
30754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30756 #define $ac_func innocuous_$ac_func
30757
30758 /* System header to define __stub macros and hopefully few prototypes,
30759     which can conflict with char $ac_func (); below.
30760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30761     <limits.h> exists even on freestanding compilers.  */
30762
30763 #ifdef __STDC__
30764 # include <limits.h>
30765 #else
30766 # include <assert.h>
30767 #endif
30768
30769 #undef $ac_func
30770
30771 /* Override any gcc2 internal prototype to avoid an error.  */
30772 #ifdef __cplusplus
30773 extern "C"
30774 {
30775 #endif
30776 /* We use char because int might match the return type of a gcc2
30777    builtin and then its argument prototype would still apply.  */
30778 char $ac_func ();
30779 /* The GNU C library defines this for functions which it implements
30780     to always fail with ENOSYS.  Some functions are actually named
30781     something starting with __ and the normal name is an alias.  */
30782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30783 choke me
30784 #else
30785 char (*f) () = $ac_func;
30786 #endif
30787 #ifdef __cplusplus
30788 }
30789 #endif
30790
30791 int
30792 main ()
30793 {
30794 return f != $ac_func;
30795   ;
30796   return 0;
30797 }
30798 _ACEOF
30799 rm -f conftest.$ac_objext conftest$ac_exeext
30800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30801   (eval $ac_link) 2>conftest.er1
30802   ac_status=$?
30803   grep -v '^ *+' conftest.er1 >conftest.err
30804   rm -f conftest.er1
30805   cat conftest.err >&5
30806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807   (exit $ac_status); } &&
30808          { ac_try='test -z "$ac_c_werror_flag"
30809                          || test ! -s conftest.err'
30810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30811   (eval $ac_try) 2>&5
30812   ac_status=$?
30813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814   (exit $ac_status); }; } &&
30815          { ac_try='test -s conftest$ac_exeext'
30816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30817   (eval $ac_try) 2>&5
30818   ac_status=$?
30819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820   (exit $ac_status); }; }; then
30821   eval "$as_ac_var=yes"
30822 else
30823   echo "$as_me: failed program was:" >&5
30824 sed 's/^/| /' conftest.$ac_ext >&5
30825
30826 eval "$as_ac_var=no"
30827 fi
30828 rm -f conftest.err conftest.$ac_objext \
30829       conftest$ac_exeext conftest.$ac_ext
30830 fi
30831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30833 if test `eval echo '${'$as_ac_var'}'` = yes; then
30834   cat >>confdefs.h <<_ACEOF
30835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30836 _ACEOF
30837
30838 fi
30839 done
30840
30841 echo "$as_me:$LINENO: checking for working mmap" >&5
30842 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30843 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30844   echo $ECHO_N "(cached) $ECHO_C" >&6
30845 else
30846   if test "$cross_compiling" = yes; then
30847   ac_cv_func_mmap_fixed_mapped=no
30848 else
30849   cat >conftest.$ac_ext <<_ACEOF
30850 /* confdefs.h.  */
30851 _ACEOF
30852 cat confdefs.h >>conftest.$ac_ext
30853 cat >>conftest.$ac_ext <<_ACEOF
30854 /* end confdefs.h.  */
30855 $ac_includes_default
30856 /* malloc might have been renamed as rpl_malloc. */
30857 #undef malloc
30858
30859 /* Thanks to Mike Haertel and Jim Avera for this test.
30860    Here is a matrix of mmap possibilities:
30861         mmap private not fixed
30862         mmap private fixed at somewhere currently unmapped
30863         mmap private fixed at somewhere already mapped
30864         mmap shared not fixed
30865         mmap shared fixed at somewhere currently unmapped
30866         mmap shared fixed at somewhere already mapped
30867    For private mappings, we should verify that changes cannot be read()
30868    back from the file, nor mmap's back from the file at a different
30869    address.  (There have been systems where private was not correctly
30870    implemented like the infamous i386 svr4.0, and systems where the
30871    VM page cache was not coherent with the file system buffer cache
30872    like early versions of FreeBSD and possibly contemporary NetBSD.)
30873    For shared mappings, we should conversely verify that changes get
30874    propagated back to all the places they're supposed to be.
30875
30876    Grep wants private fixed already mapped.
30877    The main things grep needs to know about mmap are:
30878    * does it exist and is it safe to write into the mmap'd area
30879    * how to use it (BSD variants)  */
30880
30881 #include <fcntl.h>
30882 #include <sys/mman.h>
30883
30884 #if !STDC_HEADERS && !HAVE_STDLIB_H
30885 char *malloc ();
30886 #endif
30887
30888 /* This mess was copied from the GNU getpagesize.h.  */
30889 #if !HAVE_GETPAGESIZE
30890 /* Assume that all systems that can run configure have sys/param.h.  */
30891 # if !HAVE_SYS_PARAM_H
30892 #  define HAVE_SYS_PARAM_H 1
30893 # endif
30894
30895 # ifdef _SC_PAGESIZE
30896 #  define getpagesize() sysconf(_SC_PAGESIZE)
30897 # else /* no _SC_PAGESIZE */
30898 #  if HAVE_SYS_PARAM_H
30899 #   include <sys/param.h>
30900 #   ifdef EXEC_PAGESIZE
30901 #    define getpagesize() EXEC_PAGESIZE
30902 #   else /* no EXEC_PAGESIZE */
30903 #    ifdef NBPG
30904 #     define getpagesize() NBPG * CLSIZE
30905 #     ifndef CLSIZE
30906 #      define CLSIZE 1
30907 #     endif /* no CLSIZE */
30908 #    else /* no NBPG */
30909 #     ifdef NBPC
30910 #      define getpagesize() NBPC
30911 #     else /* no NBPC */
30912 #      ifdef PAGESIZE
30913 #       define getpagesize() PAGESIZE
30914 #      endif /* PAGESIZE */
30915 #     endif /* no NBPC */
30916 #    endif /* no NBPG */
30917 #   endif /* no EXEC_PAGESIZE */
30918 #  else /* no HAVE_SYS_PARAM_H */
30919 #   define getpagesize() 8192   /* punt totally */
30920 #  endif /* no HAVE_SYS_PARAM_H */
30921 # endif /* no _SC_PAGESIZE */
30922
30923 #endif /* no HAVE_GETPAGESIZE */
30924
30925 int
30926 main ()
30927 {
30928   char *data, *data2, *data3;
30929   int i, pagesize;
30930   int fd;
30931
30932   pagesize = getpagesize ();
30933
30934   /* First, make a file with some known garbage in it. */
30935   data = (char *) malloc (pagesize);
30936   if (!data)
30937     exit (1);
30938   for (i = 0; i < pagesize; ++i)
30939     *(data + i) = rand ();
30940   umask (0);
30941   fd = creat ("conftest.mmap", 0600);
30942   if (fd < 0)
30943     exit (1);
30944   if (write (fd, data, pagesize) != pagesize)
30945     exit (1);
30946   close (fd);
30947
30948   /* Next, try to mmap the file at a fixed address which already has
30949      something else allocated at it.  If we can, also make sure that
30950      we see the same garbage.  */
30951   fd = open ("conftest.mmap", O_RDWR);
30952   if (fd < 0)
30953     exit (1);
30954   data2 = (char *) malloc (2 * pagesize);
30955   if (!data2)
30956     exit (1);
30957   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30958   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30959                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
30960     exit (1);
30961   for (i = 0; i < pagesize; ++i)
30962     if (*(data + i) != *(data2 + i))
30963       exit (1);
30964
30965   /* Finally, make sure that changes to the mapped area do not
30966      percolate back to the file as seen by read().  (This is a bug on
30967      some variants of i386 svr4.0.)  */
30968   for (i = 0; i < pagesize; ++i)
30969     *(data2 + i) = *(data2 + i) + 1;
30970   data3 = (char *) malloc (pagesize);
30971   if (!data3)
30972     exit (1);
30973   if (read (fd, data3, pagesize) != pagesize)
30974     exit (1);
30975   for (i = 0; i < pagesize; ++i)
30976     if (*(data + i) != *(data3 + i))
30977       exit (1);
30978   close (fd);
30979   exit (0);
30980 }
30981 _ACEOF
30982 rm -f conftest$ac_exeext
30983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30984   (eval $ac_link) 2>&5
30985   ac_status=$?
30986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30989   (eval $ac_try) 2>&5
30990   ac_status=$?
30991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992   (exit $ac_status); }; }; then
30993   ac_cv_func_mmap_fixed_mapped=yes
30994 else
30995   echo "$as_me: program exited with status $ac_status" >&5
30996 echo "$as_me: failed program was:" >&5
30997 sed 's/^/| /' conftest.$ac_ext >&5
30998
30999 ( exit $ac_status )
31000 ac_cv_func_mmap_fixed_mapped=no
31001 fi
31002 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31003 fi
31004 fi
31005 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31006 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
31007 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31008
31009 cat >>confdefs.h <<\_ACEOF
31010 #define HAVE_MMAP 1
31011 _ACEOF
31012
31013 fi
31014 rm -f conftest.mmap
31015
31016 echo "$as_me:$LINENO: checking for mmap of files" >&5
31017 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
31018 if test "${ac_cv_func_mmap_file+set}" = set; then
31019   echo $ECHO_N "(cached) $ECHO_C" >&6
31020 else
31021    ac_ext=c
31022 ac_cpp='$CPP $CPPFLAGS'
31023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31026
31027   if test "$cross_compiling" = yes; then
31028   ac_cv_func_mmap_file=no
31029 else
31030   cat >conftest.$ac_ext <<_ACEOF
31031
31032     /* confdefs.h.  */
31033 _ACEOF
31034 cat confdefs.h >>conftest.$ac_ext
31035 cat >>conftest.$ac_ext <<_ACEOF
31036 /* end confdefs.h.  */
31037
31038 #include <sys/types.h>
31039 #include <sys/mman.h>
31040 #include <fcntl.h>
31041
31042 int
31043 main ()
31044 {
31045
31046   int fd;
31047   fd = creat ("foo",0777);
31048   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31049   unlink ("foo");
31050   return (fd != (int) MAP_FAILED);
31051   ;
31052   return 0;
31053 }
31054 _ACEOF
31055 rm -f conftest$ac_exeext
31056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31057   (eval $ac_link) 2>&5
31058   ac_status=$?
31059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31062   (eval $ac_try) 2>&5
31063   ac_status=$?
31064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065   (exit $ac_status); }; }; then
31066   ac_cv_func_mmap_file=yes
31067 else
31068   echo "$as_me: program exited with status $ac_status" >&5
31069 echo "$as_me: failed program was:" >&5
31070 sed 's/^/| /' conftest.$ac_ext >&5
31071
31072 ( exit $ac_status )
31073 ac_cv_func_mmap_file=no
31074 fi
31075 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31076 fi
31077   ac_ext=c
31078 ac_cpp='$CPP $CPPFLAGS'
31079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31082
31083
31084 fi
31085 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31086 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
31087 if test "$ac_cv_func_mmap_file" = yes; then
31088
31089 cat >>confdefs.h <<\_ACEOF
31090 #define HAVE_MMAP_FILE
31091 _ACEOF
31092
31093    MMAP_FILE=yes
31094
31095 fi
31096
31097 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
31098 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
31099 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31100   echo $ECHO_N "(cached) $ECHO_C" >&6
31101 else
31102   if test "$llvm_cv_os_type" = "Interix" ; then
31103    ac_cv_need_dev_zero_for_mmap=yes
31104  else
31105    ac_cv_need_dev_zero_for_mmap=no
31106  fi
31107
31108 fi
31109 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31110 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
31111 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31112
31113 cat >>confdefs.h <<\_ACEOF
31114 #define NEED_DEV_ZERO_FOR_MMAP 1
31115 _ACEOF
31116
31117 fi
31118 echo "$as_me:$LINENO: checking for mprotect" >&5
31119 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
31120 if test "${ac_cv_func_mprotect+set}" = set; then
31121   echo $ECHO_N "(cached) $ECHO_C" >&6
31122 else
31123   cat >conftest.$ac_ext <<_ACEOF
31124 /* confdefs.h.  */
31125 _ACEOF
31126 cat confdefs.h >>conftest.$ac_ext
31127 cat >>conftest.$ac_ext <<_ACEOF
31128 /* end confdefs.h.  */
31129 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
31130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31131 #define mprotect innocuous_mprotect
31132
31133 /* System header to define __stub macros and hopefully few prototypes,
31134     which can conflict with char mprotect (); below.
31135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31136     <limits.h> exists even on freestanding compilers.  */
31137
31138 #ifdef __STDC__
31139 # include <limits.h>
31140 #else
31141 # include <assert.h>
31142 #endif
31143
31144 #undef mprotect
31145
31146 /* Override any gcc2 internal prototype to avoid an error.  */
31147 #ifdef __cplusplus
31148 extern "C"
31149 {
31150 #endif
31151 /* We use char because int might match the return type of a gcc2
31152    builtin and then its argument prototype would still apply.  */
31153 char mprotect ();
31154 /* The GNU C library defines this for functions which it implements
31155     to always fail with ENOSYS.  Some functions are actually named
31156     something starting with __ and the normal name is an alias.  */
31157 #if defined (__stub_mprotect) || defined (__stub___mprotect)
31158 choke me
31159 #else
31160 char (*f) () = mprotect;
31161 #endif
31162 #ifdef __cplusplus
31163 }
31164 #endif
31165
31166 int
31167 main ()
31168 {
31169 return f != mprotect;
31170   ;
31171   return 0;
31172 }
31173 _ACEOF
31174 rm -f conftest.$ac_objext conftest$ac_exeext
31175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31176   (eval $ac_link) 2>conftest.er1
31177   ac_status=$?
31178   grep -v '^ *+' conftest.er1 >conftest.err
31179   rm -f conftest.er1
31180   cat conftest.err >&5
31181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31182   (exit $ac_status); } &&
31183          { ac_try='test -z "$ac_c_werror_flag"
31184                          || test ! -s conftest.err'
31185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31186   (eval $ac_try) 2>&5
31187   ac_status=$?
31188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31189   (exit $ac_status); }; } &&
31190          { ac_try='test -s conftest$ac_exeext'
31191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31192   (eval $ac_try) 2>&5
31193   ac_status=$?
31194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195   (exit $ac_status); }; }; then
31196   ac_cv_func_mprotect=yes
31197 else
31198   echo "$as_me: failed program was:" >&5
31199 sed 's/^/| /' conftest.$ac_ext >&5
31200
31201 ac_cv_func_mprotect=no
31202 fi
31203 rm -f conftest.err conftest.$ac_objext \
31204       conftest$ac_exeext conftest.$ac_ext
31205 fi
31206 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
31207 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
31208 if test $ac_cv_func_mprotect = yes; then
31209   :
31210 else
31211   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
31212 echo "$as_me: error: Function mprotect() required but not found" >&2;}
31213    { (exit 1); exit 1; }; }
31214 fi
31215
31216
31217 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31218 then
31219   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31220 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31221 fi
31222 if test "$ac_cv_func_mmap_file" = "no"
31223 then
31224   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31225 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31226 fi
31227
31228
31229 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31230 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
31231 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31232   echo $ECHO_N "(cached) $ECHO_C" >&6
31233 else
31234   llvm_cv_llvmgcc_sanity="no"
31235 if test -x "$LLVMGCC" ; then
31236   cp /dev/null conftest.c
31237   "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
31238   if test $? -eq 0 ; then
31239     llvm_cv_llvmgcc_sanity="yes"
31240   fi
31241   rm conftest.c
31242 fi
31243 fi
31244 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31245 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
31246
31247 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31248   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31249   LLVMCC1=$llvmcc1path
31250
31251   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31252   LLVMCC1PLUS=$llvmcc1pluspath
31253
31254   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31255   LLVMGCCDIR=$llvmgccdir
31256
31257   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31258   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31259   LLVMGCC_VERSION=$llvmgccversion
31260
31261   LLVMGCC_MAJVERS=$llvmgccmajvers
31262
31263 fi
31264
31265 SHLIBEXT=$libltdl_cv_shlibext
31266
31267
31268 # Translate the various configuration directories and other basic
31269 # information into substitutions that will end up in Makefile.config.in
31270 # that these configured values can be used by the makefiles
31271 if test "${prefix}" == "NONE" ; then
31272   prefix="/usr/local"
31273 fi
31274 eval LLVM_PREFIX="${prefix}";
31275 eval LLVM_BINDIR="${prefix}/bin";
31276 eval LLVM_LIBDIR="${prefix}/lib";
31277 eval LLVM_DATADIR="${prefix}/share/llvm";
31278 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31279 eval LLVM_ETCDIR="${prefix}/etc/llvm";
31280 eval LLVM_INCLUDEDIR="${prefix}/include";
31281 eval LLVM_INFODIR="${prefix}/info";
31282 eval LLVM_MANDIR="${prefix}/man";
31283 LLVM_CONFIGTIME=`date`
31284
31285
31286
31287
31288
31289
31290
31291
31292
31293
31294
31295 # Place the various directores into the config.h file as #defines so that we
31296 # can know about the installation paths within LLVM.
31297
31298 cat >>confdefs.h <<_ACEOF
31299 #define LLVM_PREFIX "$LLVM_PREFIX"
31300 _ACEOF
31301
31302
31303 cat >>confdefs.h <<_ACEOF
31304 #define LLVM_BINDIR "$LLVM_BINDIR"
31305 _ACEOF
31306
31307
31308 cat >>confdefs.h <<_ACEOF
31309 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31310 _ACEOF
31311
31312
31313 cat >>confdefs.h <<_ACEOF
31314 #define LLVM_DATADIR "$LLVM_DATADIR"
31315 _ACEOF
31316
31317
31318 cat >>confdefs.h <<_ACEOF
31319 #define LLVM_DATADIR "$LLVM_DOCSDIR"
31320 _ACEOF
31321
31322
31323 cat >>confdefs.h <<_ACEOF
31324 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31325 _ACEOF
31326
31327
31328 cat >>confdefs.h <<_ACEOF
31329 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31330 _ACEOF
31331
31332
31333 cat >>confdefs.h <<_ACEOF
31334 #define LLVM_INFODIR "$LLVM_INFODIR"
31335 _ACEOF
31336
31337
31338 cat >>confdefs.h <<_ACEOF
31339 #define LLVM_MANDIR "$LLVM_MANDIR"
31340 _ACEOF
31341
31342
31343 cat >>confdefs.h <<_ACEOF
31344 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31345 _ACEOF
31346
31347
31348
31349           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31350
31351           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31352
31353           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31354
31355           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31356
31357           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31358
31359
31360           ac_config_files="$ac_config_files Makefile.config"
31361
31362
31363           ac_config_files="$ac_config_files docs/doxygen.cfg"
31364
31365
31366           ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
31367
31368
31369           ac_config_commands="$ac_config_commands setup"
31370
31371           ac_config_commands="$ac_config_commands Makefile"
31372
31373
31374           ac_config_commands="$ac_config_commands Makefile.common"
31375
31376
31377           ac_config_commands="$ac_config_commands examples/Makefile"
31378
31379
31380           ac_config_commands="$ac_config_commands lib/Makefile"
31381
31382
31383           ac_config_commands="$ac_config_commands runtime/Makefile"
31384
31385
31386           ac_config_commands="$ac_config_commands test/Makefile"
31387
31388
31389           ac_config_commands="$ac_config_commands test/Makefile.tests"
31390
31391
31392           ac_config_commands="$ac_config_commands tools/Makefile"
31393
31394
31395           ac_config_commands="$ac_config_commands utils/Makefile"
31396
31397
31398           ac_config_commands="$ac_config_commands projects/Makefile"
31399
31400
31401
31402 cat >confcache <<\_ACEOF
31403 # This file is a shell script that caches the results of configure
31404 # tests run on this system so they can be shared between configure
31405 # scripts and configure runs, see configure's option --config-cache.
31406 # It is not useful on other systems.  If it contains results you don't
31407 # want to keep, you may remove or edit it.
31408 #
31409 # config.status only pays attention to the cache file if you give it
31410 # the --recheck option to rerun configure.
31411 #
31412 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31413 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31414 # following values.
31415
31416 _ACEOF
31417
31418 # The following way of writing the cache mishandles newlines in values,
31419 # but we know of no workaround that is simple, portable, and efficient.
31420 # So, don't put newlines in cache variables' values.
31421 # Ultrix sh set writes to stderr and can't be redirected directly,
31422 # and sets the high bit in the cache file unless we assign to the vars.
31423 {
31424   (set) 2>&1 |
31425     case `(ac_space=' '; set | grep ac_space) 2>&1` in
31426     *ac_space=\ *)
31427       # `set' does not quote correctly, so add quotes (double-quote
31428       # substitution turns \\\\ into \\, and sed turns \\ into \).
31429       sed -n \
31430         "s/'/'\\\\''/g;
31431           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31432       ;;
31433     *)
31434       # `set' quotes correctly as required by POSIX, so do not add quotes.
31435       sed -n \
31436         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31437       ;;
31438     esac;
31439 } |
31440   sed '
31441      t clear
31442      : clear
31443      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31444      t end
31445      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31446      : end' >>confcache
31447 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31448   if test -w $cache_file; then
31449     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31450     cat confcache >$cache_file
31451   else
31452     echo "not updating unwritable cache $cache_file"
31453   fi
31454 fi
31455 rm -f confcache
31456
31457 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31458 # Let make expand exec_prefix.
31459 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31460
31461 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31462 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31463 # trailing colons and then remove the whole line if VPATH becomes empty
31464 # (actually we leave an empty line to preserve line numbers).
31465 if test "x$srcdir" = x.; then
31466   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31467 s/:*\$(srcdir):*/:/;
31468 s/:*\${srcdir}:*/:/;
31469 s/:*@srcdir@:*/:/;
31470 s/^\([^=]*=[     ]*\):*/\1/;
31471 s/:*$//;
31472 s/^[^=]*=[       ]*$//;
31473 }'
31474 fi
31475
31476 DEFS=-DHAVE_CONFIG_H
31477
31478 ac_libobjs=
31479 ac_ltlibobjs=
31480 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31481   # 1. Remove the extension, and $U if already installed.
31482   ac_i=`echo "$ac_i" |
31483          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31484   # 2. Add them.
31485   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31486   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31487 done
31488 LIBOBJS=$ac_libobjs
31489
31490 LTLIBOBJS=$ac_ltlibobjs
31491
31492
31493 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31494   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31495 Usually this means the macro was only invoked conditionally." >&5
31496 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31497 Usually this means the macro was only invoked conditionally." >&2;}
31498    { (exit 1); exit 1; }; }
31499 fi
31500 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31501   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31502 Usually this means the macro was only invoked conditionally." >&5
31503 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31504 Usually this means the macro was only invoked conditionally." >&2;}
31505    { (exit 1); exit 1; }; }
31506 fi
31507
31508 : ${CONFIG_STATUS=./config.status}
31509 ac_clean_files_save=$ac_clean_files
31510 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31511 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31512 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31513 cat >$CONFIG_STATUS <<_ACEOF
31514 #! $SHELL
31515 # Generated by $as_me.
31516 # Run this file to recreate the current configuration.
31517 # Compiler output produced by configure, useful for debugging
31518 # configure, is in config.log if it exists.
31519
31520 debug=false
31521 ac_cs_recheck=false
31522 ac_cs_silent=false
31523 SHELL=\${CONFIG_SHELL-$SHELL}
31524 _ACEOF
31525
31526 cat >>$CONFIG_STATUS <<\_ACEOF
31527 ## --------------------- ##
31528 ## M4sh Initialization.  ##
31529 ## --------------------- ##
31530
31531 # Be Bourne compatible
31532 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31533   emulate sh
31534   NULLCMD=:
31535   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31536   # is contrary to our usage.  Disable this feature.
31537   alias -g '${1+"$@"}'='"$@"'
31538 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31539   set -o posix
31540 fi
31541 DUALCASE=1; export DUALCASE # for MKS sh
31542
31543 # Support unset when possible.
31544 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31545   as_unset=unset
31546 else
31547   as_unset=false
31548 fi
31549
31550
31551 # Work around bugs in pre-3.0 UWIN ksh.
31552 $as_unset ENV MAIL MAILPATH
31553 PS1='$ '
31554 PS2='> '
31555 PS4='+ '
31556
31557 # NLS nuisances.
31558 for as_var in \
31559   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31560   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31561   LC_TELEPHONE LC_TIME
31562 do
31563   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31564     eval $as_var=C; export $as_var
31565   else
31566     $as_unset $as_var
31567   fi
31568 done
31569
31570 # Required to use basename.
31571 if expr a : '\(a\)' >/dev/null 2>&1; then
31572   as_expr=expr
31573 else
31574   as_expr=false
31575 fi
31576
31577 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31578   as_basename=basename
31579 else
31580   as_basename=false
31581 fi
31582
31583
31584 # Name of the executable.
31585 as_me=`$as_basename "$0" ||
31586 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31587          X"$0" : 'X\(//\)$' \| \
31588          X"$0" : 'X\(/\)$' \| \
31589          .     : '\(.\)' 2>/dev/null ||
31590 echo X/"$0" |
31591     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31592           /^X\/\(\/\/\)$/{ s//\1/; q; }
31593           /^X\/\(\/\).*/{ s//\1/; q; }
31594           s/.*/./; q'`
31595
31596
31597 # PATH needs CR, and LINENO needs CR and PATH.
31598 # Avoid depending upon Character Ranges.
31599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31602 as_cr_digits='0123456789'
31603 as_cr_alnum=$as_cr_Letters$as_cr_digits
31604
31605 # The user is always right.
31606 if test "${PATH_SEPARATOR+set}" != set; then
31607   echo "#! /bin/sh" >conf$$.sh
31608   echo  "exit 0"   >>conf$$.sh
31609   chmod +x conf$$.sh
31610   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31611     PATH_SEPARATOR=';'
31612   else
31613     PATH_SEPARATOR=:
31614   fi
31615   rm -f conf$$.sh
31616 fi
31617
31618
31619   as_lineno_1=$LINENO
31620   as_lineno_2=$LINENO
31621   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31622   test "x$as_lineno_1" != "x$as_lineno_2" &&
31623   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
31624   # Find who we are.  Look in the path if we contain no path at all
31625   # relative or not.
31626   case $0 in
31627     *[\\/]* ) as_myself=$0 ;;
31628     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31629 for as_dir in $PATH
31630 do
31631   IFS=$as_save_IFS
31632   test -z "$as_dir" && as_dir=.
31633   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31634 done
31635
31636        ;;
31637   esac
31638   # We did not find ourselves, most probably we were run as `sh COMMAND'
31639   # in which case we are not to be found in the path.
31640   if test "x$as_myself" = x; then
31641     as_myself=$0
31642   fi
31643   if test ! -f "$as_myself"; then
31644     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31645 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31646    { (exit 1); exit 1; }; }
31647   fi
31648   case $CONFIG_SHELL in
31649   '')
31650     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31651 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31652 do
31653   IFS=$as_save_IFS
31654   test -z "$as_dir" && as_dir=.
31655   for as_base in sh bash ksh sh5; do
31656          case $as_dir in
31657          /*)
31658            if ("$as_dir/$as_base" -c '
31659   as_lineno_1=$LINENO
31660   as_lineno_2=$LINENO
31661   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31662   test "x$as_lineno_1" != "x$as_lineno_2" &&
31663   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31664              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31665              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31666              CONFIG_SHELL=$as_dir/$as_base
31667              export CONFIG_SHELL
31668              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31669            fi;;
31670          esac
31671        done
31672 done
31673 ;;
31674   esac
31675
31676   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31677   # uniformly replaced by the line number.  The first 'sed' inserts a
31678   # line-number line before each line; the second 'sed' does the real
31679   # work.  The second script uses 'N' to pair each line-number line
31680   # with the numbered line, and appends trailing '-' during
31681   # substitution so that $LINENO is not a special case at line end.
31682   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31683   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31684   sed '=' <$as_myself |
31685     sed '
31686       N
31687       s,$,-,
31688       : loop
31689       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31690       t loop
31691       s,-$,,
31692       s,^['$as_cr_digits']*\n,,
31693     ' >$as_me.lineno &&
31694   chmod +x $as_me.lineno ||
31695     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31696 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31697    { (exit 1); exit 1; }; }
31698
31699   # Don't try to exec as it changes $[0], causing all sort of problems
31700   # (the dirname of $[0] is not the place where we might find the
31701   # original and so on.  Autoconf is especially sensible to this).
31702   . ./$as_me.lineno
31703   # Exit status is that of the last command.
31704   exit
31705 }
31706
31707
31708 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31709   *c*,-n*) ECHO_N= ECHO_C='
31710 ' ECHO_T='      ' ;;
31711   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31712   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31713 esac
31714
31715 if expr a : '\(a\)' >/dev/null 2>&1; then
31716   as_expr=expr
31717 else
31718   as_expr=false
31719 fi
31720
31721 rm -f conf$$ conf$$.exe conf$$.file
31722 echo >conf$$.file
31723 if ln -s conf$$.file conf$$ 2>/dev/null; then
31724   # We could just check for DJGPP; but this test a) works b) is more generic
31725   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31726   if test -f conf$$.exe; then
31727     # Don't use ln at all; we don't have any links
31728     as_ln_s='cp -p'
31729   else
31730     as_ln_s='ln -s'
31731   fi
31732 elif ln conf$$.file conf$$ 2>/dev/null; then
31733   as_ln_s=ln
31734 else
31735   as_ln_s='cp -p'
31736 fi
31737 rm -f conf$$ conf$$.exe conf$$.file
31738
31739 if mkdir -p . 2>/dev/null; then
31740   as_mkdir_p=:
31741 else
31742   test -d ./-p && rmdir ./-p
31743   as_mkdir_p=false
31744 fi
31745
31746 as_executable_p="test -f"
31747
31748 # Sed expression to map a string onto a valid CPP name.
31749 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31750
31751 # Sed expression to map a string onto a valid variable name.
31752 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31753
31754
31755 # IFS
31756 # We need space, tab and new line, in precisely that order.
31757 as_nl='
31758 '
31759 IFS="   $as_nl"
31760
31761 # CDPATH.
31762 $as_unset CDPATH
31763
31764 exec 6>&1
31765
31766 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31767 # report actual input values of CONFIG_FILES etc. instead of their
31768 # values after options handling.  Logging --version etc. is OK.
31769 exec 5>>config.log
31770 {
31771   echo
31772   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31773 ## Running $as_me. ##
31774 _ASBOX
31775 } >&5
31776 cat >&5 <<_CSEOF
31777
31778 This file was extended by llvm $as_me 1.9cvs, which was
31779 generated by GNU Autoconf 2.59.  Invocation command line was
31780
31781   CONFIG_FILES    = $CONFIG_FILES
31782   CONFIG_HEADERS  = $CONFIG_HEADERS
31783   CONFIG_LINKS    = $CONFIG_LINKS
31784   CONFIG_COMMANDS = $CONFIG_COMMANDS
31785   $ $0 $@
31786
31787 _CSEOF
31788 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31789 echo >&5
31790 _ACEOF
31791
31792 # Files that config.status was made for.
31793 if test -n "$ac_config_files"; then
31794   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31795 fi
31796
31797 if test -n "$ac_config_headers"; then
31798   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31799 fi
31800
31801 if test -n "$ac_config_links"; then
31802   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31803 fi
31804
31805 if test -n "$ac_config_commands"; then
31806   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31807 fi
31808
31809 cat >>$CONFIG_STATUS <<\_ACEOF
31810
31811 ac_cs_usage="\
31812 \`$as_me' instantiates files from templates according to the
31813 current configuration.
31814
31815 Usage: $0 [OPTIONS] [FILE]...
31816
31817   -h, --help       print this help, then exit
31818   -V, --version    print version number, then exit
31819   -q, --quiet      do not print progress messages
31820   -d, --debug      don't remove temporary files
31821       --recheck    update $as_me by reconfiguring in the same conditions
31822   --file=FILE[:TEMPLATE]
31823                    instantiate the configuration file FILE
31824   --header=FILE[:TEMPLATE]
31825                    instantiate the configuration header FILE
31826
31827 Configuration files:
31828 $config_files
31829
31830 Configuration headers:
31831 $config_headers
31832
31833 Configuration commands:
31834 $config_commands
31835
31836 Report bugs to <bug-autoconf@gnu.org>."
31837 _ACEOF
31838
31839 cat >>$CONFIG_STATUS <<_ACEOF
31840 ac_cs_version="\\
31841 llvm config.status 1.9cvs
31842 configured by $0, generated by GNU Autoconf 2.59,
31843   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31844
31845 Copyright (C) 2003 Free Software Foundation, Inc.
31846 This config.status script is free software; the Free Software Foundation
31847 gives unlimited permission to copy, distribute and modify it."
31848 srcdir=$srcdir
31849 INSTALL="$INSTALL"
31850 _ACEOF
31851
31852 cat >>$CONFIG_STATUS <<\_ACEOF
31853 # If no file are specified by the user, then we need to provide default
31854 # value.  By we need to know if files were specified by the user.
31855 ac_need_defaults=:
31856 while test $# != 0
31857 do
31858   case $1 in
31859   --*=*)
31860     ac_option=`expr "x$1" : 'x\([^=]*\)='`
31861     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31862     ac_shift=:
31863     ;;
31864   -*)
31865     ac_option=$1
31866     ac_optarg=$2
31867     ac_shift=shift
31868     ;;
31869   *) # This is not an option, so the user has probably given explicit
31870      # arguments.
31871      ac_option=$1
31872      ac_need_defaults=false;;
31873   esac
31874
31875   case $ac_option in
31876   # Handling of the options.
31877 _ACEOF
31878 cat >>$CONFIG_STATUS <<\_ACEOF
31879   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31880     ac_cs_recheck=: ;;
31881   --version | --vers* | -V )
31882     echo "$ac_cs_version"; exit 0 ;;
31883   --he | --h)
31884     # Conflict between --help and --header
31885     { { echo "$as_me:$LINENO: error: ambiguous option: $1
31886 Try \`$0 --help' for more information." >&5
31887 echo "$as_me: error: ambiguous option: $1
31888 Try \`$0 --help' for more information." >&2;}
31889    { (exit 1); exit 1; }; };;
31890   --help | --hel | -h )
31891     echo "$ac_cs_usage"; exit 0 ;;
31892   --debug | --d* | -d )
31893     debug=: ;;
31894   --file | --fil | --fi | --f )
31895     $ac_shift
31896     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31897     ac_need_defaults=false;;
31898   --header | --heade | --head | --hea )
31899     $ac_shift
31900     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31901     ac_need_defaults=false;;
31902   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31903   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31904     ac_cs_silent=: ;;
31905
31906   # This is an error.
31907   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31908 Try \`$0 --help' for more information." >&5
31909 echo "$as_me: error: unrecognized option: $1
31910 Try \`$0 --help' for more information." >&2;}
31911    { (exit 1); exit 1; }; } ;;
31912
31913   *) ac_config_targets="$ac_config_targets $1" ;;
31914
31915   esac
31916   shift
31917 done
31918
31919 ac_configure_extra_args=
31920
31921 if $ac_cs_silent; then
31922   exec 6>/dev/null
31923   ac_configure_extra_args="$ac_configure_extra_args --silent"
31924 fi
31925
31926 _ACEOF
31927 cat >>$CONFIG_STATUS <<_ACEOF
31928 if \$ac_cs_recheck; then
31929   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31930   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31931 fi
31932
31933 _ACEOF
31934
31935 cat >>$CONFIG_STATUS <<_ACEOF
31936 #
31937 # INIT-COMMANDS section.
31938 #
31939
31940 llvm_src="${srcdir}"
31941
31942 _ACEOF
31943
31944
31945
31946 cat >>$CONFIG_STATUS <<\_ACEOF
31947 for ac_config_target in $ac_config_targets
31948 do
31949   case "$ac_config_target" in
31950   # Handling of arguments.
31951   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31952   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31953   "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
31954   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31955   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31956   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31957   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31958   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31959   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31960   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31961   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31962   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31963   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31964   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31965   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31966   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31967   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31968   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31969   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31970   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31971 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31972    { (exit 1); exit 1; }; };;
31973   esac
31974 done
31975
31976 # If the user did not use the arguments to specify the items to instantiate,
31977 # then the envvar interface is used.  Set only those that are not.
31978 # We use the long form for the default assignment because of an extremely
31979 # bizarre bug on SunOS 4.1.3.
31980 if $ac_need_defaults; then
31981   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31982   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31983   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31984 fi
31985
31986 # Have a temporary directory for convenience.  Make it in the build tree
31987 # simply because there is no reason to put it here, and in addition,
31988 # creating and moving files from /tmp can sometimes cause problems.
31989 # Create a temporary directory, and hook for its removal unless debugging.
31990 $debug ||
31991 {
31992   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31993   trap '{ (exit 1); exit 1; }' 1 2 13 15
31994 }
31995
31996 # Create a (secure) tmp directory for tmp files.
31997
31998 {
31999   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
32000   test -n "$tmp" && test -d "$tmp"
32001 }  ||
32002 {
32003   tmp=./confstat$$-$RANDOM
32004   (umask 077 && mkdir $tmp)
32005 } ||
32006 {
32007    echo "$me: cannot create a temporary directory in ." >&2
32008    { (exit 1); exit 1; }
32009 }
32010
32011 _ACEOF
32012
32013 cat >>$CONFIG_STATUS <<_ACEOF
32014
32015 #
32016 # CONFIG_FILES section.
32017 #
32018
32019 # No need to generate the scripts if there are no CONFIG_FILES.
32020 # This happens for instance when ./config.status config.h
32021 if test -n "\$CONFIG_FILES"; then
32022   # Protect against being on the right side of a sed subst in config.status.
32023   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
32024    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
32025 s,@SHELL@,$SHELL,;t t
32026 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
32027 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
32028 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
32029 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
32030 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
32031 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
32032 s,@exec_prefix@,$exec_prefix,;t t
32033 s,@prefix@,$prefix,;t t
32034 s,@program_transform_name@,$program_transform_name,;t t
32035 s,@bindir@,$bindir,;t t
32036 s,@sbindir@,$sbindir,;t t
32037 s,@libexecdir@,$libexecdir,;t t
32038 s,@datadir@,$datadir,;t t
32039 s,@sysconfdir@,$sysconfdir,;t t
32040 s,@sharedstatedir@,$sharedstatedir,;t t
32041 s,@localstatedir@,$localstatedir,;t t
32042 s,@libdir@,$libdir,;t t
32043 s,@includedir@,$includedir,;t t
32044 s,@oldincludedir@,$oldincludedir,;t t
32045 s,@infodir@,$infodir,;t t
32046 s,@mandir@,$mandir,;t t
32047 s,@build_alias@,$build_alias,;t t
32048 s,@host_alias@,$host_alias,;t t
32049 s,@target_alias@,$target_alias,;t t
32050 s,@DEFS@,$DEFS,;t t
32051 s,@ECHO_C@,$ECHO_C,;t t
32052 s,@ECHO_N@,$ECHO_N,;t t
32053 s,@ECHO_T@,$ECHO_T,;t t
32054 s,@LIBS@,$LIBS,;t t
32055 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
32056 s,@subdirs@,$subdirs,;t t
32057 s,@build@,$build,;t t
32058 s,@build_cpu@,$build_cpu,;t t
32059 s,@build_vendor@,$build_vendor,;t t
32060 s,@build_os@,$build_os,;t t
32061 s,@host@,$host,;t t
32062 s,@host_cpu@,$host_cpu,;t t
32063 s,@host_vendor@,$host_vendor,;t t
32064 s,@host_os@,$host_os,;t t
32065 s,@target@,$target,;t t
32066 s,@target_cpu@,$target_cpu,;t t
32067 s,@target_vendor@,$target_vendor,;t t
32068 s,@target_os@,$target_os,;t t
32069 s,@OS@,$OS,;t t
32070 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
32071 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
32072 s,@ARCH@,$ARCH,;t t
32073 s,@ENDIAN@,$ENDIAN,;t t
32074 s,@CC@,$CC,;t t
32075 s,@CFLAGS@,$CFLAGS,;t t
32076 s,@LDFLAGS@,$LDFLAGS,;t t
32077 s,@CPPFLAGS@,$CPPFLAGS,;t t
32078 s,@ac_ct_CC@,$ac_ct_CC,;t t
32079 s,@EXEEXT@,$EXEEXT,;t t
32080 s,@OBJEXT@,$OBJEXT,;t t
32081 s,@LLVM_CROSS_COMPILING@,$LLVM_CROSS_COMPILING,;t t
32082 s,@BUILD_CC@,$BUILD_CC,;t t
32083 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
32084 s,@CVSBUILD@,$CVSBUILD,;t t
32085 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
32086 s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
32087 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
32088 s,@JIT@,$JIT,;t t
32089 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
32090 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
32091 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
32092 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
32093 s,@EXTRA_OPTIONS@,$EXTRA_OPTIONS,;t t
32094 s,@CPP@,$CPP,;t t
32095 s,@CXX@,$CXX,;t t
32096 s,@CXXFLAGS@,$CXXFLAGS,;t t
32097 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
32098 s,@LEX@,$LEX,;t t
32099 s,@LEXLIB@,$LEXLIB,;t t
32100 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
32101 s,@FLEX@,$FLEX,;t t
32102 s,@YACC@,$YACC,;t t
32103 s,@BISON@,$BISON,;t t
32104 s,@NM@,$NM,;t t
32105 s,@ifGNUmake@,$ifGNUmake,;t t
32106 s,@LN_S@,$LN_S,;t t
32107 s,@CMP@,$CMP,;t t
32108 s,@CP@,$CP,;t t
32109 s,@DATE@,$DATE,;t t
32110 s,@FIND@,$FIND,;t t
32111 s,@GREP@,$GREP,;t t
32112 s,@MKDIR@,$MKDIR,;t t
32113 s,@MV@,$MV,;t t
32114 s,@RANLIB@,$RANLIB,;t t
32115 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
32116 s,@RM@,$RM,;t t
32117 s,@SED@,$SED,;t t
32118 s,@TAR@,$TAR,;t t
32119 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
32120 s,@DOT@,$DOT,;t t
32121 s,@GV@,$GV,;t t
32122 s,@DOTTY@,$DOTTY,;t t
32123 s,@PERL@,$PERL,;t t
32124 s,@HAVE_PERL@,$HAVE_PERL,;t t
32125 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
32126 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
32127 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
32128 s,@BZIP2@,$BZIP2,;t t
32129 s,@DOXYGEN@,$DOXYGEN,;t t
32130 s,@ETAGS@,$ETAGS,;t t
32131 s,@GROFF@,$GROFF,;t t
32132 s,@GZIP@,$GZIP,;t t
32133 s,@POD2HTML@,$POD2HTML,;t t
32134 s,@POD2MAN@,$POD2MAN,;t t
32135 s,@RUNTEST@,$RUNTEST,;t t
32136 s,@TCLSH@,$TCLSH,;t t
32137 s,@ZIP@,$ZIP,;t t
32138 s,@EGREP@,$EGREP,;t t
32139 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
32140 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
32141 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
32142 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
32143 s,@LIBADD_DL@,$LIBADD_DL,;t t
32144 s,@ECHO@,$ECHO,;t t
32145 s,@AR@,$AR,;t t
32146 s,@ac_ct_AR@,$ac_ct_AR,;t t
32147 s,@STRIP@,$STRIP,;t t
32148 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
32149 s,@CXXCPP@,$CXXCPP,;t t
32150 s,@F77@,$F77,;t t
32151 s,@FFLAGS@,$FFLAGS,;t t
32152 s,@ac_ct_F77@,$ac_ct_F77,;t t
32153 s,@LIBTOOL@,$LIBTOOL,;t t
32154 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
32155 s,@LLVMGCC@,$LLVMGCC,;t t
32156 s,@LLVMGXX@,$LLVMGXX,;t t
32157 s,@ALLOCA@,$ALLOCA,;t t
32158 s,@MMAP_FILE@,$MMAP_FILE,;t t
32159 s,@LLVMCC1@,$LLVMCC1,;t t
32160 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
32161 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
32162 s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
32163 s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
32164 s,@SHLIBEXT@,$SHLIBEXT,;t t
32165 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
32166 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
32167 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
32168 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
32169 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
32170 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
32171 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
32172 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
32173 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
32174 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
32175 s,@LIBOBJS@,$LIBOBJS,;t t
32176 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
32177 CEOF
32178
32179 _ACEOF
32180
32181   cat >>$CONFIG_STATUS <<\_ACEOF
32182   # Split the substitutions into bite-sized pieces for seds with
32183   # small command number limits, like on Digital OSF/1 and HP-UX.
32184   ac_max_sed_lines=48
32185   ac_sed_frag=1 # Number of current file.
32186   ac_beg=1 # First line for current file.
32187   ac_end=$ac_max_sed_lines # Line after last line for current file.
32188   ac_more_lines=:
32189   ac_sed_cmds=
32190   while $ac_more_lines; do
32191     if test $ac_beg -gt 1; then
32192       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32193     else
32194       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32195     fi
32196     if test ! -s $tmp/subs.frag; then
32197       ac_more_lines=false
32198     else
32199       # The purpose of the label and of the branching condition is to
32200       # speed up the sed processing (if there are no `@' at all, there
32201       # is no need to browse any of the substitutions).
32202       # These are the two extra sed commands mentioned above.
32203       (echo ':t
32204   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
32205       if test -z "$ac_sed_cmds"; then
32206         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
32207       else
32208         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
32209       fi
32210       ac_sed_frag=`expr $ac_sed_frag + 1`
32211       ac_beg=$ac_end
32212       ac_end=`expr $ac_end + $ac_max_sed_lines`
32213     fi
32214   done
32215   if test -z "$ac_sed_cmds"; then
32216     ac_sed_cmds=cat
32217   fi
32218 fi # test -n "$CONFIG_FILES"
32219
32220 _ACEOF
32221 cat >>$CONFIG_STATUS <<\_ACEOF
32222 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
32223   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32224   case $ac_file in
32225   - | *:- | *:-:* ) # input from stdin
32226         cat >$tmp/stdin
32227         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32228         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32229   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32230         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32231   * )   ac_file_in=$ac_file.in ;;
32232   esac
32233
32234   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32235   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32236 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32237          X"$ac_file" : 'X\(//\)[^/]' \| \
32238          X"$ac_file" : 'X\(//\)$' \| \
32239          X"$ac_file" : 'X\(/\)' \| \
32240          .     : '\(.\)' 2>/dev/null ||
32241 echo X"$ac_file" |
32242     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32243           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32244           /^X\(\/\/\)$/{ s//\1/; q; }
32245           /^X\(\/\).*/{ s//\1/; q; }
32246           s/.*/./; q'`
32247   { if $as_mkdir_p; then
32248     mkdir -p "$ac_dir"
32249   else
32250     as_dir="$ac_dir"
32251     as_dirs=
32252     while test ! -d "$as_dir"; do
32253       as_dirs="$as_dir $as_dirs"
32254       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32255 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32256          X"$as_dir" : 'X\(//\)[^/]' \| \
32257          X"$as_dir" : 'X\(//\)$' \| \
32258          X"$as_dir" : 'X\(/\)' \| \
32259          .     : '\(.\)' 2>/dev/null ||
32260 echo X"$as_dir" |
32261     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32262           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32263           /^X\(\/\/\)$/{ s//\1/; q; }
32264           /^X\(\/\).*/{ s//\1/; q; }
32265           s/.*/./; q'`
32266     done
32267     test ! -n "$as_dirs" || mkdir $as_dirs
32268   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32269 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32270    { (exit 1); exit 1; }; }; }
32271
32272   ac_builddir=.
32273
32274 if test "$ac_dir" != .; then
32275   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32276   # A "../" for each directory in $ac_dir_suffix.
32277   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32278 else
32279   ac_dir_suffix= ac_top_builddir=
32280 fi
32281
32282 case $srcdir in
32283   .)  # No --srcdir option.  We are building in place.
32284     ac_srcdir=.
32285     if test -z "$ac_top_builddir"; then
32286        ac_top_srcdir=.
32287     else
32288        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32289     fi ;;
32290   [\\/]* | ?:[\\/]* )  # Absolute path.
32291     ac_srcdir=$srcdir$ac_dir_suffix;
32292     ac_top_srcdir=$srcdir ;;
32293   *) # Relative path.
32294     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32295     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32296 esac
32297
32298 # Do not use `cd foo && pwd` to compute absolute paths, because
32299 # the directories may not exist.
32300 case `pwd` in
32301 .) ac_abs_builddir="$ac_dir";;
32302 *)
32303   case "$ac_dir" in
32304   .) ac_abs_builddir=`pwd`;;
32305   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32306   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32307   esac;;
32308 esac
32309 case $ac_abs_builddir in
32310 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32311 *)
32312   case ${ac_top_builddir}. in
32313   .) ac_abs_top_builddir=$ac_abs_builddir;;
32314   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32315   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32316   esac;;
32317 esac
32318 case $ac_abs_builddir in
32319 .) ac_abs_srcdir=$ac_srcdir;;
32320 *)
32321   case $ac_srcdir in
32322   .) ac_abs_srcdir=$ac_abs_builddir;;
32323   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32324   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32325   esac;;
32326 esac
32327 case $ac_abs_builddir in
32328 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32329 *)
32330   case $ac_top_srcdir in
32331   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32332   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32333   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32334   esac;;
32335 esac
32336
32337
32338   case $INSTALL in
32339   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32340   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32341   esac
32342
32343   if test x"$ac_file" != x-; then
32344     { echo "$as_me:$LINENO: creating $ac_file" >&5
32345 echo "$as_me: creating $ac_file" >&6;}
32346     rm -f "$ac_file"
32347   fi
32348   # Let's still pretend it is `configure' which instantiates (i.e., don't
32349   # use $as_me), people would be surprised to read:
32350   #    /* config.h.  Generated by config.status.  */
32351   if test x"$ac_file" = x-; then
32352     configure_input=
32353   else
32354     configure_input="$ac_file.  "
32355   fi
32356   configure_input=$configure_input"Generated from `echo $ac_file_in |
32357                                      sed 's,.*/,,'` by configure."
32358
32359   # First look for the input files in the build tree, otherwise in the
32360   # src tree.
32361   ac_file_inputs=`IFS=:
32362     for f in $ac_file_in; do
32363       case $f in
32364       -) echo $tmp/stdin ;;
32365       [\\/$]*)
32366          # Absolute (can't be DOS-style, as IFS=:)
32367          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32368 echo "$as_me: error: cannot find input file: $f" >&2;}
32369    { (exit 1); exit 1; }; }
32370          echo "$f";;
32371       *) # Relative
32372          if test -f "$f"; then
32373            # Build tree
32374            echo "$f"
32375          elif test -f "$srcdir/$f"; then
32376            # Source tree
32377            echo "$srcdir/$f"
32378          else
32379            # /dev/null tree
32380            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32381 echo "$as_me: error: cannot find input file: $f" >&2;}
32382    { (exit 1); exit 1; }; }
32383          fi;;
32384       esac
32385     done` || { (exit 1); exit 1; }
32386 _ACEOF
32387 cat >>$CONFIG_STATUS <<_ACEOF
32388   sed "$ac_vpsub
32389 $extrasub
32390 _ACEOF
32391 cat >>$CONFIG_STATUS <<\_ACEOF
32392 :t
32393 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32394 s,@configure_input@,$configure_input,;t t
32395 s,@srcdir@,$ac_srcdir,;t t
32396 s,@abs_srcdir@,$ac_abs_srcdir,;t t
32397 s,@top_srcdir@,$ac_top_srcdir,;t t
32398 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32399 s,@builddir@,$ac_builddir,;t t
32400 s,@abs_builddir@,$ac_abs_builddir,;t t
32401 s,@top_builddir@,$ac_top_builddir,;t t
32402 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32403 s,@INSTALL@,$ac_INSTALL,;t t
32404 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32405   rm -f $tmp/stdin
32406   if test x"$ac_file" != x-; then
32407     mv $tmp/out $ac_file
32408   else
32409     cat $tmp/out
32410     rm -f $tmp/out
32411   fi
32412
32413 done
32414 _ACEOF
32415 cat >>$CONFIG_STATUS <<\_ACEOF
32416
32417 #
32418 # CONFIG_HEADER section.
32419 #
32420
32421 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32422 # NAME is the cpp macro being defined and VALUE is the value it is being given.
32423 #
32424 # ac_d sets the value in "#define NAME VALUE" lines.
32425 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
32426 ac_dB='[         ].*$,\1#\2'
32427 ac_dC=' '
32428 ac_dD=',;t'
32429 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32430 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
32431 ac_uB='$,\1#\2define\3'
32432 ac_uC=' '
32433 ac_uD=',;t'
32434
32435 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32436   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32437   case $ac_file in
32438   - | *:- | *:-:* ) # input from stdin
32439         cat >$tmp/stdin
32440         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32441         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32442   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32443         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32444   * )   ac_file_in=$ac_file.in ;;
32445   esac
32446
32447   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32448 echo "$as_me: creating $ac_file" >&6;}
32449
32450   # First look for the input files in the build tree, otherwise in the
32451   # src tree.
32452   ac_file_inputs=`IFS=:
32453     for f in $ac_file_in; do
32454       case $f in
32455       -) echo $tmp/stdin ;;
32456       [\\/$]*)
32457          # Absolute (can't be DOS-style, as IFS=:)
32458          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32459 echo "$as_me: error: cannot find input file: $f" >&2;}
32460    { (exit 1); exit 1; }; }
32461          # Do quote $f, to prevent DOS paths from being IFS'd.
32462          echo "$f";;
32463       *) # Relative
32464          if test -f "$f"; then
32465            # Build tree
32466            echo "$f"
32467          elif test -f "$srcdir/$f"; then
32468            # Source tree
32469            echo "$srcdir/$f"
32470          else
32471            # /dev/null tree
32472            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32473 echo "$as_me: error: cannot find input file: $f" >&2;}
32474    { (exit 1); exit 1; }; }
32475          fi;;
32476       esac
32477     done` || { (exit 1); exit 1; }
32478   # Remove the trailing spaces.
32479   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
32480
32481 _ACEOF
32482
32483 # Transform confdefs.h into two sed scripts, `conftest.defines' and
32484 # `conftest.undefs', that substitutes the proper values into
32485 # config.h.in to produce config.h.  The first handles `#define'
32486 # templates, and the second `#undef' templates.
32487 # And first: Protect against being on the right side of a sed subst in
32488 # config.status.  Protect against being in an unquoted here document
32489 # in config.status.
32490 rm -f conftest.defines conftest.undefs
32491 # Using a here document instead of a string reduces the quoting nightmare.
32492 # Putting comments in sed scripts is not portable.
32493 #
32494 # `end' is used to avoid that the second main sed command (meant for
32495 # 0-ary CPP macros) applies to n-ary macro definitions.
32496 # See the Autoconf documentation for `clear'.
32497 cat >confdef2sed.sed <<\_ACEOF
32498 s/[\\&,]/\\&/g
32499 s,[\\$`],\\&,g
32500 t clear
32501 : clear
32502 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32503 t end
32504 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32505 : end
32506 _ACEOF
32507 # If some macros were called several times there might be several times
32508 # the same #defines, which is useless.  Nevertheless, we may not want to
32509 # sort them, since we want the *last* AC-DEFINE to be honored.
32510 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32511 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32512 rm -f confdef2sed.sed
32513
32514 # This sed command replaces #undef with comments.  This is necessary, for
32515 # example, in the case of _POSIX_SOURCE, which is predefined and required
32516 # on some systems where configure will not decide to define it.
32517 cat >>conftest.undefs <<\_ACEOF
32518 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32519 _ACEOF
32520
32521 # Break up conftest.defines because some shells have a limit on the size
32522 # of here documents, and old seds have small limits too (100 cmds).
32523 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32524 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32525 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32526 echo '  :' >>$CONFIG_STATUS
32527 rm -f conftest.tail
32528 while grep . conftest.defines >/dev/null
32529 do
32530   # Write a limited-size here document to $tmp/defines.sed.
32531   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32532   # Speed up: don't consider the non `#define' lines.
32533   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
32534   # Work around the forget-to-reset-the-flag bug.
32535   echo 't clr' >>$CONFIG_STATUS
32536   echo ': clr' >>$CONFIG_STATUS
32537   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32538   echo 'CEOF
32539   sed -f $tmp/defines.sed $tmp/in >$tmp/out
32540   rm -f $tmp/in
32541   mv $tmp/out $tmp/in
32542 ' >>$CONFIG_STATUS
32543   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32544   rm -f conftest.defines
32545   mv conftest.tail conftest.defines
32546 done
32547 rm -f conftest.defines
32548 echo '  fi # grep' >>$CONFIG_STATUS
32549 echo >>$CONFIG_STATUS
32550
32551 # Break up conftest.undefs because some shells have a limit on the size
32552 # of here documents, and old seds have small limits too (100 cmds).
32553 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
32554 rm -f conftest.tail
32555 while grep . conftest.undefs >/dev/null
32556 do
32557   # Write a limited-size here document to $tmp/undefs.sed.
32558   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32559   # Speed up: don't consider the non `#undef'
32560   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
32561   # Work around the forget-to-reset-the-flag bug.
32562   echo 't clr' >>$CONFIG_STATUS
32563   echo ': clr' >>$CONFIG_STATUS
32564   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32565   echo 'CEOF
32566   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32567   rm -f $tmp/in
32568   mv $tmp/out $tmp/in
32569 ' >>$CONFIG_STATUS
32570   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32571   rm -f conftest.undefs
32572   mv conftest.tail conftest.undefs
32573 done
32574 rm -f conftest.undefs
32575
32576 cat >>$CONFIG_STATUS <<\_ACEOF
32577   # Let's still pretend it is `configure' which instantiates (i.e., don't
32578   # use $as_me), people would be surprised to read:
32579   #    /* config.h.  Generated by config.status.  */
32580   if test x"$ac_file" = x-; then
32581     echo "/* Generated by configure.  */" >$tmp/config.h
32582   else
32583     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
32584   fi
32585   cat $tmp/in >>$tmp/config.h
32586   rm -f $tmp/in
32587   if test x"$ac_file" != x-; then
32588     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32589       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32590 echo "$as_me: $ac_file is unchanged" >&6;}
32591     else
32592       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32593 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32594          X"$ac_file" : 'X\(//\)[^/]' \| \
32595          X"$ac_file" : 'X\(//\)$' \| \
32596          X"$ac_file" : 'X\(/\)' \| \
32597          .     : '\(.\)' 2>/dev/null ||
32598 echo X"$ac_file" |
32599     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32600           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32601           /^X\(\/\/\)$/{ s//\1/; q; }
32602           /^X\(\/\).*/{ s//\1/; q; }
32603           s/.*/./; q'`
32604       { if $as_mkdir_p; then
32605     mkdir -p "$ac_dir"
32606   else
32607     as_dir="$ac_dir"
32608     as_dirs=
32609     while test ! -d "$as_dir"; do
32610       as_dirs="$as_dir $as_dirs"
32611       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32612 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32613          X"$as_dir" : 'X\(//\)[^/]' \| \
32614          X"$as_dir" : 'X\(//\)$' \| \
32615          X"$as_dir" : 'X\(/\)' \| \
32616          .     : '\(.\)' 2>/dev/null ||
32617 echo X"$as_dir" |
32618     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32619           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32620           /^X\(\/\/\)$/{ s//\1/; q; }
32621           /^X\(\/\).*/{ s//\1/; q; }
32622           s/.*/./; q'`
32623     done
32624     test ! -n "$as_dirs" || mkdir $as_dirs
32625   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32626 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32627    { (exit 1); exit 1; }; }; }
32628
32629       rm -f $ac_file
32630       mv $tmp/config.h $ac_file
32631     fi
32632   else
32633     cat $tmp/config.h
32634     rm -f $tmp/config.h
32635   fi
32636 done
32637 _ACEOF
32638 cat >>$CONFIG_STATUS <<\_ACEOF
32639
32640 #
32641 # CONFIG_COMMANDS section.
32642 #
32643 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32644   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32645   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32646   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32647 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32648          X"$ac_dest" : 'X\(//\)[^/]' \| \
32649          X"$ac_dest" : 'X\(//\)$' \| \
32650          X"$ac_dest" : 'X\(/\)' \| \
32651          .     : '\(.\)' 2>/dev/null ||
32652 echo X"$ac_dest" |
32653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32654           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32655           /^X\(\/\/\)$/{ s//\1/; q; }
32656           /^X\(\/\).*/{ s//\1/; q; }
32657           s/.*/./; q'`
32658   { if $as_mkdir_p; then
32659     mkdir -p "$ac_dir"
32660   else
32661     as_dir="$ac_dir"
32662     as_dirs=
32663     while test ! -d "$as_dir"; do
32664       as_dirs="$as_dir $as_dirs"
32665       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32666 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32667          X"$as_dir" : 'X\(//\)[^/]' \| \
32668          X"$as_dir" : 'X\(//\)$' \| \
32669          X"$as_dir" : 'X\(/\)' \| \
32670          .     : '\(.\)' 2>/dev/null ||
32671 echo X"$as_dir" |
32672     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32673           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32674           /^X\(\/\/\)$/{ s//\1/; q; }
32675           /^X\(\/\).*/{ s//\1/; q; }
32676           s/.*/./; q'`
32677     done
32678     test ! -n "$as_dirs" || mkdir $as_dirs
32679   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32680 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32681    { (exit 1); exit 1; }; }; }
32682
32683   ac_builddir=.
32684
32685 if test "$ac_dir" != .; then
32686   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32687   # A "../" for each directory in $ac_dir_suffix.
32688   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32689 else
32690   ac_dir_suffix= ac_top_builddir=
32691 fi
32692
32693 case $srcdir in
32694   .)  # No --srcdir option.  We are building in place.
32695     ac_srcdir=.
32696     if test -z "$ac_top_builddir"; then
32697        ac_top_srcdir=.
32698     else
32699        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32700     fi ;;
32701   [\\/]* | ?:[\\/]* )  # Absolute path.
32702     ac_srcdir=$srcdir$ac_dir_suffix;
32703     ac_top_srcdir=$srcdir ;;
32704   *) # Relative path.
32705     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32706     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32707 esac
32708
32709 # Do not use `cd foo && pwd` to compute absolute paths, because
32710 # the directories may not exist.
32711 case `pwd` in
32712 .) ac_abs_builddir="$ac_dir";;
32713 *)
32714   case "$ac_dir" in
32715   .) ac_abs_builddir=`pwd`;;
32716   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32717   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32718   esac;;
32719 esac
32720 case $ac_abs_builddir in
32721 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32722 *)
32723   case ${ac_top_builddir}. in
32724   .) ac_abs_top_builddir=$ac_abs_builddir;;
32725   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32726   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32727   esac;;
32728 esac
32729 case $ac_abs_builddir in
32730 .) ac_abs_srcdir=$ac_srcdir;;
32731 *)
32732   case $ac_srcdir in
32733   .) ac_abs_srcdir=$ac_abs_builddir;;
32734   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32735   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32736   esac;;
32737 esac
32738 case $ac_abs_builddir in
32739 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32740 *)
32741   case $ac_top_srcdir in
32742   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32743   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32744   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32745   esac;;
32746 esac
32747
32748
32749   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32750 echo "$as_me: executing $ac_dest commands" >&6;}
32751   case $ac_dest in
32752     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32753    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32754     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32755    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32756     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32757    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32758     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32759    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32760     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32761    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32762     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32763    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32764     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32765    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32766     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32767    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32768     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32769    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32770     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32771    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32772   esac
32773 done
32774 _ACEOF
32775
32776 cat >>$CONFIG_STATUS <<\_ACEOF
32777
32778 { (exit 0); exit 0; }
32779 _ACEOF
32780 chmod +x $CONFIG_STATUS
32781 ac_clean_files=$ac_clean_files_save
32782
32783
32784 # configure is writing to config.log, and then calls config.status.
32785 # config.status does its own redirection, appending to config.log.
32786 # Unfortunately, on DOS this fails, as config.log is still kept open
32787 # by configure, so config.status won't be able to write to it; its
32788 # output is simply discarded.  So we exec the FD to /dev/null,
32789 # effectively closing config.log, so it can be properly (re)opened and
32790 # appended to by config.status.  When coming back to configure, we
32791 # need to make the FD available again.
32792 if test "$no_create" != yes; then
32793   ac_cs_success=:
32794   ac_config_status_args=
32795   test "$silent" = yes &&
32796     ac_config_status_args="$ac_config_status_args --quiet"
32797   exec 5>/dev/null
32798   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32799   exec 5>>config.log
32800   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32801   # would make configure fail if this is the last instruction.
32802   $ac_cs_success || { (exit 1); exit 1; }
32803 fi
32804
32805 #
32806 # CONFIG_SUBDIRS section.
32807 #
32808 if test "$no_recursion" != yes; then
32809
32810   # Remove --cache-file and --srcdir arguments so they do not pile up.
32811   ac_sub_configure_args=
32812   ac_prev=
32813   for ac_arg in $ac_configure_args; do
32814     if test -n "$ac_prev"; then
32815       ac_prev=
32816       continue
32817     fi
32818     case $ac_arg in
32819     -cache-file | --cache-file | --cache-fil | --cache-fi \
32820     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32821       ac_prev=cache_file ;;
32822     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32823     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32824     | --c=*)
32825       ;;
32826     --config-cache | -C)
32827       ;;
32828     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32829       ac_prev=srcdir ;;
32830     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32831       ;;
32832     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32833       ac_prev=prefix ;;
32834     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32835       ;;
32836     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32837     esac
32838   done
32839
32840   # Always prepend --prefix to ensure using the same prefix
32841   # in subdir configurations.
32842   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32843
32844   ac_popdir=`pwd`
32845   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32846
32847     # Do not complain, so a configure script can configure whichever
32848     # parts of a large source tree are present.
32849     test -d $srcdir/$ac_dir || continue
32850
32851     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32852 echo "$as_me: configuring in $ac_dir" >&6;}
32853     { if $as_mkdir_p; then
32854     mkdir -p "$ac_dir"
32855   else
32856     as_dir="$ac_dir"
32857     as_dirs=
32858     while test ! -d "$as_dir"; do
32859       as_dirs="$as_dir $as_dirs"
32860       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32861 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32862          X"$as_dir" : 'X\(//\)[^/]' \| \
32863          X"$as_dir" : 'X\(//\)$' \| \
32864          X"$as_dir" : 'X\(/\)' \| \
32865          .     : '\(.\)' 2>/dev/null ||
32866 echo X"$as_dir" |
32867     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32868           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32869           /^X\(\/\/\)$/{ s//\1/; q; }
32870           /^X\(\/\).*/{ s//\1/; q; }
32871           s/.*/./; q'`
32872     done
32873     test ! -n "$as_dirs" || mkdir $as_dirs
32874   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32875 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32876    { (exit 1); exit 1; }; }; }
32877
32878     ac_builddir=.
32879
32880 if test "$ac_dir" != .; then
32881   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32882   # A "../" for each directory in $ac_dir_suffix.
32883   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32884 else
32885   ac_dir_suffix= ac_top_builddir=
32886 fi
32887
32888 case $srcdir in
32889   .)  # No --srcdir option.  We are building in place.
32890     ac_srcdir=.
32891     if test -z "$ac_top_builddir"; then
32892        ac_top_srcdir=.
32893     else
32894        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32895     fi ;;
32896   [\\/]* | ?:[\\/]* )  # Absolute path.
32897     ac_srcdir=$srcdir$ac_dir_suffix;
32898     ac_top_srcdir=$srcdir ;;
32899   *) # Relative path.
32900     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32901     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32902 esac
32903
32904 # Do not use `cd foo && pwd` to compute absolute paths, because
32905 # the directories may not exist.
32906 case `pwd` in
32907 .) ac_abs_builddir="$ac_dir";;
32908 *)
32909   case "$ac_dir" in
32910   .) ac_abs_builddir=`pwd`;;
32911   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32912   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32913   esac;;
32914 esac
32915 case $ac_abs_builddir in
32916 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32917 *)
32918   case ${ac_top_builddir}. in
32919   .) ac_abs_top_builddir=$ac_abs_builddir;;
32920   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32921   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32922   esac;;
32923 esac
32924 case $ac_abs_builddir in
32925 .) ac_abs_srcdir=$ac_srcdir;;
32926 *)
32927   case $ac_srcdir in
32928   .) ac_abs_srcdir=$ac_abs_builddir;;
32929   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32930   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32931   esac;;
32932 esac
32933 case $ac_abs_builddir in
32934 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32935 *)
32936   case $ac_top_srcdir in
32937   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32938   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32939   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32940   esac;;
32941 esac
32942
32943
32944     cd $ac_dir
32945
32946     # Check for guested configure; otherwise get Cygnus style configure.
32947     if test -f $ac_srcdir/configure.gnu; then
32948       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32949     elif test -f $ac_srcdir/configure; then
32950       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32951     elif test -f $ac_srcdir/configure.in; then
32952       ac_sub_configure=$ac_configure
32953     else
32954       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32955 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32956       ac_sub_configure=
32957     fi
32958
32959     # The recursion is here.
32960     if test -n "$ac_sub_configure"; then
32961       # Make the cache file name correct relative to the subdirectory.
32962       case $cache_file in
32963       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32964       *) # Relative path.
32965         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32966       esac
32967
32968       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32969 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32970       # The eval makes quoting arguments work.
32971       eval $ac_sub_configure $ac_sub_configure_args \
32972            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32973         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32974 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32975    { (exit 1); exit 1; }; }
32976     fi
32977
32978     cd $ac_popdir
32979   done
32980 fi
32981
32982
32983 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32984  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32985 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32986  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32987 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32988  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32989 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32990  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32991 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32992  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32993 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32994 fi