For PR798:
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.8cvs.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 #
11 # Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293        echo_test_string="`eval $cmd`" &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 tagnames=${tagnames+${tagnames},}CXX
399
400 tagnames=${tagnames+${tagnames},}F77
401
402 # Name of the host.
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407 exec 6>&1
408
409 #
410 # Initializations.
411 #
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
414 cross_compiling=no
415 subdirs=
416 MFLAGS=
417 MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete.  It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
424
425 # Identity of this package.
426 PACKAGE_NAME='llvm'
427 PACKAGE_TARNAME='-llvm-'
428 PACKAGE_VERSION='1.8cvs'
429 PACKAGE_STRING='llvm 1.8cvs'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
441 ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
444 #include <stdio.h>
445 #if HAVE_SYS_TYPES_H
446 # include <sys/types.h>
447 #endif
448 #if HAVE_SYS_STAT_H
449 # include <sys/stat.h>
450 #endif
451 #if STDC_HEADERS
452 # include <stdlib.h>
453 # include <stddef.h>
454 #else
455 # if HAVE_STDLIB_H
456 #  include <stdlib.h>
457 # endif
458 #endif
459 #if HAVE_STRING_H
460 # if !STDC_HEADERS && HAVE_MEMORY_H
461 #  include <memory.h>
462 # endif
463 # include <string.h>
464 #endif
465 #if HAVE_STRINGS_H
466 # include <strings.h>
467 #endif
468 #if HAVE_INTTYPES_H
469 # include <inttypes.h>
470 #else
471 # if HAVE_STDINT_H
472 #  include <stdint.h>
473 # endif
474 #endif
475 #if HAVE_UNISTD_H
476 # include <unistd.h>
477 #endif"
478
479 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV DOTTY PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
480 ac_subst_files=''
481
482 # Initialize some variables set by options.
483 ac_init_help=
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
487 cache_file=/dev/null
488 exec_prefix=NONE
489 no_create=
490 no_recursion=
491 prefix=NONE
492 program_prefix=NONE
493 program_suffix=NONE
494 program_transform_name=s,x,x,
495 silent=
496 site=
497 srcdir=
498 verbose=
499 x_includes=NONE
500 x_libraries=NONE
501
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
519
520 ac_prev=
521 for ac_option
522 do
523   # If the previous option needs an argument, assign it.
524   if test -n "$ac_prev"; then
525     eval "$ac_prev=\$ac_option"
526     ac_prev=
527     continue
528   fi
529
530   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532   # Accept the important Cygnus configure options, so we can diagnose typos.
533
534   case $ac_option in
535
536   -bindir | --bindir | --bindi | --bind | --bin | --bi)
537     ac_prev=bindir ;;
538   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539     bindir=$ac_optarg ;;
540
541   -build | --build | --buil | --bui | --bu)
542     ac_prev=build_alias ;;
543   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544     build_alias=$ac_optarg ;;
545
546   -cache-file | --cache-file | --cache-fil | --cache-fi \
547   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548     ac_prev=cache_file ;;
549   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551     cache_file=$ac_optarg ;;
552
553   --config-cache | -C)
554     cache_file=config.cache ;;
555
556   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557     ac_prev=datadir ;;
558   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559   | --da=*)
560     datadir=$ac_optarg ;;
561
562   -disable-* | --disable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     eval "enable_$ac_feature=no" ;;
570
571   -enable-* | --enable-*)
572     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576    { (exit 1); exit 1; }; }
577     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "enable_$ac_feature='$ac_optarg'" ;;
583
584   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586   | --exec | --exe | --ex)
587     ac_prev=exec_prefix ;;
588   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590   | --exec=* | --exe=* | --ex=*)
591     exec_prefix=$ac_optarg ;;
592
593   -gas | --gas | --ga | --g)
594     # Obsolete; use --with-gas.
595     with_gas=yes ;;
596
597   -help | --help | --hel | --he | -h)
598     ac_init_help=long ;;
599   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600     ac_init_help=recursive ;;
601   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602     ac_init_help=short ;;
603
604   -host | --host | --hos | --ho)
605     ac_prev=host_alias ;;
606   -host=* | --host=* | --hos=* | --ho=*)
607     host_alias=$ac_optarg ;;
608
609   -includedir | --includedir | --includedi | --included | --include \
610   | --includ | --inclu | --incl | --inc)
611     ac_prev=includedir ;;
612   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613   | --includ=* | --inclu=* | --incl=* | --inc=*)
614     includedir=$ac_optarg ;;
615
616   -infodir | --infodir | --infodi | --infod | --info | --inf)
617     ac_prev=infodir ;;
618   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619     infodir=$ac_optarg ;;
620
621   -libdir | --libdir | --libdi | --libd)
622     ac_prev=libdir ;;
623   -libdir=* | --libdir=* | --libdi=* | --libd=*)
624     libdir=$ac_optarg ;;
625
626   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627   | --libexe | --libex | --libe)
628     ac_prev=libexecdir ;;
629   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630   | --libexe=* | --libex=* | --libe=*)
631     libexecdir=$ac_optarg ;;
632
633   -localstatedir | --localstatedir | --localstatedi | --localstated \
634   | --localstate | --localstat | --localsta | --localst \
635   | --locals | --local | --loca | --loc | --lo)
636     ac_prev=localstatedir ;;
637   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640     localstatedir=$ac_optarg ;;
641
642   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643     ac_prev=mandir ;;
644   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645     mandir=$ac_optarg ;;
646
647   -nfp | --nfp | --nf)
648     # Obsolete; use --without-fp.
649     with_fp=no ;;
650
651   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652   | --no-cr | --no-c | -n)
653     no_create=yes ;;
654
655   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657     no_recursion=yes ;;
658
659   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661   | --oldin | --oldi | --old | --ol | --o)
662     ac_prev=oldincludedir ;;
663   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666     oldincludedir=$ac_optarg ;;
667
668   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669     ac_prev=prefix ;;
670   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671     prefix=$ac_optarg ;;
672
673   -program-prefix | --program-prefix | --program-prefi | --program-pref \
674   | --program-pre | --program-pr | --program-p)
675     ac_prev=program_prefix ;;
676   -program-prefix=* | --program-prefix=* | --program-prefi=* \
677   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678     program_prefix=$ac_optarg ;;
679
680   -program-suffix | --program-suffix | --program-suffi | --program-suff \
681   | --program-suf | --program-su | --program-s)
682     ac_prev=program_suffix ;;
683   -program-suffix=* | --program-suffix=* | --program-suffi=* \
684   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685     program_suffix=$ac_optarg ;;
686
687   -program-transform-name | --program-transform-name \
688   | --program-transform-nam | --program-transform-na \
689   | --program-transform-n | --program-transform- \
690   | --program-transform | --program-transfor \
691   | --program-transfo | --program-transf \
692   | --program-trans | --program-tran \
693   | --progr-tra | --program-tr | --program-t)
694     ac_prev=program_transform_name ;;
695   -program-transform-name=* | --program-transform-name=* \
696   | --program-transform-nam=* | --program-transform-na=* \
697   | --program-transform-n=* | --program-transform-=* \
698   | --program-transform=* | --program-transfor=* \
699   | --program-transfo=* | --program-transf=* \
700   | --program-trans=* | --program-tran=* \
701   | --progr-tra=* | --program-tr=* | --program-t=*)
702     program_transform_name=$ac_optarg ;;
703
704   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705   | -silent | --silent | --silen | --sile | --sil)
706     silent=yes ;;
707
708   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709     ac_prev=sbindir ;;
710   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711   | --sbi=* | --sb=*)
712     sbindir=$ac_optarg ;;
713
714   -sharedstatedir | --sharedstatedir | --sharedstatedi \
715   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716   | --sharedst | --shareds | --shared | --share | --shar \
717   | --sha | --sh)
718     ac_prev=sharedstatedir ;;
719   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722   | --sha=* | --sh=*)
723     sharedstatedir=$ac_optarg ;;
724
725   -site | --site | --sit)
726     ac_prev=site ;;
727   -site=* | --site=* | --sit=*)
728     site=$ac_optarg ;;
729
730   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731     ac_prev=srcdir ;;
732   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733     srcdir=$ac_optarg ;;
734
735   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736   | --syscon | --sysco | --sysc | --sys | --sy)
737     ac_prev=sysconfdir ;;
738   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740     sysconfdir=$ac_optarg ;;
741
742   -target | --target | --targe | --targ | --tar | --ta | --t)
743     ac_prev=target_alias ;;
744   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745     target_alias=$ac_optarg ;;
746
747   -v | -verbose | --verbose | --verbos | --verbo | --verb)
748     verbose=yes ;;
749
750   -version | --version | --versio | --versi | --vers | -V)
751     ac_init_version=: ;;
752
753   -with-* | --with-*)
754     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package| sed 's/-/_/g'`
760     case $ac_option in
761       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762       *) ac_optarg=yes ;;
763     esac
764     eval "with_$ac_package='$ac_optarg'" ;;
765
766   -without-* | --without-*)
767     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768     # Reject names that are not valid shell variable names.
769     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770       { echo "$as_me: error: invalid package name: $ac_package" >&2
771    { (exit 1); exit 1; }; }
772     ac_package=`echo $ac_package | sed 's/-/_/g'`
773     eval "with_$ac_package=no" ;;
774
775   --x)
776     # Obsolete; use --with-x.
777     with_x=yes ;;
778
779   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780   | --x-incl | --x-inc | --x-in | --x-i)
781     ac_prev=x_includes ;;
782   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784     x_includes=$ac_optarg ;;
785
786   -x-libraries | --x-libraries | --x-librarie | --x-librari \
787   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788     ac_prev=x_libraries ;;
789   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791     x_libraries=$ac_optarg ;;
792
793   -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795    { (exit 1); exit 1; }; }
796     ;;
797
798   *=*)
799     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800     # Reject names that are not valid shell variable names.
801     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803    { (exit 1); exit 1; }; }
804     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805     eval "$ac_envvar='$ac_optarg'"
806     export $ac_envvar ;;
807
808   *)
809     # FIXME: should be removed in autoconf 3.0.
810     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814     ;;
815
816   esac
817 done
818
819 if test -n "$ac_prev"; then
820   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821   { echo "$as_me: error: missing argument to $ac_option" >&2
822    { (exit 1); exit 1; }; }
823 fi
824
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838               localstatedir libdir includedir oldincludedir infodir mandir
839 do
840   eval ac_val=$`echo $ac_var`
841   case $ac_val in
842     [\\/$]* | ?:[\\/]* ) ;;
843     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844    { (exit 1); exit 1; }; };;
845   esac
846 done
847
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
851 build=$build_alias
852 host=$host_alias
853 target=$target_alias
854
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857   if test "x$build_alias" = x; then
858     cross_compiling=maybe
859     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860     If a cross compiler is detected then cross compile mode will be used." >&2
861   elif test "x$build_alias" != "x$host_alias"; then
862     cross_compiling=yes
863   fi
864 fi
865
866 ac_tool_prefix=
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869 test "$silent" = yes && exec 6>/dev/null
870
871
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874   ac_srcdir_defaulted=yes
875   # Try the directory containing this script, then its parent.
876   ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878          X"$0" : 'X\(//\)[^/]' \| \
879          X"$0" : 'X\(//\)$' \| \
880          X"$0" : 'X\(/\)' \| \
881          .     : '\(.\)' 2>/dev/null ||
882 echo X"$0" |
883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885           /^X\(\/\/\)$/{ s//\1/; q; }
886           /^X\(\/\).*/{ s//\1/; q; }
887           s/.*/./; q'`
888   srcdir=$ac_confdir
889   if test ! -r $srcdir/$ac_unique_file; then
890     srcdir=..
891   fi
892 else
893   ac_srcdir_defaulted=no
894 fi
895 if test ! -r $srcdir/$ac_unique_file; then
896   if test "$ac_srcdir_defaulted" = yes; then
897     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898    { (exit 1); exit 1; }; }
899   else
900     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901    { (exit 1); exit 1; }; }
902   fi
903 fi
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906    { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
921 ac_env_CC_value=$CC
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
960
961 #
962 # Report the --help message.
963 #
964 if test "$ac_init_help" = "long"; then
965   # Omit some internal or obsolete options to make the list less imposing.
966   # This message is too long to be a string in the A/UX 3.1 sh.
967   cat <<_ACEOF
968 \`configure' configures llvm 1.8cvs to adapt to many kinds of systems.
969
970 Usage: $0 [OPTION]... [VAR=VALUE]...
971
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE.  See below for descriptions of some of the useful variables.
974
975 Defaults for the options are specified in brackets.
976
977 Configuration:
978   -h, --help              display this help and exit
979       --help=short        display options specific to this package
980       --help=recursive    display the short help of all the included packages
981   -V, --version           display version information and exit
982   -q, --quiet, --silent   do not print \`checking...' messages
983       --cache-file=FILE   cache test results in FILE [disabled]
984   -C, --config-cache      alias for \`--cache-file=config.cache'
985   -n, --no-create         do not create output files
986       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
987
988 _ACEOF
989
990   cat <<_ACEOF
991 Installation directories:
992   --prefix=PREFIX         install architecture-independent files in PREFIX
993                           [$ac_default_prefix]
994   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
995                           [PREFIX]
996
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1001
1002 For better control, use the options below.
1003
1004 Fine tuning of the installation directories:
1005   --bindir=DIR           user executables [EPREFIX/bin]
1006   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1007   --libexecdir=DIR       program executables [EPREFIX/libexec]
1008   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1009   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1010   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1011   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1012   --libdir=DIR           object code libraries [EPREFIX/lib]
1013   --includedir=DIR       C header files [PREFIX/include]
1014   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1015   --infodir=DIR          info documentation [PREFIX/info]
1016   --mandir=DIR           man documentation [PREFIX/man]
1017 _ACEOF
1018
1019   cat <<\_ACEOF
1020
1021 System types:
1022   --build=BUILD     configure for building on BUILD [guessed]
1023   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1024   --target=TARGET   configure for building compilers for TARGET [HOST]
1025 _ACEOF
1026 fi
1027
1028 if test -n "$ac_init_help"; then
1029   case $ac_init_help in
1030      short | recursive ) echo "Configuration of llvm 1.8cvs:";;
1031    esac
1032   cat <<\_ACEOF
1033
1034 Optional Features:
1035   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1036   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1037   --enable-optimized
1038   --enable-assertions
1039   --enable-debug-runtime
1040   --enable-jit            Enable Just In Time Compiling (default is YES)
1041   --enable-doxygen        Build doxygen documentation (default is NO)
1042   --enable-threads        Use threads if available (default is YES)
1043   --enable-target         Build specific host targets:
1044                           all,host-only,{target-name} (default=all)
1045   --enable-ltdl-install   install libltdl
1046   --enable-shared[=PKGS]
1047                           build shared libraries [default=yes]
1048   --enable-static[=PKGS]
1049                           build static libraries [default=yes]
1050   --enable-fast-install[=PKGS]
1051                           optimize for fast installation [default=yes]
1052   --disable-libtool-lock  avoid locking (might break parallel builds)
1053
1054 Optional Packages:
1055   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1056   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1057   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1058                           searches PATH)
1059   --with-tclinclude       directory where tcl headers are
1060   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1061   --with-pic              try to use only PIC/non-PIC objects [default=use
1062                           both]
1063   --with-tags[=TAGS]
1064                           include additional configurations [automatic]
1065
1066 Some influential environment variables:
1067   CC          C compiler command
1068   CFLAGS      C compiler flags
1069   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1070               nonstandard directory <lib dir>
1071   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072               headers in a nonstandard directory <include dir>
1073   CPP         C preprocessor
1074   CXX         C++ compiler command
1075   CXXFLAGS    C++ compiler flags
1076   CXXCPP      C++ preprocessor
1077   F77         Fortran 77 compiler command
1078   FFLAGS      Fortran 77 compiler flags
1079
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1082
1083 Report bugs to <llvmbugs@cs.uiuc.edu>.
1084 _ACEOF
1085 fi
1086
1087 if test "$ac_init_help" = "recursive"; then
1088   # If there are subdirs, report their specific --help.
1089   ac_popdir=`pwd`
1090   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091     test -d $ac_dir || continue
1092     ac_builddir=.
1093
1094 if test "$ac_dir" != .; then
1095   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096   # A "../" for each directory in $ac_dir_suffix.
1097   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1098 else
1099   ac_dir_suffix= ac_top_builddir=
1100 fi
1101
1102 case $srcdir in
1103   .)  # No --srcdir option.  We are building in place.
1104     ac_srcdir=.
1105     if test -z "$ac_top_builddir"; then
1106        ac_top_srcdir=.
1107     else
1108        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109     fi ;;
1110   [\\/]* | ?:[\\/]* )  # Absolute path.
1111     ac_srcdir=$srcdir$ac_dir_suffix;
1112     ac_top_srcdir=$srcdir ;;
1113   *) # Relative path.
1114     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1116 esac
1117
1118 # Do not use `cd foo && pwd` to compute absolute paths, because
1119 # the directories may not exist.
1120 case `pwd` in
1121 .) ac_abs_builddir="$ac_dir";;
1122 *)
1123   case "$ac_dir" in
1124   .) ac_abs_builddir=`pwd`;;
1125   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1127   esac;;
1128 esac
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *)
1132   case ${ac_top_builddir}. in
1133   .) ac_abs_top_builddir=$ac_abs_builddir;;
1134   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1136   esac;;
1137 esac
1138 case $ac_abs_builddir in
1139 .) ac_abs_srcdir=$ac_srcdir;;
1140 *)
1141   case $ac_srcdir in
1142   .) ac_abs_srcdir=$ac_abs_builddir;;
1143   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1145   esac;;
1146 esac
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *)
1150   case $ac_top_srcdir in
1151   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154   esac;;
1155 esac
1156
1157     cd $ac_dir
1158     # Check for guested configure; otherwise get Cygnus style configure.
1159     if test -f $ac_srcdir/configure.gnu; then
1160       echo
1161       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1162     elif test -f $ac_srcdir/configure; then
1163       echo
1164       $SHELL $ac_srcdir/configure  --help=recursive
1165     elif test -f $ac_srcdir/configure.ac ||
1166            test -f $ac_srcdir/configure.in; then
1167       echo
1168       $ac_configure --help
1169     else
1170       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171     fi
1172     cd $ac_popdir
1173   done
1174 fi
1175
1176 test -n "$ac_init_help" && exit 0
1177 if $ac_init_version; then
1178   cat <<\_ACEOF
1179 llvm configure 1.8cvs
1180 generated by GNU Autoconf 2.59
1181
1182 Copyright (C) 2003 Free Software Foundation, Inc.
1183 This configure script is free software; the Free Software Foundation
1184 gives unlimited permission to copy, distribute and modify it.
1185
1186 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1187 _ACEOF
1188   exit 0
1189 fi
1190 exec 5>config.log
1191 cat >&5 <<_ACEOF
1192 This file contains any messages produced by compilers while
1193 running configure, to aid debugging if configure makes a mistake.
1194
1195 It was created by llvm $as_me 1.8cvs, which was
1196 generated by GNU Autoconf 2.59.  Invocation command line was
1197
1198   $ $0 $@
1199
1200 _ACEOF
1201 {
1202 cat <<_ASUNAME
1203 ## --------- ##
1204 ## Platform. ##
1205 ## --------- ##
1206
1207 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1212
1213 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1215
1216 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1217 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1220 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1221 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1222 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1223
1224 _ASUNAME
1225
1226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1227 for as_dir in $PATH
1228 do
1229   IFS=$as_save_IFS
1230   test -z "$as_dir" && as_dir=.
1231   echo "PATH: $as_dir"
1232 done
1233
1234 } >&5
1235
1236 cat >&5 <<_ACEOF
1237
1238
1239 ## ----------- ##
1240 ## Core tests. ##
1241 ## ----------- ##
1242
1243 _ACEOF
1244
1245
1246 # Keep a trace of the command line.
1247 # Strip out --no-create and --no-recursion so they do not pile up.
1248 # Strip out --silent because we don't want to record it for future runs.
1249 # Also quote any args containing shell meta-characters.
1250 # Make two passes to allow for proper duplicate-argument suppression.
1251 ac_configure_args=
1252 ac_configure_args0=
1253 ac_configure_args1=
1254 ac_sep=
1255 ac_must_keep_next=false
1256 for ac_pass in 1 2
1257 do
1258   for ac_arg
1259   do
1260     case $ac_arg in
1261     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263     | -silent | --silent | --silen | --sile | --sil)
1264       continue ;;
1265     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267     esac
1268     case $ac_pass in
1269     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1270     2)
1271       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272       if test $ac_must_keep_next = true; then
1273         ac_must_keep_next=false # Got value, back to normal.
1274       else
1275         case $ac_arg in
1276           *=* | --config-cache | -C | -disable-* | --disable-* \
1277           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279           | -with-* | --with-* | -without-* | --without-* | --x)
1280             case "$ac_configure_args0 " in
1281               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282             esac
1283             ;;
1284           -* ) ac_must_keep_next=true ;;
1285         esac
1286       fi
1287       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288       # Get rid of the leading space.
1289       ac_sep=" "
1290       ;;
1291     esac
1292   done
1293 done
1294 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1296
1297 # When interrupted or exit'd, cleanup temporary files, and complete
1298 # config.log.  We remove comments because anyway the quotes in there
1299 # would cause problems or look ugly.
1300 # WARNING: Be sure not to use single quotes in there, as some shells,
1301 # such as our DU 5.0 friend, will then `close' the trap.
1302 trap 'exit_status=$?
1303   # Save into config.log some information that might help in debugging.
1304   {
1305     echo
1306
1307     cat <<\_ASBOX
1308 ## ---------------- ##
1309 ## Cache variables. ##
1310 ## ---------------- ##
1311 _ASBOX
1312     echo
1313     # The following way of writing the cache mishandles newlines in values,
1314 {
1315   (set) 2>&1 |
1316     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317     *ac_space=\ *)
1318       sed -n \
1319         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1321       ;;
1322     *)
1323       sed -n \
1324         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1325       ;;
1326     esac;
1327 }
1328     echo
1329
1330     cat <<\_ASBOX
1331 ## ----------------- ##
1332 ## Output variables. ##
1333 ## ----------------- ##
1334 _ASBOX
1335     echo
1336     for ac_var in $ac_subst_vars
1337     do
1338       eval ac_val=$`echo $ac_var`
1339       echo "$ac_var='"'"'$ac_val'"'"'"
1340     done | sort
1341     echo
1342
1343     if test -n "$ac_subst_files"; then
1344       cat <<\_ASBOX
1345 ## ------------- ##
1346 ## Output files. ##
1347 ## ------------- ##
1348 _ASBOX
1349       echo
1350       for ac_var in $ac_subst_files
1351       do
1352         eval ac_val=$`echo $ac_var`
1353         echo "$ac_var='"'"'$ac_val'"'"'"
1354       done | sort
1355       echo
1356     fi
1357
1358     if test -s confdefs.h; then
1359       cat <<\_ASBOX
1360 ## ----------- ##
1361 ## confdefs.h. ##
1362 ## ----------- ##
1363 _ASBOX
1364       echo
1365       sed "/^$/d" confdefs.h | sort
1366       echo
1367     fi
1368     test "$ac_signal" != 0 &&
1369       echo "$as_me: caught signal $ac_signal"
1370     echo "$as_me: exit $exit_status"
1371   } >&5
1372   rm -f core *.core &&
1373   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374     exit $exit_status
1375      ' 0
1376 for ac_signal in 1 2 13 15; do
1377   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1378 done
1379 ac_signal=0
1380
1381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1382 rm -rf conftest* confdefs.h
1383 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384 echo >confdefs.h
1385
1386 # Predefined preprocessor variables.
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_NAME "$PACKAGE_NAME"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_STRING "$PACKAGE_STRING"
1405 _ACEOF
1406
1407
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1410 _ACEOF
1411
1412
1413 # Let the site file select an alternate cache file if it wants to.
1414 # Prefer explicitly selected file to automatically selected ones.
1415 if test -z "$CONFIG_SITE"; then
1416   if test "x$prefix" != xNONE; then
1417     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1418   else
1419     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420   fi
1421 fi
1422 for ac_site_file in $CONFIG_SITE; do
1423   if test -r "$ac_site_file"; then
1424     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425 echo "$as_me: loading site script $ac_site_file" >&6;}
1426     sed 's/^/| /' "$ac_site_file" >&5
1427     . "$ac_site_file"
1428   fi
1429 done
1430
1431 if test -r "$cache_file"; then
1432   # Some versions of bash will fail to source /dev/null (special
1433   # files actually), so we avoid doing that.
1434   if test -f "$cache_file"; then
1435     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436 echo "$as_me: loading cache $cache_file" >&6;}
1437     case $cache_file in
1438       [\\/]* | ?:[\\/]* ) . $cache_file;;
1439       *)                      . ./$cache_file;;
1440     esac
1441   fi
1442 else
1443   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444 echo "$as_me: creating cache $cache_file" >&6;}
1445   >$cache_file
1446 fi
1447
1448 # Check that the precious variables saved in the cache have kept the same
1449 # value.
1450 ac_cache_corrupted=false
1451 for ac_var in `(set) 2>&1 |
1452                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1453   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454   eval ac_new_set=\$ac_env_${ac_var}_set
1455   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456   eval ac_new_val="\$ac_env_${ac_var}_value"
1457   case $ac_old_set,$ac_new_set in
1458     set,)
1459       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461       ac_cache_corrupted=: ;;
1462     ,set)
1463       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465       ac_cache_corrupted=: ;;
1466     ,);;
1467     *)
1468       if test "x$ac_old_val" != "x$ac_new_val"; then
1469         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1470 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1471         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1472 echo "$as_me:   former value:  $ac_old_val" >&2;}
1473         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1474 echo "$as_me:   current value: $ac_new_val" >&2;}
1475         ac_cache_corrupted=:
1476       fi;;
1477   esac
1478   # Pass precious variables to config.status.
1479   if test "$ac_new_set" = set; then
1480     case $ac_new_val in
1481     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483     *) ac_arg=$ac_var=$ac_new_val ;;
1484     esac
1485     case " $ac_configure_args " in
1486       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1487       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1488     esac
1489   fi
1490 done
1491 if $ac_cache_corrupted; then
1492   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496    { (exit 1); exit 1; }; }
1497 fi
1498
1499 ac_ext=c
1500 ac_cpp='$CPP $CPPFLAGS'
1501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1533
1534
1535
1536
1537
1538
1539
1540 ac_aux_dir=
1541 for ac_dir in autoconf $srcdir/autoconf; do
1542   if test -f $ac_dir/install-sh; then
1543     ac_aux_dir=$ac_dir
1544     ac_install_sh="$ac_aux_dir/install-sh -c"
1545     break
1546   elif test -f $ac_dir/install.sh; then
1547     ac_aux_dir=$ac_dir
1548     ac_install_sh="$ac_aux_dir/install.sh -c"
1549     break
1550   elif test -f $ac_dir/shtool; then
1551     ac_aux_dir=$ac_dir
1552     ac_install_sh="$ac_aux_dir/shtool install -c"
1553     break
1554   fi
1555 done
1556 if test -z "$ac_aux_dir"; then
1557   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1558 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1559    { (exit 1); exit 1; }; }
1560 fi
1561 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1564
1565
1566 if test ${srcdir} != "." ; then
1567   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1568     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1569 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1570    { (exit 1); exit 1; }; }
1571   fi
1572 fi
1573
1574 for i in `ls ${srcdir}/projects`
1575 do
1576   if test -d ${srcdir}/projects/${i} ; then
1577     case ${i} in
1578       "CVS") ;;
1579       "sample")
1580
1581 subdirs="$subdirs projects/sample"
1582     ;;
1583       "Stacker")
1584
1585 subdirs="$subdirs projects/Stacker"
1586    ;;
1587       "llvm-test")
1588
1589 subdirs="$subdirs projects/llvm-test"
1590  ;;
1591       "llvm-reopt")
1592
1593 subdirs="$subdirs projects/llvm-reopt"
1594 ;;
1595       "llvm-gcc")
1596
1597 subdirs="$subdirs projects/llvm-gcc"
1598   ;;
1599       "llvm-java")
1600
1601 subdirs="$subdirs projects/llvm-java"
1602  ;;
1603       "llvm-tv")
1604
1605 subdirs="$subdirs projects/llvm-tv"
1606    ;;
1607       "llvm-poolalloc")
1608
1609 subdirs="$subdirs projects/llvm-poolalloc"
1610  ;;
1611       "llvm-kernel")
1612
1613 subdirs="$subdirs projects/llvm-kernel"
1614  ;;
1615       *)
1616         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1617 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1618         ;;
1619     esac
1620   fi
1621 done
1622
1623
1624 # Make sure we can run config.sub.
1625 $ac_config_sub sun4 >/dev/null 2>&1 ||
1626   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1627 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1628    { (exit 1); exit 1; }; }
1629
1630 echo "$as_me:$LINENO: checking build system type" >&5
1631 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1632 if test "${ac_cv_build+set}" = set; then
1633   echo $ECHO_N "(cached) $ECHO_C" >&6
1634 else
1635   ac_cv_build_alias=$build_alias
1636 test -z "$ac_cv_build_alias" &&
1637   ac_cv_build_alias=`$ac_config_guess`
1638 test -z "$ac_cv_build_alias" &&
1639   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1640 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1641    { (exit 1); exit 1; }; }
1642 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1643   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1644 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1645    { (exit 1); exit 1; }; }
1646
1647 fi
1648 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1649 echo "${ECHO_T}$ac_cv_build" >&6
1650 build=$ac_cv_build
1651 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1652 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1653 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1654
1655
1656 echo "$as_me:$LINENO: checking host system type" >&5
1657 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1658 if test "${ac_cv_host+set}" = set; then
1659   echo $ECHO_N "(cached) $ECHO_C" >&6
1660 else
1661   ac_cv_host_alias=$host_alias
1662 test -z "$ac_cv_host_alias" &&
1663   ac_cv_host_alias=$ac_cv_build_alias
1664 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1665   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1666 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1667    { (exit 1); exit 1; }; }
1668
1669 fi
1670 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1671 echo "${ECHO_T}$ac_cv_host" >&6
1672 host=$ac_cv_host
1673 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1674 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1675 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1676
1677
1678 echo "$as_me:$LINENO: checking target system type" >&5
1679 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1680 if test "${ac_cv_target+set}" = set; then
1681   echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683   ac_cv_target_alias=$target_alias
1684 test "x$ac_cv_target_alias" = "x" &&
1685   ac_cv_target_alias=$ac_cv_host_alias
1686 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1687   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1688 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1689    { (exit 1); exit 1; }; }
1690
1691 fi
1692 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1693 echo "${ECHO_T}$ac_cv_target" >&6
1694 target=$ac_cv_target
1695 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1696 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1697 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1698
1699
1700 # The aliases save the names the user supplied, while $host etc.
1701 # will get canonicalized.
1702 test -n "$target_alias" &&
1703   test "$program_prefix$program_suffix$program_transform_name" = \
1704     NONENONEs,x,x, &&
1705   program_prefix=${target_alias}-
1706
1707 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1708 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1709 if test "${llvm_cv_os_type+set}" = set; then
1710   echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712   case $build in
1713   *-*-aix*)
1714     llvm_cv_os_type="AIX"
1715     llvm_cv_platform_type="Unix" ;;
1716   *-*-cygwin*)
1717     llvm_cv_os_type="Cygwin"
1718     llvm_cv_platform_type="Unix" ;;
1719   *-*-darwin*)
1720     llvm_cv_os_type="Darwin"
1721     llvm_cv_platform_type="Unix" ;;
1722   *-*-freebsd*)
1723     llvm_cv_os_type="FreeBSD"
1724     llvm_cv_platform_type="Unix" ;;
1725   *-*-openbsd*)
1726     llvm_cv_os_type="OpenBSD"
1727     llvm_cv_platform_type="Unix" ;;
1728   *-*-hpux*)
1729     llvm_cv_os_type="HP-UX"
1730     llvm_cv_platform_type="Unix" ;;
1731   *-*-interix*)
1732     llvm_cv_os_type="Interix"
1733     llvm_cv_platform_type="Unix" ;;
1734   *-*-linux*)
1735     llvm_cv_os_type="Linux"
1736     llvm_cv_platform_type="Unix" ;;
1737   *-*-solaris*)
1738     llvm_cv_os_type="SunOS"
1739     llvm_cv_platform_type="Unix" ;;
1740   *-*-win32*)
1741     llvm_cv_os_type="Win32"
1742     llvm_cv_platform_type="Win32" ;;
1743   *-*-mingw*)
1744     llvm_cv_os_type="MingW"
1745     llvm_cv_platform_type="Win32" ;;
1746   *)
1747     llvm_cv_os_type="Unknown"
1748     llvm_cv_platform_type="Unknown" ;;
1749 esac
1750 fi
1751 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1752 echo "${ECHO_T}$llvm_cv_os_type" >&6
1753
1754 if test "$llvm_cv_os_type" = "Unknown" ; then
1755   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1756 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1757    { (exit 1); exit 1; }; }
1758 fi
1759
1760 OS=$llvm_cv_os_type
1761
1762
1763 case $llvm_cv_platform_type in
1764   Unix)
1765
1766 cat >>confdefs.h <<\_ACEOF
1767 #define LLVM_ON_UNIX 1
1768 _ACEOF
1769
1770     LLVM_ON_UNIX=1
1771
1772     LLVM_ON_WIN32=0
1773
1774     ;;
1775   Win32)
1776
1777 cat >>confdefs.h <<\_ACEOF
1778 #define LLVM_ON_WIN32 1
1779 _ACEOF
1780
1781     LLVM_ON_UNIX=0
1782
1783     LLVM_ON_WIN32=1
1784
1785     ;;
1786 esac
1787
1788 echo "$as_me:$LINENO: checking target architecture" >&5
1789 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1790 if test "${llvm_cv_target_arch+set}" = set; then
1791   echo $ECHO_N "(cached) $ECHO_C" >&6
1792 else
1793   case $target in
1794   i?86-*)                 llvm_cv_target_arch="x86" ;;
1795   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1796   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1797   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1798   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1799   ia64-*)                 llvm_cv_target_arch="IA64" ;;
1800   *)                      llvm_cv_target_arch="Unknown" ;;
1801 esac
1802 fi
1803 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1804 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1805
1806 if test "$llvm_cv_target_arch" = "Unknown" ; then
1807   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1808 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1809 fi
1810
1811 ARCH=$llvm_cv_target_arch
1812
1813
1814 ac_ext=c
1815 ac_cpp='$CPP $CPPFLAGS'
1816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1819 if test -n "$ac_tool_prefix"; then
1820   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1821 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_CC+set}" = set; then
1825   echo $ECHO_N "(cached) $ECHO_C" >&6
1826 else
1827   if test -n "$CC"; then
1828   ac_cv_prog_CC="$CC" # Let the user override the test.
1829 else
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 for as_dir in $PATH
1832 do
1833   IFS=$as_save_IFS
1834   test -z "$as_dir" && as_dir=.
1835   for ac_exec_ext in '' $ac_executable_extensions; do
1836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839     break 2
1840   fi
1841 done
1842 done
1843
1844 fi
1845 fi
1846 CC=$ac_cv_prog_CC
1847 if test -n "$CC"; then
1848   echo "$as_me:$LINENO: result: $CC" >&5
1849 echo "${ECHO_T}$CC" >&6
1850 else
1851   echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1853 fi
1854
1855 fi
1856 if test -z "$ac_cv_prog_CC"; then
1857   ac_ct_CC=$CC
1858   # Extract the first word of "gcc", so it can be a program name with args.
1859 set dummy gcc; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863   echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865   if test -n "$ac_ct_CC"; then
1866   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1870 do
1871   IFS=$as_save_IFS
1872   test -z "$as_dir" && as_dir=.
1873   for ac_exec_ext in '' $ac_executable_extensions; do
1874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875     ac_cv_prog_ac_ct_CC="gcc"
1876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877     break 2
1878   fi
1879 done
1880 done
1881
1882 fi
1883 fi
1884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885 if test -n "$ac_ct_CC"; then
1886   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887 echo "${ECHO_T}$ac_ct_CC" >&6
1888 else
1889   echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1891 fi
1892
1893   CC=$ac_ct_CC
1894 else
1895   CC="$ac_cv_prog_CC"
1896 fi
1897
1898 if test -z "$CC"; then
1899   if test -n "$ac_tool_prefix"; then
1900   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1901 set dummy ${ac_tool_prefix}cc; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_CC+set}" = set; then
1905   echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907   if test -n "$CC"; then
1908   ac_cv_prog_CC="$CC" # Let the user override the test.
1909 else
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 for as_dir in $PATH
1912 do
1913   IFS=$as_save_IFS
1914   test -z "$as_dir" && as_dir=.
1915   for ac_exec_ext in '' $ac_executable_extensions; do
1916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917     ac_cv_prog_CC="${ac_tool_prefix}cc"
1918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919     break 2
1920   fi
1921 done
1922 done
1923
1924 fi
1925 fi
1926 CC=$ac_cv_prog_CC
1927 if test -n "$CC"; then
1928   echo "$as_me:$LINENO: result: $CC" >&5
1929 echo "${ECHO_T}$CC" >&6
1930 else
1931   echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1933 fi
1934
1935 fi
1936 if test -z "$ac_cv_prog_CC"; then
1937   ac_ct_CC=$CC
1938   # Extract the first word of "cc", so it can be a program name with args.
1939 set dummy cc; ac_word=$2
1940 echo "$as_me:$LINENO: checking for $ac_word" >&5
1941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1942 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1943   echo $ECHO_N "(cached) $ECHO_C" >&6
1944 else
1945   if test -n "$ac_ct_CC"; then
1946   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1947 else
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 for as_dir in $PATH
1950 do
1951   IFS=$as_save_IFS
1952   test -z "$as_dir" && as_dir=.
1953   for ac_exec_ext in '' $ac_executable_extensions; do
1954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955     ac_cv_prog_ac_ct_CC="cc"
1956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957     break 2
1958   fi
1959 done
1960 done
1961
1962 fi
1963 fi
1964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1965 if test -n "$ac_ct_CC"; then
1966   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1967 echo "${ECHO_T}$ac_ct_CC" >&6
1968 else
1969   echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1971 fi
1972
1973   CC=$ac_ct_CC
1974 else
1975   CC="$ac_cv_prog_CC"
1976 fi
1977
1978 fi
1979 if test -z "$CC"; then
1980   # Extract the first word of "cc", so it can be a program name with args.
1981 set dummy cc; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_CC+set}" = set; then
1985   echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987   if test -n "$CC"; then
1988   ac_cv_prog_CC="$CC" # Let the user override the test.
1989 else
1990   ac_prog_rejected=no
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1993 do
1994   IFS=$as_save_IFS
1995   test -z "$as_dir" && as_dir=.
1996   for ac_exec_ext in '' $ac_executable_extensions; do
1997   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1999        ac_prog_rejected=yes
2000        continue
2001      fi
2002     ac_cv_prog_CC="cc"
2003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004     break 2
2005   fi
2006 done
2007 done
2008
2009 if test $ac_prog_rejected = yes; then
2010   # We found a bogon in the path, so make sure we never use it.
2011   set dummy $ac_cv_prog_CC
2012   shift
2013   if test $# != 0; then
2014     # We chose a different compiler from the bogus one.
2015     # However, it has the same basename, so the bogon will be chosen
2016     # first if we set CC to just the basename; use the full file name.
2017     shift
2018     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2019   fi
2020 fi
2021 fi
2022 fi
2023 CC=$ac_cv_prog_CC
2024 if test -n "$CC"; then
2025   echo "$as_me:$LINENO: result: $CC" >&5
2026 echo "${ECHO_T}$CC" >&6
2027 else
2028   echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6
2030 fi
2031
2032 fi
2033 if test -z "$CC"; then
2034   if test -n "$ac_tool_prefix"; then
2035   for ac_prog in cl
2036   do
2037     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2038 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2039 echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041 if test "${ac_cv_prog_CC+set}" = set; then
2042   echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044   if test -n "$CC"; then
2045   ac_cv_prog_CC="$CC" # Let the user override the test.
2046 else
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2049 do
2050   IFS=$as_save_IFS
2051   test -z "$as_dir" && as_dir=.
2052   for ac_exec_ext in '' $ac_executable_extensions; do
2053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056     break 2
2057   fi
2058 done
2059 done
2060
2061 fi
2062 fi
2063 CC=$ac_cv_prog_CC
2064 if test -n "$CC"; then
2065   echo "$as_me:$LINENO: result: $CC" >&5
2066 echo "${ECHO_T}$CC" >&6
2067 else
2068   echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6
2070 fi
2071
2072     test -n "$CC" && break
2073   done
2074 fi
2075 if test -z "$CC"; then
2076   ac_ct_CC=$CC
2077   for ac_prog in cl
2078 do
2079   # Extract the first word of "$ac_prog", so it can be a program name with args.
2080 set dummy $ac_prog; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2084   echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086   if test -n "$ac_ct_CC"; then
2087   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2088 else
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2091 do
2092   IFS=$as_save_IFS
2093   test -z "$as_dir" && as_dir=.
2094   for ac_exec_ext in '' $ac_executable_extensions; do
2095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096     ac_cv_prog_ac_ct_CC="$ac_prog"
2097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098     break 2
2099   fi
2100 done
2101 done
2102
2103 fi
2104 fi
2105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106 if test -n "$ac_ct_CC"; then
2107   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108 echo "${ECHO_T}$ac_ct_CC" >&6
2109 else
2110   echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2112 fi
2113
2114   test -n "$ac_ct_CC" && break
2115 done
2116
2117   CC=$ac_ct_CC
2118 fi
2119
2120 fi
2121
2122
2123 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&5
2125 echo "$as_me: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&2;}
2127    { (exit 1); exit 1; }; }
2128
2129 # Provide some information about the compiler.
2130 echo "$as_me:$LINENO:" \
2131      "checking for C compiler version" >&5
2132 ac_compiler=`set X $ac_compile; echo $2`
2133 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2134   (eval $ac_compiler --version </dev/null >&5) 2>&5
2135   ac_status=$?
2136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137   (exit $ac_status); }
2138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2139   (eval $ac_compiler -v </dev/null >&5) 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }
2143 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2144   (eval $ac_compiler -V </dev/null >&5) 2>&5
2145   ac_status=$?
2146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147   (exit $ac_status); }
2148
2149 cat >conftest.$ac_ext <<_ACEOF
2150 /* confdefs.h.  */
2151 _ACEOF
2152 cat confdefs.h >>conftest.$ac_ext
2153 cat >>conftest.$ac_ext <<_ACEOF
2154 /* end confdefs.h.  */
2155
2156 int
2157 main ()
2158 {
2159
2160   ;
2161   return 0;
2162 }
2163 _ACEOF
2164 ac_clean_files_save=$ac_clean_files
2165 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2166 # Try to create an executable without -o first, disregard a.out.
2167 # It will help us diagnose broken compilers, and finding out an intuition
2168 # of exeext.
2169 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2170 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2171 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2172 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2173   (eval $ac_link_default) 2>&5
2174   ac_status=$?
2175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176   (exit $ac_status); }; then
2177   # Find the output, starting from the most likely.  This scheme is
2178 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2179 # resort.
2180
2181 # Be careful to initialize this variable, since it used to be cached.
2182 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2183 ac_cv_exeext=
2184 # b.out is created by i960 compilers.
2185 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2186 do
2187   test -f "$ac_file" || continue
2188   case $ac_file in
2189     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2190         ;;
2191     conftest.$ac_ext )
2192         # This is the source file.
2193         ;;
2194     [ab].out )
2195         # We found the default executable, but exeext='' is most
2196         # certainly right.
2197         break;;
2198     *.* )
2199         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200         # FIXME: I believe we export ac_cv_exeext for Libtool,
2201         # but it would be cool to find out if it's true.  Does anybody
2202         # maintain Libtool? --akim.
2203         export ac_cv_exeext
2204         break;;
2205     * )
2206         break;;
2207   esac
2208 done
2209 else
2210   echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2212
2213 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&5
2215 echo "$as_me: error: C compiler cannot create executables
2216 See \`config.log' for more details." >&2;}
2217    { (exit 77); exit 77; }; }
2218 fi
2219
2220 ac_exeext=$ac_cv_exeext
2221 echo "$as_me:$LINENO: result: $ac_file" >&5
2222 echo "${ECHO_T}$ac_file" >&6
2223
2224 # Check the compiler produces executables we can run.  If not, either
2225 # the compiler is broken, or we cross compile.
2226 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2227 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2228 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2229 # If not cross compiling, check that we can run a simple program.
2230 if test "$cross_compiling" != yes; then
2231   if { ac_try='./$ac_file'
2232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233   (eval $ac_try) 2>&5
2234   ac_status=$?
2235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236   (exit $ac_status); }; }; then
2237     cross_compiling=no
2238   else
2239     if test "$cross_compiling" = maybe; then
2240         cross_compiling=yes
2241     else
2242         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2243 If you meant to cross compile, use \`--host'.
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&2;}
2248    { (exit 1); exit 1; }; }
2249     fi
2250   fi
2251 fi
2252 echo "$as_me:$LINENO: result: yes" >&5
2253 echo "${ECHO_T}yes" >&6
2254
2255 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2256 ac_clean_files=$ac_clean_files_save
2257 # Check the compiler produces executables we can run.  If not, either
2258 # the compiler is broken, or we cross compile.
2259 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2260 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2261 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2262 echo "${ECHO_T}$cross_compiling" >&6
2263
2264 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2265 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2267   (eval $ac_link) 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); }; then
2271   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2273 # work properly (i.e., refer to `conftest.exe'), while it won't with
2274 # `rm'.
2275 for ac_file in conftest.exe conftest conftest.*; do
2276   test -f "$ac_file" || continue
2277   case $ac_file in
2278     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2279     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280           export ac_cv_exeext
2281           break;;
2282     * ) break;;
2283   esac
2284 done
2285 else
2286   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&2;}
2290    { (exit 1); exit 1; }; }
2291 fi
2292
2293 rm -f conftest$ac_cv_exeext
2294 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2295 echo "${ECHO_T}$ac_cv_exeext" >&6
2296
2297 rm -f conftest.$ac_ext
2298 EXEEXT=$ac_cv_exeext
2299 ac_exeext=$EXEEXT
2300 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2301 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2302 if test "${ac_cv_objext+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   cat >conftest.$ac_ext <<_ACEOF
2306 /* confdefs.h.  */
2307 _ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h.  */
2311
2312 int
2313 main ()
2314 {
2315
2316   ;
2317   return 0;
2318 }
2319 _ACEOF
2320 rm -f conftest.o conftest.obj
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322   (eval $ac_compile) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; then
2326   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2327   case $ac_file in
2328     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2329     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2330        break;;
2331   esac
2332 done
2333 else
2334   echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2336
2337 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&2;}
2341    { (exit 1); exit 1; }; }
2342 fi
2343
2344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2345 fi
2346 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347 echo "${ECHO_T}$ac_cv_objext" >&6
2348 OBJEXT=$ac_cv_objext
2349 ac_objext=$OBJEXT
2350 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2352 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   cat >conftest.$ac_ext <<_ACEOF
2356 /* confdefs.h.  */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h.  */
2361
2362 int
2363 main ()
2364 {
2365 #ifndef __GNUC__
2366        choke me
2367 #endif
2368
2369   ;
2370   return 0;
2371 }
2372 _ACEOF
2373 rm -f conftest.$ac_objext
2374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375   (eval $ac_compile) 2>conftest.er1
2376   ac_status=$?
2377   grep -v '^ *+' conftest.er1 >conftest.err
2378   rm -f conftest.er1
2379   cat conftest.err >&5
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); } &&
2382          { ac_try='test -z "$ac_c_werror_flag"
2383                          || test ! -s conftest.err'
2384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385   (eval $ac_try) 2>&5
2386   ac_status=$?
2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388   (exit $ac_status); }; } &&
2389          { ac_try='test -s conftest.$ac_objext'
2390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391   (eval $ac_try) 2>&5
2392   ac_status=$?
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); }; }; then
2395   ac_compiler_gnu=yes
2396 else
2397   echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2399
2400 ac_compiler_gnu=no
2401 fi
2402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2403 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2404
2405 fi
2406 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2407 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2408 GCC=`test $ac_compiler_gnu = yes && echo yes`
2409 ac_test_CFLAGS=${CFLAGS+set}
2410 ac_save_CFLAGS=$CFLAGS
2411 CFLAGS="-g"
2412 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2413 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2414 if test "${ac_cv_prog_cc_g+set}" = set; then
2415   echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417   cat >conftest.$ac_ext <<_ACEOF
2418 /* confdefs.h.  */
2419 _ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h.  */
2423
2424 int
2425 main ()
2426 {
2427
2428   ;
2429   return 0;
2430 }
2431 _ACEOF
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434   (eval $ac_compile) 2>conftest.er1
2435   ac_status=$?
2436   grep -v '^ *+' conftest.er1 >conftest.err
2437   rm -f conftest.er1
2438   cat conftest.err >&5
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); } &&
2441          { ac_try='test -z "$ac_c_werror_flag"
2442                          || test ! -s conftest.err'
2443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444   (eval $ac_try) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }; } &&
2448          { ac_try='test -s conftest.$ac_objext'
2449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450   (eval $ac_try) 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }; }; then
2454   ac_cv_prog_cc_g=yes
2455 else
2456   echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2458
2459 ac_cv_prog_cc_g=no
2460 fi
2461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2462 fi
2463 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2464 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2465 if test "$ac_test_CFLAGS" = set; then
2466   CFLAGS=$ac_save_CFLAGS
2467 elif test $ac_cv_prog_cc_g = yes; then
2468   if test "$GCC" = yes; then
2469     CFLAGS="-g -O2"
2470   else
2471     CFLAGS="-g"
2472   fi
2473 else
2474   if test "$GCC" = yes; then
2475     CFLAGS="-O2"
2476   else
2477     CFLAGS=
2478   fi
2479 fi
2480 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2481 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2482 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   ac_cv_prog_cc_stdc=no
2486 ac_save_CC=$CC
2487 cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h.  */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h.  */
2493 #include <stdarg.h>
2494 #include <stdio.h>
2495 #include <sys/types.h>
2496 #include <sys/stat.h>
2497 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2498 struct buf { int x; };
2499 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2500 static char *e (p, i)
2501      char **p;
2502      int i;
2503 {
2504   return p[i];
2505 }
2506 static char *f (char * (*g) (char **, int), char **p, ...)
2507 {
2508   char *s;
2509   va_list v;
2510   va_start (v,p);
2511   s = g (p, va_arg (v,int));
2512   va_end (v);
2513   return s;
2514 }
2515
2516 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2517    function prototypes and stuff, but not '\xHH' hex character constants.
2518    These don't provoke an error unfortunately, instead are silently treated
2519    as 'x'.  The following induces an error, until -std1 is added to get
2520    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2521    array size at least.  It's necessary to write '\x00'==0 to get something
2522    that's true only with -std1.  */
2523 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2524
2525 int test (int i, double x);
2526 struct s1 {int (*f) (int a);};
2527 struct s2 {int (*f) (double a);};
2528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2529 int argc;
2530 char **argv;
2531 int
2532 main ()
2533 {
2534 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2535   ;
2536   return 0;
2537 }
2538 _ACEOF
2539 # Don't try gcc -ansi; that turns off useful extensions and
2540 # breaks some systems' header files.
2541 # AIX                   -qlanglvl=ansi
2542 # Ultrix and OSF/1      -std1
2543 # HP-UX 10.20 and later -Ae
2544 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2545 # SVR4                  -Xc -D__EXTENSIONS__
2546 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2547 do
2548   CC="$ac_save_CC $ac_arg"
2549   rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551   (eval $ac_compile) 2>conftest.er1
2552   ac_status=$?
2553   grep -v '^ *+' conftest.er1 >conftest.err
2554   rm -f conftest.er1
2555   cat conftest.err >&5
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); } &&
2558          { ac_try='test -z "$ac_c_werror_flag"
2559                          || test ! -s conftest.err'
2560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561   (eval $ac_try) 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }; } &&
2565          { ac_try='test -s conftest.$ac_objext'
2566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567   (eval $ac_try) 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }; }; then
2571   ac_cv_prog_cc_stdc=$ac_arg
2572 break
2573 else
2574   echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2576
2577 fi
2578 rm -f conftest.err conftest.$ac_objext
2579 done
2580 rm -f conftest.$ac_ext conftest.$ac_objext
2581 CC=$ac_save_CC
2582
2583 fi
2584
2585 case "x$ac_cv_prog_cc_stdc" in
2586   x|xno)
2587     echo "$as_me:$LINENO: result: none needed" >&5
2588 echo "${ECHO_T}none needed" >&6 ;;
2589   *)
2590     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2591 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2592     CC="$CC $ac_cv_prog_cc_stdc" ;;
2593 esac
2594
2595 # Some people use a C++ compiler to compile C.  Since we use `exit',
2596 # in C++ we need to declare it.  In case someone uses the same compiler
2597 # for both compiling C and C++ we need to have the C++ compiler decide
2598 # the declaration of exit, since it's the most demanding environment.
2599 cat >conftest.$ac_ext <<_ACEOF
2600 #ifndef __cplusplus
2601   choke me
2602 #endif
2603 _ACEOF
2604 rm -f conftest.$ac_objext
2605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606   (eval $ac_compile) 2>conftest.er1
2607   ac_status=$?
2608   grep -v '^ *+' conftest.er1 >conftest.err
2609   rm -f conftest.er1
2610   cat conftest.err >&5
2611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612   (exit $ac_status); } &&
2613          { ac_try='test -z "$ac_c_werror_flag"
2614                          || test ! -s conftest.err'
2615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616   (eval $ac_try) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; } &&
2620          { ac_try='test -s conftest.$ac_objext'
2621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622   (eval $ac_try) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; }; then
2626   for ac_declaration in \
2627    '' \
2628    'extern "C" void std::exit (int) throw (); using std::exit;' \
2629    'extern "C" void std::exit (int); using std::exit;' \
2630    'extern "C" void exit (int) throw ();' \
2631    'extern "C" void exit (int);' \
2632    'void exit (int);'
2633 do
2634   cat >conftest.$ac_ext <<_ACEOF
2635 /* confdefs.h.  */
2636 _ACEOF
2637 cat confdefs.h >>conftest.$ac_ext
2638 cat >>conftest.$ac_ext <<_ACEOF
2639 /* end confdefs.h.  */
2640 $ac_declaration
2641 #include <stdlib.h>
2642 int
2643 main ()
2644 {
2645 exit (42);
2646   ;
2647   return 0;
2648 }
2649 _ACEOF
2650 rm -f conftest.$ac_objext
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652   (eval $ac_compile) 2>conftest.er1
2653   ac_status=$?
2654   grep -v '^ *+' conftest.er1 >conftest.err
2655   rm -f conftest.er1
2656   cat conftest.err >&5
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); } &&
2659          { ac_try='test -z "$ac_c_werror_flag"
2660                          || test ! -s conftest.err'
2661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662   (eval $ac_try) 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }; } &&
2666          { ac_try='test -s conftest.$ac_objext'
2667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668   (eval $ac_try) 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }; }; then
2672   :
2673 else
2674   echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2676
2677 continue
2678 fi
2679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680   cat >conftest.$ac_ext <<_ACEOF
2681 /* confdefs.h.  */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h.  */
2686 $ac_declaration
2687 int
2688 main ()
2689 {
2690 exit (42);
2691   ;
2692   return 0;
2693 }
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697   (eval $ac_compile) 2>conftest.er1
2698   ac_status=$?
2699   grep -v '^ *+' conftest.er1 >conftest.err
2700   rm -f conftest.er1
2701   cat conftest.err >&5
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); } &&
2704          { ac_try='test -z "$ac_c_werror_flag"
2705                          || test ! -s conftest.err'
2706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707   (eval $ac_try) 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); }; } &&
2711          { ac_try='test -s conftest.$ac_objext'
2712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713   (eval $ac_try) 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }; }; then
2717   break
2718 else
2719   echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722 fi
2723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724 done
2725 rm -f conftest*
2726 if test -n "$ac_declaration"; then
2727   echo '#ifdef __cplusplus' >>confdefs.h
2728   echo $ac_declaration      >>confdefs.h
2729   echo '#endif'             >>confdefs.h
2730 fi
2731
2732 else
2733   echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2735
2736 fi
2737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738 ac_ext=c
2739 ac_cpp='$CPP $CPPFLAGS'
2740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743
2744
2745 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2746 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2747 if test "${ac_cv_c_bigendian+set}" = set; then
2748   echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750   # See if sys/param.h defines the BYTE_ORDER macro.
2751 cat >conftest.$ac_ext <<_ACEOF
2752 /* confdefs.h.  */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h.  */
2757 #include <sys/types.h>
2758 #include <sys/param.h>
2759
2760 int
2761 main ()
2762 {
2763 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2764  bogus endian macros
2765 #endif
2766
2767   ;
2768   return 0;
2769 }
2770 _ACEOF
2771 rm -f conftest.$ac_objext
2772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2773   (eval $ac_compile) 2>conftest.er1
2774   ac_status=$?
2775   grep -v '^ *+' conftest.er1 >conftest.err
2776   rm -f conftest.er1
2777   cat conftest.err >&5
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); } &&
2780          { ac_try='test -z "$ac_c_werror_flag"
2781                          || test ! -s conftest.err'
2782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }; } &&
2787          { ac_try='test -s conftest.$ac_objext'
2788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789   (eval $ac_try) 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); }; }; then
2793   # It does; now see whether it defined to BIG_ENDIAN or not.
2794 cat >conftest.$ac_ext <<_ACEOF
2795 /* confdefs.h.  */
2796 _ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h.  */
2800 #include <sys/types.h>
2801 #include <sys/param.h>
2802
2803 int
2804 main ()
2805 {
2806 #if BYTE_ORDER != BIG_ENDIAN
2807  not big endian
2808 #endif
2809
2810   ;
2811   return 0;
2812 }
2813 _ACEOF
2814 rm -f conftest.$ac_objext
2815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2816   (eval $ac_compile) 2>conftest.er1
2817   ac_status=$?
2818   grep -v '^ *+' conftest.er1 >conftest.err
2819   rm -f conftest.er1
2820   cat conftest.err >&5
2821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822   (exit $ac_status); } &&
2823          { ac_try='test -z "$ac_c_werror_flag"
2824                          || test ! -s conftest.err'
2825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826   (eval $ac_try) 2>&5
2827   ac_status=$?
2828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829   (exit $ac_status); }; } &&
2830          { ac_try='test -s conftest.$ac_objext'
2831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832   (eval $ac_try) 2>&5
2833   ac_status=$?
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); }; }; then
2836   ac_cv_c_bigendian=yes
2837 else
2838   echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2840
2841 ac_cv_c_bigendian=no
2842 fi
2843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2844 else
2845   echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2847
2848 # It does not; compile a test program.
2849 if test "$cross_compiling" = yes; then
2850   # try to guess the endianness by grepping values into an object file
2851   ac_cv_c_bigendian=unknown
2852   cat >conftest.$ac_ext <<_ACEOF
2853 /* confdefs.h.  */
2854 _ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h.  */
2858 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2859 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2860 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2861 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2862 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2863 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2864 int
2865 main ()
2866 {
2867  _ascii (); _ebcdic ();
2868   ;
2869   return 0;
2870 }
2871 _ACEOF
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874   (eval $ac_compile) 2>conftest.er1
2875   ac_status=$?
2876   grep -v '^ *+' conftest.er1 >conftest.err
2877   rm -f conftest.er1
2878   cat conftest.err >&5
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); } &&
2881          { ac_try='test -z "$ac_c_werror_flag"
2882                          || test ! -s conftest.err'
2883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884   (eval $ac_try) 2>&5
2885   ac_status=$?
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); }; } &&
2888          { ac_try='test -s conftest.$ac_objext'
2889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890   (eval $ac_try) 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }; }; then
2894   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2895   ac_cv_c_bigendian=yes
2896 fi
2897 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2898   if test "$ac_cv_c_bigendian" = unknown; then
2899     ac_cv_c_bigendian=no
2900   else
2901     # finding both strings is unlikely to happen, but who knows?
2902     ac_cv_c_bigendian=unknown
2903   fi
2904 fi
2905 else
2906   echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2908
2909 fi
2910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2911 else
2912   cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h.  */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h.  */
2918 int
2919 main ()
2920 {
2921   /* Are we little or big endian?  From Harbison&Steele.  */
2922   union
2923   {
2924     long l;
2925     char c[sizeof (long)];
2926   } u;
2927   u.l = 1;
2928   exit (u.c[sizeof (long) - 1] == 1);
2929 }
2930 _ACEOF
2931 rm -f conftest$ac_exeext
2932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2933   (eval $ac_link) 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938   (eval $ac_try) 2>&5
2939   ac_status=$?
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); }; }; then
2942   ac_cv_c_bigendian=no
2943 else
2944   echo "$as_me: program exited with status $ac_status" >&5
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2947
2948 ( exit $ac_status )
2949 ac_cv_c_bigendian=yes
2950 fi
2951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2952 fi
2953 fi
2954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2955 fi
2956 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2957 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2958 case $ac_cv_c_bigendian in
2959   yes)
2960     ENDIAN=big
2961  ;;
2962   no)
2963     ENDIAN=little
2964  ;;
2965   *)
2966     { { echo "$as_me:$LINENO: error: unknown endianness
2967 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2968 echo "$as_me: error: unknown endianness
2969 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2970    { (exit 1); exit 1; }; } ;;
2971 esac
2972
2973
2974 if test -d "CVS" -o -d "${srcdir}/CVS"; then
2975   cvsbuild="yes"
2976   optimize="no"
2977   CVSBUILD=CVSBUILD=1
2978
2979 else
2980   cvsbuild="no"
2981   optimize="yes"
2982 fi
2983
2984
2985 # Check whether --enable-optimized or --disable-optimized was given.
2986 if test "${enable_optimized+set}" = set; then
2987   enableval="$enable_optimized"
2988
2989 else
2990   enableval=$optimize
2991 fi;
2992 if test ${enableval} = "no" ; then
2993   ENABLE_OPTIMIZED=
2994
2995 else
2996   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2997
2998 fi
2999
3000 # Check whether --enable-assertions or --disable-assertions was given.
3001 if test "${enable_assertions+set}" = set; then
3002   enableval="$enable_assertions"
3003
3004 else
3005   enableval="yes"
3006 fi;
3007 if test ${enableval} = "yes" ; then
3008   DISABLE_ASSERTIONS=
3009
3010 else
3011   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
3012
3013 fi
3014
3015 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3016 if test "${enable_debug_runtime+set}" = set; then
3017   enableval="$enable_debug_runtime"
3018
3019 else
3020   enableval=no
3021 fi;
3022 if test ${enableval} = "no" ; then
3023   DEBUG_RUNTIME=
3024
3025 else
3026   DEBUG_RUNTIME=DEBUG_RUNTIME=1
3027
3028 fi
3029
3030 # Check whether --enable-jit or --disable-jit was given.
3031 if test "${enable_jit+set}" = set; then
3032   enableval="$enable_jit"
3033
3034 else
3035   enableval=default
3036 fi;
3037 if test ${enableval} = "no"
3038 then
3039   JIT=
3040
3041 else
3042   case "$llvm_cv_target_arch" in
3043     x86)     TARGET_HAS_JIT=1
3044  ;;
3045     Sparc)   TARGET_HAS_JIT=1
3046  ;;
3047     PowerPC) TARGET_HAS_JIT=1
3048  ;;
3049     x86_64)  TARGET_HAS_JIT=0
3050  ;;
3051     Alpha)   TARGET_HAS_JIT=1
3052  ;;
3053     IA64)    TARGET_HAS_JIT=0
3054  ;;
3055     *)       TARGET_HAS_JIT=0
3056  ;;
3057   esac
3058 fi
3059
3060 # Check whether --enable-doxygen or --disable-doxygen was given.
3061 if test "${enable_doxygen+set}" = set; then
3062   enableval="$enable_doxygen"
3063
3064 else
3065   enableval=default
3066 fi;
3067 case "$enableval" in
3068   yes) ENABLE_DOXYGEN=1
3069  ;;
3070   no)  ENABLE_DOXYGEN=0
3071  ;;
3072   default) ENABLE_DOXYGEN=0
3073  ;;
3074   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3075 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3076    { (exit 1); exit 1; }; } ;;
3077 esac
3078
3079 # Check whether --enable-threads or --disable-threads was given.
3080 if test "${enable_threads+set}" = set; then
3081   enableval="$enable_threads"
3082
3083 else
3084   enableval=yes
3085 fi;
3086 case "$enableval" in
3087   yes) ENABLE_THREADS=1
3088  ;;
3089   no)  ENABLE_THREADS=0
3090  ;;
3091   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3092 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3093    { (exit 1); exit 1; }; } ;;
3094 esac
3095
3096 cat >>confdefs.h <<_ACEOF
3097 #define ENABLE_THREADS $ENABLE_THREADS
3098 _ACEOF
3099
3100
3101 TARGETS_TO_BUILD=""
3102 # Check whether --enable-targets or --disable-targets was given.
3103 if test "${enable_targets+set}" = set; then
3104   enableval="$enable_targets"
3105
3106 else
3107   enableval=all
3108 fi;
3109 case "$enableval" in
3110   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
3111   host-only)
3112     case "$llvm_cv_target_arch" in
3113       x86)     TARGETS_TO_BUILD="X86" ;;
3114       x86_64)  TARGETS_TO_BUILD="X86" ;;
3115       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
3116       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3117       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3118       IA64)    TARGETS_TO_BUILD="IA64" ;;
3119       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3120 echo "$as_me: error: Can not set target to build" >&2;}
3121    { (exit 1); exit 1; }; } ;;
3122     esac
3123     ;;
3124   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3125       case "$a_target" in
3126         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3127         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3128         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
3129         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3130         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3131         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3132         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3133 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3134    { (exit 1); exit 1; }; } ;;
3135       esac
3136   done
3137   ;;
3138 esac
3139 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3140 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3141
3142
3143
3144 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3145 if test "${with_llvmgccdir+set}" = set; then
3146   withval="$with_llvmgccdir"
3147
3148 else
3149   withval=default
3150 fi;
3151 case "$withval" in
3152   default) WITH_LLVMGCCDIR=default ;;
3153   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
3154   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3155 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3156    { (exit 1); exit 1; }; } ;;
3157 esac
3158
3159
3160
3161 ac_ext=c
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3167 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3168 # On Suns, sometimes $CPP names a directory.
3169 if test -n "$CPP" && test -d "$CPP"; then
3170   CPP=
3171 fi
3172 if test -z "$CPP"; then
3173   if test "${ac_cv_prog_CPP+set}" = set; then
3174   echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176       # Double quotes because CPP needs to be expanded
3177     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3178     do
3179       ac_preproc_ok=false
3180 for ac_c_preproc_warn_flag in '' yes
3181 do
3182   # Use a header file that comes with gcc, so configuring glibc
3183   # with a fresh cross-compiler works.
3184   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3185   # <limits.h> exists even on freestanding compilers.
3186   # On the NeXT, cc -E runs the code through the compiler's parser,
3187   # not just through cpp. "Syntax error" is here to catch this case.
3188   cat >conftest.$ac_ext <<_ACEOF
3189 /* confdefs.h.  */
3190 _ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h.  */
3194 #ifdef __STDC__
3195 # include <limits.h>
3196 #else
3197 # include <assert.h>
3198 #endif
3199                      Syntax error
3200 _ACEOF
3201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3202   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3203   ac_status=$?
3204   grep -v '^ *+' conftest.er1 >conftest.err
3205   rm -f conftest.er1
3206   cat conftest.err >&5
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); } >/dev/null; then
3209   if test -s conftest.err; then
3210     ac_cpp_err=$ac_c_preproc_warn_flag
3211     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3212   else
3213     ac_cpp_err=
3214   fi
3215 else
3216   ac_cpp_err=yes
3217 fi
3218 if test -z "$ac_cpp_err"; then
3219   :
3220 else
3221   echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224   # Broken: fails on valid input.
3225 continue
3226 fi
3227 rm -f conftest.err conftest.$ac_ext
3228
3229   # OK, works on sane cases.  Now check whether non-existent headers
3230   # can be detected and how.
3231   cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h.  */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h.  */
3237 #include <ac_nonexistent.h>
3238 _ACEOF
3239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3241   ac_status=$?
3242   grep -v '^ *+' conftest.er1 >conftest.err
3243   rm -f conftest.er1
3244   cat conftest.err >&5
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); } >/dev/null; then
3247   if test -s conftest.err; then
3248     ac_cpp_err=$ac_c_preproc_warn_flag
3249     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3250   else
3251     ac_cpp_err=
3252   fi
3253 else
3254   ac_cpp_err=yes
3255 fi
3256 if test -z "$ac_cpp_err"; then
3257   # Broken: success on invalid input.
3258 continue
3259 else
3260   echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263   # Passes both tests.
3264 ac_preproc_ok=:
3265 break
3266 fi
3267 rm -f conftest.err conftest.$ac_ext
3268
3269 done
3270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3271 rm -f conftest.err conftest.$ac_ext
3272 if $ac_preproc_ok; then
3273   break
3274 fi
3275
3276     done
3277     ac_cv_prog_CPP=$CPP
3278
3279 fi
3280   CPP=$ac_cv_prog_CPP
3281 else
3282   ac_cv_prog_CPP=$CPP
3283 fi
3284 echo "$as_me:$LINENO: result: $CPP" >&5
3285 echo "${ECHO_T}$CPP" >&6
3286 ac_preproc_ok=false
3287 for ac_c_preproc_warn_flag in '' yes
3288 do
3289   # Use a header file that comes with gcc, so configuring glibc
3290   # with a fresh cross-compiler works.
3291   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3292   # <limits.h> exists even on freestanding compilers.
3293   # On the NeXT, cc -E runs the code through the compiler's parser,
3294   # not just through cpp. "Syntax error" is here to catch this case.
3295   cat >conftest.$ac_ext <<_ACEOF
3296 /* confdefs.h.  */
3297 _ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h.  */
3301 #ifdef __STDC__
3302 # include <limits.h>
3303 #else
3304 # include <assert.h>
3305 #endif
3306                      Syntax error
3307 _ACEOF
3308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3309   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3310   ac_status=$?
3311   grep -v '^ *+' conftest.er1 >conftest.err
3312   rm -f conftest.er1
3313   cat conftest.err >&5
3314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315   (exit $ac_status); } >/dev/null; then
3316   if test -s conftest.err; then
3317     ac_cpp_err=$ac_c_preproc_warn_flag
3318     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3319   else
3320     ac_cpp_err=
3321   fi
3322 else
3323   ac_cpp_err=yes
3324 fi
3325 if test -z "$ac_cpp_err"; then
3326   :
3327 else
3328   echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3330
3331   # Broken: fails on valid input.
3332 continue
3333 fi
3334 rm -f conftest.err conftest.$ac_ext
3335
3336   # OK, works on sane cases.  Now check whether non-existent headers
3337   # can be detected and how.
3338   cat >conftest.$ac_ext <<_ACEOF
3339 /* confdefs.h.  */
3340 _ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h.  */
3344 #include <ac_nonexistent.h>
3345 _ACEOF
3346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3347   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3348   ac_status=$?
3349   grep -v '^ *+' conftest.er1 >conftest.err
3350   rm -f conftest.er1
3351   cat conftest.err >&5
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); } >/dev/null; then
3354   if test -s conftest.err; then
3355     ac_cpp_err=$ac_c_preproc_warn_flag
3356     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3357   else
3358     ac_cpp_err=
3359   fi
3360 else
3361   ac_cpp_err=yes
3362 fi
3363 if test -z "$ac_cpp_err"; then
3364   # Broken: success on invalid input.
3365 continue
3366 else
3367   echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3369
3370   # Passes both tests.
3371 ac_preproc_ok=:
3372 break
3373 fi
3374 rm -f conftest.err conftest.$ac_ext
3375
3376 done
3377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3378 rm -f conftest.err conftest.$ac_ext
3379 if $ac_preproc_ok; then
3380   :
3381 else
3382   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3383 See \`config.log' for more details." >&5
3384 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3385 See \`config.log' for more details." >&2;}
3386    { (exit 1); exit 1; }; }
3387 fi
3388
3389 ac_ext=c
3390 ac_cpp='$CPP $CPPFLAGS'
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3394
3395 ac_ext=c
3396 ac_cpp='$CPP $CPPFLAGS'
3397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400 if test -n "$ac_tool_prefix"; then
3401   for ac_prog in gcc
3402   do
3403     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3405 echo "$as_me:$LINENO: checking for $ac_word" >&5
3406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3407 if test "${ac_cv_prog_CC+set}" = set; then
3408   echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410   if test -n "$CC"; then
3411   ac_cv_prog_CC="$CC" # Let the user override the test.
3412 else
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3415 do
3416   IFS=$as_save_IFS
3417   test -z "$as_dir" && as_dir=.
3418   for ac_exec_ext in '' $ac_executable_extensions; do
3419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422     break 2
3423   fi
3424 done
3425 done
3426
3427 fi
3428 fi
3429 CC=$ac_cv_prog_CC
3430 if test -n "$CC"; then
3431   echo "$as_me:$LINENO: result: $CC" >&5
3432 echo "${ECHO_T}$CC" >&6
3433 else
3434   echo "$as_me:$LINENO: result: no" >&5
3435 echo "${ECHO_T}no" >&6
3436 fi
3437
3438     test -n "$CC" && break
3439   done
3440 fi
3441 if test -z "$CC"; then
3442   ac_ct_CC=$CC
3443   for ac_prog in gcc
3444 do
3445   # Extract the first word of "$ac_prog", so it can be a program name with args.
3446 set dummy $ac_prog; ac_word=$2
3447 echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3450   echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452   if test -n "$ac_ct_CC"; then
3453   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3457 do
3458   IFS=$as_save_IFS
3459   test -z "$as_dir" && as_dir=.
3460   for ac_exec_ext in '' $ac_executable_extensions; do
3461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462     ac_cv_prog_ac_ct_CC="$ac_prog"
3463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464     break 2
3465   fi
3466 done
3467 done
3468
3469 fi
3470 fi
3471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3472 if test -n "$ac_ct_CC"; then
3473   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3474 echo "${ECHO_T}$ac_ct_CC" >&6
3475 else
3476   echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6
3478 fi
3479
3480   test -n "$ac_ct_CC" && break
3481 done
3482
3483   CC=$ac_ct_CC
3484 fi
3485
3486
3487 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3488 See \`config.log' for more details." >&5
3489 echo "$as_me: error: no acceptable C compiler found in \$PATH
3490 See \`config.log' for more details." >&2;}
3491    { (exit 1); exit 1; }; }
3492
3493 # Provide some information about the compiler.
3494 echo "$as_me:$LINENO:" \
3495      "checking for C compiler version" >&5
3496 ac_compiler=`set X $ac_compile; echo $2`
3497 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3498   (eval $ac_compiler --version </dev/null >&5) 2>&5
3499   ac_status=$?
3500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501   (exit $ac_status); }
3502 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3503   (eval $ac_compiler -v </dev/null >&5) 2>&5
3504   ac_status=$?
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); }
3507 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3508   (eval $ac_compiler -V </dev/null >&5) 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); }
3512
3513 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3514 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3515 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3516   echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518   cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h.  */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h.  */
3524
3525 int
3526 main ()
3527 {
3528 #ifndef __GNUC__
3529        choke me
3530 #endif
3531
3532   ;
3533   return 0;
3534 }
3535 _ACEOF
3536 rm -f conftest.$ac_objext
3537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3538   (eval $ac_compile) 2>conftest.er1
3539   ac_status=$?
3540   grep -v '^ *+' conftest.er1 >conftest.err
3541   rm -f conftest.er1
3542   cat conftest.err >&5
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); } &&
3545          { ac_try='test -z "$ac_c_werror_flag"
3546                          || test ! -s conftest.err'
3547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548   (eval $ac_try) 2>&5
3549   ac_status=$?
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); }; } &&
3552          { ac_try='test -s conftest.$ac_objext'
3553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554   (eval $ac_try) 2>&5
3555   ac_status=$?
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); }; }; then
3558   ac_compiler_gnu=yes
3559 else
3560   echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563 ac_compiler_gnu=no
3564 fi
3565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3567
3568 fi
3569 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3570 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3571 GCC=`test $ac_compiler_gnu = yes && echo yes`
3572 ac_test_CFLAGS=${CFLAGS+set}
3573 ac_save_CFLAGS=$CFLAGS
3574 CFLAGS="-g"
3575 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3576 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3577 if test "${ac_cv_prog_cc_g+set}" = set; then
3578   echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580   cat >conftest.$ac_ext <<_ACEOF
3581 /* confdefs.h.  */
3582 _ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h.  */
3586
3587 int
3588 main ()
3589 {
3590
3591   ;
3592   return 0;
3593 }
3594 _ACEOF
3595 rm -f conftest.$ac_objext
3596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597   (eval $ac_compile) 2>conftest.er1
3598   ac_status=$?
3599   grep -v '^ *+' conftest.er1 >conftest.err
3600   rm -f conftest.er1
3601   cat conftest.err >&5
3602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603   (exit $ac_status); } &&
3604          { ac_try='test -z "$ac_c_werror_flag"
3605                          || test ! -s conftest.err'
3606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607   (eval $ac_try) 2>&5
3608   ac_status=$?
3609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610   (exit $ac_status); }; } &&
3611          { ac_try='test -s conftest.$ac_objext'
3612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613   (eval $ac_try) 2>&5
3614   ac_status=$?
3615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616   (exit $ac_status); }; }; then
3617   ac_cv_prog_cc_g=yes
3618 else
3619   echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622 ac_cv_prog_cc_g=no
3623 fi
3624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3625 fi
3626 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3627 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3628 if test "$ac_test_CFLAGS" = set; then
3629   CFLAGS=$ac_save_CFLAGS
3630 elif test $ac_cv_prog_cc_g = yes; then
3631   if test "$GCC" = yes; then
3632     CFLAGS="-g -O2"
3633   else
3634     CFLAGS="-g"
3635   fi
3636 else
3637   if test "$GCC" = yes; then
3638     CFLAGS="-O2"
3639   else
3640     CFLAGS=
3641   fi
3642 fi
3643 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3644 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3645 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3646   echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648   ac_cv_prog_cc_stdc=no
3649 ac_save_CC=$CC
3650 cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h.  */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h.  */
3656 #include <stdarg.h>
3657 #include <stdio.h>
3658 #include <sys/types.h>
3659 #include <sys/stat.h>
3660 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3661 struct buf { int x; };
3662 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3663 static char *e (p, i)
3664      char **p;
3665      int i;
3666 {
3667   return p[i];
3668 }
3669 static char *f (char * (*g) (char **, int), char **p, ...)
3670 {
3671   char *s;
3672   va_list v;
3673   va_start (v,p);
3674   s = g (p, va_arg (v,int));
3675   va_end (v);
3676   return s;
3677 }
3678
3679 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3680    function prototypes and stuff, but not '\xHH' hex character constants.
3681    These don't provoke an error unfortunately, instead are silently treated
3682    as 'x'.  The following induces an error, until -std1 is added to get
3683    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3684    array size at least.  It's necessary to write '\x00'==0 to get something
3685    that's true only with -std1.  */
3686 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3687
3688 int test (int i, double x);
3689 struct s1 {int (*f) (int a);};
3690 struct s2 {int (*f) (double a);};
3691 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3692 int argc;
3693 char **argv;
3694 int
3695 main ()
3696 {
3697 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3698   ;
3699   return 0;
3700 }
3701 _ACEOF
3702 # Don't try gcc -ansi; that turns off useful extensions and
3703 # breaks some systems' header files.
3704 # AIX                   -qlanglvl=ansi
3705 # Ultrix and OSF/1      -std1
3706 # HP-UX 10.20 and later -Ae
3707 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3708 # SVR4                  -Xc -D__EXTENSIONS__
3709 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3710 do
3711   CC="$ac_save_CC $ac_arg"
3712   rm -f conftest.$ac_objext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714   (eval $ac_compile) 2>conftest.er1
3715   ac_status=$?
3716   grep -v '^ *+' conftest.er1 >conftest.err
3717   rm -f conftest.er1
3718   cat conftest.err >&5
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); } &&
3721          { ac_try='test -z "$ac_c_werror_flag"
3722                          || test ! -s conftest.err'
3723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724   (eval $ac_try) 2>&5
3725   ac_status=$?
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); }; } &&
3728          { ac_try='test -s conftest.$ac_objext'
3729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730   (eval $ac_try) 2>&5
3731   ac_status=$?
3732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733   (exit $ac_status); }; }; then
3734   ac_cv_prog_cc_stdc=$ac_arg
3735 break
3736 else
3737   echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3739
3740 fi
3741 rm -f conftest.err conftest.$ac_objext
3742 done
3743 rm -f conftest.$ac_ext conftest.$ac_objext
3744 CC=$ac_save_CC
3745
3746 fi
3747
3748 case "x$ac_cv_prog_cc_stdc" in
3749   x|xno)
3750     echo "$as_me:$LINENO: result: none needed" >&5
3751 echo "${ECHO_T}none needed" >&6 ;;
3752   *)
3753     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3754 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3755     CC="$CC $ac_cv_prog_cc_stdc" ;;
3756 esac
3757
3758 # Some people use a C++ compiler to compile C.  Since we use `exit',
3759 # in C++ we need to declare it.  In case someone uses the same compiler
3760 # for both compiling C and C++ we need to have the C++ compiler decide
3761 # the declaration of exit, since it's the most demanding environment.
3762 cat >conftest.$ac_ext <<_ACEOF
3763 #ifndef __cplusplus
3764   choke me
3765 #endif
3766 _ACEOF
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769   (eval $ac_compile) 2>conftest.er1
3770   ac_status=$?
3771   grep -v '^ *+' conftest.er1 >conftest.err
3772   rm -f conftest.er1
3773   cat conftest.err >&5
3774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775   (exit $ac_status); } &&
3776          { ac_try='test -z "$ac_c_werror_flag"
3777                          || test ! -s conftest.err'
3778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779   (eval $ac_try) 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); }; } &&
3783          { ac_try='test -s conftest.$ac_objext'
3784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785   (eval $ac_try) 2>&5
3786   ac_status=$?
3787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788   (exit $ac_status); }; }; then
3789   for ac_declaration in \
3790    '' \
3791    'extern "C" void std::exit (int) throw (); using std::exit;' \
3792    'extern "C" void std::exit (int); using std::exit;' \
3793    'extern "C" void exit (int) throw ();' \
3794    'extern "C" void exit (int);' \
3795    'void exit (int);'
3796 do
3797   cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h.  */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h.  */
3803 $ac_declaration
3804 #include <stdlib.h>
3805 int
3806 main ()
3807 {
3808 exit (42);
3809   ;
3810   return 0;
3811 }
3812 _ACEOF
3813 rm -f conftest.$ac_objext
3814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3815   (eval $ac_compile) 2>conftest.er1
3816   ac_status=$?
3817   grep -v '^ *+' conftest.er1 >conftest.err
3818   rm -f conftest.er1
3819   cat conftest.err >&5
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); } &&
3822          { ac_try='test -z "$ac_c_werror_flag"
3823                          || test ! -s conftest.err'
3824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825   (eval $ac_try) 2>&5
3826   ac_status=$?
3827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828   (exit $ac_status); }; } &&
3829          { ac_try='test -s conftest.$ac_objext'
3830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831   (eval $ac_try) 2>&5
3832   ac_status=$?
3833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834   (exit $ac_status); }; }; then
3835   :
3836 else
3837   echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3839
3840 continue
3841 fi
3842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3843   cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h.  */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h.  */
3849 $ac_declaration
3850 int
3851 main ()
3852 {
3853 exit (42);
3854   ;
3855   return 0;
3856 }
3857 _ACEOF
3858 rm -f conftest.$ac_objext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860   (eval $ac_compile) 2>conftest.er1
3861   ac_status=$?
3862   grep -v '^ *+' conftest.er1 >conftest.err
3863   rm -f conftest.er1
3864   cat conftest.err >&5
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); } &&
3867          { ac_try='test -z "$ac_c_werror_flag"
3868                          || test ! -s conftest.err'
3869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870   (eval $ac_try) 2>&5
3871   ac_status=$?
3872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873   (exit $ac_status); }; } &&
3874          { ac_try='test -s conftest.$ac_objext'
3875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876   (eval $ac_try) 2>&5
3877   ac_status=$?
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); }; }; then
3880   break
3881 else
3882   echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885 fi
3886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3887 done
3888 rm -f conftest*
3889 if test -n "$ac_declaration"; then
3890   echo '#ifdef __cplusplus' >>confdefs.h
3891   echo $ac_declaration      >>confdefs.h
3892   echo '#endif'             >>confdefs.h
3893 fi
3894
3895 else
3896   echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3898
3899 fi
3900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3901 ac_ext=c
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906
3907 ac_ext=cc
3908 ac_cpp='$CXXCPP $CPPFLAGS'
3909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3912 if test -n "$ac_tool_prefix"; then
3913   for ac_prog in $CCC g++
3914   do
3915     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3917 echo "$as_me:$LINENO: checking for $ac_word" >&5
3918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919 if test "${ac_cv_prog_CXX+set}" = set; then
3920   echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922   if test -n "$CXX"; then
3923   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3927 do
3928   IFS=$as_save_IFS
3929   test -z "$as_dir" && as_dir=.
3930   for ac_exec_ext in '' $ac_executable_extensions; do
3931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934     break 2
3935   fi
3936 done
3937 done
3938
3939 fi
3940 fi
3941 CXX=$ac_cv_prog_CXX
3942 if test -n "$CXX"; then
3943   echo "$as_me:$LINENO: result: $CXX" >&5
3944 echo "${ECHO_T}$CXX" >&6
3945 else
3946   echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3948 fi
3949
3950     test -n "$CXX" && break
3951   done
3952 fi
3953 if test -z "$CXX"; then
3954   ac_ct_CXX=$CXX
3955   for ac_prog in $CCC g++
3956 do
3957   # Extract the first word of "$ac_prog", so it can be a program name with args.
3958 set dummy $ac_prog; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   if test -n "$ac_ct_CXX"; then
3965   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970   IFS=$as_save_IFS
3971   test -z "$as_dir" && as_dir=.
3972   for ac_exec_ext in '' $ac_executable_extensions; do
3973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974     ac_cv_prog_ac_ct_CXX="$ac_prog"
3975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976     break 2
3977   fi
3978 done
3979 done
3980
3981 fi
3982 fi
3983 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3984 if test -n "$ac_ct_CXX"; then
3985   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3986 echo "${ECHO_T}$ac_ct_CXX" >&6
3987 else
3988   echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3990 fi
3991
3992   test -n "$ac_ct_CXX" && break
3993 done
3994 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3995
3996   CXX=$ac_ct_CXX
3997 fi
3998
3999
4000 # Provide some information about the compiler.
4001 echo "$as_me:$LINENO:" \
4002      "checking for C++ compiler version" >&5
4003 ac_compiler=`set X $ac_compile; echo $2`
4004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4005   (eval $ac_compiler --version </dev/null >&5) 2>&5
4006   ac_status=$?
4007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); }
4009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4010   (eval $ac_compiler -v </dev/null >&5) 2>&5
4011   ac_status=$?
4012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013   (exit $ac_status); }
4014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4015   (eval $ac_compiler -V </dev/null >&5) 2>&5
4016   ac_status=$?
4017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018   (exit $ac_status); }
4019
4020 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4021 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4022 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   cat >conftest.$ac_ext <<_ACEOF
4026 /* confdefs.h.  */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h.  */
4031
4032 int
4033 main ()
4034 {
4035 #ifndef __GNUC__
4036        choke me
4037 #endif
4038
4039   ;
4040   return 0;
4041 }
4042 _ACEOF
4043 rm -f conftest.$ac_objext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045   (eval $ac_compile) 2>conftest.er1
4046   ac_status=$?
4047   grep -v '^ *+' conftest.er1 >conftest.err
4048   rm -f conftest.er1
4049   cat conftest.err >&5
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); } &&
4052          { ac_try='test -z "$ac_cxx_werror_flag"
4053                          || test ! -s conftest.err'
4054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055   (eval $ac_try) 2>&5
4056   ac_status=$?
4057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); }; } &&
4059          { ac_try='test -s conftest.$ac_objext'
4060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061   (eval $ac_try) 2>&5
4062   ac_status=$?
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); }; }; then
4065   ac_compiler_gnu=yes
4066 else
4067   echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070 ac_compiler_gnu=no
4071 fi
4072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4074
4075 fi
4076 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4077 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4078 GXX=`test $ac_compiler_gnu = yes && echo yes`
4079 ac_test_CXXFLAGS=${CXXFLAGS+set}
4080 ac_save_CXXFLAGS=$CXXFLAGS
4081 CXXFLAGS="-g"
4082 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4083 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4084 if test "${ac_cv_prog_cxx_g+set}" = set; then
4085   echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087   cat >conftest.$ac_ext <<_ACEOF
4088 /* confdefs.h.  */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h.  */
4093
4094 int
4095 main ()
4096 {
4097
4098   ;
4099   return 0;
4100 }
4101 _ACEOF
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104   (eval $ac_compile) 2>conftest.er1
4105   ac_status=$?
4106   grep -v '^ *+' conftest.er1 >conftest.err
4107   rm -f conftest.er1
4108   cat conftest.err >&5
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); } &&
4111          { ac_try='test -z "$ac_cxx_werror_flag"
4112                          || test ! -s conftest.err'
4113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114   (eval $ac_try) 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }; } &&
4118          { ac_try='test -s conftest.$ac_objext'
4119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120   (eval $ac_try) 2>&5
4121   ac_status=$?
4122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123   (exit $ac_status); }; }; then
4124   ac_cv_prog_cxx_g=yes
4125 else
4126   echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4128
4129 ac_cv_prog_cxx_g=no
4130 fi
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132 fi
4133 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4134 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4135 if test "$ac_test_CXXFLAGS" = set; then
4136   CXXFLAGS=$ac_save_CXXFLAGS
4137 elif test $ac_cv_prog_cxx_g = yes; then
4138   if test "$GXX" = yes; then
4139     CXXFLAGS="-g -O2"
4140   else
4141     CXXFLAGS="-g"
4142   fi
4143 else
4144   if test "$GXX" = yes; then
4145     CXXFLAGS="-O2"
4146   else
4147     CXXFLAGS=
4148   fi
4149 fi
4150 for ac_declaration in \
4151    '' \
4152    'extern "C" void std::exit (int) throw (); using std::exit;' \
4153    'extern "C" void std::exit (int); using std::exit;' \
4154    'extern "C" void exit (int) throw ();' \
4155    'extern "C" void exit (int);' \
4156    'void exit (int);'
4157 do
4158   cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h.  */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h.  */
4164 $ac_declaration
4165 #include <stdlib.h>
4166 int
4167 main ()
4168 {
4169 exit (42);
4170   ;
4171   return 0;
4172 }
4173 _ACEOF
4174 rm -f conftest.$ac_objext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176   (eval $ac_compile) 2>conftest.er1
4177   ac_status=$?
4178   grep -v '^ *+' conftest.er1 >conftest.err
4179   rm -f conftest.er1
4180   cat conftest.err >&5
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); } &&
4183          { ac_try='test -z "$ac_cxx_werror_flag"
4184                          || test ! -s conftest.err'
4185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186   (eval $ac_try) 2>&5
4187   ac_status=$?
4188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189   (exit $ac_status); }; } &&
4190          { ac_try='test -s conftest.$ac_objext'
4191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192   (eval $ac_try) 2>&5
4193   ac_status=$?
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); }; }; then
4196   :
4197 else
4198   echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4200
4201 continue
4202 fi
4203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4204   cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210 $ac_declaration
4211 int
4212 main ()
4213 {
4214 exit (42);
4215   ;
4216   return 0;
4217 }
4218 _ACEOF
4219 rm -f conftest.$ac_objext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221   (eval $ac_compile) 2>conftest.er1
4222   ac_status=$?
4223   grep -v '^ *+' conftest.er1 >conftest.err
4224   rm -f conftest.er1
4225   cat conftest.err >&5
4226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227   (exit $ac_status); } &&
4228          { ac_try='test -z "$ac_cxx_werror_flag"
4229                          || test ! -s conftest.err'
4230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231   (eval $ac_try) 2>&5
4232   ac_status=$?
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); }; } &&
4235          { ac_try='test -s conftest.$ac_objext'
4236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237   (eval $ac_try) 2>&5
4238   ac_status=$?
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); }; }; then
4241   break
4242 else
4243   echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4245
4246 fi
4247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4248 done
4249 rm -f conftest*
4250 if test -n "$ac_declaration"; then
4251   echo '#ifdef __cplusplus' >>confdefs.h
4252   echo $ac_declaration      >>confdefs.h
4253   echo '#endif'             >>confdefs.h
4254 fi
4255
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
4262 echo "$as_me:$LINENO: checking " >&5
4263 echo $ECHO_N "checking ... $ECHO_C" >&6
4264 if test "${ac_cv_has_flex+set}" = set; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   for ac_prog in flex lex
4268 do
4269   # Extract the first word of "$ac_prog", so it can be a program name with args.
4270 set dummy $ac_prog; ac_word=$2
4271 echo "$as_me:$LINENO: checking for $ac_word" >&5
4272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4273 if test "${ac_cv_prog_LEX+set}" = set; then
4274   echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276   if test -n "$LEX"; then
4277   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4278 else
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4281 do
4282   IFS=$as_save_IFS
4283   test -z "$as_dir" && as_dir=.
4284   for ac_exec_ext in '' $ac_executable_extensions; do
4285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286     ac_cv_prog_LEX="$ac_prog"
4287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288     break 2
4289   fi
4290 done
4291 done
4292
4293 fi
4294 fi
4295 LEX=$ac_cv_prog_LEX
4296 if test -n "$LEX"; then
4297   echo "$as_me:$LINENO: result: $LEX" >&5
4298 echo "${ECHO_T}$LEX" >&6
4299 else
4300   echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4302 fi
4303
4304   test -n "$LEX" && break
4305 done
4306 test -n "$LEX" || LEX=":"
4307
4308 if test -z "$LEXLIB"
4309 then
4310   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4311 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4312 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4313   echo $ECHO_N "(cached) $ECHO_C" >&6
4314 else
4315   ac_check_lib_save_LIBS=$LIBS
4316 LIBS="-lfl  $LIBS"
4317 cat >conftest.$ac_ext <<_ACEOF
4318 /* confdefs.h.  */
4319 _ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h.  */
4323
4324 /* Override any gcc2 internal prototype to avoid an error.  */
4325 #ifdef __cplusplus
4326 extern "C"
4327 #endif
4328 /* We use char because int might match the return type of a gcc2
4329    builtin and then its argument prototype would still apply.  */
4330 char yywrap ();
4331 int
4332 main ()
4333 {
4334 yywrap ();
4335   ;
4336   return 0;
4337 }
4338 _ACEOF
4339 rm -f conftest.$ac_objext conftest$ac_exeext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4341   (eval $ac_link) 2>conftest.er1
4342   ac_status=$?
4343   grep -v '^ *+' conftest.er1 >conftest.err
4344   rm -f conftest.er1
4345   cat conftest.err >&5
4346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); } &&
4348          { ac_try='test -z "$ac_c_werror_flag"
4349                          || test ! -s conftest.err'
4350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351   (eval $ac_try) 2>&5
4352   ac_status=$?
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); }; } &&
4355          { ac_try='test -s conftest$ac_exeext'
4356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357   (eval $ac_try) 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); }; }; then
4361   ac_cv_lib_fl_yywrap=yes
4362 else
4363   echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4365
4366 ac_cv_lib_fl_yywrap=no
4367 fi
4368 rm -f conftest.err conftest.$ac_objext \
4369       conftest$ac_exeext conftest.$ac_ext
4370 LIBS=$ac_check_lib_save_LIBS
4371 fi
4372 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4373 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4374 if test $ac_cv_lib_fl_yywrap = yes; then
4375   LEXLIB="-lfl"
4376 else
4377   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4378 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4379 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4380   echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382   ac_check_lib_save_LIBS=$LIBS
4383 LIBS="-ll  $LIBS"
4384 cat >conftest.$ac_ext <<_ACEOF
4385 /* confdefs.h.  */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h.  */
4390
4391 /* Override any gcc2 internal prototype to avoid an error.  */
4392 #ifdef __cplusplus
4393 extern "C"
4394 #endif
4395 /* We use char because int might match the return type of a gcc2
4396    builtin and then its argument prototype would still apply.  */
4397 char yywrap ();
4398 int
4399 main ()
4400 {
4401 yywrap ();
4402   ;
4403   return 0;
4404 }
4405 _ACEOF
4406 rm -f conftest.$ac_objext conftest$ac_exeext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4408   (eval $ac_link) 2>conftest.er1
4409   ac_status=$?
4410   grep -v '^ *+' conftest.er1 >conftest.err
4411   rm -f conftest.er1
4412   cat conftest.err >&5
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); } &&
4415          { ac_try='test -z "$ac_c_werror_flag"
4416                          || test ! -s conftest.err'
4417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418   (eval $ac_try) 2>&5
4419   ac_status=$?
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); }; } &&
4422          { ac_try='test -s conftest$ac_exeext'
4423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424   (eval $ac_try) 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); }; }; then
4428   ac_cv_lib_l_yywrap=yes
4429 else
4430   echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 ac_cv_lib_l_yywrap=no
4434 fi
4435 rm -f conftest.err conftest.$ac_objext \
4436       conftest$ac_exeext conftest.$ac_ext
4437 LIBS=$ac_check_lib_save_LIBS
4438 fi
4439 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4440 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4441 if test $ac_cv_lib_l_yywrap = yes; then
4442   LEXLIB="-ll"
4443 fi
4444
4445 fi
4446
4447 fi
4448
4449 if test "x$LEX" != "x:"; then
4450   echo "$as_me:$LINENO: checking lex output file root" >&5
4451 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4452 if test "${ac_cv_prog_lex_root+set}" = set; then
4453   echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455   # The minimal lex program is just a single line: %%.  But some broken lexes
4456 # (Solaris, I think it was) want two %% lines, so accommodate them.
4457 cat >conftest.l <<_ACEOF
4458 %%
4459 %%
4460 _ACEOF
4461 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4462   (eval $LEX conftest.l) 2>&5
4463   ac_status=$?
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); }
4466 if test -f lex.yy.c; then
4467   ac_cv_prog_lex_root=lex.yy
4468 elif test -f lexyy.c; then
4469   ac_cv_prog_lex_root=lexyy
4470 else
4471   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4472 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4473    { (exit 1); exit 1; }; }
4474 fi
4475 fi
4476 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4477 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4478 rm -f conftest.l
4479 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4480
4481 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4482 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4483 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4484   echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486   # POSIX says lex can declare yytext either as a pointer or an array; the
4487 # default is implementation-dependent. Figure out which it is, since
4488 # not all implementations provide the %pointer and %array declarations.
4489 ac_cv_prog_lex_yytext_pointer=no
4490 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4491 ac_save_LIBS=$LIBS
4492 LIBS="$LIBS $LEXLIB"
4493 cat >conftest.$ac_ext <<_ACEOF
4494 `cat $LEX_OUTPUT_ROOT.c`
4495 _ACEOF
4496 rm -f conftest.$ac_objext conftest$ac_exeext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4498   (eval $ac_link) 2>conftest.er1
4499   ac_status=$?
4500   grep -v '^ *+' conftest.er1 >conftest.err
4501   rm -f conftest.er1
4502   cat conftest.err >&5
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); } &&
4505          { ac_try='test -z "$ac_c_werror_flag"
4506                          || test ! -s conftest.err'
4507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508   (eval $ac_try) 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); }; } &&
4512          { ac_try='test -s conftest$ac_exeext'
4513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514   (eval $ac_try) 2>&5
4515   ac_status=$?
4516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); }; }; then
4518   ac_cv_prog_lex_yytext_pointer=yes
4519 else
4520   echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4522
4523 fi
4524 rm -f conftest.err conftest.$ac_objext \
4525       conftest$ac_exeext conftest.$ac_ext
4526 LIBS=$ac_save_LIBS
4527 rm -f "${LEX_OUTPUT_ROOT}.c"
4528
4529 fi
4530 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4531 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4532 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4533
4534 cat >>confdefs.h <<\_ACEOF
4535 #define YYTEXT_POINTER 1
4536 _ACEOF
4537
4538 fi
4539
4540 fi
4541
4542 fi
4543 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4544 echo "${ECHO_T}$ac_cv_has_flex" >&6
4545 if test "$LEX" != "flex"; then
4546   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4547 echo "$as_me: error: flex not found but required" >&2;}
4548    { (exit 1); exit 1; }; }
4549 else
4550   FLEX=flex
4551
4552 fi
4553
4554 echo "$as_me:$LINENO: checking " >&5
4555 echo $ECHO_N "checking ... $ECHO_C" >&6
4556 if test "${llvm_cv_has_bison+set}" = set; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   for ac_prog in 'bison -y' byacc
4560 do
4561   # Extract the first word of "$ac_prog", so it can be a program name with args.
4562 set dummy $ac_prog; ac_word=$2
4563 echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565 if test "${ac_cv_prog_YACC+set}" = set; then
4566   echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568   if test -n "$YACC"; then
4569   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4573 do
4574   IFS=$as_save_IFS
4575   test -z "$as_dir" && as_dir=.
4576   for ac_exec_ext in '' $ac_executable_extensions; do
4577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578     ac_cv_prog_YACC="$ac_prog"
4579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580     break 2
4581   fi
4582 done
4583 done
4584
4585 fi
4586 fi
4587 YACC=$ac_cv_prog_YACC
4588 if test -n "$YACC"; then
4589   echo "$as_me:$LINENO: result: $YACC" >&5
4590 echo "${ECHO_T}$YACC" >&6
4591 else
4592   echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4594 fi
4595
4596   test -n "$YACC" && break
4597 done
4598 test -n "$YACC" || YACC="yacc"
4599
4600 fi
4601 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4602 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4603 if test "$YACC" != "bison -y"; then
4604   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4605 echo "$as_me: error: bison not found but required" >&2;}
4606    { (exit 1); exit 1; }; }
4607 else
4608   BISON=bison
4609
4610 fi
4611
4612 echo "$as_me:$LINENO: checking for GNU make" >&5
4613 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4614 if test "${llvm_cv_gnu_make_command+set}" = set; then
4615   echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617   llvm_cv_gnu_make_command=''
4618  for a in "$MAKE" make gmake gnumake ; do
4619   if test -z "$a" ; then continue ; fi ;
4620   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4621   then
4622    llvm_cv_gnu_make_command=$a ;
4623    break;
4624   fi
4625  done
4626 fi
4627 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4628 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4629  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4630    ifGNUmake='' ;
4631  else
4632    ifGNUmake='#' ;
4633    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4634 echo "${ECHO_T}\"Not found\"" >&6;
4635  fi
4636
4637
4638 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4639 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4640 LN_S=$as_ln_s
4641 if test "$LN_S" = "ln -s"; then
4642   echo "$as_me:$LINENO: result: yes" >&5
4643 echo "${ECHO_T}yes" >&6
4644 else
4645   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4646 echo "${ECHO_T}no, using $LN_S" >&6
4647 fi
4648
4649 # Extract the first word of "cmp", so it can be a program name with args.
4650 set dummy cmp; ac_word=$2
4651 echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653 if test "${ac_cv_path_CMP+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656   case $CMP in
4657   [\\/]* | ?:[\\/]*)
4658   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4659   ;;
4660   *)
4661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664   IFS=$as_save_IFS
4665   test -z "$as_dir" && as_dir=.
4666   for ac_exec_ext in '' $ac_executable_extensions; do
4667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670     break 2
4671   fi
4672 done
4673 done
4674
4675   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4676   ;;
4677 esac
4678 fi
4679 CMP=$ac_cv_path_CMP
4680
4681 if test -n "$CMP"; then
4682   echo "$as_me:$LINENO: result: $CMP" >&5
4683 echo "${ECHO_T}$CMP" >&6
4684 else
4685   echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6
4687 fi
4688
4689 # Extract the first word of "cp", so it can be a program name with args.
4690 set dummy cp; ac_word=$2
4691 echo "$as_me:$LINENO: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4693 if test "${ac_cv_path_CP+set}" = set; then
4694   echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696   case $CP in
4697   [\\/]* | ?:[\\/]*)
4698   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4699   ;;
4700   *)
4701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704   IFS=$as_save_IFS
4705   test -z "$as_dir" && as_dir=.
4706   for ac_exec_ext in '' $ac_executable_extensions; do
4707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710     break 2
4711   fi
4712 done
4713 done
4714
4715   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4716   ;;
4717 esac
4718 fi
4719 CP=$ac_cv_path_CP
4720
4721 if test -n "$CP"; then
4722   echo "$as_me:$LINENO: result: $CP" >&5
4723 echo "${ECHO_T}$CP" >&6
4724 else
4725   echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6
4727 fi
4728
4729 # Extract the first word of "date", so it can be a program name with args.
4730 set dummy date; ac_word=$2
4731 echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4733 if test "${ac_cv_path_DATE+set}" = set; then
4734   echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736   case $DATE in
4737   [\\/]* | ?:[\\/]*)
4738   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4739   ;;
4740   *)
4741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4743 do
4744   IFS=$as_save_IFS
4745   test -z "$as_dir" && as_dir=.
4746   for ac_exec_ext in '' $ac_executable_extensions; do
4747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750     break 2
4751   fi
4752 done
4753 done
4754
4755   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4756   ;;
4757 esac
4758 fi
4759 DATE=$ac_cv_path_DATE
4760
4761 if test -n "$DATE"; then
4762   echo "$as_me:$LINENO: result: $DATE" >&5
4763 echo "${ECHO_T}$DATE" >&6
4764 else
4765   echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6
4767 fi
4768
4769 # Extract the first word of "find", so it can be a program name with args.
4770 set dummy find; ac_word=$2
4771 echo "$as_me:$LINENO: checking for $ac_word" >&5
4772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4773 if test "${ac_cv_path_FIND+set}" = set; then
4774   echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776   case $FIND in
4777   [\\/]* | ?:[\\/]*)
4778   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4779   ;;
4780   *)
4781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4783 do
4784   IFS=$as_save_IFS
4785   test -z "$as_dir" && as_dir=.
4786   for ac_exec_ext in '' $ac_executable_extensions; do
4787   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790     break 2
4791   fi
4792 done
4793 done
4794
4795   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4796   ;;
4797 esac
4798 fi
4799 FIND=$ac_cv_path_FIND
4800
4801 if test -n "$FIND"; then
4802   echo "$as_me:$LINENO: result: $FIND" >&5
4803 echo "${ECHO_T}$FIND" >&6
4804 else
4805   echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6
4807 fi
4808
4809 # Extract the first word of "grep", so it can be a program name with args.
4810 set dummy grep; ac_word=$2
4811 echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813 if test "${ac_cv_path_GREP+set}" = set; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816   case $GREP in
4817   [\\/]* | ?:[\\/]*)
4818   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4819   ;;
4820   *)
4821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4823 do
4824   IFS=$as_save_IFS
4825   test -z "$as_dir" && as_dir=.
4826   for ac_exec_ext in '' $ac_executable_extensions; do
4827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830     break 2
4831   fi
4832 done
4833 done
4834
4835   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4836   ;;
4837 esac
4838 fi
4839 GREP=$ac_cv_path_GREP
4840
4841 if test -n "$GREP"; then
4842   echo "$as_me:$LINENO: result: $GREP" >&5
4843 echo "${ECHO_T}$GREP" >&6
4844 else
4845   echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6
4847 fi
4848
4849 # Extract the first word of "mkdir", so it can be a program name with args.
4850 set dummy mkdir; ac_word=$2
4851 echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_path_MKDIR+set}" = set; then
4854   echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856   case $MKDIR in
4857   [\\/]* | ?:[\\/]*)
4858   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4859   ;;
4860   *)
4861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864   IFS=$as_save_IFS
4865   test -z "$as_dir" && as_dir=.
4866   for ac_exec_ext in '' $ac_executable_extensions; do
4867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870     break 2
4871   fi
4872 done
4873 done
4874
4875   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4876   ;;
4877 esac
4878 fi
4879 MKDIR=$ac_cv_path_MKDIR
4880
4881 if test -n "$MKDIR"; then
4882   echo "$as_me:$LINENO: result: $MKDIR" >&5
4883 echo "${ECHO_T}$MKDIR" >&6
4884 else
4885   echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4887 fi
4888
4889 # Extract the first word of "mv", so it can be a program name with args.
4890 set dummy mv; ac_word=$2
4891 echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893 if test "${ac_cv_path_MV+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   case $MV in
4897   [\\/]* | ?:[\\/]*)
4898   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4899   ;;
4900   *)
4901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904   IFS=$as_save_IFS
4905   test -z "$as_dir" && as_dir=.
4906   for ac_exec_ext in '' $ac_executable_extensions; do
4907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910     break 2
4911   fi
4912 done
4913 done
4914
4915   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4916   ;;
4917 esac
4918 fi
4919 MV=$ac_cv_path_MV
4920
4921 if test -n "$MV"; then
4922   echo "$as_me:$LINENO: result: $MV" >&5
4923 echo "${ECHO_T}$MV" >&6
4924 else
4925   echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6
4927 fi
4928
4929 if test -n "$ac_tool_prefix"; then
4930   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4931 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4932 echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4934 if test "${ac_cv_prog_RANLIB+set}" = set; then
4935   echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937   if test -n "$RANLIB"; then
4938   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4939 else
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4942 do
4943   IFS=$as_save_IFS
4944   test -z "$as_dir" && as_dir=.
4945   for ac_exec_ext in '' $ac_executable_extensions; do
4946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4949     break 2
4950   fi
4951 done
4952 done
4953
4954 fi
4955 fi
4956 RANLIB=$ac_cv_prog_RANLIB
4957 if test -n "$RANLIB"; then
4958   echo "$as_me:$LINENO: result: $RANLIB" >&5
4959 echo "${ECHO_T}$RANLIB" >&6
4960 else
4961   echo "$as_me:$LINENO: result: no" >&5
4962 echo "${ECHO_T}no" >&6
4963 fi
4964
4965 fi
4966 if test -z "$ac_cv_prog_RANLIB"; then
4967   ac_ct_RANLIB=$RANLIB
4968   # Extract the first word of "ranlib", so it can be a program name with args.
4969 set dummy ranlib; ac_word=$2
4970 echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4972 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975   if test -n "$ac_ct_RANLIB"; then
4976   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981   IFS=$as_save_IFS
4982   test -z "$as_dir" && as_dir=.
4983   for ac_exec_ext in '' $ac_executable_extensions; do
4984   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985     ac_cv_prog_ac_ct_RANLIB="ranlib"
4986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987     break 2
4988   fi
4989 done
4990 done
4991
4992   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4993 fi
4994 fi
4995 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4996 if test -n "$ac_ct_RANLIB"; then
4997   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4998 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4999 else
5000   echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6
5002 fi
5003
5004   RANLIB=$ac_ct_RANLIB
5005 else
5006   RANLIB="$ac_cv_prog_RANLIB"
5007 fi
5008
5009 # Extract the first word of "rm", so it can be a program name with args.
5010 set dummy rm; ac_word=$2
5011 echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013 if test "${ac_cv_path_RM+set}" = set; then
5014   echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016   case $RM in
5017   [\\/]* | ?:[\\/]*)
5018   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5019   ;;
5020   *)
5021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5023 do
5024   IFS=$as_save_IFS
5025   test -z "$as_dir" && as_dir=.
5026   for ac_exec_ext in '' $ac_executable_extensions; do
5027   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030     break 2
5031   fi
5032 done
5033 done
5034
5035   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5036   ;;
5037 esac
5038 fi
5039 RM=$ac_cv_path_RM
5040
5041 if test -n "$RM"; then
5042   echo "$as_me:$LINENO: result: $RM" >&5
5043 echo "${ECHO_T}$RM" >&6
5044 else
5045   echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5047 fi
5048
5049 # Extract the first word of "sed", so it can be a program name with args.
5050 set dummy sed; ac_word=$2
5051 echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5053 if test "${ac_cv_path_SED+set}" = set; then
5054   echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056   case $SED in
5057   [\\/]* | ?:[\\/]*)
5058   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5059   ;;
5060   *)
5061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5063 do
5064   IFS=$as_save_IFS
5065   test -z "$as_dir" && as_dir=.
5066   for ac_exec_ext in '' $ac_executable_extensions; do
5067   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070     break 2
5071   fi
5072 done
5073 done
5074
5075   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5076   ;;
5077 esac
5078 fi
5079 SED=$ac_cv_path_SED
5080
5081 if test -n "$SED"; then
5082   echo "$as_me:$LINENO: result: $SED" >&5
5083 echo "${ECHO_T}$SED" >&6
5084 else
5085   echo "$as_me:$LINENO: result: no" >&5
5086 echo "${ECHO_T}no" >&6
5087 fi
5088
5089 # Extract the first word of "tar", so it can be a program name with args.
5090 set dummy tar; ac_word=$2
5091 echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5093 if test "${ac_cv_path_TAR+set}" = set; then
5094   echo $ECHO_N "(cached) $ECHO_C" >&6
5095 else
5096   case $TAR in
5097   [\\/]* | ?:[\\/]*)
5098   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5099   ;;
5100   *)
5101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5103 do
5104   IFS=$as_save_IFS
5105   test -z "$as_dir" && as_dir=.
5106   for ac_exec_ext in '' $ac_executable_extensions; do
5107   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110     break 2
5111   fi
5112 done
5113 done
5114
5115   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5116   ;;
5117 esac
5118 fi
5119 TAR=$ac_cv_path_TAR
5120
5121 if test -n "$TAR"; then
5122   echo "$as_me:$LINENO: result: $TAR" >&5
5123 echo "${ECHO_T}$TAR" >&6
5124 else
5125   echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6
5127 fi
5128
5129
5130 # Extract the first word of "Graphviz", so it can be a program name with args.
5131 set dummy Graphviz; ac_word=$2
5132 echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5134 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137   case $GRAPHVIZ in
5138   [\\/]* | ?:[\\/]*)
5139   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5140   ;;
5141   *)
5142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
5145   IFS=$as_save_IFS
5146   test -z "$as_dir" && as_dir=.
5147   for ac_exec_ext in '' $ac_executable_extensions; do
5148   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151     break 2
5152   fi
5153 done
5154 done
5155
5156   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5157   ;;
5158 esac
5159 fi
5160 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5161
5162 if test -n "$GRAPHVIZ"; then
5163   echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5164 echo "${ECHO_T}$GRAPHVIZ" >&6
5165 else
5166   echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6
5168 fi
5169
5170 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5171
5172 cat >>confdefs.h <<\_ACEOF
5173 #define HAVE_GRAPHVIZ 1
5174 _ACEOF
5175
5176
5177 cat >>confdefs.h <<_ACEOF
5178 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5179 _ACEOF
5180
5181 fi
5182 # Extract the first word of "gv", so it can be a program name with args.
5183 set dummy gv; ac_word=$2
5184 echo "$as_me:$LINENO: checking for $ac_word" >&5
5185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186 if test "${ac_cv_path_GV+set}" = set; then
5187   echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189   case $GV in
5190   [\\/]* | ?:[\\/]*)
5191   ac_cv_path_GV="$GV" # Let the user override the test with a path.
5192   ;;
5193   *)
5194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5196 do
5197   IFS=$as_save_IFS
5198   test -z "$as_dir" && as_dir=.
5199   for ac_exec_ext in '' $ac_executable_extensions; do
5200   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203     break 2
5204   fi
5205 done
5206 done
5207
5208   test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5209   ;;
5210 esac
5211 fi
5212 GV=$ac_cv_path_GV
5213
5214 if test -n "$GV"; then
5215   echo "$as_me:$LINENO: result: $GV" >&5
5216 echo "${ECHO_T}$GV" >&6
5217 else
5218   echo "$as_me:$LINENO: result: no" >&5
5219 echo "${ECHO_T}no" >&6
5220 fi
5221
5222 if test "$GV" != "echo gv" ; then
5223
5224 cat >>confdefs.h <<\_ACEOF
5225 #define HAVE_GV 1
5226 _ACEOF
5227
5228
5229 cat >>confdefs.h <<_ACEOF
5230 #define LLVM_PATH_GV "$GV"
5231 _ACEOF
5232
5233 fi
5234 # Extract the first word of "dotty", so it can be a program name with args.
5235 set dummy dotty; ac_word=$2
5236 echo "$as_me:$LINENO: checking for $ac_word" >&5
5237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5238 if test "${ac_cv_path_DOTTY+set}" = set; then
5239   echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241   case $DOTTY in
5242   [\\/]* | ?:[\\/]*)
5243   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
5244   ;;
5245   *)
5246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249   IFS=$as_save_IFS
5250   test -z "$as_dir" && as_dir=.
5251   for ac_exec_ext in '' $ac_executable_extensions; do
5252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
5254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255     break 2
5256   fi
5257 done
5258 done
5259
5260   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
5261   ;;
5262 esac
5263 fi
5264 DOTTY=$ac_cv_path_DOTTY
5265
5266 if test -n "$DOTTY"; then
5267   echo "$as_me:$LINENO: result: $DOTTY" >&5
5268 echo "${ECHO_T}$DOTTY" >&6
5269 else
5270   echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6
5272 fi
5273
5274 if test "$DOTTY" != "echo dotty" ; then
5275
5276 cat >>confdefs.h <<\_ACEOF
5277 #define HAVE_DOTTY 1
5278 _ACEOF
5279
5280
5281 cat >>confdefs.h <<_ACEOF
5282 #define LLVM_PATH_DOTTY "$DOTTY"
5283 _ACEOF
5284
5285 fi
5286
5287
5288 # Extract the first word of "perl", so it can be a program name with args.
5289 set dummy perl; ac_word=$2
5290 echo "$as_me:$LINENO: checking for $ac_word" >&5
5291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5292 if test "${ac_cv_path_PERL+set}" = set; then
5293   echo $ECHO_N "(cached) $ECHO_C" >&6
5294 else
5295   case $PERL in
5296   [\\/]* | ?:[\\/]*)
5297   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5298   ;;
5299   *)
5300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303   IFS=$as_save_IFS
5304   test -z "$as_dir" && as_dir=.
5305   for ac_exec_ext in '' $ac_executable_extensions; do
5306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5309     break 2
5310   fi
5311 done
5312 done
5313
5314   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5315   ;;
5316 esac
5317 fi
5318 PERL=$ac_cv_path_PERL
5319
5320 if test -n "$PERL"; then
5321   echo "$as_me:$LINENO: result: $PERL" >&5
5322 echo "${ECHO_T}$PERL" >&6
5323 else
5324   echo "$as_me:$LINENO: result: no" >&5
5325 echo "${ECHO_T}no" >&6
5326 fi
5327
5328 if test "$PERL" != "none"; then
5329   echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5330 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5331   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5332     echo "$as_me:$LINENO: result: yes" >&5
5333 echo "${ECHO_T}yes" >&6
5334   else
5335     PERL=none
5336     echo "$as_me:$LINENO: result: not found" >&5
5337 echo "${ECHO_T}not found" >&6
5338   fi
5339 fi
5340
5341
5342 if test x"$PERL" = xnone; then
5343    HAVE_PERL=0
5344
5345 else
5346    HAVE_PERL=1
5347
5348 fi
5349
5350 # Find a good install program.  We prefer a C program (faster),
5351 # so one script is as good as another.  But avoid the broken or
5352 # incompatible versions:
5353 # SysV /etc/install, /usr/sbin/install
5354 # SunOS /usr/etc/install
5355 # IRIX /sbin/install
5356 # AIX /bin/install
5357 # AmigaOS /C/install, which installs bootblocks on floppy discs
5358 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5359 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5360 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5361 # OS/2's system install, which has a completely different semantic
5362 # ./install, which can be erroneously created by make from ./install.sh.
5363 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5364 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5365 if test -z "$INSTALL"; then
5366 if test "${ac_cv_path_install+set}" = set; then
5367   echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH
5371 do
5372   IFS=$as_save_IFS
5373   test -z "$as_dir" && as_dir=.
5374   # Account for people who put trailing slashes in PATH elements.
5375 case $as_dir/ in
5376   ./ | .// | /cC/* | \
5377   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5378   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5379   /usr/ucb/* ) ;;
5380   *)
5381     # OSF1 and SCO ODT 3.0 have their own names for install.
5382     # Don't use installbsd from OSF since it installs stuff as root
5383     # by default.
5384     for ac_prog in ginstall scoinst install; do
5385       for ac_exec_ext in '' $ac_executable_extensions; do
5386         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5387           if test $ac_prog = install &&
5388             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5389             # AIX install.  It has an incompatible calling convention.
5390             :
5391           elif test $ac_prog = install &&
5392             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5393             # program-specific install script used by HP pwplus--don't use.
5394             :
5395           else
5396             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5397             break 3
5398           fi
5399         fi
5400       done
5401     done
5402     ;;
5403 esac
5404 done
5405
5406
5407 fi
5408   if test "${ac_cv_path_install+set}" = set; then
5409     INSTALL=$ac_cv_path_install
5410   else
5411     # As a last resort, use the slow shell script.  We don't cache a
5412     # path for INSTALL within a source directory, because that will
5413     # break other packages using the cache if that directory is
5414     # removed, or if the path is relative.
5415     INSTALL=$ac_install_sh
5416   fi
5417 fi
5418 echo "$as_me:$LINENO: result: $INSTALL" >&5
5419 echo "${ECHO_T}$INSTALL" >&6
5420
5421 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5422 # It thinks the first close brace ends the variable substitution.
5423 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5424
5425 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5426
5427 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5428
5429
5430 # Extract the first word of "bzip2", so it can be a program name with args.
5431 set dummy bzip2; ac_word=$2
5432 echo "$as_me:$LINENO: checking for $ac_word" >&5
5433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5434 if test "${ac_cv_path_BZIP2+set}" = set; then
5435   echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437   case $BZIP2 in
5438   [\\/]* | ?:[\\/]*)
5439   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5440   ;;
5441   *)
5442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5444 do
5445   IFS=$as_save_IFS
5446   test -z "$as_dir" && as_dir=.
5447   for ac_exec_ext in '' $ac_executable_extensions; do
5448   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451     break 2
5452   fi
5453 done
5454 done
5455
5456   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
5457   ;;
5458 esac
5459 fi
5460 BZIP2=$ac_cv_path_BZIP2
5461
5462 if test -n "$BZIP2"; then
5463   echo "$as_me:$LINENO: result: $BZIP2" >&5
5464 echo "${ECHO_T}$BZIP2" >&6
5465 else
5466   echo "$as_me:$LINENO: result: no" >&5
5467 echo "${ECHO_T}no" >&6
5468 fi
5469
5470 # Extract the first word of "dot", so it can be a program name with args.
5471 set dummy dot; ac_word=$2
5472 echo "$as_me:$LINENO: checking for $ac_word" >&5
5473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5474 if test "${ac_cv_path_DOT+set}" = set; then
5475   echo $ECHO_N "(cached) $ECHO_C" >&6
5476 else
5477   case $DOT in
5478   [\\/]* | ?:[\\/]*)
5479   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5480   ;;
5481   *)
5482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH
5484 do
5485   IFS=$as_save_IFS
5486   test -z "$as_dir" && as_dir=.
5487   for ac_exec_ext in '' $ac_executable_extensions; do
5488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491     break 2
5492   fi
5493 done
5494 done
5495
5496   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo "Skipped: dot not found""
5497   ;;
5498 esac
5499 fi
5500 DOT=$ac_cv_path_DOT
5501
5502 if test -n "$DOT"; then
5503   echo "$as_me:$LINENO: result: $DOT" >&5
5504 echo "${ECHO_T}$DOT" >&6
5505 else
5506   echo "$as_me:$LINENO: result: no" >&5
5507 echo "${ECHO_T}no" >&6
5508 fi
5509
5510 # Extract the first word of "doxygen", so it can be a program name with args.
5511 set dummy doxygen; ac_word=$2
5512 echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5515   echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517   case $DOXYGEN in
5518   [\\/]* | ?:[\\/]*)
5519   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5520   ;;
5521   *)
5522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5524 do
5525   IFS=$as_save_IFS
5526   test -z "$as_dir" && as_dir=.
5527   for ac_exec_ext in '' $ac_executable_extensions; do
5528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531     break 2
5532   fi
5533 done
5534 done
5535
5536   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
5537   ;;
5538 esac
5539 fi
5540 DOXYGEN=$ac_cv_path_DOXYGEN
5541
5542 if test -n "$DOXYGEN"; then
5543   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5544 echo "${ECHO_T}$DOXYGEN" >&6
5545 else
5546   echo "$as_me:$LINENO: result: no" >&5
5547 echo "${ECHO_T}no" >&6
5548 fi
5549
5550 # Extract the first word of "etags", so it can be a program name with args.
5551 set dummy etags; ac_word=$2
5552 echo "$as_me:$LINENO: checking for $ac_word" >&5
5553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5554 if test "${ac_cv_path_ETAGS+set}" = set; then
5555   echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557   case $ETAGS in
5558   [\\/]* | ?:[\\/]*)
5559   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5560   ;;
5561   *)
5562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5564 do
5565   IFS=$as_save_IFS
5566   test -z "$as_dir" && as_dir=.
5567   for ac_exec_ext in '' $ac_executable_extensions; do
5568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571     break 2
5572   fi
5573 done
5574 done
5575
5576   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
5577   ;;
5578 esac
5579 fi
5580 ETAGS=$ac_cv_path_ETAGS
5581
5582 if test -n "$ETAGS"; then
5583   echo "$as_me:$LINENO: result: $ETAGS" >&5
5584 echo "${ECHO_T}$ETAGS" >&6
5585 else
5586   echo "$as_me:$LINENO: result: no" >&5
5587 echo "${ECHO_T}no" >&6
5588 fi
5589
5590 # Extract the first word of "groff", so it can be a program name with args.
5591 set dummy groff; ac_word=$2
5592 echo "$as_me:$LINENO: checking for $ac_word" >&5
5593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5594 if test "${ac_cv_path_GROFF+set}" = set; then
5595   echo $ECHO_N "(cached) $ECHO_C" >&6
5596 else
5597   case $GROFF in
5598   [\\/]* | ?:[\\/]*)
5599   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5600   ;;
5601   *)
5602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5604 do
5605   IFS=$as_save_IFS
5606   test -z "$as_dir" && as_dir=.
5607   for ac_exec_ext in '' $ac_executable_extensions; do
5608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5609     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5611     break 2
5612   fi
5613 done
5614 done
5615
5616   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
5617   ;;
5618 esac
5619 fi
5620 GROFF=$ac_cv_path_GROFF
5621
5622 if test -n "$GROFF"; then
5623   echo "$as_me:$LINENO: result: $GROFF" >&5
5624 echo "${ECHO_T}$GROFF" >&6
5625 else
5626   echo "$as_me:$LINENO: result: no" >&5
5627 echo "${ECHO_T}no" >&6
5628 fi
5629
5630 # Extract the first word of "gzip", so it can be a program name with args.
5631 set dummy gzip; ac_word=$2
5632 echo "$as_me:$LINENO: checking for $ac_word" >&5
5633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5634 if test "${ac_cv_path_GZIP+set}" = set; then
5635   echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637   case $GZIP in
5638   [\\/]* | ?:[\\/]*)
5639   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5640   ;;
5641   *)
5642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5644 do
5645   IFS=$as_save_IFS
5646   test -z "$as_dir" && as_dir=.
5647   for ac_exec_ext in '' $ac_executable_extensions; do
5648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5649     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5651     break 2
5652   fi
5653 done
5654 done
5655
5656   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
5657   ;;
5658 esac
5659 fi
5660 GZIP=$ac_cv_path_GZIP
5661
5662 if test -n "$GZIP"; then
5663   echo "$as_me:$LINENO: result: $GZIP" >&5
5664 echo "${ECHO_T}$GZIP" >&6
5665 else
5666   echo "$as_me:$LINENO: result: no" >&5
5667 echo "${ECHO_T}no" >&6
5668 fi
5669
5670 # Extract the first word of "pod2html", so it can be a program name with args.
5671 set dummy pod2html; ac_word=$2
5672 echo "$as_me:$LINENO: checking for $ac_word" >&5
5673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5674 if test "${ac_cv_path_POD2HTML+set}" = set; then
5675   echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677   case $POD2HTML in
5678   [\\/]* | ?:[\\/]*)
5679   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5680   ;;
5681   *)
5682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5684 do
5685   IFS=$as_save_IFS
5686   test -z "$as_dir" && as_dir=.
5687   for ac_exec_ext in '' $ac_executable_extensions; do
5688   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5689     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5691     break 2
5692   fi
5693 done
5694 done
5695
5696   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
5697   ;;
5698 esac
5699 fi
5700 POD2HTML=$ac_cv_path_POD2HTML
5701
5702 if test -n "$POD2HTML"; then
5703   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5704 echo "${ECHO_T}$POD2HTML" >&6
5705 else
5706   echo "$as_me:$LINENO: result: no" >&5
5707 echo "${ECHO_T}no" >&6
5708 fi
5709
5710 # Extract the first word of "pod2man", so it can be a program name with args.
5711 set dummy pod2man; ac_word=$2
5712 echo "$as_me:$LINENO: checking for $ac_word" >&5
5713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5714 if test "${ac_cv_path_POD2MAN+set}" = set; then
5715   echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717   case $POD2MAN in
5718   [\\/]* | ?:[\\/]*)
5719   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5720   ;;
5721   *)
5722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5724 do
5725   IFS=$as_save_IFS
5726   test -z "$as_dir" && as_dir=.
5727   for ac_exec_ext in '' $ac_executable_extensions; do
5728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5731     break 2
5732   fi
5733 done
5734 done
5735
5736   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
5737   ;;
5738 esac
5739 fi
5740 POD2MAN=$ac_cv_path_POD2MAN
5741
5742 if test -n "$POD2MAN"; then
5743   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5744 echo "${ECHO_T}$POD2MAN" >&6
5745 else
5746   echo "$as_me:$LINENO: result: no" >&5
5747 echo "${ECHO_T}no" >&6
5748 fi
5749
5750 # Extract the first word of "runtest", so it can be a program name with args.
5751 set dummy runtest; ac_word=$2
5752 echo "$as_me:$LINENO: checking for $ac_word" >&5
5753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5754 if test "${ac_cv_path_RUNTEST+set}" = set; then
5755   echo $ECHO_N "(cached) $ECHO_C" >&6
5756 else
5757   case $RUNTEST in
5758   [\\/]* | ?:[\\/]*)
5759   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5760   ;;
5761   *)
5762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765   IFS=$as_save_IFS
5766   test -z "$as_dir" && as_dir=.
5767   for ac_exec_ext in '' $ac_executable_extensions; do
5768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771     break 2
5772   fi
5773 done
5774 done
5775
5776   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
5777   ;;
5778 esac
5779 fi
5780 RUNTEST=$ac_cv_path_RUNTEST
5781
5782 if test -n "$RUNTEST"; then
5783   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5784 echo "${ECHO_T}$RUNTEST" >&6
5785 else
5786   echo "$as_me:$LINENO: result: no" >&5
5787 echo "${ECHO_T}no" >&6
5788 fi
5789
5790
5791 no_itcl=true
5792 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5793 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5794
5795 # Check whether --with-tclinclude or --without-tclinclude was given.
5796 if test "${with_tclinclude+set}" = set; then
5797   withval="$with_tclinclude"
5798   with_tclinclude=${withval}
5799 else
5800   with_tclinclude=''
5801 fi;
5802 if test "${ac_cv_path_tclsh+set}" = set; then
5803   echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805
5806 if test x"${with_tclinclude}" != x ; then
5807   if test -f ${with_tclinclude}/tclsh ; then
5808     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5809   elif test -f ${with_tclinclude}/src/tclsh ; then
5810     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5811   else
5812     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5813 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5814    { (exit 1); exit 1; }; }
5815   fi
5816 fi
5817
5818 if test x"${ac_cv_path_tclsh}" = x ; then
5819   echo "$as_me:$LINENO: result: none" >&5
5820 echo "${ECHO_T}none" >&6
5821   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
5822 do
5823   # Extract the first word of "$ac_prog", so it can be a program name with args.
5824 set dummy $ac_prog; ac_word=$2
5825 echo "$as_me:$LINENO: checking for $ac_word" >&5
5826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5827 if test "${ac_cv_path_TCLSH+set}" = set; then
5828   echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830   case $TCLSH in
5831   [\\/]* | ?:[\\/]*)
5832   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5833   ;;
5834   *)
5835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 for as_dir in $PATH
5837 do
5838   IFS=$as_save_IFS
5839   test -z "$as_dir" && as_dir=.
5840   for ac_exec_ext in '' $ac_executable_extensions; do
5841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5842     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5844     break 2
5845   fi
5846 done
5847 done
5848
5849   ;;
5850 esac
5851 fi
5852 TCLSH=$ac_cv_path_TCLSH
5853
5854 if test -n "$TCLSH"; then
5855   echo "$as_me:$LINENO: result: $TCLSH" >&5
5856 echo "${ECHO_T}$TCLSH" >&6
5857 else
5858   echo "$as_me:$LINENO: result: no" >&5
5859 echo "${ECHO_T}no" >&6
5860 fi
5861
5862   test -n "$TCLSH" && break
5863 done
5864
5865   if test x"${TCLSH}" = x ; then
5866     ac_cv_path_tclsh='';
5867   else
5868     ac_cv_path_tclsh="${TCLSH}";
5869   fi
5870 else
5871   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5872 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5873   TCLSH="${ac_cv_path_tclsh}"
5874
5875 fi
5876
5877 fi
5878
5879 # Extract the first word of "zip", so it can be a program name with args.
5880 set dummy zip; ac_word=$2
5881 echo "$as_me:$LINENO: checking for $ac_word" >&5
5882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5883 if test "${ac_cv_path_ZIP+set}" = set; then
5884   echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886   case $ZIP in
5887   [\\/]* | ?:[\\/]*)
5888   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5889   ;;
5890   *)
5891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5893 do
5894   IFS=$as_save_IFS
5895   test -z "$as_dir" && as_dir=.
5896   for ac_exec_ext in '' $ac_executable_extensions; do
5897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900     break 2
5901   fi
5902 done
5903 done
5904
5905   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
5906   ;;
5907 esac
5908 fi
5909 ZIP=$ac_cv_path_ZIP
5910
5911 if test -n "$ZIP"; then
5912   echo "$as_me:$LINENO: result: $ZIP" >&5
5913 echo "${ECHO_T}$ZIP" >&6
5914 else
5915   echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6
5917 fi
5918
5919
5920 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5921 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5922 if test "${llvm_cv_link_use_r+set}" = set; then
5923   echo $ECHO_N "(cached) $ECHO_C" >&6
5924 else
5925    ac_ext=c
5926 ac_cpp='$CPP $CPPFLAGS'
5927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5930
5931   oldcflags="$CFLAGS"
5932   CFLAGS="$CFLAGS -Wl,-R."
5933   cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h.  */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h.  */
5939
5940 int
5941 main ()
5942 {
5943 int main() { return 0; }
5944   ;
5945   return 0;
5946 }
5947 _ACEOF
5948 rm -f conftest.$ac_objext conftest$ac_exeext
5949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5950   (eval $ac_link) 2>conftest.er1
5951   ac_status=$?
5952   grep -v '^ *+' conftest.er1 >conftest.err
5953   rm -f conftest.er1
5954   cat conftest.err >&5
5955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956   (exit $ac_status); } &&
5957          { ac_try='test -z "$ac_c_werror_flag"
5958                          || test ! -s conftest.err'
5959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960   (eval $ac_try) 2>&5
5961   ac_status=$?
5962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); }; } &&
5964          { ac_try='test -s conftest$ac_exeext'
5965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966   (eval $ac_try) 2>&5
5967   ac_status=$?
5968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969   (exit $ac_status); }; }; then
5970   llvm_cv_link_use_r=yes
5971 else
5972   echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5974
5975 llvm_cv_link_use_r=no
5976 fi
5977 rm -f conftest.err conftest.$ac_objext \
5978       conftest$ac_exeext conftest.$ac_ext
5979   CFLAGS="$oldcflags"
5980   ac_ext=c
5981 ac_cpp='$CPP $CPPFLAGS'
5982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5985
5986
5987 fi
5988 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5989 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5990 if test "$llvm_cv_link_use_r" = yes ; then
5991
5992 cat >>confdefs.h <<\_ACEOF
5993 #define HAVE_LINK_R 1
5994 _ACEOF
5995
5996   fi
5997
5998
5999
6000
6001 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6002 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6003 if test "${ac_cv_c_const+set}" = set; then
6004   echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006   cat >conftest.$ac_ext <<_ACEOF
6007 /* confdefs.h.  */
6008 _ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h.  */
6012
6013 int
6014 main ()
6015 {
6016 /* FIXME: Include the comments suggested by Paul. */
6017 #ifndef __cplusplus
6018   /* Ultrix mips cc rejects this.  */
6019   typedef int charset[2];
6020   const charset x;
6021   /* SunOS 4.1.1 cc rejects this.  */
6022   char const *const *ccp;
6023   char **p;
6024   /* NEC SVR4.0.2 mips cc rejects this.  */
6025   struct point {int x, y;};
6026   static struct point const zero = {0,0};
6027   /* AIX XL C 1.02.0.0 rejects this.
6028      It does not let you subtract one const X* pointer from another in
6029      an arm of an if-expression whose if-part is not a constant
6030      expression */
6031   const char *g = "string";
6032   ccp = &g + (g ? g-g : 0);
6033   /* HPUX 7.0 cc rejects these. */
6034   ++ccp;
6035   p = (char**) ccp;
6036   ccp = (char const *const *) p;
6037   { /* SCO 3.2v4 cc rejects this.  */
6038     char *t;
6039     char const *s = 0 ? (char *) 0 : (char const *) 0;
6040
6041     *t++ = 0;
6042   }
6043   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6044     int x[] = {25, 17};
6045     const int *foo = &x[0];
6046     ++foo;
6047   }
6048   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6049     typedef const int *iptr;
6050     iptr p = 0;
6051     ++p;
6052   }
6053   { /* AIX XL C 1.02.0.0 rejects this saying
6054        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6055     struct s { int j; const int *ap[3]; };
6056     struct s *b; b->j = 5;
6057   }
6058   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6059     const int foo = 10;
6060   }
6061 #endif
6062
6063   ;
6064   return 0;
6065 }
6066 _ACEOF
6067 rm -f conftest.$ac_objext
6068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6069   (eval $ac_compile) 2>conftest.er1
6070   ac_status=$?
6071   grep -v '^ *+' conftest.er1 >conftest.err
6072   rm -f conftest.er1
6073   cat conftest.err >&5
6074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075   (exit $ac_status); } &&
6076          { ac_try='test -z "$ac_c_werror_flag"
6077                          || test ! -s conftest.err'
6078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079   (eval $ac_try) 2>&5
6080   ac_status=$?
6081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082   (exit $ac_status); }; } &&
6083          { ac_try='test -s conftest.$ac_objext'
6084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085   (eval $ac_try) 2>&5
6086   ac_status=$?
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); }; }; then
6089   ac_cv_c_const=yes
6090 else
6091   echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6093
6094 ac_cv_c_const=no
6095 fi
6096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6097 fi
6098 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6099 echo "${ECHO_T}$ac_cv_c_const" >&6
6100 if test $ac_cv_c_const = no; then
6101
6102 cat >>confdefs.h <<\_ACEOF
6103 #define const
6104 _ACEOF
6105
6106 fi
6107
6108
6109 echo "$as_me:$LINENO: checking for egrep" >&5
6110 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6111 if test "${ac_cv_prog_egrep+set}" = set; then
6112   echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6115     then ac_cv_prog_egrep='grep -E'
6116     else ac_cv_prog_egrep='egrep'
6117     fi
6118 fi
6119 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6120 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6121  EGREP=$ac_cv_prog_egrep
6122
6123
6124 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6125 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6126 if test "${ac_cv_header_stdc+set}" = set; then
6127   echo $ECHO_N "(cached) $ECHO_C" >&6
6128 else
6129   cat >conftest.$ac_ext <<_ACEOF
6130 /* confdefs.h.  */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h.  */
6135 #include <stdlib.h>
6136 #include <stdarg.h>
6137 #include <string.h>
6138 #include <float.h>
6139
6140 int
6141 main ()
6142 {
6143
6144   ;
6145   return 0;
6146 }
6147 _ACEOF
6148 rm -f conftest.$ac_objext
6149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6150   (eval $ac_compile) 2>conftest.er1
6151   ac_status=$?
6152   grep -v '^ *+' conftest.er1 >conftest.err
6153   rm -f conftest.er1
6154   cat conftest.err >&5
6155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156   (exit $ac_status); } &&
6157          { ac_try='test -z "$ac_c_werror_flag"
6158                          || test ! -s conftest.err'
6159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160   (eval $ac_try) 2>&5
6161   ac_status=$?
6162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163   (exit $ac_status); }; } &&
6164          { ac_try='test -s conftest.$ac_objext'
6165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166   (eval $ac_try) 2>&5
6167   ac_status=$?
6168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169   (exit $ac_status); }; }; then
6170   ac_cv_header_stdc=yes
6171 else
6172   echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6174
6175 ac_cv_header_stdc=no
6176 fi
6177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6178
6179 if test $ac_cv_header_stdc = yes; then
6180   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6181   cat >conftest.$ac_ext <<_ACEOF
6182 /* confdefs.h.  */
6183 _ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h.  */
6187 #include <string.h>
6188
6189 _ACEOF
6190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6191   $EGREP "memchr" >/dev/null 2>&1; then
6192   :
6193 else
6194   ac_cv_header_stdc=no
6195 fi
6196 rm -f conftest*
6197
6198 fi
6199
6200 if test $ac_cv_header_stdc = yes; then
6201   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6202   cat >conftest.$ac_ext <<_ACEOF
6203 /* confdefs.h.  */
6204 _ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h.  */
6208 #include <stdlib.h>
6209
6210 _ACEOF
6211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6212   $EGREP "free" >/dev/null 2>&1; then
6213   :
6214 else
6215   ac_cv_header_stdc=no
6216 fi
6217 rm -f conftest*
6218
6219 fi
6220
6221 if test $ac_cv_header_stdc = yes; then
6222   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6223   if test "$cross_compiling" = yes; then
6224   :
6225 else
6226   cat >conftest.$ac_ext <<_ACEOF
6227 /* confdefs.h.  */
6228 _ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h.  */
6232 #include <ctype.h>
6233 #if ((' ' & 0x0FF) == 0x020)
6234 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6235 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6236 #else
6237 # define ISLOWER(c) \
6238                    (('a' <= (c) && (c) <= 'i') \
6239                      || ('j' <= (c) && (c) <= 'r') \
6240                      || ('s' <= (c) && (c) <= 'z'))
6241 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6242 #endif
6243
6244 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6245 int
6246 main ()
6247 {
6248   int i;
6249   for (i = 0; i < 256; i++)
6250     if (XOR (islower (i), ISLOWER (i))
6251         || toupper (i) != TOUPPER (i))
6252       exit(2);
6253   exit (0);
6254 }
6255 _ACEOF
6256 rm -f conftest$ac_exeext
6257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6258   (eval $ac_link) 2>&5
6259   ac_status=$?
6260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263   (eval $ac_try) 2>&5
6264   ac_status=$?
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); }; }; then
6267   :
6268 else
6269   echo "$as_me: program exited with status $ac_status" >&5
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6272
6273 ( exit $ac_status )
6274 ac_cv_header_stdc=no
6275 fi
6276 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6277 fi
6278 fi
6279 fi
6280 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6281 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6282 if test $ac_cv_header_stdc = yes; then
6283
6284 cat >>confdefs.h <<\_ACEOF
6285 #define STDC_HEADERS 1
6286 _ACEOF
6287
6288 fi
6289
6290
6291
6292
6293
6294
6295 ac_header_dirent=no
6296 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6297   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6298 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6299 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6301   echo $ECHO_N "(cached) $ECHO_C" >&6
6302 else
6303   cat >conftest.$ac_ext <<_ACEOF
6304 /* confdefs.h.  */
6305 _ACEOF
6306 cat confdefs.h >>conftest.$ac_ext
6307 cat >>conftest.$ac_ext <<_ACEOF
6308 /* end confdefs.h.  */
6309 #include <sys/types.h>
6310 #include <$ac_hdr>
6311
6312 int
6313 main ()
6314 {
6315 if ((DIR *) 0)
6316 return 0;
6317   ;
6318   return 0;
6319 }
6320 _ACEOF
6321 rm -f conftest.$ac_objext
6322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6323   (eval $ac_compile) 2>conftest.er1
6324   ac_status=$?
6325   grep -v '^ *+' conftest.er1 >conftest.err
6326   rm -f conftest.er1
6327   cat conftest.err >&5
6328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329   (exit $ac_status); } &&
6330          { ac_try='test -z "$ac_c_werror_flag"
6331                          || test ! -s conftest.err'
6332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333   (eval $ac_try) 2>&5
6334   ac_status=$?
6335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336   (exit $ac_status); }; } &&
6337          { ac_try='test -s conftest.$ac_objext'
6338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339   (eval $ac_try) 2>&5
6340   ac_status=$?
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); }; }; then
6343   eval "$as_ac_Header=yes"
6344 else
6345   echo "$as_me: failed program was:" >&5
6346 sed 's/^/| /' conftest.$ac_ext >&5
6347
6348 eval "$as_ac_Header=no"
6349 fi
6350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6351 fi
6352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6355   cat >>confdefs.h <<_ACEOF
6356 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6357 _ACEOF
6358
6359 ac_header_dirent=$ac_hdr; break
6360 fi
6361
6362 done
6363 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6364 if test $ac_header_dirent = dirent.h; then
6365   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6366 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6367 if test "${ac_cv_search_opendir+set}" = set; then
6368   echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370   ac_func_search_save_LIBS=$LIBS
6371 ac_cv_search_opendir=no
6372 cat >conftest.$ac_ext <<_ACEOF
6373 /* confdefs.h.  */
6374 _ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h.  */
6378
6379 /* Override any gcc2 internal prototype to avoid an error.  */
6380 #ifdef __cplusplus
6381 extern "C"
6382 #endif
6383 /* We use char because int might match the return type of a gcc2
6384    builtin and then its argument prototype would still apply.  */
6385 char opendir ();
6386 int
6387 main ()
6388 {
6389 opendir ();
6390   ;
6391   return 0;
6392 }
6393 _ACEOF
6394 rm -f conftest.$ac_objext conftest$ac_exeext
6395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6396   (eval $ac_link) 2>conftest.er1
6397   ac_status=$?
6398   grep -v '^ *+' conftest.er1 >conftest.err
6399   rm -f conftest.er1
6400   cat conftest.err >&5
6401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402   (exit $ac_status); } &&
6403          { ac_try='test -z "$ac_c_werror_flag"
6404                          || test ! -s conftest.err'
6405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406   (eval $ac_try) 2>&5
6407   ac_status=$?
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); }; } &&
6410          { ac_try='test -s conftest$ac_exeext'
6411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412   (eval $ac_try) 2>&5
6413   ac_status=$?
6414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415   (exit $ac_status); }; }; then
6416   ac_cv_search_opendir="none required"
6417 else
6418   echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6420
6421 fi
6422 rm -f conftest.err conftest.$ac_objext \
6423       conftest$ac_exeext conftest.$ac_ext
6424 if test "$ac_cv_search_opendir" = no; then
6425   for ac_lib in dir; do
6426     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6427     cat >conftest.$ac_ext <<_ACEOF
6428 /* confdefs.h.  */
6429 _ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h.  */
6433
6434 /* Override any gcc2 internal prototype to avoid an error.  */
6435 #ifdef __cplusplus
6436 extern "C"
6437 #endif
6438 /* We use char because int might match the return type of a gcc2
6439    builtin and then its argument prototype would still apply.  */
6440 char opendir ();
6441 int
6442 main ()
6443 {
6444 opendir ();
6445   ;
6446   return 0;
6447 }
6448 _ACEOF
6449 rm -f conftest.$ac_objext conftest$ac_exeext
6450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451   (eval $ac_link) 2>conftest.er1
6452   ac_status=$?
6453   grep -v '^ *+' conftest.er1 >conftest.err
6454   rm -f conftest.er1
6455   cat conftest.err >&5
6456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457   (exit $ac_status); } &&
6458          { ac_try='test -z "$ac_c_werror_flag"
6459                          || test ! -s conftest.err'
6460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461   (eval $ac_try) 2>&5
6462   ac_status=$?
6463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464   (exit $ac_status); }; } &&
6465          { ac_try='test -s conftest$ac_exeext'
6466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467   (eval $ac_try) 2>&5
6468   ac_status=$?
6469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470   (exit $ac_status); }; }; then
6471   ac_cv_search_opendir="-l$ac_lib"
6472 break
6473 else
6474   echo "$as_me: failed program was:" >&5
6475 sed 's/^/| /' conftest.$ac_ext >&5
6476
6477 fi
6478 rm -f conftest.err conftest.$ac_objext \
6479       conftest$ac_exeext conftest.$ac_ext
6480   done
6481 fi
6482 LIBS=$ac_func_search_save_LIBS
6483 fi
6484 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6485 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6486 if test "$ac_cv_search_opendir" != no; then
6487   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6488
6489 fi
6490
6491 else
6492   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6493 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6494 if test "${ac_cv_search_opendir+set}" = set; then
6495   echo $ECHO_N "(cached) $ECHO_C" >&6
6496 else
6497   ac_func_search_save_LIBS=$LIBS
6498 ac_cv_search_opendir=no
6499 cat >conftest.$ac_ext <<_ACEOF
6500 /* confdefs.h.  */
6501 _ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h.  */
6505
6506 /* Override any gcc2 internal prototype to avoid an error.  */
6507 #ifdef __cplusplus
6508 extern "C"
6509 #endif
6510 /* We use char because int might match the return type of a gcc2
6511    builtin and then its argument prototype would still apply.  */
6512 char opendir ();
6513 int
6514 main ()
6515 {
6516 opendir ();
6517   ;
6518   return 0;
6519 }
6520 _ACEOF
6521 rm -f conftest.$ac_objext conftest$ac_exeext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6523   (eval $ac_link) 2>conftest.er1
6524   ac_status=$?
6525   grep -v '^ *+' conftest.er1 >conftest.err
6526   rm -f conftest.er1
6527   cat conftest.err >&5
6528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529   (exit $ac_status); } &&
6530          { ac_try='test -z "$ac_c_werror_flag"
6531                          || test ! -s conftest.err'
6532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533   (eval $ac_try) 2>&5
6534   ac_status=$?
6535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536   (exit $ac_status); }; } &&
6537          { ac_try='test -s 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   ac_cv_search_opendir="none required"
6544 else
6545   echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6547
6548 fi
6549 rm -f conftest.err conftest.$ac_objext \
6550       conftest$ac_exeext conftest.$ac_ext
6551 if test "$ac_cv_search_opendir" = no; then
6552   for ac_lib in x; do
6553     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6554     cat >conftest.$ac_ext <<_ACEOF
6555 /* confdefs.h.  */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h.  */
6560
6561 /* Override any gcc2 internal prototype to avoid an error.  */
6562 #ifdef __cplusplus
6563 extern "C"
6564 #endif
6565 /* We use char because int might match the return type of a gcc2
6566    builtin and then its argument prototype would still apply.  */
6567 char opendir ();
6568 int
6569 main ()
6570 {
6571 opendir ();
6572   ;
6573   return 0;
6574 }
6575 _ACEOF
6576 rm -f conftest.$ac_objext conftest$ac_exeext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6578   (eval $ac_link) 2>conftest.er1
6579   ac_status=$?
6580   grep -v '^ *+' conftest.er1 >conftest.err
6581   rm -f conftest.er1
6582   cat conftest.err >&5
6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584   (exit $ac_status); } &&
6585          { ac_try='test -z "$ac_c_werror_flag"
6586                          || test ! -s conftest.err'
6587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588   (eval $ac_try) 2>&5
6589   ac_status=$?
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); }; } &&
6592          { ac_try='test -s conftest$ac_exeext'
6593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594   (eval $ac_try) 2>&5
6595   ac_status=$?
6596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597   (exit $ac_status); }; }; then
6598   ac_cv_search_opendir="-l$ac_lib"
6599 break
6600 else
6601   echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6603
6604 fi
6605 rm -f conftest.err conftest.$ac_objext \
6606       conftest$ac_exeext conftest.$ac_ext
6607   done
6608 fi
6609 LIBS=$ac_func_search_save_LIBS
6610 fi
6611 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6612 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6613 if test "$ac_cv_search_opendir" != no; then
6614   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6615
6616 fi
6617
6618 fi
6619
6620 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6631                   inttypes.h stdint.h unistd.h
6632 do
6633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6634 echo "$as_me:$LINENO: checking for $ac_header" >&5
6635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6637   echo $ECHO_N "(cached) $ECHO_C" >&6
6638 else
6639   cat >conftest.$ac_ext <<_ACEOF
6640 /* confdefs.h.  */
6641 _ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h.  */
6645 $ac_includes_default
6646
6647 #include <$ac_header>
6648 _ACEOF
6649 rm -f conftest.$ac_objext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6651   (eval $ac_compile) 2>conftest.er1
6652   ac_status=$?
6653   grep -v '^ *+' conftest.er1 >conftest.err
6654   rm -f conftest.er1
6655   cat conftest.err >&5
6656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657   (exit $ac_status); } &&
6658          { ac_try='test -z "$ac_c_werror_flag"
6659                          || test ! -s conftest.err'
6660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661   (eval $ac_try) 2>&5
6662   ac_status=$?
6663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664   (exit $ac_status); }; } &&
6665          { ac_try='test -s conftest.$ac_objext'
6666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667   (eval $ac_try) 2>&5
6668   ac_status=$?
6669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670   (exit $ac_status); }; }; then
6671   eval "$as_ac_Header=yes"
6672 else
6673   echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6675
6676 eval "$as_ac_Header=no"
6677 fi
6678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6679 fi
6680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6683   cat >>confdefs.h <<_ACEOF
6684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6685 _ACEOF
6686
6687 fi
6688
6689 done
6690
6691
6692
6693 for ac_header in dlfcn.h
6694 do
6695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6697   echo "$as_me:$LINENO: checking for $ac_header" >&5
6698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6700   echo $ECHO_N "(cached) $ECHO_C" >&6
6701 fi
6702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6704 else
6705   # Is the header compilable?
6706 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6708 cat >conftest.$ac_ext <<_ACEOF
6709 /* confdefs.h.  */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h.  */
6714 $ac_includes_default
6715 #include <$ac_header>
6716 _ACEOF
6717 rm -f conftest.$ac_objext
6718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6719   (eval $ac_compile) 2>conftest.er1
6720   ac_status=$?
6721   grep -v '^ *+' conftest.er1 >conftest.err
6722   rm -f conftest.er1
6723   cat conftest.err >&5
6724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725   (exit $ac_status); } &&
6726          { ac_try='test -z "$ac_c_werror_flag"
6727                          || test ! -s conftest.err'
6728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729   (eval $ac_try) 2>&5
6730   ac_status=$?
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); }; } &&
6733          { ac_try='test -s conftest.$ac_objext'
6734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735   (eval $ac_try) 2>&5
6736   ac_status=$?
6737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738   (exit $ac_status); }; }; then
6739   ac_header_compiler=yes
6740 else
6741   echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6743
6744 ac_header_compiler=no
6745 fi
6746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6748 echo "${ECHO_T}$ac_header_compiler" >&6
6749
6750 # Is the header present?
6751 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6753 cat >conftest.$ac_ext <<_ACEOF
6754 /* confdefs.h.  */
6755 _ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h.  */
6759 #include <$ac_header>
6760 _ACEOF
6761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6762   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6763   ac_status=$?
6764   grep -v '^ *+' conftest.er1 >conftest.err
6765   rm -f conftest.er1
6766   cat conftest.err >&5
6767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768   (exit $ac_status); } >/dev/null; then
6769   if test -s conftest.err; then
6770     ac_cpp_err=$ac_c_preproc_warn_flag
6771     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6772   else
6773     ac_cpp_err=
6774   fi
6775 else
6776   ac_cpp_err=yes
6777 fi
6778 if test -z "$ac_cpp_err"; then
6779   ac_header_preproc=yes
6780 else
6781   echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6783
6784   ac_header_preproc=no
6785 fi
6786 rm -f conftest.err conftest.$ac_ext
6787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6788 echo "${ECHO_T}$ac_header_preproc" >&6
6789
6790 # So?  What about this header?
6791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6792   yes:no: )
6793     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6795     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6797     ac_header_preproc=yes
6798     ;;
6799   no:yes:* )
6800     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6802     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6803 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6804     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6806     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6807 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6810     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6812     (
6813       cat <<\_ASBOX
6814 ## ----------------------------------- ##
6815 ## Report this to llvmbugs@cs.uiuc.edu ##
6816 ## ----------------------------------- ##
6817 _ASBOX
6818     ) |
6819       sed "s/^/$as_me: WARNING:     /" >&2
6820     ;;
6821 esac
6822 echo "$as_me:$LINENO: checking for $ac_header" >&5
6823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6825   echo $ECHO_N "(cached) $ECHO_C" >&6
6826 else
6827   eval "$as_ac_Header=\$ac_header_preproc"
6828 fi
6829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6831
6832 fi
6833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6834   cat >>confdefs.h <<_ACEOF
6835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6836 _ACEOF
6837
6838 fi
6839
6840 done
6841
6842 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6843 if test "${enable_ltdl_install+set}" = set; then
6844   enableval="$enable_ltdl_install"
6845
6846 fi;
6847
6848
6849
6850 if test x"${enable_ltdl_install-no}" != xno; then
6851   INSTALL_LTDL_TRUE=
6852   INSTALL_LTDL_FALSE='#'
6853 else
6854   INSTALL_LTDL_TRUE='#'
6855   INSTALL_LTDL_FALSE=
6856 fi
6857
6858
6859
6860 if test x"${enable_ltdl_convenience-no}" != xno; then
6861   CONVENIENCE_LTDL_TRUE=
6862   CONVENIENCE_LTDL_FALSE='#'
6863 else
6864   CONVENIENCE_LTDL_TRUE='#'
6865   CONVENIENCE_LTDL_FALSE=
6866 fi
6867
6868
6869 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6870 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6871 library_names_spec=
6872 libname_spec='lib$name'
6873 soname_spec=
6874 shrext_cmds=".so"
6875 postinstall_cmds=
6876 postuninstall_cmds=
6877 finish_cmds=
6878 finish_eval=
6879 shlibpath_var=
6880 shlibpath_overrides_runpath=unknown
6881 version_type=none
6882 dynamic_linker="$host_os ld.so"
6883 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6884 if test "$GCC" = yes; then
6885   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6886   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6887     # if the path contains ";" then we assume it to be the separator
6888     # otherwise default to the standard path separator (i.e. ":") - it is
6889     # assumed that no part of a normal pathname contains ";" but that should
6890     # okay in the real world where ";" in dirpaths is itself problematic.
6891     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6892   else
6893     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6894   fi
6895 else
6896   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6897 fi
6898 need_lib_prefix=unknown
6899 hardcode_into_libs=no
6900
6901 # when you set need_version to no, make sure it does not cause -set_version
6902 # flags to be left without arguments
6903 need_version=unknown
6904
6905 case $host_os in
6906 aix3*)
6907   version_type=linux
6908   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6909   shlibpath_var=LIBPATH
6910
6911   # AIX 3 has no versioning support, so we append a major version to the name.
6912   soname_spec='${libname}${release}${shared_ext}$major'
6913   ;;
6914
6915 aix4* | aix5*)
6916   version_type=linux
6917   need_lib_prefix=no
6918   need_version=no
6919   hardcode_into_libs=yes
6920   if test "$host_cpu" = ia64; then
6921     # AIX 5 supports IA64
6922     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6923     shlibpath_var=LD_LIBRARY_PATH
6924   else
6925     # With GCC up to 2.95.x, collect2 would create an import file
6926     # for dependence libraries.  The import file would start with
6927     # the line `#! .'.  This would cause the generated library to
6928     # depend on `.', always an invalid library.  This was fixed in
6929     # development snapshots of GCC prior to 3.0.
6930     case $host_os in
6931       aix4 | aix4.[01] | aix4.[01].*)
6932       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6933            echo ' yes '
6934            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6935         :
6936       else
6937         can_build_shared=no
6938       fi
6939       ;;
6940     esac
6941     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6942     # soname into executable. Probably we can add versioning support to
6943     # collect2, so additional links can be useful in future.
6944     if test "$aix_use_runtimelinking" = yes; then
6945       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6946       # instead of lib<name>.a to let people know that these are not
6947       # typical AIX shared libraries.
6948       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6949     else
6950       # We preserve .a as extension for shared libraries through AIX4.2
6951       # and later when we are not doing run time linking.
6952       library_names_spec='${libname}${release}.a $libname.a'
6953       soname_spec='${libname}${release}${shared_ext}$major'
6954     fi
6955     shlibpath_var=LIBPATH
6956   fi
6957   ;;
6958
6959 amigaos*)
6960   library_names_spec='$libname.ixlibrary $libname.a'
6961   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6962   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'
6963   ;;
6964
6965 beos*)
6966   library_names_spec='${libname}${shared_ext}'
6967   dynamic_linker="$host_os ld.so"
6968   shlibpath_var=LIBRARY_PATH
6969   ;;
6970
6971 bsdi[45]*)
6972   version_type=linux
6973   need_version=no
6974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6975   soname_spec='${libname}${release}${shared_ext}$major'
6976   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6977   shlibpath_var=LD_LIBRARY_PATH
6978   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6979   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6980   # the default ld.so.conf also contains /usr/contrib/lib and
6981   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6982   # libtool to hard-code these into programs
6983   ;;
6984
6985 cygwin* | mingw* | pw32*)
6986   version_type=windows
6987   shrext_cmds=".dll"
6988   need_version=no
6989   need_lib_prefix=no
6990
6991   case $GCC,$host_os in
6992   yes,cygwin* | yes,mingw* | yes,pw32*)
6993     library_names_spec='$libname.dll.a'
6994     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6995     postinstall_cmds='base_file=`basename \${file}`~
6996       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6997       dldir=$destdir/`dirname \$dlpath`~
6998       test -d \$dldir || mkdir -p \$dldir~
6999       $install_prog $dir/$dlname \$dldir/$dlname'
7000     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7001       dlpath=$dir/\$dldll~
7002        $rm \$dlpath'
7003     shlibpath_overrides_runpath=yes
7004
7005     case $host_os in
7006     cygwin*)
7007       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7008       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7009       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7010       ;;
7011     mingw*)
7012       # MinGW DLLs use traditional 'lib' prefix
7013       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7014       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7015       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7016         # It is most probably a Windows format PATH printed by
7017         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7018         # path with ; separators, and with drive letters. We can handle the
7019         # drive letters (cygwin fileutils understands them), so leave them,
7020         # especially as we might pass files found there to a mingw objdump,
7021         # which wouldn't understand a cygwinified path. Ahh.
7022         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7023       else
7024         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7025       fi
7026       ;;
7027     pw32*)
7028       # pw32 DLLs use 'pw' prefix rather than 'lib'
7029       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7030       ;;
7031     esac
7032     ;;
7033
7034   *)
7035     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7036     ;;
7037   esac
7038   dynamic_linker='Win32 ld.exe'
7039   # FIXME: first we should search . and the directory the executable is in
7040   shlibpath_var=PATH
7041   ;;
7042
7043 darwin* | rhapsody*)
7044   dynamic_linker="$host_os dyld"
7045   version_type=darwin
7046   need_lib_prefix=no
7047   need_version=no
7048   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7049   soname_spec='${libname}${release}${major}$shared_ext'
7050   shlibpath_overrides_runpath=yes
7051   shlibpath_var=DYLD_LIBRARY_PATH
7052   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7053   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7054   if test "$GCC" = yes; then
7055     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"`
7056   else
7057     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7058   fi
7059   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7060   ;;
7061
7062 dgux*)
7063   version_type=linux
7064   need_lib_prefix=no
7065   need_version=no
7066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7067   soname_spec='${libname}${release}${shared_ext}$major'
7068   shlibpath_var=LD_LIBRARY_PATH
7069   ;;
7070
7071 freebsd1*)
7072   dynamic_linker=no
7073   ;;
7074
7075 kfreebsd*-gnu)
7076   version_type=linux
7077   need_lib_prefix=no
7078   need_version=no
7079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7080   soname_spec='${libname}${release}${shared_ext}$major'
7081   shlibpath_var=LD_LIBRARY_PATH
7082   shlibpath_overrides_runpath=no
7083   hardcode_into_libs=yes
7084   dynamic_linker='GNU ld.so'
7085   ;;
7086
7087 freebsd*)
7088   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7089   version_type=freebsd-$objformat
7090   case $version_type in
7091     freebsd-elf*)
7092       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7093       need_version=no
7094       need_lib_prefix=no
7095       ;;
7096     freebsd-*)
7097       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7098       need_version=yes
7099       ;;
7100   esac
7101   shlibpath_var=LD_LIBRARY_PATH
7102   case $host_os in
7103   freebsd2*)
7104     shlibpath_overrides_runpath=yes
7105     ;;
7106   freebsd3.01* | freebsdelf3.01*)
7107     shlibpath_overrides_runpath=yes
7108     hardcode_into_libs=yes
7109     ;;
7110   *) # from 3.2 on
7111     shlibpath_overrides_runpath=no
7112     hardcode_into_libs=yes
7113     ;;
7114   esac
7115   ;;
7116
7117 gnu*)
7118   version_type=linux
7119   need_lib_prefix=no
7120   need_version=no
7121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7122   soname_spec='${libname}${release}${shared_ext}$major'
7123   shlibpath_var=LD_LIBRARY_PATH
7124   hardcode_into_libs=yes
7125   ;;
7126
7127 hpux9* | hpux10* | hpux11*)
7128   # Give a soname corresponding to the major version so that dld.sl refuses to
7129   # link against other versions.
7130   version_type=sunos
7131   need_lib_prefix=no
7132   need_version=no
7133   case "$host_cpu" in
7134   ia64*)
7135     shrext_cmds='.so'
7136     hardcode_into_libs=yes
7137     dynamic_linker="$host_os dld.so"
7138     shlibpath_var=LD_LIBRARY_PATH
7139     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7140     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7141     soname_spec='${libname}${release}${shared_ext}$major'
7142     if test "X$HPUX_IA64_MODE" = X32; then
7143       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7144     else
7145       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7146     fi
7147     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7148     ;;
7149    hppa*64*)
7150      shrext_cmds='.sl'
7151      hardcode_into_libs=yes
7152      dynamic_linker="$host_os dld.sl"
7153      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7154      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7155      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7156      soname_spec='${libname}${release}${shared_ext}$major'
7157      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7158      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7159      ;;
7160    *)
7161     shrext_cmds='.sl'
7162     dynamic_linker="$host_os dld.sl"
7163     shlibpath_var=SHLIB_PATH
7164     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7165     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7166     soname_spec='${libname}${release}${shared_ext}$major'
7167     ;;
7168   esac
7169   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7170   postinstall_cmds='chmod 555 $lib'
7171   ;;
7172
7173 irix5* | irix6* | nonstopux*)
7174   case $host_os in
7175     nonstopux*) version_type=nonstopux ;;
7176     *)
7177         if test "$lt_cv_prog_gnu_ld" = yes; then
7178                 version_type=linux
7179         else
7180                 version_type=irix
7181         fi ;;
7182   esac
7183   need_lib_prefix=no
7184   need_version=no
7185   soname_spec='${libname}${release}${shared_ext}$major'
7186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7187   case $host_os in
7188   irix5* | nonstopux*)
7189     libsuff= shlibsuff=
7190     ;;
7191   *)
7192     case $LD in # libtool.m4 will add one of these switches to LD
7193     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7194       libsuff= shlibsuff= libmagic=32-bit;;
7195     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7196       libsuff=32 shlibsuff=N32 libmagic=N32;;
7197     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7198       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7199     *) libsuff= shlibsuff= libmagic=never-match;;
7200     esac
7201     ;;
7202   esac
7203   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7204   shlibpath_overrides_runpath=no
7205   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7206   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7207   hardcode_into_libs=yes
7208   ;;
7209
7210 # No shared lib support for Linux oldld, aout, or coff.
7211 linux*oldld* | linux*aout* | linux*coff*)
7212   dynamic_linker=no
7213   ;;
7214
7215 # This must be Linux ELF.
7216 linux*)
7217   version_type=linux
7218   need_lib_prefix=no
7219   need_version=no
7220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7221   soname_spec='${libname}${release}${shared_ext}$major'
7222   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7223   shlibpath_var=LD_LIBRARY_PATH
7224   shlibpath_overrides_runpath=no
7225   # This implies no fast_install, which is unacceptable.
7226   # Some rework will be needed to allow for fast_install
7227   # before this can be enabled.
7228   hardcode_into_libs=yes
7229
7230   # Append ld.so.conf contents to the search path
7231   if test -f /etc/ld.so.conf; then
7232     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7233     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7234   fi
7235
7236   # We used to test for /lib/ld.so.1 and disable shared libraries on
7237   # powerpc, because MkLinux only supported shared libraries with the
7238   # GNU dynamic linker.  Since this was broken with cross compilers,
7239   # most powerpc-linux boxes support dynamic linking these days and
7240   # people can always --disable-shared, the test was removed, and we
7241   # assume the GNU/Linux dynamic linker is in use.
7242   dynamic_linker='GNU/Linux ld.so'
7243   ;;
7244
7245 knetbsd*-gnu)
7246   version_type=linux
7247   need_lib_prefix=no
7248   need_version=no
7249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7250   soname_spec='${libname}${release}${shared_ext}$major'
7251   shlibpath_var=LD_LIBRARY_PATH
7252   shlibpath_overrides_runpath=no
7253   hardcode_into_libs=yes
7254   dynamic_linker='GNU ld.so'
7255   ;;
7256
7257 netbsd*)
7258   version_type=sunos
7259   need_lib_prefix=no
7260   need_version=no
7261   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7262     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7263     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7264     dynamic_linker='NetBSD (a.out) ld.so'
7265   else
7266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7267     soname_spec='${libname}${release}${shared_ext}$major'
7268     dynamic_linker='NetBSD ld.elf_so'
7269   fi
7270   shlibpath_var=LD_LIBRARY_PATH
7271   shlibpath_overrides_runpath=yes
7272   hardcode_into_libs=yes
7273   ;;
7274
7275 newsos6)
7276   version_type=linux
7277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7278   shlibpath_var=LD_LIBRARY_PATH
7279   shlibpath_overrides_runpath=yes
7280   ;;
7281
7282 nto-qnx*)
7283   version_type=linux
7284   need_lib_prefix=no
7285   need_version=no
7286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7287   soname_spec='${libname}${release}${shared_ext}$major'
7288   shlibpath_var=LD_LIBRARY_PATH
7289   shlibpath_overrides_runpath=yes
7290   ;;
7291
7292 openbsd*)
7293   version_type=sunos
7294   need_lib_prefix=no
7295   need_version=no
7296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7297   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7298   shlibpath_var=LD_LIBRARY_PATH
7299   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7300     case $host_os in
7301       openbsd2.[89] | openbsd2.[89].*)
7302         shlibpath_overrides_runpath=no
7303         ;;
7304       *)
7305         shlibpath_overrides_runpath=yes
7306         ;;
7307       esac
7308   else
7309     shlibpath_overrides_runpath=yes
7310   fi
7311   ;;
7312
7313 os2*)
7314   libname_spec='$name'
7315   shrext_cmds=".dll"
7316   need_lib_prefix=no
7317   library_names_spec='$libname${shared_ext} $libname.a'
7318   dynamic_linker='OS/2 ld.exe'
7319   shlibpath_var=LIBPATH
7320   ;;
7321
7322 osf3* | osf4* | osf5*)
7323   version_type=osf
7324   need_lib_prefix=no
7325   need_version=no
7326   soname_spec='${libname}${release}${shared_ext}$major'
7327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7328   shlibpath_var=LD_LIBRARY_PATH
7329   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7330   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7331   ;;
7332
7333 sco3.2v5*)
7334   version_type=osf
7335   soname_spec='${libname}${release}${shared_ext}$major'
7336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7337   shlibpath_var=LD_LIBRARY_PATH
7338   ;;
7339
7340 solaris*)
7341   version_type=linux
7342   need_lib_prefix=no
7343   need_version=no
7344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7345   soname_spec='${libname}${release}${shared_ext}$major'
7346   shlibpath_var=LD_LIBRARY_PATH
7347   shlibpath_overrides_runpath=yes
7348   hardcode_into_libs=yes
7349   # ldd complains unless libraries are executable
7350   postinstall_cmds='chmod +x $lib'
7351   ;;
7352
7353 sunos4*)
7354   version_type=sunos
7355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7356   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7357   shlibpath_var=LD_LIBRARY_PATH
7358   shlibpath_overrides_runpath=yes
7359   if test "$with_gnu_ld" = yes; then
7360     need_lib_prefix=no
7361   fi
7362   need_version=yes
7363   ;;
7364
7365 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7366   version_type=linux
7367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7368   soname_spec='${libname}${release}${shared_ext}$major'
7369   shlibpath_var=LD_LIBRARY_PATH
7370   case $host_vendor in
7371     sni)
7372       shlibpath_overrides_runpath=no
7373       need_lib_prefix=no
7374       export_dynamic_flag_spec='${wl}-Blargedynsym'
7375       runpath_var=LD_RUN_PATH
7376       ;;
7377     siemens)
7378       need_lib_prefix=no
7379       ;;
7380     motorola)
7381       need_lib_prefix=no
7382       need_version=no
7383       shlibpath_overrides_runpath=no
7384       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7385       ;;
7386   esac
7387   ;;
7388
7389 sysv4*MP*)
7390   if test -d /usr/nec ;then
7391     version_type=linux
7392     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7393     soname_spec='$libname${shared_ext}.$major'
7394     shlibpath_var=LD_LIBRARY_PATH
7395   fi
7396   ;;
7397
7398 uts4*)
7399   version_type=linux
7400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7401   soname_spec='${libname}${release}${shared_ext}$major'
7402   shlibpath_var=LD_LIBRARY_PATH
7403   ;;
7404
7405 *)
7406   dynamic_linker=no
7407   ;;
7408 esac
7409 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7410 echo "${ECHO_T}$dynamic_linker" >&6
7411 test "$dynamic_linker" = no && can_build_shared=no
7412
7413
7414 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7415 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7416 if test "${libltdl_cv_shlibext+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419
7420 module=yes
7421 eval libltdl_cv_shlibext=$shrext_cmds
7422
7423 fi
7424 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7425 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7426 if test -n "$libltdl_cv_shlibext"; then
7427
7428 cat >>confdefs.h <<_ACEOF
7429 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7430 _ACEOF
7431
7432 fi
7433
7434
7435 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7436 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7437 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7438   echo $ECHO_N "(cached) $ECHO_C" >&6
7439 else
7440   libltdl_cv_shlibpath_var="$shlibpath_var"
7441 fi
7442 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7443 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7444 if test -n "$libltdl_cv_shlibpath_var"; then
7445
7446 cat >>confdefs.h <<_ACEOF
7447 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7448 _ACEOF
7449
7450 fi
7451
7452
7453 echo "$as_me:$LINENO: checking for the default library search path" >&5
7454 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7455 if test "${libltdl_cv_sys_search_path+set}" = set; then
7456   echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7459 fi
7460 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7461 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7462 if test -n "$libltdl_cv_sys_search_path"; then
7463   sys_search_path=
7464   for dir in $libltdl_cv_sys_search_path; do
7465     if test -z "$sys_search_path"; then
7466       sys_search_path="$dir"
7467     else
7468       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7469     fi
7470   done
7471
7472 cat >>confdefs.h <<_ACEOF
7473 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7474 _ACEOF
7475
7476 fi
7477
7478 echo "$as_me:$LINENO: checking for objdir" >&5
7479 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7480 if test "${libltdl_cv_objdir+set}" = set; then
7481   echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483   libltdl_cv_objdir="$objdir"
7484   if test -n "$objdir"; then
7485     :
7486   else
7487     rm -f .libs 2>/dev/null
7488     mkdir .libs 2>/dev/null
7489     if test -d .libs; then
7490       libltdl_cv_objdir=.libs
7491     else
7492       # MS-DOS does not allow filenames that begin with a dot.
7493       libltdl_cv_objdir=_libs
7494     fi
7495   rmdir .libs 2>/dev/null
7496   fi
7497
7498 fi
7499 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7500 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7501
7502 cat >>confdefs.h <<_ACEOF
7503 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7504 _ACEOF
7505
7506
7507 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7508 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7509 if test "${lt_cv_path_NM+set}" = set; then
7510   echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512   if test -n "$NM"; then
7513   # Let the user override the test.
7514   lt_cv_path_NM="$NM"
7515 else
7516   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7517   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7518     IFS="$lt_save_ifs"
7519     test -z "$ac_dir" && ac_dir=.
7520     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7521     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7522       # Check to see if the nm accepts a BSD-compat flag.
7523       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7524       #   nm: unknown option "B" ignored
7525       # Tru64's nm complains that /dev/null is an invalid object file
7526       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7527       */dev/null* | *'Invalid file or object type'*)
7528         lt_cv_path_NM="$tmp_nm -B"
7529         break
7530         ;;
7531       *)
7532         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7533         */dev/null*)
7534           lt_cv_path_NM="$tmp_nm -p"
7535           break
7536           ;;
7537         *)
7538           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7539           continue # so that we can try to find one that supports BSD flags
7540           ;;
7541         esac
7542       esac
7543     fi
7544   done
7545   IFS="$lt_save_ifs"
7546   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7547 fi
7548 fi
7549 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7550 echo "${ECHO_T}$lt_cv_path_NM" >&6
7551 NM="$lt_cv_path_NM"
7552
7553
7554
7555
7556
7557 # Check for command to grab the raw symbol name followed by C symbol from nm.
7558 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7559 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7560 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7561   echo $ECHO_N "(cached) $ECHO_C" >&6
7562 else
7563
7564 # These are sane defaults that work on at least a few old systems.
7565 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7566
7567 # Character class describing NM global symbol codes.
7568 symcode='[BCDEGRST]'
7569
7570 # Regexp to match symbols that can be accessed directly from C.
7571 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7572
7573 # Transform the above into a raw symbol and a C symbol.
7574 symxfrm='\1 \2\3 \3'
7575
7576 # Transform an extracted symbol line into a proper C declaration
7577 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7578
7579 # Transform an extracted symbol line into symbol name and symbol address
7580 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'"
7581
7582 # Define system-specific variables.
7583 case $host_os in
7584 aix*)
7585   symcode='[BCDT]'
7586   ;;
7587 cygwin* | mingw* | pw32*)
7588   symcode='[ABCDGISTW]'
7589   ;;
7590 hpux*) # Its linker distinguishes data from code symbols
7591   if test "$host_cpu" = ia64; then
7592     symcode='[ABCDEGRST]'
7593   fi
7594   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7595   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'"
7596   ;;
7597 linux*)
7598   if test "$host_cpu" = ia64; then
7599     symcode='[ABCDGIRSTW]'
7600     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7601     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'"
7602   fi
7603   ;;
7604 irix* | nonstopux*)
7605   symcode='[BCDEGRST]'
7606   ;;
7607 osf*)
7608   symcode='[BCDEGQRST]'
7609   ;;
7610 solaris* | sysv5*)
7611   symcode='[BDRT]'
7612   ;;
7613 sysv4)
7614   symcode='[DFNSTU]'
7615   ;;
7616 esac
7617
7618 # Handle CRLF in mingw tool chain
7619 opt_cr=
7620 case $build_os in
7621 mingw*)
7622   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7623   ;;
7624 esac
7625
7626 # If we're using GNU nm, then use its standard symbol codes.
7627 case `$NM -V 2>&1` in
7628 *GNU* | *'with BFD'*)
7629   symcode='[ABCDGIRSTW]' ;;
7630 esac
7631
7632 # Try without a prefix undercore, then with it.
7633 for ac_symprfx in "" "_"; do
7634
7635   # Write the raw and C identifiers.
7636   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7637
7638   # Check to see that the pipe works correctly.
7639   pipe_works=no
7640
7641   rm -f conftest*
7642   cat > conftest.$ac_ext <<EOF
7643 #ifdef __cplusplus
7644 extern "C" {
7645 #endif
7646 char nm_test_var;
7647 void nm_test_func(){}
7648 #ifdef __cplusplus
7649 }
7650 #endif
7651 int main(){nm_test_var='a';nm_test_func();return(0);}
7652 EOF
7653
7654   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7655   (eval $ac_compile) 2>&5
7656   ac_status=$?
7657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658   (exit $ac_status); }; then
7659     # Now try to grab the symbols.
7660     nlist=conftest.nm
7661     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7662   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7663   ac_status=$?
7664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665   (exit $ac_status); } && test -s "$nlist"; then
7666       # Try sorting and uniquifying the output.
7667       if sort "$nlist" | uniq > "$nlist"T; then
7668         mv -f "$nlist"T "$nlist"
7669       else
7670         rm -f "$nlist"T
7671       fi
7672
7673       # Make sure that we snagged all the symbols we need.
7674       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7675         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7676           cat <<EOF > conftest.$ac_ext
7677 #ifdef __cplusplus
7678 extern "C" {
7679 #endif
7680
7681 EOF
7682           # Now generate the symbol file.
7683           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7684
7685           cat <<EOF >> conftest.$ac_ext
7686 #if defined (__STDC__) && __STDC__
7687 # define lt_ptr_t void *
7688 #else
7689 # define lt_ptr_t char *
7690 # define const
7691 #endif
7692
7693 /* The mapping between symbol names and symbols. */
7694 const struct {
7695   const char *name;
7696   lt_ptr_t address;
7697 }
7698 lt_preloaded_symbols[] =
7699 {
7700 EOF
7701           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7702           cat <<\EOF >> conftest.$ac_ext
7703   {0, (lt_ptr_t) 0}
7704 };
7705
7706 #ifdef __cplusplus
7707 }
7708 #endif
7709 EOF
7710           # Now try linking the two files.
7711           mv conftest.$ac_objext conftstm.$ac_objext
7712           lt_save_LIBS="$LIBS"
7713           lt_save_CFLAGS="$CFLAGS"
7714           LIBS="conftstm.$ac_objext"
7715           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7716           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7717   (eval $ac_link) 2>&5
7718   ac_status=$?
7719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7721             pipe_works=yes
7722           fi
7723           LIBS="$lt_save_LIBS"
7724           CFLAGS="$lt_save_CFLAGS"
7725         else
7726           echo "cannot find nm_test_func in $nlist" >&5
7727         fi
7728       else
7729         echo "cannot find nm_test_var in $nlist" >&5
7730       fi
7731     else
7732       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7733     fi
7734   else
7735     echo "$progname: failed program was:" >&5
7736     cat conftest.$ac_ext >&5
7737   fi
7738   rm -f conftest* conftst*
7739
7740   # Do not use the global_symbol_pipe unless it works.
7741   if test "$pipe_works" = yes; then
7742     break
7743   else
7744     lt_cv_sys_global_symbol_pipe=
7745   fi
7746 done
7747
7748 fi
7749
7750 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7751   lt_cv_sys_global_symbol_to_cdecl=
7752 fi
7753 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7754   echo "$as_me:$LINENO: result: failed" >&5
7755 echo "${ECHO_T}failed" >&6
7756 else
7757   echo "$as_me:$LINENO: result: ok" >&5
7758 echo "${ECHO_T}ok" >&6
7759 fi
7760
7761
7762 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7763 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7764 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7765   echo $ECHO_N "(cached) $ECHO_C" >&6
7766 else
7767   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7768     libltdl_cv_preloaded_symbols=yes
7769   else
7770     libltdl_cv_preloaded_symbols=no
7771   fi
7772
7773 fi
7774 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7775 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7776 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7777
7778 cat >>confdefs.h <<\_ACEOF
7779 #define HAVE_PRELOADED_SYMBOLS 1
7780 _ACEOF
7781
7782 fi
7783
7784 LIBADD_DL=
7785
7786 ac_ext=c
7787 ac_cpp='$CPP $CPPFLAGS'
7788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7791
7792
7793 echo "$as_me:$LINENO: checking for shl_load" >&5
7794 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7795 if test "${ac_cv_func_shl_load+set}" = set; then
7796   echo $ECHO_N "(cached) $ECHO_C" >&6
7797 else
7798   cat >conftest.$ac_ext <<_ACEOF
7799 /* confdefs.h.  */
7800 _ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h.  */
7804 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7806 #define shl_load innocuous_shl_load
7807
7808 /* System header to define __stub macros and hopefully few prototypes,
7809     which can conflict with char shl_load (); below.
7810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7811     <limits.h> exists even on freestanding compilers.  */
7812
7813 #ifdef __STDC__
7814 # include <limits.h>
7815 #else
7816 # include <assert.h>
7817 #endif
7818
7819 #undef shl_load
7820
7821 /* Override any gcc2 internal prototype to avoid an error.  */
7822 #ifdef __cplusplus
7823 extern "C"
7824 {
7825 #endif
7826 /* We use char because int might match the return type of a gcc2
7827    builtin and then its argument prototype would still apply.  */
7828 char shl_load ();
7829 /* The GNU C library defines this for functions which it implements
7830     to always fail with ENOSYS.  Some functions are actually named
7831     something starting with __ and the normal name is an alias.  */
7832 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7833 choke me
7834 #else
7835 char (*f) () = shl_load;
7836 #endif
7837 #ifdef __cplusplus
7838 }
7839 #endif
7840
7841 int
7842 main ()
7843 {
7844 return f != shl_load;
7845   ;
7846   return 0;
7847 }
7848 _ACEOF
7849 rm -f conftest.$ac_objext conftest$ac_exeext
7850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7851   (eval $ac_link) 2>conftest.er1
7852   ac_status=$?
7853   grep -v '^ *+' conftest.er1 >conftest.err
7854   rm -f conftest.er1
7855   cat conftest.err >&5
7856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857   (exit $ac_status); } &&
7858          { ac_try='test -z "$ac_c_werror_flag"
7859                          || test ! -s conftest.err'
7860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7861   (eval $ac_try) 2>&5
7862   ac_status=$?
7863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864   (exit $ac_status); }; } &&
7865          { ac_try='test -s conftest$ac_exeext'
7866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867   (eval $ac_try) 2>&5
7868   ac_status=$?
7869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870   (exit $ac_status); }; }; then
7871   ac_cv_func_shl_load=yes
7872 else
7873   echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7875
7876 ac_cv_func_shl_load=no
7877 fi
7878 rm -f conftest.err conftest.$ac_objext \
7879       conftest$ac_exeext conftest.$ac_ext
7880 fi
7881 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7882 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7883 if test $ac_cv_func_shl_load = yes; then
7884
7885 cat >>confdefs.h <<\_ACEOF
7886 #define HAVE_SHL_LOAD 1
7887 _ACEOF
7888
7889 else
7890   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7891 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7892 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7893   echo $ECHO_N "(cached) $ECHO_C" >&6
7894 else
7895   ac_check_lib_save_LIBS=$LIBS
7896 LIBS="-ldld  $LIBS"
7897 cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h.  */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h.  */
7903
7904 /* Override any gcc2 internal prototype to avoid an error.  */
7905 #ifdef __cplusplus
7906 extern "C"
7907 #endif
7908 /* We use char because int might match the return type of a gcc2
7909    builtin and then its argument prototype would still apply.  */
7910 char shl_load ();
7911 int
7912 main ()
7913 {
7914 shl_load ();
7915   ;
7916   return 0;
7917 }
7918 _ACEOF
7919 rm -f conftest.$ac_objext conftest$ac_exeext
7920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7921   (eval $ac_link) 2>conftest.er1
7922   ac_status=$?
7923   grep -v '^ *+' conftest.er1 >conftest.err
7924   rm -f conftest.er1
7925   cat conftest.err >&5
7926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927   (exit $ac_status); } &&
7928          { ac_try='test -z "$ac_c_werror_flag"
7929                          || test ! -s conftest.err'
7930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931   (eval $ac_try) 2>&5
7932   ac_status=$?
7933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934   (exit $ac_status); }; } &&
7935          { ac_try='test -s conftest$ac_exeext'
7936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937   (eval $ac_try) 2>&5
7938   ac_status=$?
7939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940   (exit $ac_status); }; }; then
7941   ac_cv_lib_dld_shl_load=yes
7942 else
7943   echo "$as_me: failed program was:" >&5
7944 sed 's/^/| /' conftest.$ac_ext >&5
7945
7946 ac_cv_lib_dld_shl_load=no
7947 fi
7948 rm -f conftest.err conftest.$ac_objext \
7949       conftest$ac_exeext conftest.$ac_ext
7950 LIBS=$ac_check_lib_save_LIBS
7951 fi
7952 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7953 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7954 if test $ac_cv_lib_dld_shl_load = yes; then
7955
7956 cat >>confdefs.h <<\_ACEOF
7957 #define HAVE_SHL_LOAD 1
7958 _ACEOF
7959
7960         LIBADD_DL="$LIBADD_DL -ldld"
7961 else
7962   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7963 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7964 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7965   echo $ECHO_N "(cached) $ECHO_C" >&6
7966 else
7967   ac_check_lib_save_LIBS=$LIBS
7968 LIBS="-ldl  $LIBS"
7969 cat >conftest.$ac_ext <<_ACEOF
7970 /* confdefs.h.  */
7971 _ACEOF
7972 cat confdefs.h >>conftest.$ac_ext
7973 cat >>conftest.$ac_ext <<_ACEOF
7974 /* end confdefs.h.  */
7975
7976 /* Override any gcc2 internal prototype to avoid an error.  */
7977 #ifdef __cplusplus
7978 extern "C"
7979 #endif
7980 /* We use char because int might match the return type of a gcc2
7981    builtin and then its argument prototype would still apply.  */
7982 char dlopen ();
7983 int
7984 main ()
7985 {
7986 dlopen ();
7987   ;
7988   return 0;
7989 }
7990 _ACEOF
7991 rm -f conftest.$ac_objext conftest$ac_exeext
7992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7993   (eval $ac_link) 2>conftest.er1
7994   ac_status=$?
7995   grep -v '^ *+' conftest.er1 >conftest.err
7996   rm -f conftest.er1
7997   cat conftest.err >&5
7998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999   (exit $ac_status); } &&
8000          { ac_try='test -z "$ac_c_werror_flag"
8001                          || test ! -s conftest.err'
8002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003   (eval $ac_try) 2>&5
8004   ac_status=$?
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); }; } &&
8007          { ac_try='test -s conftest$ac_exeext'
8008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009   (eval $ac_try) 2>&5
8010   ac_status=$?
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); }; }; then
8013   ac_cv_lib_dl_dlopen=yes
8014 else
8015   echo "$as_me: failed program was:" >&5
8016 sed 's/^/| /' conftest.$ac_ext >&5
8017
8018 ac_cv_lib_dl_dlopen=no
8019 fi
8020 rm -f conftest.err conftest.$ac_objext \
8021       conftest$ac_exeext conftest.$ac_ext
8022 LIBS=$ac_check_lib_save_LIBS
8023 fi
8024 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8025 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8026 if test $ac_cv_lib_dl_dlopen = yes; then
8027
8028 cat >>confdefs.h <<\_ACEOF
8029 #define HAVE_LIBDL 1
8030 _ACEOF
8031
8032                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
8033 else
8034   cat >conftest.$ac_ext <<_ACEOF
8035 /* confdefs.h.  */
8036 _ACEOF
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h.  */
8040 #if HAVE_DLFCN_H
8041 #  include <dlfcn.h>
8042 #endif
8043
8044 int
8045 main ()
8046 {
8047 dlopen(0, 0);
8048   ;
8049   return 0;
8050 }
8051 _ACEOF
8052 rm -f conftest.$ac_objext conftest$ac_exeext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8054   (eval $ac_link) 2>conftest.er1
8055   ac_status=$?
8056   grep -v '^ *+' conftest.er1 >conftest.err
8057   rm -f conftest.er1
8058   cat conftest.err >&5
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); } &&
8061          { ac_try='test -z "$ac_c_werror_flag"
8062                          || test ! -s conftest.err'
8063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064   (eval $ac_try) 2>&5
8065   ac_status=$?
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); }; } &&
8068          { ac_try='test -s conftest$ac_exeext'
8069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070   (eval $ac_try) 2>&5
8071   ac_status=$?
8072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073   (exit $ac_status); }; }; then
8074
8075 cat >>confdefs.h <<\_ACEOF
8076 #define HAVE_LIBDL 1
8077 _ACEOF
8078  libltdl_cv_func_dlopen="yes"
8079 else
8080   echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8082
8083 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8084 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8085 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8086   echo $ECHO_N "(cached) $ECHO_C" >&6
8087 else
8088   ac_check_lib_save_LIBS=$LIBS
8089 LIBS="-lsvld  $LIBS"
8090 cat >conftest.$ac_ext <<_ACEOF
8091 /* confdefs.h.  */
8092 _ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h.  */
8096
8097 /* Override any gcc2 internal prototype to avoid an error.  */
8098 #ifdef __cplusplus
8099 extern "C"
8100 #endif
8101 /* We use char because int might match the return type of a gcc2
8102    builtin and then its argument prototype would still apply.  */
8103 char dlopen ();
8104 int
8105 main ()
8106 {
8107 dlopen ();
8108   ;
8109   return 0;
8110 }
8111 _ACEOF
8112 rm -f conftest.$ac_objext conftest$ac_exeext
8113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8114   (eval $ac_link) 2>conftest.er1
8115   ac_status=$?
8116   grep -v '^ *+' conftest.er1 >conftest.err
8117   rm -f conftest.er1
8118   cat conftest.err >&5
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); } &&
8121          { ac_try='test -z "$ac_c_werror_flag"
8122                          || test ! -s conftest.err'
8123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124   (eval $ac_try) 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); }; } &&
8128          { ac_try='test -s conftest$ac_exeext'
8129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130   (eval $ac_try) 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); }; }; then
8134   ac_cv_lib_svld_dlopen=yes
8135 else
8136   echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8138
8139 ac_cv_lib_svld_dlopen=no
8140 fi
8141 rm -f conftest.err conftest.$ac_objext \
8142       conftest$ac_exeext conftest.$ac_ext
8143 LIBS=$ac_check_lib_save_LIBS
8144 fi
8145 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8146 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8147 if test $ac_cv_lib_svld_dlopen = yes; then
8148
8149 cat >>confdefs.h <<\_ACEOF
8150 #define HAVE_LIBDL 1
8151 _ACEOF
8152
8153                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8154 else
8155   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8156 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8157 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8158   echo $ECHO_N "(cached) $ECHO_C" >&6
8159 else
8160   ac_check_lib_save_LIBS=$LIBS
8161 LIBS="-ldld  $LIBS"
8162 cat >conftest.$ac_ext <<_ACEOF
8163 /* confdefs.h.  */
8164 _ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h.  */
8168
8169 /* Override any gcc2 internal prototype to avoid an error.  */
8170 #ifdef __cplusplus
8171 extern "C"
8172 #endif
8173 /* We use char because int might match the return type of a gcc2
8174    builtin and then its argument prototype would still apply.  */
8175 char dld_link ();
8176 int
8177 main ()
8178 {
8179 dld_link ();
8180   ;
8181   return 0;
8182 }
8183 _ACEOF
8184 rm -f conftest.$ac_objext conftest$ac_exeext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8186   (eval $ac_link) 2>conftest.er1
8187   ac_status=$?
8188   grep -v '^ *+' conftest.er1 >conftest.err
8189   rm -f conftest.er1
8190   cat conftest.err >&5
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); } &&
8193          { ac_try='test -z "$ac_c_werror_flag"
8194                          || test ! -s conftest.err'
8195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196   (eval $ac_try) 2>&5
8197   ac_status=$?
8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   (exit $ac_status); }; } &&
8200          { ac_try='test -s conftest$ac_exeext'
8201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202   (eval $ac_try) 2>&5
8203   ac_status=$?
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); }; }; then
8206   ac_cv_lib_dld_dld_link=yes
8207 else
8208   echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8210
8211 ac_cv_lib_dld_dld_link=no
8212 fi
8213 rm -f conftest.err conftest.$ac_objext \
8214       conftest$ac_exeext conftest.$ac_ext
8215 LIBS=$ac_check_lib_save_LIBS
8216 fi
8217 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8218 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8219 if test $ac_cv_lib_dld_dld_link = yes; then
8220
8221 cat >>confdefs.h <<\_ACEOF
8222 #define HAVE_DLD 1
8223 _ACEOF
8224
8225                 LIBADD_DL="$LIBADD_DL -ldld"
8226 else
8227   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8228 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8229 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8230   echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232   cat >conftest.$ac_ext <<_ACEOF
8233 /* confdefs.h.  */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h.  */
8238 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8240 #define _dyld_func_lookup innocuous__dyld_func_lookup
8241
8242 /* System header to define __stub macros and hopefully few prototypes,
8243     which can conflict with char _dyld_func_lookup (); below.
8244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8245     <limits.h> exists even on freestanding compilers.  */
8246
8247 #ifdef __STDC__
8248 # include <limits.h>
8249 #else
8250 # include <assert.h>
8251 #endif
8252
8253 #undef _dyld_func_lookup
8254
8255 /* Override any gcc2 internal prototype to avoid an error.  */
8256 #ifdef __cplusplus
8257 extern "C"
8258 {
8259 #endif
8260 /* We use char because int might match the return type of a gcc2
8261    builtin and then its argument prototype would still apply.  */
8262 char _dyld_func_lookup ();
8263 /* The GNU C library defines this for functions which it implements
8264     to always fail with ENOSYS.  Some functions are actually named
8265     something starting with __ and the normal name is an alias.  */
8266 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8267 choke me
8268 #else
8269 char (*f) () = _dyld_func_lookup;
8270 #endif
8271 #ifdef __cplusplus
8272 }
8273 #endif
8274
8275 int
8276 main ()
8277 {
8278 return f != _dyld_func_lookup;
8279   ;
8280   return 0;
8281 }
8282 _ACEOF
8283 rm -f conftest.$ac_objext conftest$ac_exeext
8284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8285   (eval $ac_link) 2>conftest.er1
8286   ac_status=$?
8287   grep -v '^ *+' conftest.er1 >conftest.err
8288   rm -f conftest.er1
8289   cat conftest.err >&5
8290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   (exit $ac_status); } &&
8292          { ac_try='test -z "$ac_c_werror_flag"
8293                          || test ! -s conftest.err'
8294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295   (eval $ac_try) 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); }; } &&
8299          { ac_try='test -s conftest$ac_exeext'
8300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301   (eval $ac_try) 2>&5
8302   ac_status=$?
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); }; }; then
8305   ac_cv_func__dyld_func_lookup=yes
8306 else
8307   echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8309
8310 ac_cv_func__dyld_func_lookup=no
8311 fi
8312 rm -f conftest.err conftest.$ac_objext \
8313       conftest$ac_exeext conftest.$ac_ext
8314 fi
8315 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8316 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8317 if test $ac_cv_func__dyld_func_lookup = yes; then
8318
8319 cat >>confdefs.h <<\_ACEOF
8320 #define HAVE_DYLD 1
8321 _ACEOF
8322
8323 fi
8324
8325
8326 fi
8327
8328
8329 fi
8330
8331
8332 fi
8333 rm -f conftest.err conftest.$ac_objext \
8334       conftest$ac_exeext conftest.$ac_ext
8335
8336 fi
8337
8338
8339 fi
8340
8341
8342 fi
8343
8344
8345 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8346 then
8347   lt_save_LIBS="$LIBS"
8348   LIBS="$LIBS $LIBADD_DL"
8349
8350 for ac_func in dlerror
8351 do
8352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8353 echo "$as_me:$LINENO: checking for $ac_func" >&5
8354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8355 if eval "test \"\${$as_ac_var+set}\" = set"; then
8356   echo $ECHO_N "(cached) $ECHO_C" >&6
8357 else
8358   cat >conftest.$ac_ext <<_ACEOF
8359 /* confdefs.h.  */
8360 _ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h.  */
8364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8366 #define $ac_func innocuous_$ac_func
8367
8368 /* System header to define __stub macros and hopefully few prototypes,
8369     which can conflict with char $ac_func (); below.
8370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8371     <limits.h> exists even on freestanding compilers.  */
8372
8373 #ifdef __STDC__
8374 # include <limits.h>
8375 #else
8376 # include <assert.h>
8377 #endif
8378
8379 #undef $ac_func
8380
8381 /* Override any gcc2 internal prototype to avoid an error.  */
8382 #ifdef __cplusplus
8383 extern "C"
8384 {
8385 #endif
8386 /* We use char because int might match the return type of a gcc2
8387    builtin and then its argument prototype would still apply.  */
8388 char $ac_func ();
8389 /* The GNU C library defines this for functions which it implements
8390     to always fail with ENOSYS.  Some functions are actually named
8391     something starting with __ and the normal name is an alias.  */
8392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8393 choke me
8394 #else
8395 char (*f) () = $ac_func;
8396 #endif
8397 #ifdef __cplusplus
8398 }
8399 #endif
8400
8401 int
8402 main ()
8403 {
8404 return f != $ac_func;
8405   ;
8406   return 0;
8407 }
8408 _ACEOF
8409 rm -f conftest.$ac_objext conftest$ac_exeext
8410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8411   (eval $ac_link) 2>conftest.er1
8412   ac_status=$?
8413   grep -v '^ *+' conftest.er1 >conftest.err
8414   rm -f conftest.er1
8415   cat conftest.err >&5
8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417   (exit $ac_status); } &&
8418          { ac_try='test -z "$ac_c_werror_flag"
8419                          || test ! -s conftest.err'
8420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421   (eval $ac_try) 2>&5
8422   ac_status=$?
8423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424   (exit $ac_status); }; } &&
8425          { ac_try='test -s conftest$ac_exeext'
8426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427   (eval $ac_try) 2>&5
8428   ac_status=$?
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   (exit $ac_status); }; }; then
8431   eval "$as_ac_var=yes"
8432 else
8433   echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.$ac_ext >&5
8435
8436 eval "$as_ac_var=no"
8437 fi
8438 rm -f conftest.err conftest.$ac_objext \
8439       conftest$ac_exeext conftest.$ac_ext
8440 fi
8441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8443 if test `eval echo '${'$as_ac_var'}'` = yes; then
8444   cat >>confdefs.h <<_ACEOF
8445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8446 _ACEOF
8447
8448 fi
8449 done
8450
8451   LIBS="$lt_save_LIBS"
8452 fi
8453 ac_ext=c
8454 ac_cpp='$CPP $CPPFLAGS'
8455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8458
8459
8460
8461 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8462 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8463 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8464   echo $ECHO_N "(cached) $ECHO_C" >&6
8465 else
8466   ac_cv_sys_symbol_underscore=no
8467   cat > conftest.$ac_ext <<EOF
8468 void nm_test_func(){}
8469 int main(){nm_test_func;return 0;}
8470 EOF
8471   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8472   (eval $ac_compile) 2>&5
8473   ac_status=$?
8474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); }; then
8476     # Now try to grab the symbols.
8477     ac_nlist=conftest.nm
8478     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8479   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8480   ac_status=$?
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); } && test -s "$ac_nlist"; then
8483       # See whether the symbols have a leading underscore.
8484       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8485         ac_cv_sys_symbol_underscore=yes
8486       else
8487         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8488           :
8489         else
8490           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8491         fi
8492       fi
8493     else
8494       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8495     fi
8496   else
8497     echo "configure: failed program was:" >&5
8498     cat conftest.c >&5
8499   fi
8500   rm -rf conftest*
8501
8502 fi
8503 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8504 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8505
8506
8507 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8508   if test x"$libltdl_cv_func_dlopen" = xyes ||
8509      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8510         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8511 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8512 if test "${libltdl_cv_need_uscore+set}" = set; then
8513   echo $ECHO_N "(cached) $ECHO_C" >&6
8514 else
8515   libltdl_cv_need_uscore=unknown
8516           save_LIBS="$LIBS"
8517           LIBS="$LIBS $LIBADD_DL"
8518           if test "$cross_compiling" = yes; then :
8519   libltdl_cv_need_uscore=cross
8520 else
8521   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8522   lt_status=$lt_dlunknown
8523   cat > conftest.$ac_ext <<EOF
8524 #line 8524 "configure"
8525 #include "confdefs.h"
8526
8527 #if HAVE_DLFCN_H
8528 #include <dlfcn.h>
8529 #endif
8530
8531 #include <stdio.h>
8532
8533 #ifdef RTLD_GLOBAL
8534 #  define LT_DLGLOBAL           RTLD_GLOBAL
8535 #else
8536 #  ifdef DL_GLOBAL
8537 #    define LT_DLGLOBAL         DL_GLOBAL
8538 #  else
8539 #    define LT_DLGLOBAL         0
8540 #  endif
8541 #endif
8542
8543 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8544    find out it does not work in some platform. */
8545 #ifndef LT_DLLAZY_OR_NOW
8546 #  ifdef RTLD_LAZY
8547 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8548 #  else
8549 #    ifdef DL_LAZY
8550 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8551 #    else
8552 #      ifdef RTLD_NOW
8553 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8554 #      else
8555 #        ifdef DL_NOW
8556 #          define LT_DLLAZY_OR_NOW      DL_NOW
8557 #        else
8558 #          define LT_DLLAZY_OR_NOW      0
8559 #        endif
8560 #      endif
8561 #    endif
8562 #  endif
8563 #endif
8564
8565 #ifdef __cplusplus
8566 extern "C" void exit (int);
8567 #endif
8568
8569 void fnord() { int i=42;}
8570 int main ()
8571 {
8572   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8573   int status = $lt_dlunknown;
8574
8575   if (self)
8576     {
8577       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8578       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8579       /* dlclose (self); */
8580     }
8581
8582     exit (status);
8583 }
8584 EOF
8585   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8586   (eval $ac_link) 2>&5
8587   ac_status=$?
8588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8590     (./conftest; exit; ) 2>/dev/null
8591     lt_status=$?
8592     case x$lt_status in
8593       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8594       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8595       x$lt_unknown|x*)  ;;
8596     esac
8597   else :
8598     # compilation failed
8599
8600   fi
8601 fi
8602 rm -fr conftest*
8603
8604           LIBS="$save_LIBS"
8605
8606 fi
8607 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8608 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8609   fi
8610 fi
8611
8612 if test x"$libltdl_cv_need_uscore" = xyes; then
8613
8614 cat >>confdefs.h <<\_ACEOF
8615 #define NEED_USCORE 1
8616 _ACEOF
8617
8618 fi
8619
8620
8621 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8622 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8623 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8624   echo $ECHO_N "(cached) $ECHO_C" >&6
8625 else
8626   # PORTME does your system automatically load deplibs for dlopen?
8627   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8628   # For now, we just catch OSes we know something about -- in the
8629   # future, we'll try test this programmatically.
8630   libltdl_cv_sys_dlopen_deplibs=unknown
8631   case "$host_os" in
8632   aix3*|aix4.1.*|aix4.2.*)
8633     # Unknown whether this is true for these versions of AIX, but
8634     # we want this `case' here to explicitly catch those versions.
8635     libltdl_cv_sys_dlopen_deplibs=unknown
8636     ;;
8637   aix[45]*)
8638     libltdl_cv_sys_dlopen_deplibs=yes
8639     ;;
8640   darwin*)
8641     # Assuming the user has installed a libdl from somewhere, this is true
8642     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8643     libltdl_cv_sys_dlopen_deplibs=yes
8644     ;;
8645   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8646     # GNU and its variants, using gnu ld.so (Glibc)
8647     libltdl_cv_sys_dlopen_deplibs=yes
8648     ;;
8649   hpux10*|hpux11*)
8650     libltdl_cv_sys_dlopen_deplibs=yes
8651     ;;
8652   irix[12345]*|irix6.[01]*)
8653     # Catch all versions of IRIX before 6.2, and indicate that we don't
8654     # know how it worked for any of those versions.
8655     libltdl_cv_sys_dlopen_deplibs=unknown
8656     ;;
8657   irix*)
8658     # The case above catches anything before 6.2, and it's known that
8659     # at 6.2 and later dlopen does load deplibs.
8660     libltdl_cv_sys_dlopen_deplibs=yes
8661     ;;
8662   netbsd*)
8663     libltdl_cv_sys_dlopen_deplibs=yes
8664     ;;
8665   openbsd*)
8666     libltdl_cv_sys_dlopen_deplibs=yes
8667     ;;
8668   osf[1234]*)
8669     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8670     # it did *not* use an RPATH in a shared library to find objects the
8671     # library depends on, so we explictly say `no'.
8672     libltdl_cv_sys_dlopen_deplibs=no
8673     ;;
8674   osf5.0|osf5.0a|osf5.1)
8675     # dlopen *does* load deplibs and with the right loader patch applied
8676     # it even uses RPATH in a shared library to search for shared objects
8677     # that the library depends on, but there's no easy way to know if that
8678     # patch is installed.  Since this is the case, all we can really
8679     # say is unknown -- it depends on the patch being installed.  If
8680     # it is, this changes to `yes'.  Without it, it would be `no'.
8681     libltdl_cv_sys_dlopen_deplibs=unknown
8682     ;;
8683   osf*)
8684     # the two cases above should catch all versions of osf <= 5.1.  Read
8685     # the comments above for what we know about them.
8686     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8687     # is used to find them so we can finally say `yes'.
8688     libltdl_cv_sys_dlopen_deplibs=yes
8689     ;;
8690   solaris*)
8691     libltdl_cv_sys_dlopen_deplibs=yes
8692     ;;
8693   esac
8694
8695 fi
8696 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8697 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8698 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8699
8700 cat >>confdefs.h <<\_ACEOF
8701 #define LTDL_DLOPEN_DEPLIBS 1
8702 _ACEOF
8703
8704 fi
8705
8706
8707 for ac_header in argz.h
8708 do
8709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8711   echo "$as_me:$LINENO: checking for $ac_header" >&5
8712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8714   echo $ECHO_N "(cached) $ECHO_C" >&6
8715 fi
8716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8718 else
8719   # Is the header compilable?
8720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8722 cat >conftest.$ac_ext <<_ACEOF
8723 /* confdefs.h.  */
8724 _ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h.  */
8728 $ac_includes_default
8729 #include <$ac_header>
8730 _ACEOF
8731 rm -f conftest.$ac_objext
8732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8733   (eval $ac_compile) 2>conftest.er1
8734   ac_status=$?
8735   grep -v '^ *+' conftest.er1 >conftest.err
8736   rm -f conftest.er1
8737   cat conftest.err >&5
8738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739   (exit $ac_status); } &&
8740          { ac_try='test -z "$ac_c_werror_flag"
8741                          || test ! -s conftest.err'
8742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743   (eval $ac_try) 2>&5
8744   ac_status=$?
8745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746   (exit $ac_status); }; } &&
8747          { ac_try='test -s conftest.$ac_objext'
8748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749   (eval $ac_try) 2>&5
8750   ac_status=$?
8751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752   (exit $ac_status); }; }; then
8753   ac_header_compiler=yes
8754 else
8755   echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8757
8758 ac_header_compiler=no
8759 fi
8760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8761 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8762 echo "${ECHO_T}$ac_header_compiler" >&6
8763
8764 # Is the header present?
8765 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8767 cat >conftest.$ac_ext <<_ACEOF
8768 /* confdefs.h.  */
8769 _ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h.  */
8773 #include <$ac_header>
8774 _ACEOF
8775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8776   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8777   ac_status=$?
8778   grep -v '^ *+' conftest.er1 >conftest.err
8779   rm -f conftest.er1
8780   cat conftest.err >&5
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); } >/dev/null; then
8783   if test -s conftest.err; then
8784     ac_cpp_err=$ac_c_preproc_warn_flag
8785     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8786   else
8787     ac_cpp_err=
8788   fi
8789 else
8790   ac_cpp_err=yes
8791 fi
8792 if test -z "$ac_cpp_err"; then
8793   ac_header_preproc=yes
8794 else
8795   echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8797
8798   ac_header_preproc=no
8799 fi
8800 rm -f conftest.err conftest.$ac_ext
8801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8802 echo "${ECHO_T}$ac_header_preproc" >&6
8803
8804 # So?  What about this header?
8805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8806   yes:no: )
8807     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8811     ac_header_preproc=yes
8812     ;;
8813   no:yes:* )
8814     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8816     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8817 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8818     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8820     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8821 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8824     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8826     (
8827       cat <<\_ASBOX
8828 ## ----------------------------------- ##
8829 ## Report this to llvmbugs@cs.uiuc.edu ##
8830 ## ----------------------------------- ##
8831 _ASBOX
8832     ) |
8833       sed "s/^/$as_me: WARNING:     /" >&2
8834     ;;
8835 esac
8836 echo "$as_me:$LINENO: checking for $ac_header" >&5
8837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8839   echo $ECHO_N "(cached) $ECHO_C" >&6
8840 else
8841   eval "$as_ac_Header=\$ac_header_preproc"
8842 fi
8843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8845
8846 fi
8847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8848   cat >>confdefs.h <<_ACEOF
8849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8850 _ACEOF
8851
8852 fi
8853
8854 done
8855
8856
8857 echo "$as_me:$LINENO: checking for error_t" >&5
8858 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8859 if test "${ac_cv_type_error_t+set}" = set; then
8860   echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862   cat >conftest.$ac_ext <<_ACEOF
8863 /* confdefs.h.  */
8864 _ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h.  */
8868 #if HAVE_ARGZ_H
8869 #  include <argz.h>
8870 #endif
8871
8872 int
8873 main ()
8874 {
8875 if ((error_t *) 0)
8876   return 0;
8877 if (sizeof (error_t))
8878   return 0;
8879   ;
8880   return 0;
8881 }
8882 _ACEOF
8883 rm -f conftest.$ac_objext
8884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8885   (eval $ac_compile) 2>conftest.er1
8886   ac_status=$?
8887   grep -v '^ *+' conftest.er1 >conftest.err
8888   rm -f conftest.er1
8889   cat conftest.err >&5
8890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891   (exit $ac_status); } &&
8892          { ac_try='test -z "$ac_c_werror_flag"
8893                          || test ! -s conftest.err'
8894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895   (eval $ac_try) 2>&5
8896   ac_status=$?
8897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898   (exit $ac_status); }; } &&
8899          { ac_try='test -s conftest.$ac_objext'
8900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901   (eval $ac_try) 2>&5
8902   ac_status=$?
8903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904   (exit $ac_status); }; }; then
8905   ac_cv_type_error_t=yes
8906 else
8907   echo "$as_me: failed program was:" >&5
8908 sed 's/^/| /' conftest.$ac_ext >&5
8909
8910 ac_cv_type_error_t=no
8911 fi
8912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8913 fi
8914 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8915 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8916 if test $ac_cv_type_error_t = yes; then
8917
8918 cat >>confdefs.h <<_ACEOF
8919 #define HAVE_ERROR_T 1
8920 _ACEOF
8921
8922
8923 else
8924
8925 cat >>confdefs.h <<\_ACEOF
8926 #define error_t int
8927 _ACEOF
8928
8929 fi
8930
8931
8932
8933
8934
8935
8936
8937 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8938 do
8939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8940 echo "$as_me:$LINENO: checking for $ac_func" >&5
8941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8942 if eval "test \"\${$as_ac_var+set}\" = set"; then
8943   echo $ECHO_N "(cached) $ECHO_C" >&6
8944 else
8945   cat >conftest.$ac_ext <<_ACEOF
8946 /* confdefs.h.  */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h.  */
8951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8953 #define $ac_func innocuous_$ac_func
8954
8955 /* System header to define __stub macros and hopefully few prototypes,
8956     which can conflict with char $ac_func (); below.
8957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8958     <limits.h> exists even on freestanding compilers.  */
8959
8960 #ifdef __STDC__
8961 # include <limits.h>
8962 #else
8963 # include <assert.h>
8964 #endif
8965
8966 #undef $ac_func
8967
8968 /* Override any gcc2 internal prototype to avoid an error.  */
8969 #ifdef __cplusplus
8970 extern "C"
8971 {
8972 #endif
8973 /* We use char because int might match the return type of a gcc2
8974    builtin and then its argument prototype would still apply.  */
8975 char $ac_func ();
8976 /* The GNU C library defines this for functions which it implements
8977     to always fail with ENOSYS.  Some functions are actually named
8978     something starting with __ and the normal name is an alias.  */
8979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8980 choke me
8981 #else
8982 char (*f) () = $ac_func;
8983 #endif
8984 #ifdef __cplusplus
8985 }
8986 #endif
8987
8988 int
8989 main ()
8990 {
8991 return f != $ac_func;
8992   ;
8993   return 0;
8994 }
8995 _ACEOF
8996 rm -f conftest.$ac_objext conftest$ac_exeext
8997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8998   (eval $ac_link) 2>conftest.er1
8999   ac_status=$?
9000   grep -v '^ *+' conftest.er1 >conftest.err
9001   rm -f conftest.er1
9002   cat conftest.err >&5
9003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   (exit $ac_status); } &&
9005          { ac_try='test -z "$ac_c_werror_flag"
9006                          || test ! -s conftest.err'
9007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008   (eval $ac_try) 2>&5
9009   ac_status=$?
9010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011   (exit $ac_status); }; } &&
9012          { ac_try='test -s conftest$ac_exeext'
9013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014   (eval $ac_try) 2>&5
9015   ac_status=$?
9016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017   (exit $ac_status); }; }; then
9018   eval "$as_ac_var=yes"
9019 else
9020   echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9022
9023 eval "$as_ac_var=no"
9024 fi
9025 rm -f conftest.err conftest.$ac_objext \
9026       conftest$ac_exeext conftest.$ac_ext
9027 fi
9028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9030 if test `eval echo '${'$as_ac_var'}'` = yes; then
9031   cat >>confdefs.h <<_ACEOF
9032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9033 _ACEOF
9034
9035 fi
9036 done
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9066                   stdio.h unistd.h
9067 do
9068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9070   echo "$as_me:$LINENO: checking for $ac_header" >&5
9071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9073   echo $ECHO_N "(cached) $ECHO_C" >&6
9074 fi
9075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9077 else
9078   # Is the header compilable?
9079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9081 cat >conftest.$ac_ext <<_ACEOF
9082 /* confdefs.h.  */
9083 _ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h.  */
9087 $ac_includes_default
9088 #include <$ac_header>
9089 _ACEOF
9090 rm -f conftest.$ac_objext
9091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9092   (eval $ac_compile) 2>conftest.er1
9093   ac_status=$?
9094   grep -v '^ *+' conftest.er1 >conftest.err
9095   rm -f conftest.er1
9096   cat conftest.err >&5
9097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098   (exit $ac_status); } &&
9099          { ac_try='test -z "$ac_c_werror_flag"
9100                          || test ! -s conftest.err'
9101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102   (eval $ac_try) 2>&5
9103   ac_status=$?
9104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105   (exit $ac_status); }; } &&
9106          { ac_try='test -s conftest.$ac_objext'
9107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108   (eval $ac_try) 2>&5
9109   ac_status=$?
9110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111   (exit $ac_status); }; }; then
9112   ac_header_compiler=yes
9113 else
9114   echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9116
9117 ac_header_compiler=no
9118 fi
9119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9121 echo "${ECHO_T}$ac_header_compiler" >&6
9122
9123 # Is the header present?
9124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9126 cat >conftest.$ac_ext <<_ACEOF
9127 /* confdefs.h.  */
9128 _ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h.  */
9132 #include <$ac_header>
9133 _ACEOF
9134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9135   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9136   ac_status=$?
9137   grep -v '^ *+' conftest.er1 >conftest.err
9138   rm -f conftest.er1
9139   cat conftest.err >&5
9140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141   (exit $ac_status); } >/dev/null; then
9142   if test -s conftest.err; then
9143     ac_cpp_err=$ac_c_preproc_warn_flag
9144     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9145   else
9146     ac_cpp_err=
9147   fi
9148 else
9149   ac_cpp_err=yes
9150 fi
9151 if test -z "$ac_cpp_err"; then
9152   ac_header_preproc=yes
9153 else
9154   echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.$ac_ext >&5
9156
9157   ac_header_preproc=no
9158 fi
9159 rm -f conftest.err conftest.$ac_ext
9160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9161 echo "${ECHO_T}$ac_header_preproc" >&6
9162
9163 # So?  What about this header?
9164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9165   yes:no: )
9166     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9170     ac_header_preproc=yes
9171     ;;
9172   no:yes:* )
9173     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9175     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9176 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9177     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9179     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9180 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9183     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9185     (
9186       cat <<\_ASBOX
9187 ## ----------------------------------- ##
9188 ## Report this to llvmbugs@cs.uiuc.edu ##
9189 ## ----------------------------------- ##
9190 _ASBOX
9191     ) |
9192       sed "s/^/$as_me: WARNING:     /" >&2
9193     ;;
9194 esac
9195 echo "$as_me:$LINENO: checking for $ac_header" >&5
9196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9198   echo $ECHO_N "(cached) $ECHO_C" >&6
9199 else
9200   eval "$as_ac_Header=\$ac_header_preproc"
9201 fi
9202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9204
9205 fi
9206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9207   cat >>confdefs.h <<_ACEOF
9208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9209 _ACEOF
9210
9211 fi
9212
9213 done
9214
9215
9216
9217
9218
9219 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9220 do
9221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9223   echo "$as_me:$LINENO: checking for $ac_header" >&5
9224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9226   echo $ECHO_N "(cached) $ECHO_C" >&6
9227 fi
9228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9230 else
9231   # Is the header compilable?
9232 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9234 cat >conftest.$ac_ext <<_ACEOF
9235 /* confdefs.h.  */
9236 _ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h.  */
9240 $ac_includes_default
9241 #include <$ac_header>
9242 _ACEOF
9243 rm -f conftest.$ac_objext
9244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9245   (eval $ac_compile) 2>conftest.er1
9246   ac_status=$?
9247   grep -v '^ *+' conftest.er1 >conftest.err
9248   rm -f conftest.er1
9249   cat conftest.err >&5
9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); } &&
9252          { ac_try='test -z "$ac_c_werror_flag"
9253                          || test ! -s conftest.err'
9254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255   (eval $ac_try) 2>&5
9256   ac_status=$?
9257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258   (exit $ac_status); }; } &&
9259          { ac_try='test -s conftest.$ac_objext'
9260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261   (eval $ac_try) 2>&5
9262   ac_status=$?
9263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264   (exit $ac_status); }; }; then
9265   ac_header_compiler=yes
9266 else
9267   echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9269
9270 ac_header_compiler=no
9271 fi
9272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9274 echo "${ECHO_T}$ac_header_compiler" >&6
9275
9276 # Is the header present?
9277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9279 cat >conftest.$ac_ext <<_ACEOF
9280 /* confdefs.h.  */
9281 _ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h.  */
9285 #include <$ac_header>
9286 _ACEOF
9287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9288   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9289   ac_status=$?
9290   grep -v '^ *+' conftest.er1 >conftest.err
9291   rm -f conftest.er1
9292   cat conftest.err >&5
9293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294   (exit $ac_status); } >/dev/null; then
9295   if test -s conftest.err; then
9296     ac_cpp_err=$ac_c_preproc_warn_flag
9297     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9298   else
9299     ac_cpp_err=
9300   fi
9301 else
9302   ac_cpp_err=yes
9303 fi
9304 if test -z "$ac_cpp_err"; then
9305   ac_header_preproc=yes
9306 else
9307   echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9309
9310   ac_header_preproc=no
9311 fi
9312 rm -f conftest.err conftest.$ac_ext
9313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9314 echo "${ECHO_T}$ac_header_preproc" >&6
9315
9316 # So?  What about this header?
9317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9318   yes:no: )
9319     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9321     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9323     ac_header_preproc=yes
9324     ;;
9325   no:yes:* )
9326     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9328     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9329 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9330     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9332     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9333 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9334     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9336     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9338     (
9339       cat <<\_ASBOX
9340 ## ----------------------------------- ##
9341 ## Report this to llvmbugs@cs.uiuc.edu ##
9342 ## ----------------------------------- ##
9343 _ASBOX
9344     ) |
9345       sed "s/^/$as_me: WARNING:     /" >&2
9346     ;;
9347 esac
9348 echo "$as_me:$LINENO: checking for $ac_header" >&5
9349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9351   echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353   eval "$as_ac_Header=\$ac_header_preproc"
9354 fi
9355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9357
9358 fi
9359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9360   cat >>confdefs.h <<_ACEOF
9361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9362 _ACEOF
9363
9364 fi
9365
9366 done
9367
9368
9369
9370 for ac_header in string.h strings.h
9371 do
9372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9374   echo "$as_me:$LINENO: checking for $ac_header" >&5
9375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9377   echo $ECHO_N "(cached) $ECHO_C" >&6
9378 fi
9379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9381 else
9382   # Is the header compilable?
9383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9385 cat >conftest.$ac_ext <<_ACEOF
9386 /* confdefs.h.  */
9387 _ACEOF
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h.  */
9391 $ac_includes_default
9392 #include <$ac_header>
9393 _ACEOF
9394 rm -f conftest.$ac_objext
9395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9396   (eval $ac_compile) 2>conftest.er1
9397   ac_status=$?
9398   grep -v '^ *+' conftest.er1 >conftest.err
9399   rm -f conftest.er1
9400   cat conftest.err >&5
9401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402   (exit $ac_status); } &&
9403          { ac_try='test -z "$ac_c_werror_flag"
9404                          || test ! -s conftest.err'
9405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406   (eval $ac_try) 2>&5
9407   ac_status=$?
9408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409   (exit $ac_status); }; } &&
9410          { ac_try='test -s conftest.$ac_objext'
9411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412   (eval $ac_try) 2>&5
9413   ac_status=$?
9414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415   (exit $ac_status); }; }; then
9416   ac_header_compiler=yes
9417 else
9418   echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9420
9421 ac_header_compiler=no
9422 fi
9423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9425 echo "${ECHO_T}$ac_header_compiler" >&6
9426
9427 # Is the header present?
9428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9430 cat >conftest.$ac_ext <<_ACEOF
9431 /* confdefs.h.  */
9432 _ACEOF
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h.  */
9436 #include <$ac_header>
9437 _ACEOF
9438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9439   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9440   ac_status=$?
9441   grep -v '^ *+' conftest.er1 >conftest.err
9442   rm -f conftest.er1
9443   cat conftest.err >&5
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); } >/dev/null; then
9446   if test -s conftest.err; then
9447     ac_cpp_err=$ac_c_preproc_warn_flag
9448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9449   else
9450     ac_cpp_err=
9451   fi
9452 else
9453   ac_cpp_err=yes
9454 fi
9455 if test -z "$ac_cpp_err"; then
9456   ac_header_preproc=yes
9457 else
9458   echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9460
9461   ac_header_preproc=no
9462 fi
9463 rm -f conftest.err conftest.$ac_ext
9464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9465 echo "${ECHO_T}$ac_header_preproc" >&6
9466
9467 # So?  What about this header?
9468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9469   yes:no: )
9470     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9472     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9474     ac_header_preproc=yes
9475     ;;
9476   no:yes:* )
9477     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9479     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9480 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9481     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9483     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9484 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9487     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9489     (
9490       cat <<\_ASBOX
9491 ## ----------------------------------- ##
9492 ## Report this to llvmbugs@cs.uiuc.edu ##
9493 ## ----------------------------------- ##
9494 _ASBOX
9495     ) |
9496       sed "s/^/$as_me: WARNING:     /" >&2
9497     ;;
9498 esac
9499 echo "$as_me:$LINENO: checking for $ac_header" >&5
9500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9502   echo $ECHO_N "(cached) $ECHO_C" >&6
9503 else
9504   eval "$as_ac_Header=\$ac_header_preproc"
9505 fi
9506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9508
9509 fi
9510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9511   cat >>confdefs.h <<_ACEOF
9512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9513 _ACEOF
9514  break
9515 fi
9516
9517 done
9518
9519
9520
9521
9522 for ac_func in strchr index
9523 do
9524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9525 echo "$as_me:$LINENO: checking for $ac_func" >&5
9526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9527 if eval "test \"\${$as_ac_var+set}\" = set"; then
9528   echo $ECHO_N "(cached) $ECHO_C" >&6
9529 else
9530   cat >conftest.$ac_ext <<_ACEOF
9531 /* confdefs.h.  */
9532 _ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h.  */
9536 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9537    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9538 #define $ac_func innocuous_$ac_func
9539
9540 /* System header to define __stub macros and hopefully few prototypes,
9541     which can conflict with char $ac_func (); below.
9542     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9543     <limits.h> exists even on freestanding compilers.  */
9544
9545 #ifdef __STDC__
9546 # include <limits.h>
9547 #else
9548 # include <assert.h>
9549 #endif
9550
9551 #undef $ac_func
9552
9553 /* Override any gcc2 internal prototype to avoid an error.  */
9554 #ifdef __cplusplus
9555 extern "C"
9556 {
9557 #endif
9558 /* We use char because int might match the return type of a gcc2
9559    builtin and then its argument prototype would still apply.  */
9560 char $ac_func ();
9561 /* The GNU C library defines this for functions which it implements
9562     to always fail with ENOSYS.  Some functions are actually named
9563     something starting with __ and the normal name is an alias.  */
9564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9565 choke me
9566 #else
9567 char (*f) () = $ac_func;
9568 #endif
9569 #ifdef __cplusplus
9570 }
9571 #endif
9572
9573 int
9574 main ()
9575 {
9576 return f != $ac_func;
9577   ;
9578   return 0;
9579 }
9580 _ACEOF
9581 rm -f conftest.$ac_objext conftest$ac_exeext
9582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9583   (eval $ac_link) 2>conftest.er1
9584   ac_status=$?
9585   grep -v '^ *+' conftest.er1 >conftest.err
9586   rm -f conftest.er1
9587   cat conftest.err >&5
9588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589   (exit $ac_status); } &&
9590          { ac_try='test -z "$ac_c_werror_flag"
9591                          || test ! -s conftest.err'
9592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593   (eval $ac_try) 2>&5
9594   ac_status=$?
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); }; } &&
9597          { ac_try='test -s conftest$ac_exeext'
9598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599   (eval $ac_try) 2>&5
9600   ac_status=$?
9601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602   (exit $ac_status); }; }; then
9603   eval "$as_ac_var=yes"
9604 else
9605   echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608 eval "$as_ac_var=no"
9609 fi
9610 rm -f conftest.err conftest.$ac_objext \
9611       conftest$ac_exeext conftest.$ac_ext
9612 fi
9613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9614 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9615 if test `eval echo '${'$as_ac_var'}'` = yes; then
9616   cat >>confdefs.h <<_ACEOF
9617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9618 _ACEOF
9619  break
9620 fi
9621 done
9622
9623
9624
9625 for ac_func in strrchr rindex
9626 do
9627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9628 echo "$as_me:$LINENO: checking for $ac_func" >&5
9629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9630 if eval "test \"\${$as_ac_var+set}\" = set"; then
9631   echo $ECHO_N "(cached) $ECHO_C" >&6
9632 else
9633   cat >conftest.$ac_ext <<_ACEOF
9634 /* confdefs.h.  */
9635 _ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h.  */
9639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9640    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9641 #define $ac_func innocuous_$ac_func
9642
9643 /* System header to define __stub macros and hopefully few prototypes,
9644     which can conflict with char $ac_func (); below.
9645     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9646     <limits.h> exists even on freestanding compilers.  */
9647
9648 #ifdef __STDC__
9649 # include <limits.h>
9650 #else
9651 # include <assert.h>
9652 #endif
9653
9654 #undef $ac_func
9655
9656 /* Override any gcc2 internal prototype to avoid an error.  */
9657 #ifdef __cplusplus
9658 extern "C"
9659 {
9660 #endif
9661 /* We use char because int might match the return type of a gcc2
9662    builtin and then its argument prototype would still apply.  */
9663 char $ac_func ();
9664 /* The GNU C library defines this for functions which it implements
9665     to always fail with ENOSYS.  Some functions are actually named
9666     something starting with __ and the normal name is an alias.  */
9667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9668 choke me
9669 #else
9670 char (*f) () = $ac_func;
9671 #endif
9672 #ifdef __cplusplus
9673 }
9674 #endif
9675
9676 int
9677 main ()
9678 {
9679 return f != $ac_func;
9680   ;
9681   return 0;
9682 }
9683 _ACEOF
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686   (eval $ac_link) 2>conftest.er1
9687   ac_status=$?
9688   grep -v '^ *+' conftest.er1 >conftest.err
9689   rm -f conftest.er1
9690   cat conftest.err >&5
9691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692   (exit $ac_status); } &&
9693          { ac_try='test -z "$ac_c_werror_flag"
9694                          || test ! -s conftest.err'
9695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696   (eval $ac_try) 2>&5
9697   ac_status=$?
9698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699   (exit $ac_status); }; } &&
9700          { ac_try='test -s conftest$ac_exeext'
9701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702   (eval $ac_try) 2>&5
9703   ac_status=$?
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); }; }; then
9706   eval "$as_ac_var=yes"
9707 else
9708   echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9710
9711 eval "$as_ac_var=no"
9712 fi
9713 rm -f conftest.err conftest.$ac_objext \
9714       conftest$ac_exeext conftest.$ac_ext
9715 fi
9716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9718 if test `eval echo '${'$as_ac_var'}'` = yes; then
9719   cat >>confdefs.h <<_ACEOF
9720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9721 _ACEOF
9722  break
9723 fi
9724 done
9725
9726
9727
9728 for ac_func in memcpy bcopy
9729 do
9730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9731 echo "$as_me:$LINENO: checking for $ac_func" >&5
9732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9733 if eval "test \"\${$as_ac_var+set}\" = set"; then
9734   echo $ECHO_N "(cached) $ECHO_C" >&6
9735 else
9736   cat >conftest.$ac_ext <<_ACEOF
9737 /* confdefs.h.  */
9738 _ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h.  */
9742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9744 #define $ac_func innocuous_$ac_func
9745
9746 /* System header to define __stub macros and hopefully few prototypes,
9747     which can conflict with char $ac_func (); below.
9748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9749     <limits.h> exists even on freestanding compilers.  */
9750
9751 #ifdef __STDC__
9752 # include <limits.h>
9753 #else
9754 # include <assert.h>
9755 #endif
9756
9757 #undef $ac_func
9758
9759 /* Override any gcc2 internal prototype to avoid an error.  */
9760 #ifdef __cplusplus
9761 extern "C"
9762 {
9763 #endif
9764 /* We use char because int might match the return type of a gcc2
9765    builtin and then its argument prototype would still apply.  */
9766 char $ac_func ();
9767 /* The GNU C library defines this for functions which it implements
9768     to always fail with ENOSYS.  Some functions are actually named
9769     something starting with __ and the normal name is an alias.  */
9770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9771 choke me
9772 #else
9773 char (*f) () = $ac_func;
9774 #endif
9775 #ifdef __cplusplus
9776 }
9777 #endif
9778
9779 int
9780 main ()
9781 {
9782 return f != $ac_func;
9783   ;
9784   return 0;
9785 }
9786 _ACEOF
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789   (eval $ac_link) 2>conftest.er1
9790   ac_status=$?
9791   grep -v '^ *+' conftest.er1 >conftest.err
9792   rm -f conftest.er1
9793   cat conftest.err >&5
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); } &&
9796          { ac_try='test -z "$ac_c_werror_flag"
9797                          || test ! -s conftest.err'
9798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799   (eval $ac_try) 2>&5
9800   ac_status=$?
9801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802   (exit $ac_status); }; } &&
9803          { ac_try='test -s conftest$ac_exeext'
9804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805   (eval $ac_try) 2>&5
9806   ac_status=$?
9807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808   (exit $ac_status); }; }; then
9809   eval "$as_ac_var=yes"
9810 else
9811   echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9813
9814 eval "$as_ac_var=no"
9815 fi
9816 rm -f conftest.err conftest.$ac_objext \
9817       conftest$ac_exeext conftest.$ac_ext
9818 fi
9819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9820 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9821 if test `eval echo '${'$as_ac_var'}'` = yes; then
9822   cat >>confdefs.h <<_ACEOF
9823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9824 _ACEOF
9825  break
9826 fi
9827 done
9828
9829
9830
9831 for ac_func in memmove strcmp
9832 do
9833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9834 echo "$as_me:$LINENO: checking for $ac_func" >&5
9835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9836 if eval "test \"\${$as_ac_var+set}\" = set"; then
9837   echo $ECHO_N "(cached) $ECHO_C" >&6
9838 else
9839   cat >conftest.$ac_ext <<_ACEOF
9840 /* confdefs.h.  */
9841 _ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h.  */
9845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9847 #define $ac_func innocuous_$ac_func
9848
9849 /* System header to define __stub macros and hopefully few prototypes,
9850     which can conflict with char $ac_func (); below.
9851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9852     <limits.h> exists even on freestanding compilers.  */
9853
9854 #ifdef __STDC__
9855 # include <limits.h>
9856 #else
9857 # include <assert.h>
9858 #endif
9859
9860 #undef $ac_func
9861
9862 /* Override any gcc2 internal prototype to avoid an error.  */
9863 #ifdef __cplusplus
9864 extern "C"
9865 {
9866 #endif
9867 /* We use char because int might match the return type of a gcc2
9868    builtin and then its argument prototype would still apply.  */
9869 char $ac_func ();
9870 /* The GNU C library defines this for functions which it implements
9871     to always fail with ENOSYS.  Some functions are actually named
9872     something starting with __ and the normal name is an alias.  */
9873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9874 choke me
9875 #else
9876 char (*f) () = $ac_func;
9877 #endif
9878 #ifdef __cplusplus
9879 }
9880 #endif
9881
9882 int
9883 main ()
9884 {
9885 return f != $ac_func;
9886   ;
9887   return 0;
9888 }
9889 _ACEOF
9890 rm -f conftest.$ac_objext conftest$ac_exeext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892   (eval $ac_link) 2>conftest.er1
9893   ac_status=$?
9894   grep -v '^ *+' conftest.er1 >conftest.err
9895   rm -f conftest.er1
9896   cat conftest.err >&5
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); } &&
9899          { ac_try='test -z "$ac_c_werror_flag"
9900                          || test ! -s conftest.err'
9901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902   (eval $ac_try) 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); }; } &&
9906          { ac_try='test -s conftest$ac_exeext'
9907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908   (eval $ac_try) 2>&5
9909   ac_status=$?
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); }; }; then
9912   eval "$as_ac_var=yes"
9913 else
9914   echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9916
9917 eval "$as_ac_var=no"
9918 fi
9919 rm -f conftest.err conftest.$ac_objext \
9920       conftest$ac_exeext conftest.$ac_ext
9921 fi
9922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9924 if test `eval echo '${'$as_ac_var'}'` = yes; then
9925   cat >>confdefs.h <<_ACEOF
9926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9927 _ACEOF
9928
9929 fi
9930 done
9931
9932
9933
9934
9935 for ac_func in closedir opendir readdir
9936 do
9937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9938 echo "$as_me:$LINENO: checking for $ac_func" >&5
9939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9940 if eval "test \"\${$as_ac_var+set}\" = set"; then
9941   echo $ECHO_N "(cached) $ECHO_C" >&6
9942 else
9943   cat >conftest.$ac_ext <<_ACEOF
9944 /* confdefs.h.  */
9945 _ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h.  */
9949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9951 #define $ac_func innocuous_$ac_func
9952
9953 /* System header to define __stub macros and hopefully few prototypes,
9954     which can conflict with char $ac_func (); below.
9955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9956     <limits.h> exists even on freestanding compilers.  */
9957
9958 #ifdef __STDC__
9959 # include <limits.h>
9960 #else
9961 # include <assert.h>
9962 #endif
9963
9964 #undef $ac_func
9965
9966 /* Override any gcc2 internal prototype to avoid an error.  */
9967 #ifdef __cplusplus
9968 extern "C"
9969 {
9970 #endif
9971 /* We use char because int might match the return type of a gcc2
9972    builtin and then its argument prototype would still apply.  */
9973 char $ac_func ();
9974 /* The GNU C library defines this for functions which it implements
9975     to always fail with ENOSYS.  Some functions are actually named
9976     something starting with __ and the normal name is an alias.  */
9977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9978 choke me
9979 #else
9980 char (*f) () = $ac_func;
9981 #endif
9982 #ifdef __cplusplus
9983 }
9984 #endif
9985
9986 int
9987 main ()
9988 {
9989 return f != $ac_func;
9990   ;
9991   return 0;
9992 }
9993 _ACEOF
9994 rm -f conftest.$ac_objext conftest$ac_exeext
9995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9996   (eval $ac_link) 2>conftest.er1
9997   ac_status=$?
9998   grep -v '^ *+' conftest.er1 >conftest.err
9999   rm -f conftest.er1
10000   cat conftest.err >&5
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); } &&
10003          { ac_try='test -z "$ac_c_werror_flag"
10004                          || test ! -s conftest.err'
10005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006   (eval $ac_try) 2>&5
10007   ac_status=$?
10008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009   (exit $ac_status); }; } &&
10010          { ac_try='test -s conftest$ac_exeext'
10011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012   (eval $ac_try) 2>&5
10013   ac_status=$?
10014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015   (exit $ac_status); }; }; then
10016   eval "$as_ac_var=yes"
10017 else
10018   echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10020
10021 eval "$as_ac_var=no"
10022 fi
10023 rm -f conftest.err conftest.$ac_objext \
10024       conftest$ac_exeext conftest.$ac_ext
10025 fi
10026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10027 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10028 if test `eval echo '${'$as_ac_var'}'` = yes; then
10029   cat >>confdefs.h <<_ACEOF
10030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10031 _ACEOF
10032
10033 fi
10034 done
10035
10036
10037 # Check whether --enable-shared or --disable-shared was given.
10038 if test "${enable_shared+set}" = set; then
10039   enableval="$enable_shared"
10040   p=${PACKAGE-default}
10041     case $enableval in
10042     yes) enable_shared=yes ;;
10043     no) enable_shared=no ;;
10044     *)
10045       enable_shared=no
10046       # Look at the argument we got.  We use all the common list separators.
10047       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10048       for pkg in $enableval; do
10049         IFS="$lt_save_ifs"
10050         if test "X$pkg" = "X$p"; then
10051           enable_shared=yes
10052         fi
10053       done
10054       IFS="$lt_save_ifs"
10055       ;;
10056     esac
10057 else
10058   enable_shared=yes
10059 fi;
10060
10061 # Check whether --enable-static or --disable-static was given.
10062 if test "${enable_static+set}" = set; then
10063   enableval="$enable_static"
10064   p=${PACKAGE-default}
10065     case $enableval in
10066     yes) enable_static=yes ;;
10067     no) enable_static=no ;;
10068     *)
10069      enable_static=no
10070       # Look at the argument we got.  We use all the common list separators.
10071       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10072       for pkg in $enableval; do
10073         IFS="$lt_save_ifs"
10074         if test "X$pkg" = "X$p"; then
10075           enable_static=yes
10076         fi
10077       done
10078       IFS="$lt_save_ifs"
10079       ;;
10080     esac
10081 else
10082   enable_static=yes
10083 fi;
10084
10085 # Check whether --enable-fast-install or --disable-fast-install was given.
10086 if test "${enable_fast_install+set}" = set; then
10087   enableval="$enable_fast_install"
10088   p=${PACKAGE-default}
10089     case $enableval in
10090     yes) enable_fast_install=yes ;;
10091     no) enable_fast_install=no ;;
10092     *)
10093       enable_fast_install=no
10094       # Look at the argument we got.  We use all the common list separators.
10095       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10096       for pkg in $enableval; do
10097         IFS="$lt_save_ifs"
10098         if test "X$pkg" = "X$p"; then
10099           enable_fast_install=yes
10100         fi
10101       done
10102       IFS="$lt_save_ifs"
10103       ;;
10104     esac
10105 else
10106   enable_fast_install=yes
10107 fi;
10108
10109 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10110 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10111 if test "${lt_cv_path_SED+set}" = set; then
10112   echo $ECHO_N "(cached) $ECHO_C" >&6
10113 else
10114   # Loop through the user's path and test for sed and gsed.
10115 # Then use that list of sed's as ones to test for truncation.
10116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10117 for as_dir in $PATH
10118 do
10119   IFS=$as_save_IFS
10120   test -z "$as_dir" && as_dir=.
10121   for lt_ac_prog in sed gsed; do
10122     for ac_exec_ext in '' $ac_executable_extensions; do
10123       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10124         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10125       fi
10126     done
10127   done
10128 done
10129 lt_ac_max=0
10130 lt_ac_count=0
10131 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10132 # along with /bin/sed that truncates output.
10133 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10134   test ! -f $lt_ac_sed && break
10135   cat /dev/null > conftest.in
10136   lt_ac_count=0
10137   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10138   # Check for GNU sed and select it if it is found.
10139   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10140     lt_cv_path_SED=$lt_ac_sed
10141     break
10142   fi
10143   while true; do
10144     cat conftest.in conftest.in >conftest.tmp
10145     mv conftest.tmp conftest.in
10146     cp conftest.in conftest.nl
10147     echo >>conftest.nl
10148     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10149     cmp -s conftest.out conftest.nl || break
10150     # 10000 chars as input seems more than enough
10151     test $lt_ac_count -gt 10 && break
10152     lt_ac_count=`expr $lt_ac_count + 1`
10153     if test $lt_ac_count -gt $lt_ac_max; then
10154       lt_ac_max=$lt_ac_count
10155       lt_cv_path_SED=$lt_ac_sed
10156     fi
10157   done
10158 done
10159
10160 fi
10161
10162 SED=$lt_cv_path_SED
10163 echo "$as_me:$LINENO: result: $SED" >&5
10164 echo "${ECHO_T}$SED" >&6
10165
10166
10167 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10168 if test "${with_gnu_ld+set}" = set; then
10169   withval="$with_gnu_ld"
10170   test "$withval" = no || with_gnu_ld=yes
10171 else
10172   with_gnu_ld=no
10173 fi;
10174 ac_prog=ld
10175 if test "$GCC" = yes; then
10176   # Check if gcc -print-prog-name=ld gives a path.
10177   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10178 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10179   case $host in
10180   *-*-mingw*)
10181     # gcc leaves a trailing carriage return which upsets mingw
10182     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10183   *)
10184     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10185   esac
10186   case $ac_prog in
10187     # Accept absolute paths.
10188     [\\/]* | ?:[\\/]*)
10189       re_direlt='/[^/][^/]*/\.\./'
10190       # Canonicalize the pathname of ld
10191       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10192       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10193         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10194       done
10195       test -z "$LD" && LD="$ac_prog"
10196       ;;
10197   "")
10198     # If it fails, then pretend we aren't using GCC.
10199     ac_prog=ld
10200     ;;
10201   *)
10202     # If it is relative, then search for the first ld in PATH.
10203     with_gnu_ld=unknown
10204     ;;
10205   esac
10206 elif test "$with_gnu_ld" = yes; then
10207   echo "$as_me:$LINENO: checking for GNU ld" >&5
10208 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10209 else
10210   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10211 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10212 fi
10213 if test "${lt_cv_path_LD+set}" = set; then
10214   echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216   if test -z "$LD"; then
10217   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10218   for ac_dir in $PATH; do
10219     IFS="$lt_save_ifs"
10220     test -z "$ac_dir" && ac_dir=.
10221     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10222       lt_cv_path_LD="$ac_dir/$ac_prog"
10223       # Check to see if the program is GNU ld.  I'd rather use --version,
10224       # but apparently some GNU ld's only accept -v.
10225       # Break only if it was the GNU/non-GNU ld that we prefer.
10226       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10227       *GNU* | *'with BFD'*)
10228         test "$with_gnu_ld" != no && break
10229         ;;
10230       *)
10231         test "$with_gnu_ld" != yes && break
10232         ;;
10233       esac
10234     fi
10235   done
10236   IFS="$lt_save_ifs"
10237 else
10238   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10239 fi
10240 fi
10241
10242 LD="$lt_cv_path_LD"
10243 if test -n "$LD"; then
10244   echo "$as_me:$LINENO: result: $LD" >&5
10245 echo "${ECHO_T}$LD" >&6
10246 else
10247   echo "$as_me:$LINENO: result: no" >&5
10248 echo "${ECHO_T}no" >&6
10249 fi
10250 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10251 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10252    { (exit 1); exit 1; }; }
10253 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10254 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10255 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10256   echo $ECHO_N "(cached) $ECHO_C" >&6
10257 else
10258   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10259 case `$LD -v 2>&1 </dev/null` in
10260 *GNU* | *'with BFD'*)
10261   lt_cv_prog_gnu_ld=yes
10262   ;;
10263 *)
10264   lt_cv_prog_gnu_ld=no
10265   ;;
10266 esac
10267 fi
10268 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10269 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10270 with_gnu_ld=$lt_cv_prog_gnu_ld
10271
10272
10273 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10274 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10275 if test "${lt_cv_ld_reload_flag+set}" = set; then
10276   echo $ECHO_N "(cached) $ECHO_C" >&6
10277 else
10278   lt_cv_ld_reload_flag='-r'
10279 fi
10280 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10281 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10282 reload_flag=$lt_cv_ld_reload_flag
10283 case $reload_flag in
10284 "" | " "*) ;;
10285 *) reload_flag=" $reload_flag" ;;
10286 esac
10287 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10288 case $host_os in
10289   darwin*)
10290     if test "$GCC" = yes; then
10291       reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
10292     else
10293       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10294     fi
10295     ;;
10296 esac
10297
10298 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10299 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10300 if test "${lt_cv_deplibs_check_method+set}" = set; then
10301   echo $ECHO_N "(cached) $ECHO_C" >&6
10302 else
10303   lt_cv_file_magic_cmd='$MAGIC_CMD'
10304 lt_cv_file_magic_test_file=
10305 lt_cv_deplibs_check_method='unknown'
10306 # Need to set the preceding variable on all platforms that support
10307 # interlibrary dependencies.
10308 # 'none' -- dependencies not supported.
10309 # `unknown' -- same as none, but documents that we really don't know.
10310 # 'pass_all' -- all dependencies passed with no checks.
10311 # 'test_compile' -- check by making test program.
10312 # 'file_magic [[regex]]' -- check by looking for files in library path
10313 # which responds to the $file_magic_cmd with a given extended regex.
10314 # If you have `file' or equivalent on your system and you're not sure
10315 # whether `pass_all' will *always* work, you probably want this one.
10316
10317 case $host_os in
10318 aix4* | aix5*)
10319   lt_cv_deplibs_check_method=pass_all
10320   ;;
10321
10322 beos*)
10323   lt_cv_deplibs_check_method=pass_all
10324   ;;
10325
10326 bsdi[45]*)
10327   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10328   lt_cv_file_magic_cmd='/usr/bin/file -L'
10329   lt_cv_file_magic_test_file=/shlib/libc.so
10330   ;;
10331
10332 cygwin*)
10333   # func_win32_libid is a shell function defined in ltmain.sh
10334   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10335   lt_cv_file_magic_cmd='func_win32_libid'
10336   ;;
10337
10338 mingw* | pw32*)
10339   # Base MSYS/MinGW do not provide the 'file' command needed by
10340   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10341   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10342   lt_cv_file_magic_cmd='$OBJDUMP -f'
10343   ;;
10344
10345 darwin* | rhapsody*)
10346   lt_cv_deplibs_check_method=pass_all
10347   ;;
10348
10349 freebsd* | kfreebsd*-gnu)
10350   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10351     case $host_cpu in
10352     i*86 )
10353       # Not sure whether the presence of OpenBSD here was a mistake.
10354       # Let's accept both of them until this is cleared up.
10355       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10356       lt_cv_file_magic_cmd=/usr/bin/file
10357       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10358       ;;
10359     esac
10360   else
10361     lt_cv_deplibs_check_method=pass_all
10362   fi
10363   ;;
10364
10365 gnu*)
10366   lt_cv_deplibs_check_method=pass_all
10367   ;;
10368
10369 hpux10.20* | hpux11*)
10370   lt_cv_file_magic_cmd=/usr/bin/file
10371   case "$host_cpu" in
10372   ia64*)
10373     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10374     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10375     ;;
10376   hppa*64*)
10377     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]'
10378     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10379     ;;
10380   *)
10381     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10382     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10383     ;;
10384   esac
10385   ;;
10386
10387 irix5* | irix6* | nonstopux*)
10388   case $LD in
10389   *-32|*"-32 ") libmagic=32-bit;;
10390   *-n32|*"-n32 ") libmagic=N32;;
10391   *-64|*"-64 ") libmagic=64-bit;;
10392   *) libmagic=never-match;;
10393   esac
10394   lt_cv_deplibs_check_method=pass_all
10395   ;;
10396
10397 # This must be Linux ELF.
10398 linux*)
10399   lt_cv_deplibs_check_method=pass_all
10400   ;;
10401
10402 netbsd*)
10403   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10404     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10405   else
10406     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10407   fi
10408   ;;
10409
10410 newos6*)
10411   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10412   lt_cv_file_magic_cmd=/usr/bin/file
10413   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10414   ;;
10415
10416 nto-qnx*)
10417   lt_cv_deplibs_check_method=unknown
10418   ;;
10419
10420 openbsd*)
10421   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10422     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10423   else
10424     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10425   fi
10426   ;;
10427
10428 osf3* | osf4* | osf5*)
10429   lt_cv_deplibs_check_method=pass_all
10430   ;;
10431
10432 sco3.2v5*)
10433   lt_cv_deplibs_check_method=pass_all
10434   ;;
10435
10436 solaris*)
10437   lt_cv_deplibs_check_method=pass_all
10438   ;;
10439
10440 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10441   case $host_vendor in
10442   motorola)
10443     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]'
10444     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10445     ;;
10446   ncr)
10447     lt_cv_deplibs_check_method=pass_all
10448     ;;
10449   sequent)
10450     lt_cv_file_magic_cmd='/bin/file'
10451     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10452     ;;
10453   sni)
10454     lt_cv_file_magic_cmd='/bin/file'
10455     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10456     lt_cv_file_magic_test_file=/lib/libc.so
10457     ;;
10458   siemens)
10459     lt_cv_deplibs_check_method=pass_all
10460     ;;
10461   esac
10462   ;;
10463
10464 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10465   lt_cv_deplibs_check_method=pass_all
10466   ;;
10467 esac
10468
10469 fi
10470 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10471 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10472 file_magic_cmd=$lt_cv_file_magic_cmd
10473 deplibs_check_method=$lt_cv_deplibs_check_method
10474 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10475
10476
10477
10478 # If no C compiler was specified, use CC.
10479 LTCC=${LTCC-"$CC"}
10480
10481 # Allow CC to be a program name with arguments.
10482 compiler=$CC
10483
10484 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10485 if test "${enable_libtool_lock+set}" = set; then
10486   enableval="$enable_libtool_lock"
10487
10488 fi;
10489 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10490
10491 # Some flags need to be propagated to the compiler or linker for good
10492 # libtool support.
10493 case $host in
10494 ia64-*-hpux*)
10495   # Find out which ABI we are using.
10496   echo 'int i;' > conftest.$ac_ext
10497   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10498   (eval $ac_compile) 2>&5
10499   ac_status=$?
10500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501   (exit $ac_status); }; then
10502     case `/usr/bin/file conftest.$ac_objext` in
10503     *ELF-32*)
10504       HPUX_IA64_MODE="32"
10505       ;;
10506     *ELF-64*)
10507       HPUX_IA64_MODE="64"
10508       ;;
10509     esac
10510   fi
10511   rm -rf conftest*
10512   ;;
10513 *-*-irix6*)
10514   # Find out which ABI we are using.
10515   echo '#line 10515 "configure"' > conftest.$ac_ext
10516   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10517   (eval $ac_compile) 2>&5
10518   ac_status=$?
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); }; then
10521    if test "$lt_cv_prog_gnu_ld" = yes; then
10522     case `/usr/bin/file conftest.$ac_objext` in
10523     *32-bit*)
10524       LD="${LD-ld} -melf32bsmip"
10525       ;;
10526     *N32*)
10527       LD="${LD-ld} -melf32bmipn32"
10528       ;;
10529     *64-bit*)
10530       LD="${LD-ld} -melf64bmip"
10531       ;;
10532     esac
10533    else
10534     case `/usr/bin/file conftest.$ac_objext` in
10535     *32-bit*)
10536       LD="${LD-ld} -32"
10537       ;;
10538     *N32*)
10539       LD="${LD-ld} -n32"
10540       ;;
10541     *64-bit*)
10542       LD="${LD-ld} -64"
10543       ;;
10544     esac
10545    fi
10546   fi
10547   rm -rf conftest*
10548   ;;
10549
10550 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10551   # Find out which ABI we are using.
10552   echo 'int i;' > conftest.$ac_ext
10553   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10554   (eval $ac_compile) 2>&5
10555   ac_status=$?
10556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557   (exit $ac_status); }; then
10558     case "`/usr/bin/file conftest.o`" in
10559     *32-bit*)
10560       case $host in
10561         x86_64-*linux*)
10562           LD="${LD-ld} -m elf_i386"
10563           ;;
10564         ppc64-*linux*|powerpc64-*linux*)
10565           LD="${LD-ld} -m elf32ppclinux"
10566           ;;
10567         s390x-*linux*)
10568           LD="${LD-ld} -m elf_s390"
10569           ;;
10570         sparc64-*linux*)
10571           LD="${LD-ld} -m elf32_sparc"
10572           ;;
10573       esac
10574       ;;
10575     *64-bit*)
10576       case $host in
10577         x86_64-*linux*)
10578           LD="${LD-ld} -m elf_x86_64"
10579           ;;
10580         ppc*-*linux*|powerpc*-*linux*)
10581           LD="${LD-ld} -m elf64ppc"
10582           ;;
10583         s390*-*linux*)
10584           LD="${LD-ld} -m elf64_s390"
10585           ;;
10586         sparc*-*linux*)
10587           LD="${LD-ld} -m elf64_sparc"
10588           ;;
10589       esac
10590       ;;
10591     esac
10592   fi
10593   rm -rf conftest*
10594   ;;
10595
10596 *-*-sco3.2v5*)
10597   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10598   SAVE_CFLAGS="$CFLAGS"
10599   CFLAGS="$CFLAGS -belf"
10600   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10601 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10602 if test "${lt_cv_cc_needs_belf+set}" = set; then
10603   echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10605   ac_ext=c
10606 ac_cpp='$CPP $CPPFLAGS'
10607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10610
10611      cat >conftest.$ac_ext <<_ACEOF
10612 /* confdefs.h.  */
10613 _ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h.  */
10617
10618 _ACEOF
10619 rm -f conftest.$ac_objext conftest$ac_exeext
10620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10621   (eval $ac_link) 2>conftest.er1
10622   ac_status=$?
10623   grep -v '^ *+' conftest.er1 >conftest.err
10624   rm -f conftest.er1
10625   cat conftest.err >&5
10626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627   (exit $ac_status); } &&
10628          { ac_try='test -z "$ac_c_werror_flag"
10629                          || test ! -s conftest.err'
10630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10631   (eval $ac_try) 2>&5
10632   ac_status=$?
10633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634   (exit $ac_status); }; } &&
10635          { ac_try='test -s conftest$ac_exeext'
10636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637   (eval $ac_try) 2>&5
10638   ac_status=$?
10639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640   (exit $ac_status); }; }; then
10641   lt_cv_cc_needs_belf=yes
10642 else
10643   echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.$ac_ext >&5
10645
10646 lt_cv_cc_needs_belf=no
10647 fi
10648 rm -f conftest.err conftest.$ac_objext \
10649       conftest$ac_exeext conftest.$ac_ext
10650      ac_ext=c
10651 ac_cpp='$CPP $CPPFLAGS'
10652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10655
10656 fi
10657 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10658 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10659   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10660     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10661     CFLAGS="$SAVE_CFLAGS"
10662   fi
10663   ;;
10664
10665 esac
10666
10667 need_locks="$enable_libtool_lock"
10668
10669
10670
10671
10672 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10673     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10674     (test "X$CXX" != "Xg++"))) ; then
10675   ac_ext=cc
10676 ac_cpp='$CXXCPP $CPPFLAGS'
10677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10680 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10681 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10682 if test -z "$CXXCPP"; then
10683   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10684   echo $ECHO_N "(cached) $ECHO_C" >&6
10685 else
10686       # Double quotes because CXXCPP needs to be expanded
10687     for CXXCPP in "$CXX -E" "/lib/cpp"
10688     do
10689       ac_preproc_ok=false
10690 for ac_cxx_preproc_warn_flag in '' yes
10691 do
10692   # Use a header file that comes with gcc, so configuring glibc
10693   # with a fresh cross-compiler works.
10694   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10695   # <limits.h> exists even on freestanding compilers.
10696   # On the NeXT, cc -E runs the code through the compiler's parser,
10697   # not just through cpp. "Syntax error" is here to catch this case.
10698   cat >conftest.$ac_ext <<_ACEOF
10699 /* confdefs.h.  */
10700 _ACEOF
10701 cat confdefs.h >>conftest.$ac_ext
10702 cat >>conftest.$ac_ext <<_ACEOF
10703 /* end confdefs.h.  */
10704 #ifdef __STDC__
10705 # include <limits.h>
10706 #else
10707 # include <assert.h>
10708 #endif
10709                      Syntax error
10710 _ACEOF
10711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10712   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10713   ac_status=$?
10714   grep -v '^ *+' conftest.er1 >conftest.err
10715   rm -f conftest.er1
10716   cat conftest.err >&5
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); } >/dev/null; then
10719   if test -s conftest.err; then
10720     ac_cpp_err=$ac_cxx_preproc_warn_flag
10721     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10722   else
10723     ac_cpp_err=
10724   fi
10725 else
10726   ac_cpp_err=yes
10727 fi
10728 if test -z "$ac_cpp_err"; then
10729   :
10730 else
10731   echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10733
10734   # Broken: fails on valid input.
10735 continue
10736 fi
10737 rm -f conftest.err conftest.$ac_ext
10738
10739   # OK, works on sane cases.  Now check whether non-existent headers
10740   # can be detected and how.
10741   cat >conftest.$ac_ext <<_ACEOF
10742 /* confdefs.h.  */
10743 _ACEOF
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h.  */
10747 #include <ac_nonexistent.h>
10748 _ACEOF
10749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10750   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10751   ac_status=$?
10752   grep -v '^ *+' conftest.er1 >conftest.err
10753   rm -f conftest.er1
10754   cat conftest.err >&5
10755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756   (exit $ac_status); } >/dev/null; then
10757   if test -s conftest.err; then
10758     ac_cpp_err=$ac_cxx_preproc_warn_flag
10759     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10760   else
10761     ac_cpp_err=
10762   fi
10763 else
10764   ac_cpp_err=yes
10765 fi
10766 if test -z "$ac_cpp_err"; then
10767   # Broken: success on invalid input.
10768 continue
10769 else
10770   echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10772
10773   # Passes both tests.
10774 ac_preproc_ok=:
10775 break
10776 fi
10777 rm -f conftest.err conftest.$ac_ext
10778
10779 done
10780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10781 rm -f conftest.err conftest.$ac_ext
10782 if $ac_preproc_ok; then
10783   break
10784 fi
10785
10786     done
10787     ac_cv_prog_CXXCPP=$CXXCPP
10788
10789 fi
10790   CXXCPP=$ac_cv_prog_CXXCPP
10791 else
10792   ac_cv_prog_CXXCPP=$CXXCPP
10793 fi
10794 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10795 echo "${ECHO_T}$CXXCPP" >&6
10796 ac_preproc_ok=false
10797 for ac_cxx_preproc_warn_flag in '' yes
10798 do
10799   # Use a header file that comes with gcc, so configuring glibc
10800   # with a fresh cross-compiler works.
10801   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10802   # <limits.h> exists even on freestanding compilers.
10803   # On the NeXT, cc -E runs the code through the compiler's parser,
10804   # not just through cpp. "Syntax error" is here to catch this case.
10805   cat >conftest.$ac_ext <<_ACEOF
10806 /* confdefs.h.  */
10807 _ACEOF
10808 cat confdefs.h >>conftest.$ac_ext
10809 cat >>conftest.$ac_ext <<_ACEOF
10810 /* end confdefs.h.  */
10811 #ifdef __STDC__
10812 # include <limits.h>
10813 #else
10814 # include <assert.h>
10815 #endif
10816                      Syntax error
10817 _ACEOF
10818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10819   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10820   ac_status=$?
10821   grep -v '^ *+' conftest.er1 >conftest.err
10822   rm -f conftest.er1
10823   cat conftest.err >&5
10824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825   (exit $ac_status); } >/dev/null; then
10826   if test -s conftest.err; then
10827     ac_cpp_err=$ac_cxx_preproc_warn_flag
10828     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10829   else
10830     ac_cpp_err=
10831   fi
10832 else
10833   ac_cpp_err=yes
10834 fi
10835 if test -z "$ac_cpp_err"; then
10836   :
10837 else
10838   echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10840
10841   # Broken: fails on valid input.
10842 continue
10843 fi
10844 rm -f conftest.err conftest.$ac_ext
10845
10846   # OK, works on sane cases.  Now check whether non-existent headers
10847   # can be detected and how.
10848   cat >conftest.$ac_ext <<_ACEOF
10849 /* confdefs.h.  */
10850 _ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h.  */
10854 #include <ac_nonexistent.h>
10855 _ACEOF
10856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10857   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10858   ac_status=$?
10859   grep -v '^ *+' conftest.er1 >conftest.err
10860   rm -f conftest.er1
10861   cat conftest.err >&5
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); } >/dev/null; then
10864   if test -s conftest.err; then
10865     ac_cpp_err=$ac_cxx_preproc_warn_flag
10866     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10867   else
10868     ac_cpp_err=
10869   fi
10870 else
10871   ac_cpp_err=yes
10872 fi
10873 if test -z "$ac_cpp_err"; then
10874   # Broken: success on invalid input.
10875 continue
10876 else
10877   echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.$ac_ext >&5
10879
10880   # Passes both tests.
10881 ac_preproc_ok=:
10882 break
10883 fi
10884 rm -f conftest.err conftest.$ac_ext
10885
10886 done
10887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10888 rm -f conftest.err conftest.$ac_ext
10889 if $ac_preproc_ok; then
10890   :
10891 else
10892   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10893 See \`config.log' for more details." >&5
10894 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10895 See \`config.log' for more details." >&2;}
10896    { (exit 1); exit 1; }; }
10897 fi
10898
10899 ac_ext=cc
10900 ac_cpp='$CXXCPP $CPPFLAGS'
10901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10904
10905 fi
10906
10907
10908 ac_ext=f
10909 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10910 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10911 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10912 if test -n "$ac_tool_prefix"; then
10913   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10914   do
10915     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10917 echo "$as_me:$LINENO: checking for $ac_word" >&5
10918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10919 if test "${ac_cv_prog_F77+set}" = set; then
10920   echo $ECHO_N "(cached) $ECHO_C" >&6
10921 else
10922   if test -n "$F77"; then
10923   ac_cv_prog_F77="$F77" # Let the user override the test.
10924 else
10925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10926 for as_dir in $PATH
10927 do
10928   IFS=$as_save_IFS
10929   test -z "$as_dir" && as_dir=.
10930   for ac_exec_ext in '' $ac_executable_extensions; do
10931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10932     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10934     break 2
10935   fi
10936 done
10937 done
10938
10939 fi
10940 fi
10941 F77=$ac_cv_prog_F77
10942 if test -n "$F77"; then
10943   echo "$as_me:$LINENO: result: $F77" >&5
10944 echo "${ECHO_T}$F77" >&6
10945 else
10946   echo "$as_me:$LINENO: result: no" >&5
10947 echo "${ECHO_T}no" >&6
10948 fi
10949
10950     test -n "$F77" && break
10951   done
10952 fi
10953 if test -z "$F77"; then
10954   ac_ct_F77=$F77
10955   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10956 do
10957   # Extract the first word of "$ac_prog", so it can be a program name with args.
10958 set dummy $ac_prog; ac_word=$2
10959 echo "$as_me:$LINENO: checking for $ac_word" >&5
10960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10961 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10962   echo $ECHO_N "(cached) $ECHO_C" >&6
10963 else
10964   if test -n "$ac_ct_F77"; then
10965   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10966 else
10967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968 for as_dir in $PATH
10969 do
10970   IFS=$as_save_IFS
10971   test -z "$as_dir" && as_dir=.
10972   for ac_exec_ext in '' $ac_executable_extensions; do
10973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10974     ac_cv_prog_ac_ct_F77="$ac_prog"
10975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10976     break 2
10977   fi
10978 done
10979 done
10980
10981 fi
10982 fi
10983 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10984 if test -n "$ac_ct_F77"; then
10985   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10986 echo "${ECHO_T}$ac_ct_F77" >&6
10987 else
10988   echo "$as_me:$LINENO: result: no" >&5
10989 echo "${ECHO_T}no" >&6
10990 fi
10991
10992   test -n "$ac_ct_F77" && break
10993 done
10994
10995   F77=$ac_ct_F77
10996 fi
10997
10998
10999 # Provide some information about the compiler.
11000 echo "$as_me:11000:" \
11001      "checking for Fortran 77 compiler version" >&5
11002 ac_compiler=`set X $ac_compile; echo $2`
11003 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11004   (eval $ac_compiler --version </dev/null >&5) 2>&5
11005   ac_status=$?
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); }
11008 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11009   (eval $ac_compiler -v </dev/null >&5) 2>&5
11010   ac_status=$?
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); }
11013 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11014   (eval $ac_compiler -V </dev/null >&5) 2>&5
11015   ac_status=$?
11016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017   (exit $ac_status); }
11018 rm -f a.out
11019
11020 # If we don't use `.F' as extension, the preprocessor is not run on the
11021 # input file.  (Note that this only needs to work for GNU compilers.)
11022 ac_save_ext=$ac_ext
11023 ac_ext=F
11024 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11025 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11026 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11027   echo $ECHO_N "(cached) $ECHO_C" >&6
11028 else
11029   cat >conftest.$ac_ext <<_ACEOF
11030       program main
11031 #ifndef __GNUC__
11032        choke me
11033 #endif
11034
11035       end
11036 _ACEOF
11037 rm -f conftest.$ac_objext
11038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11039   (eval $ac_compile) 2>conftest.er1
11040   ac_status=$?
11041   grep -v '^ *+' conftest.er1 >conftest.err
11042   rm -f conftest.er1
11043   cat conftest.err >&5
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); } &&
11046          { ac_try='test -z "$ac_f77_werror_flag"
11047                          || test ! -s conftest.err'
11048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049   (eval $ac_try) 2>&5
11050   ac_status=$?
11051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052   (exit $ac_status); }; } &&
11053          { ac_try='test -s conftest.$ac_objext'
11054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055   (eval $ac_try) 2>&5
11056   ac_status=$?
11057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058   (exit $ac_status); }; }; then
11059   ac_compiler_gnu=yes
11060 else
11061   echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11063
11064 ac_compiler_gnu=no
11065 fi
11066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11067 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11068
11069 fi
11070 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11071 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11072 ac_ext=$ac_save_ext
11073 ac_test_FFLAGS=${FFLAGS+set}
11074 ac_save_FFLAGS=$FFLAGS
11075 FFLAGS=
11076 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11077 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11078 if test "${ac_cv_prog_f77_g+set}" = set; then
11079   echo $ECHO_N "(cached) $ECHO_C" >&6
11080 else
11081   FFLAGS=-g
11082 cat >conftest.$ac_ext <<_ACEOF
11083       program main
11084
11085       end
11086 _ACEOF
11087 rm -f conftest.$ac_objext
11088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11089   (eval $ac_compile) 2>conftest.er1
11090   ac_status=$?
11091   grep -v '^ *+' conftest.er1 >conftest.err
11092   rm -f conftest.er1
11093   cat conftest.err >&5
11094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095   (exit $ac_status); } &&
11096          { ac_try='test -z "$ac_f77_werror_flag"
11097                          || test ! -s conftest.err'
11098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099   (eval $ac_try) 2>&5
11100   ac_status=$?
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); }; } &&
11103          { ac_try='test -s conftest.$ac_objext'
11104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105   (eval $ac_try) 2>&5
11106   ac_status=$?
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); }; }; then
11109   ac_cv_prog_f77_g=yes
11110 else
11111   echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11113
11114 ac_cv_prog_f77_g=no
11115 fi
11116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11117
11118 fi
11119 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11120 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11121 if test "$ac_test_FFLAGS" = set; then
11122   FFLAGS=$ac_save_FFLAGS
11123 elif test $ac_cv_prog_f77_g = yes; then
11124   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11125     FFLAGS="-g -O2"
11126   else
11127     FFLAGS="-g"
11128   fi
11129 else
11130   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11131     FFLAGS="-O2"
11132   else
11133     FFLAGS=
11134   fi
11135 fi
11136
11137 G77=`test $ac_compiler_gnu = yes && echo yes`
11138 ac_ext=c
11139 ac_cpp='$CPP $CPPFLAGS'
11140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11143
11144
11145
11146 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11147
11148 # find the maximum length of command line arguments
11149 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11150 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11151 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11152   echo $ECHO_N "(cached) $ECHO_C" >&6
11153 else
11154     i=0
11155   teststring="ABCD"
11156
11157   case $build_os in
11158   msdosdjgpp*)
11159     # On DJGPP, this test can blow up pretty badly due to problems in libc
11160     # (any single argument exceeding 2000 bytes causes a buffer overrun
11161     # during glob expansion).  Even if it were fixed, the result of this
11162     # check would be larger than it should be.
11163     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11164     ;;
11165
11166   gnu*)
11167     # Under GNU Hurd, this test is not required because there is
11168     # no limit to the length of command line arguments.
11169     # Libtool will interpret -1 as no limit whatsoever
11170     lt_cv_sys_max_cmd_len=-1;
11171     ;;
11172
11173   cygwin* | mingw*)
11174     # On Win9x/ME, this test blows up -- it succeeds, but takes
11175     # about 5 minutes as the teststring grows exponentially.
11176     # Worse, since 9x/ME are not pre-emptively multitasking,
11177     # you end up with a "frozen" computer, even though with patience
11178     # the test eventually succeeds (with a max line length of 256k).
11179     # Instead, let's just punt: use the minimum linelength reported by
11180     # all of the supported platforms: 8192 (on NT/2K/XP).
11181     lt_cv_sys_max_cmd_len=8192;
11182     ;;
11183
11184   amigaos*)
11185     # On AmigaOS with pdksh, this test takes hours, literally.
11186     # So we just punt and use a minimum line length of 8192.
11187     lt_cv_sys_max_cmd_len=8192;
11188     ;;
11189
11190   netbsd* | freebsd* | openbsd* | darwin* )
11191     # This has been around since 386BSD, at least.  Likely further.
11192     if test -x /sbin/sysctl; then
11193       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11194     elif test -x /usr/sbin/sysctl; then
11195       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11196     else
11197       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11198     fi
11199     # And add a safety zone
11200     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11201     ;;
11202
11203  *)
11204     # If test is not a shell built-in, we'll probably end up computing a
11205     # maximum length that is only half of the actual maximum length, but
11206     # we can't tell.
11207     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11208     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11209                = "XX$teststring") >/dev/null 2>&1 &&
11210             new_result=`expr "X$teststring" : ".*" 2>&1` &&
11211             lt_cv_sys_max_cmd_len=$new_result &&
11212             test $i != 17 # 1/2 MB should be enough
11213     do
11214       i=`expr $i + 1`
11215       teststring=$teststring$teststring
11216     done
11217     teststring=
11218     # Add a significant safety factor because C++ compilers can tack on massive
11219     # amounts of additional arguments before passing them to the linker.
11220     # It appears as though 1/2 is a usable value.
11221     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11222     ;;
11223   esac
11224
11225 fi
11226
11227 if test -n $lt_cv_sys_max_cmd_len ; then
11228   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11229 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11230 else
11231   echo "$as_me:$LINENO: result: none" >&5
11232 echo "${ECHO_T}none" >&6
11233 fi
11234
11235
11236
11237
11238 # Check for command to grab the raw symbol name followed by C symbol from nm.
11239 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11240 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11241 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11242   echo $ECHO_N "(cached) $ECHO_C" >&6
11243 else
11244
11245 # These are sane defaults that work on at least a few old systems.
11246 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11247
11248 # Character class describing NM global symbol codes.
11249 symcode='[BCDEGRST]'
11250
11251 # Regexp to match symbols that can be accessed directly from C.
11252 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11253
11254 # Transform the above into a raw symbol and a C symbol.
11255 symxfrm='\1 \2\3 \3'
11256
11257 # Transform an extracted symbol line into a proper C declaration
11258 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11259
11260 # Transform an extracted symbol line into symbol name and symbol address
11261 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'"
11262
11263 # Define system-specific variables.
11264 case $host_os in
11265 aix*)
11266   symcode='[BCDT]'
11267   ;;
11268 cygwin* | mingw* | pw32*)
11269   symcode='[ABCDGISTW]'
11270   ;;
11271 hpux*) # Its linker distinguishes data from code symbols
11272   if test "$host_cpu" = ia64; then
11273     symcode='[ABCDEGRST]'
11274   fi
11275   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11276   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'"
11277   ;;
11278 linux*)
11279   if test "$host_cpu" = ia64; then
11280     symcode='[ABCDGIRSTW]'
11281     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11282     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'"
11283   fi
11284   ;;
11285 irix* | nonstopux*)
11286   symcode='[BCDEGRST]'
11287   ;;
11288 osf*)
11289   symcode='[BCDEGQRST]'
11290   ;;
11291 solaris* | sysv5*)
11292   symcode='[BDRT]'
11293   ;;
11294 sysv4)
11295   symcode='[DFNSTU]'
11296   ;;
11297 esac
11298
11299 # Handle CRLF in mingw tool chain
11300 opt_cr=
11301 case $build_os in
11302 mingw*)
11303   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11304   ;;
11305 esac
11306
11307 # If we're using GNU nm, then use its standard symbol codes.
11308 case `$NM -V 2>&1` in
11309 *GNU* | *'with BFD'*)
11310   symcode='[ABCDGIRSTW]' ;;
11311 esac
11312
11313 # Try without a prefix undercore, then with it.
11314 for ac_symprfx in "" "_"; do
11315
11316   # Write the raw and C identifiers.
11317   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11318
11319   # Check to see that the pipe works correctly.
11320   pipe_works=no
11321
11322   rm -f conftest*
11323   cat > conftest.$ac_ext <<EOF
11324 #ifdef __cplusplus
11325 extern "C" {
11326 #endif
11327 char nm_test_var;
11328 void nm_test_func(){}
11329 #ifdef __cplusplus
11330 }
11331 #endif
11332 int main(){nm_test_var='a';nm_test_func();return(0);}
11333 EOF
11334
11335   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11336   (eval $ac_compile) 2>&5
11337   ac_status=$?
11338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339   (exit $ac_status); }; then
11340     # Now try to grab the symbols.
11341     nlist=conftest.nm
11342     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11343   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11344   ac_status=$?
11345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346   (exit $ac_status); } && test -s "$nlist"; then
11347       # Try sorting and uniquifying the output.
11348       if sort "$nlist" | uniq > "$nlist"T; then
11349         mv -f "$nlist"T "$nlist"
11350       else
11351         rm -f "$nlist"T
11352       fi
11353
11354       # Make sure that we snagged all the symbols we need.
11355       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11356         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11357           cat <<EOF > conftest.$ac_ext
11358 #ifdef __cplusplus
11359 extern "C" {
11360 #endif
11361
11362 EOF
11363           # Now generate the symbol file.
11364           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11365
11366           cat <<EOF >> conftest.$ac_ext
11367 #if defined (__STDC__) && __STDC__
11368 # define lt_ptr_t void *
11369 #else
11370 # define lt_ptr_t char *
11371 # define const
11372 #endif
11373
11374 /* The mapping between symbol names and symbols. */
11375 const struct {
11376   const char *name;
11377   lt_ptr_t address;
11378 }
11379 lt_preloaded_symbols[] =
11380 {
11381 EOF
11382           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11383           cat <<\EOF >> conftest.$ac_ext
11384   {0, (lt_ptr_t) 0}
11385 };
11386
11387 #ifdef __cplusplus
11388 }
11389 #endif
11390 EOF
11391           # Now try linking the two files.
11392           mv conftest.$ac_objext conftstm.$ac_objext
11393           lt_save_LIBS="$LIBS"
11394           lt_save_CFLAGS="$CFLAGS"
11395           LIBS="conftstm.$ac_objext"
11396           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11397           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11398   (eval $ac_link) 2>&5
11399   ac_status=$?
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11402             pipe_works=yes
11403           fi
11404           LIBS="$lt_save_LIBS"
11405           CFLAGS="$lt_save_CFLAGS"
11406         else
11407           echo "cannot find nm_test_func in $nlist" >&5
11408         fi
11409       else
11410         echo "cannot find nm_test_var in $nlist" >&5
11411       fi
11412     else
11413       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11414     fi
11415   else
11416     echo "$progname: failed program was:" >&5
11417     cat conftest.$ac_ext >&5
11418   fi
11419   rm -f conftest* conftst*
11420
11421   # Do not use the global_symbol_pipe unless it works.
11422   if test "$pipe_works" = yes; then
11423     break
11424   else
11425     lt_cv_sys_global_symbol_pipe=
11426   fi
11427 done
11428
11429 fi
11430
11431 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11432   lt_cv_sys_global_symbol_to_cdecl=
11433 fi
11434 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11435   echo "$as_me:$LINENO: result: failed" >&5
11436 echo "${ECHO_T}failed" >&6
11437 else
11438   echo "$as_me:$LINENO: result: ok" >&5
11439 echo "${ECHO_T}ok" >&6
11440 fi
11441
11442 echo "$as_me:$LINENO: checking for objdir" >&5
11443 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11444 if test "${lt_cv_objdir+set}" = set; then
11445   echo $ECHO_N "(cached) $ECHO_C" >&6
11446 else
11447   rm -f .libs 2>/dev/null
11448 mkdir .libs 2>/dev/null
11449 if test -d .libs; then
11450   lt_cv_objdir=.libs
11451 else
11452   # MS-DOS does not allow filenames that begin with a dot.
11453   lt_cv_objdir=_libs
11454 fi
11455 rmdir .libs 2>/dev/null
11456 fi
11457 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11458 echo "${ECHO_T}$lt_cv_objdir" >&6
11459 objdir=$lt_cv_objdir
11460
11461
11462
11463
11464
11465 case $host_os in
11466 aix3*)
11467   # AIX sometimes has problems with the GCC collect2 program.  For some
11468   # reason, if we set the COLLECT_NAMES environment variable, the problems
11469   # vanish in a puff of smoke.
11470   if test "X${COLLECT_NAMES+set}" != Xset; then
11471     COLLECT_NAMES=
11472     export COLLECT_NAMES
11473   fi
11474   ;;
11475 esac
11476
11477 # Sed substitution that helps us do robust quoting.  It backslashifies
11478 # metacharacters that are still active within double-quoted strings.
11479 Xsed='sed -e s/^X//'
11480 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11481
11482 # Same as above, but do not quote variable references.
11483 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11484
11485 # Sed substitution to delay expansion of an escaped shell variable in a
11486 # double_quote_subst'ed string.
11487 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11488
11489 # Sed substitution to avoid accidental globbing in evaled expressions
11490 no_glob_subst='s/\*/\\\*/g'
11491
11492 # Constants:
11493 rm="rm -f"
11494
11495 # Global variables:
11496 default_ofile=mklib
11497 can_build_shared=yes
11498
11499 # All known linkers require a `.a' archive for static linking (except M$VC,
11500 # which needs '.lib').
11501 libext=a
11502 ltmain="$ac_aux_dir/ltmain.sh"
11503 ofile="$default_ofile"
11504 with_gnu_ld="$lt_cv_prog_gnu_ld"
11505
11506 if test -n "$ac_tool_prefix"; then
11507   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11508 set dummy ${ac_tool_prefix}ar; ac_word=$2
11509 echo "$as_me:$LINENO: checking for $ac_word" >&5
11510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11511 if test "${ac_cv_prog_AR+set}" = set; then
11512   echo $ECHO_N "(cached) $ECHO_C" >&6
11513 else
11514   if test -n "$AR"; then
11515   ac_cv_prog_AR="$AR" # Let the user override the test.
11516 else
11517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11518 for as_dir in $PATH
11519 do
11520   IFS=$as_save_IFS
11521   test -z "$as_dir" && as_dir=.
11522   for ac_exec_ext in '' $ac_executable_extensions; do
11523   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11524     ac_cv_prog_AR="${ac_tool_prefix}ar"
11525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11526     break 2
11527   fi
11528 done
11529 done
11530
11531 fi
11532 fi
11533 AR=$ac_cv_prog_AR
11534 if test -n "$AR"; then
11535   echo "$as_me:$LINENO: result: $AR" >&5
11536 echo "${ECHO_T}$AR" >&6
11537 else
11538   echo "$as_me:$LINENO: result: no" >&5
11539 echo "${ECHO_T}no" >&6
11540 fi
11541
11542 fi
11543 if test -z "$ac_cv_prog_AR"; then
11544   ac_ct_AR=$AR
11545   # Extract the first word of "ar", so it can be a program name with args.
11546 set dummy ar; ac_word=$2
11547 echo "$as_me:$LINENO: checking for $ac_word" >&5
11548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11549 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11550   echo $ECHO_N "(cached) $ECHO_C" >&6
11551 else
11552   if test -n "$ac_ct_AR"; then
11553   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11554 else
11555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556 for as_dir in $PATH
11557 do
11558   IFS=$as_save_IFS
11559   test -z "$as_dir" && as_dir=.
11560   for ac_exec_ext in '' $ac_executable_extensions; do
11561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11562     ac_cv_prog_ac_ct_AR="ar"
11563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11564     break 2
11565   fi
11566 done
11567 done
11568
11569   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11570 fi
11571 fi
11572 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11573 if test -n "$ac_ct_AR"; then
11574   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11575 echo "${ECHO_T}$ac_ct_AR" >&6
11576 else
11577   echo "$as_me:$LINENO: result: no" >&5
11578 echo "${ECHO_T}no" >&6
11579 fi
11580
11581   AR=$ac_ct_AR
11582 else
11583   AR="$ac_cv_prog_AR"
11584 fi
11585
11586 if test -n "$ac_tool_prefix"; then
11587   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11588 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11589 echo "$as_me:$LINENO: checking for $ac_word" >&5
11590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11591 if test "${ac_cv_prog_RANLIB+set}" = set; then
11592   echo $ECHO_N "(cached) $ECHO_C" >&6
11593 else
11594   if test -n "$RANLIB"; then
11595   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11596 else
11597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11598 for as_dir in $PATH
11599 do
11600   IFS=$as_save_IFS
11601   test -z "$as_dir" && as_dir=.
11602   for ac_exec_ext in '' $ac_executable_extensions; do
11603   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11604     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11606     break 2
11607   fi
11608 done
11609 done
11610
11611 fi
11612 fi
11613 RANLIB=$ac_cv_prog_RANLIB
11614 if test -n "$RANLIB"; then
11615   echo "$as_me:$LINENO: result: $RANLIB" >&5
11616 echo "${ECHO_T}$RANLIB" >&6
11617 else
11618   echo "$as_me:$LINENO: result: no" >&5
11619 echo "${ECHO_T}no" >&6
11620 fi
11621
11622 fi
11623 if test -z "$ac_cv_prog_RANLIB"; then
11624   ac_ct_RANLIB=$RANLIB
11625   # Extract the first word of "ranlib", so it can be a program name with args.
11626 set dummy ranlib; ac_word=$2
11627 echo "$as_me:$LINENO: checking for $ac_word" >&5
11628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11629 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11630   echo $ECHO_N "(cached) $ECHO_C" >&6
11631 else
11632   if test -n "$ac_ct_RANLIB"; then
11633   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11634 else
11635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636 for as_dir in $PATH
11637 do
11638   IFS=$as_save_IFS
11639   test -z "$as_dir" && as_dir=.
11640   for ac_exec_ext in '' $ac_executable_extensions; do
11641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11642     ac_cv_prog_ac_ct_RANLIB="ranlib"
11643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11644     break 2
11645   fi
11646 done
11647 done
11648
11649   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11650 fi
11651 fi
11652 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11653 if test -n "$ac_ct_RANLIB"; then
11654   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11655 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11656 else
11657   echo "$as_me:$LINENO: result: no" >&5
11658 echo "${ECHO_T}no" >&6
11659 fi
11660
11661   RANLIB=$ac_ct_RANLIB
11662 else
11663   RANLIB="$ac_cv_prog_RANLIB"
11664 fi
11665
11666 if test -n "$ac_tool_prefix"; then
11667   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11668 set dummy ${ac_tool_prefix}strip; ac_word=$2
11669 echo "$as_me:$LINENO: checking for $ac_word" >&5
11670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11671 if test "${ac_cv_prog_STRIP+set}" = set; then
11672   echo $ECHO_N "(cached) $ECHO_C" >&6
11673 else
11674   if test -n "$STRIP"; then
11675   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11676 else
11677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11678 for as_dir in $PATH
11679 do
11680   IFS=$as_save_IFS
11681   test -z "$as_dir" && as_dir=.
11682   for ac_exec_ext in '' $ac_executable_extensions; do
11683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11684     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11686     break 2
11687   fi
11688 done
11689 done
11690
11691 fi
11692 fi
11693 STRIP=$ac_cv_prog_STRIP
11694 if test -n "$STRIP"; then
11695   echo "$as_me:$LINENO: result: $STRIP" >&5
11696 echo "${ECHO_T}$STRIP" >&6
11697 else
11698   echo "$as_me:$LINENO: result: no" >&5
11699 echo "${ECHO_T}no" >&6
11700 fi
11701
11702 fi
11703 if test -z "$ac_cv_prog_STRIP"; then
11704   ac_ct_STRIP=$STRIP
11705   # Extract the first word of "strip", so it can be a program name with args.
11706 set dummy strip; ac_word=$2
11707 echo "$as_me:$LINENO: checking for $ac_word" >&5
11708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11709 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11710   echo $ECHO_N "(cached) $ECHO_C" >&6
11711 else
11712   if test -n "$ac_ct_STRIP"; then
11713   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11714 else
11715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716 for as_dir in $PATH
11717 do
11718   IFS=$as_save_IFS
11719   test -z "$as_dir" && as_dir=.
11720   for ac_exec_ext in '' $ac_executable_extensions; do
11721   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11722     ac_cv_prog_ac_ct_STRIP="strip"
11723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11724     break 2
11725   fi
11726 done
11727 done
11728
11729   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11730 fi
11731 fi
11732 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11733 if test -n "$ac_ct_STRIP"; then
11734   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11735 echo "${ECHO_T}$ac_ct_STRIP" >&6
11736 else
11737   echo "$as_me:$LINENO: result: no" >&5
11738 echo "${ECHO_T}no" >&6
11739 fi
11740
11741   STRIP=$ac_ct_STRIP
11742 else
11743   STRIP="$ac_cv_prog_STRIP"
11744 fi
11745
11746
11747 old_CC="$CC"
11748 old_CFLAGS="$CFLAGS"
11749
11750 # Set sane defaults for various variables
11751 test -z "$AR" && AR=ar
11752 test -z "$AR_FLAGS" && AR_FLAGS=cru
11753 test -z "$AS" && AS=as
11754 test -z "$CC" && CC=cc
11755 test -z "$LTCC" && LTCC=$CC
11756 test -z "$DLLTOOL" && DLLTOOL=dlltool
11757 test -z "$LD" && LD=ld
11758 test -z "$LN_S" && LN_S="ln -s"
11759 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11760 test -z "$NM" && NM=nm
11761 test -z "$SED" && SED=sed
11762 test -z "$OBJDUMP" && OBJDUMP=objdump
11763 test -z "$RANLIB" && RANLIB=:
11764 test -z "$STRIP" && STRIP=:
11765 test -z "$ac_objext" && ac_objext=o
11766
11767 # Determine commands to create old-style static archives.
11768 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11769 old_postinstall_cmds='chmod 644 $oldlib'
11770 old_postuninstall_cmds=
11771
11772 if test -n "$RANLIB"; then
11773   case $host_os in
11774   openbsd*)
11775     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11776     ;;
11777   *)
11778     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11779     ;;
11780   esac
11781   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11782 fi
11783
11784 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11785
11786 # Only perform the check for file, if the check method requires it
11787 case $deplibs_check_method in
11788 file_magic*)
11789   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11790     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11791 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11792 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11793   echo $ECHO_N "(cached) $ECHO_C" >&6
11794 else
11795   case $MAGIC_CMD in
11796 [\\/*] |  ?:[\\/]*)
11797   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11798   ;;
11799 *)
11800   lt_save_MAGIC_CMD="$MAGIC_CMD"
11801   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11802   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11803   for ac_dir in $ac_dummy; do
11804     IFS="$lt_save_ifs"
11805     test -z "$ac_dir" && ac_dir=.
11806     if test -f $ac_dir/${ac_tool_prefix}file; then
11807       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11808       if test -n "$file_magic_test_file"; then
11809         case $deplibs_check_method in
11810         "file_magic "*)
11811           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11812           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11813           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11814             $EGREP "$file_magic_regex" > /dev/null; then
11815             :
11816           else
11817             cat <<EOF 1>&2
11818
11819 *** Warning: the command libtool uses to detect shared libraries,
11820 *** $file_magic_cmd, produces output that libtool cannot recognize.
11821 *** The result is that libtool may fail to recognize shared libraries
11822 *** as such.  This will affect the creation of libtool libraries that
11823 *** depend on shared libraries, but programs linked with such libtool
11824 *** libraries will work regardless of this problem.  Nevertheless, you
11825 *** may want to report the problem to your system manager and/or to
11826 *** bug-libtool@gnu.org
11827
11828 EOF
11829           fi ;;
11830         esac
11831       fi
11832       break
11833     fi
11834   done
11835   IFS="$lt_save_ifs"
11836   MAGIC_CMD="$lt_save_MAGIC_CMD"
11837   ;;
11838 esac
11839 fi
11840
11841 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11842 if test -n "$MAGIC_CMD"; then
11843   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11844 echo "${ECHO_T}$MAGIC_CMD" >&6
11845 else
11846   echo "$as_me:$LINENO: result: no" >&5
11847 echo "${ECHO_T}no" >&6
11848 fi
11849
11850 if test -z "$lt_cv_path_MAGIC_CMD"; then
11851   if test -n "$ac_tool_prefix"; then
11852     echo "$as_me:$LINENO: checking for file" >&5
11853 echo $ECHO_N "checking for file... $ECHO_C" >&6
11854 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11855   echo $ECHO_N "(cached) $ECHO_C" >&6
11856 else
11857   case $MAGIC_CMD in
11858 [\\/*] |  ?:[\\/]*)
11859   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11860   ;;
11861 *)
11862   lt_save_MAGIC_CMD="$MAGIC_CMD"
11863   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11864   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11865   for ac_dir in $ac_dummy; do
11866     IFS="$lt_save_ifs"
11867     test -z "$ac_dir" && ac_dir=.
11868     if test -f $ac_dir/file; then
11869       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11870       if test -n "$file_magic_test_file"; then
11871         case $deplibs_check_method in
11872         "file_magic "*)
11873           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11874           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11875           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11876             $EGREP "$file_magic_regex" > /dev/null; then
11877             :
11878           else
11879             cat <<EOF 1>&2
11880
11881 *** Warning: the command libtool uses to detect shared libraries,
11882 *** $file_magic_cmd, produces output that libtool cannot recognize.
11883 *** The result is that libtool may fail to recognize shared libraries
11884 *** as such.  This will affect the creation of libtool libraries that
11885 *** depend on shared libraries, but programs linked with such libtool
11886 *** libraries will work regardless of this problem.  Nevertheless, you
11887 *** may want to report the problem to your system manager and/or to
11888 *** bug-libtool@gnu.org
11889
11890 EOF
11891           fi ;;
11892         esac
11893       fi
11894       break
11895     fi
11896   done
11897   IFS="$lt_save_ifs"
11898   MAGIC_CMD="$lt_save_MAGIC_CMD"
11899   ;;
11900 esac
11901 fi
11902
11903 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11904 if test -n "$MAGIC_CMD"; then
11905   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11906 echo "${ECHO_T}$MAGIC_CMD" >&6
11907 else
11908   echo "$as_me:$LINENO: result: no" >&5
11909 echo "${ECHO_T}no" >&6
11910 fi
11911
11912   else
11913     MAGIC_CMD=:
11914   fi
11915 fi
11916
11917   fi
11918   ;;
11919 esac
11920
11921 enable_dlopen=yes
11922 enable_win32_dll=no
11923
11924 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11925 if test "${enable_libtool_lock+set}" = set; then
11926   enableval="$enable_libtool_lock"
11927
11928 fi;
11929 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11930
11931
11932 # Check whether --with-pic or --without-pic was given.
11933 if test "${with_pic+set}" = set; then
11934   withval="$with_pic"
11935   pic_mode="$withval"
11936 else
11937   pic_mode=default
11938 fi;
11939 test -z "$pic_mode" && pic_mode=default
11940
11941 # Use C for the default configuration in the libtool script
11942 tagname=
11943 lt_save_CC="$CC"
11944 ac_ext=c
11945 ac_cpp='$CPP $CPPFLAGS'
11946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11949
11950
11951 # Source file extension for C test sources.
11952 ac_ext=c
11953
11954 # Object file extension for compiled C test sources.
11955 objext=o
11956 objext=$objext
11957
11958 # Code to be used in simple compile tests
11959 lt_simple_compile_test_code="int some_variable = 0;\n"
11960
11961 # Code to be used in simple link tests
11962 lt_simple_link_test_code='int main(){return(0);}\n'
11963
11964
11965 # If no C compiler was specified, use CC.
11966 LTCC=${LTCC-"$CC"}
11967
11968 # Allow CC to be a program name with arguments.
11969 compiler=$CC
11970
11971
11972 #
11973 # Check for any special shared library compilation flags.
11974 #
11975 lt_prog_cc_shlib=
11976 if test "$GCC" = no; then
11977   case $host_os in
11978   sco3.2v5*)
11979     lt_prog_cc_shlib='-belf'
11980     ;;
11981   esac
11982 fi
11983 if test -n "$lt_prog_cc_shlib"; then
11984   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11985 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11986   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11987   else
11988     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11989 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11990     lt_cv_prog_cc_can_build_shared=no
11991   fi
11992 fi
11993
11994
11995 #
11996 # Check to make sure the static flag actually works.
11997 #
11998 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11999 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12000 if test "${lt_prog_compiler_static_works+set}" = set; then
12001   echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003   lt_prog_compiler_static_works=no
12004    save_LDFLAGS="$LDFLAGS"
12005    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12006    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12007    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12008      # The compiler can only warn and ignore the option if not recognized
12009      # So say no if there are warnings
12010      if test -s conftest.err; then
12011        # Append any errors to the config.log.
12012        cat conftest.err 1>&5
12013      else
12014        lt_prog_compiler_static_works=yes
12015      fi
12016    fi
12017    $rm conftest*
12018    LDFLAGS="$save_LDFLAGS"
12019
12020 fi
12021 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12022 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12023
12024 if test x"$lt_prog_compiler_static_works" = xyes; then
12025     :
12026 else
12027     lt_prog_compiler_static=
12028 fi
12029
12030
12031
12032
12033 lt_prog_compiler_no_builtin_flag=
12034
12035 if test "$GCC" = yes; then
12036   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12037
12038
12039 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12040 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12041 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12042   echo $ECHO_N "(cached) $ECHO_C" >&6
12043 else
12044   lt_cv_prog_compiler_rtti_exceptions=no
12045   ac_outfile=conftest.$ac_objext
12046    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12047    lt_compiler_flag="-fno-rtti -fno-exceptions"
12048    # Insert the option either (1) after the last *FLAGS variable, or
12049    # (2) before a word containing "conftest.", or (3) at the end.
12050    # Note that $ac_compile itself does not contain backslashes and begins
12051    # with a dollar sign (not a hyphen), so the echo should work correctly.
12052    # The option is referenced via a variable to avoid confusing sed.
12053    lt_compile=`echo "$ac_compile" | $SED \
12054    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12055    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12056    -e 's:$: $lt_compiler_flag:'`
12057    (eval echo "\"\$as_me:12057: $lt_compile\"" >&5)
12058    (eval "$lt_compile" 2>conftest.err)
12059    ac_status=$?
12060    cat conftest.err >&5
12061    echo "$as_me:12061: \$? = $ac_status" >&5
12062    if (exit $ac_status) && test -s "$ac_outfile"; then
12063      # The compiler can only warn and ignore the option if not recognized
12064      # So say no if there are warnings
12065      if test ! -s conftest.err; then
12066        lt_cv_prog_compiler_rtti_exceptions=yes
12067      fi
12068    fi
12069    $rm conftest*
12070
12071 fi
12072 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12073 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12074
12075 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12076     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12077 else
12078     :
12079 fi
12080
12081 fi
12082
12083 lt_prog_compiler_wl=
12084 lt_prog_compiler_pic=
12085 lt_prog_compiler_static=
12086
12087 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12088 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12089
12090   if test "$GCC" = yes; then
12091     lt_prog_compiler_wl='-Wl,'
12092     lt_prog_compiler_static='-static'
12093
12094     case $host_os in
12095       aix*)
12096       # All AIX code is PIC.
12097       if test "$host_cpu" = ia64; then
12098         # AIX 5 now supports IA64 processor
12099         lt_prog_compiler_static='-Bstatic'
12100       fi
12101       ;;
12102
12103     amigaos*)
12104       # FIXME: we need at least 68020 code to build shared libraries, but
12105       # adding the `-m68020' flag to GCC prevents building anything better,
12106       # like `-m68040'.
12107       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12108       ;;
12109
12110     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12111       # PIC is the default for these OSes.
12112       ;;
12113
12114     mingw* | pw32* | os2*)
12115       # This hack is so that the source file can tell whether it is being
12116       # built for inclusion in a dll (and should export symbols for example).
12117       lt_prog_compiler_pic='-DDLL_EXPORT'
12118       ;;
12119
12120     darwin* | rhapsody*)
12121       # PIC is the default on this platform
12122       # Common symbols not allowed in MH_DYLIB files
12123       lt_prog_compiler_pic='-fno-common'
12124       ;;
12125
12126     msdosdjgpp*)
12127       # Just because we use GCC doesn't mean we suddenly get shared libraries
12128       # on systems that don't support them.
12129       lt_prog_compiler_can_build_shared=no
12130       enable_shared=no
12131       ;;
12132
12133     sysv4*MP*)
12134       if test -d /usr/nec; then
12135         lt_prog_compiler_pic=-Kconform_pic
12136       fi
12137       ;;
12138
12139     hpux*)
12140       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12141       # not for PA HP-UX.
12142       case "$host_cpu" in
12143       hppa*64*|ia64*)
12144         # +Z the default
12145         ;;
12146       *)
12147         lt_prog_compiler_pic='-fPIC'
12148         ;;
12149       esac
12150       ;;
12151
12152     *)
12153       lt_prog_compiler_pic='-fPIC'
12154       ;;
12155     esac
12156   else
12157     # PORTME Check for flag to pass linker flags through the system compiler.
12158     case $host_os in
12159     aix*)
12160       lt_prog_compiler_wl='-Wl,'
12161       if test "$host_cpu" = ia64; then
12162         # AIX 5 now supports IA64 processor
12163         lt_prog_compiler_static='-Bstatic'
12164       else
12165         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12166       fi
12167       ;;
12168       darwin*)
12169         # PIC is the default on this platform
12170         # Common symbols not allowed in MH_DYLIB files
12171        case "$cc_basename" in
12172          xlc*)
12173          lt_prog_compiler_pic='-qnocommon'
12174          lt_prog_compiler_wl='-Wl,'
12175          ;;
12176        esac
12177        ;;
12178
12179     mingw* | pw32* | os2*)
12180       # This hack is so that the source file can tell whether it is being
12181       # built for inclusion in a dll (and should export symbols for example).
12182       lt_prog_compiler_pic='-DDLL_EXPORT'
12183       ;;
12184
12185     hpux9* | hpux10* | hpux11*)
12186       lt_prog_compiler_wl='-Wl,'
12187       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12188       # not for PA HP-UX.
12189       case "$host_cpu" in
12190       hppa*64*|ia64*)
12191         # +Z the default
12192         ;;
12193       *)
12194         lt_prog_compiler_pic='+Z'
12195         ;;
12196       esac
12197       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12198       lt_prog_compiler_static='${wl}-a ${wl}archive'
12199       ;;
12200
12201     irix5* | irix6* | nonstopux*)
12202       lt_prog_compiler_wl='-Wl,'
12203       # PIC (with -KPIC) is the default.
12204       lt_prog_compiler_static='-non_shared'
12205       ;;
12206
12207     newsos6)
12208       lt_prog_compiler_pic='-KPIC'
12209       lt_prog_compiler_static='-Bstatic'
12210       ;;
12211
12212     linux*)
12213       case $CC in
12214       icc* | ecc*)
12215         lt_prog_compiler_wl='-Wl,'
12216         lt_prog_compiler_pic='-KPIC'
12217         lt_prog_compiler_static='-static'
12218         ;;
12219       ccc*)
12220         lt_prog_compiler_wl='-Wl,'
12221         # All Alpha code is PIC.
12222         lt_prog_compiler_static='-non_shared'
12223         ;;
12224       esac
12225       ;;
12226
12227     osf3* | osf4* | osf5*)
12228       lt_prog_compiler_wl='-Wl,'
12229       # All OSF/1 code is PIC.
12230       lt_prog_compiler_static='-non_shared'
12231       ;;
12232
12233     sco3.2v5*)
12234       lt_prog_compiler_pic='-Kpic'
12235       lt_prog_compiler_static='-dn'
12236       ;;
12237
12238     solaris*)
12239       lt_prog_compiler_wl='-Wl,'
12240       lt_prog_compiler_pic='-KPIC'
12241       lt_prog_compiler_static='-Bstatic'
12242       ;;
12243
12244     sunos4*)
12245       lt_prog_compiler_wl='-Qoption ld '
12246       lt_prog_compiler_pic='-PIC'
12247       lt_prog_compiler_static='-Bstatic'
12248       ;;
12249
12250     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12251       lt_prog_compiler_wl='-Wl,'
12252       lt_prog_compiler_pic='-KPIC'
12253       lt_prog_compiler_static='-Bstatic'
12254       ;;
12255
12256     sysv4*MP*)
12257       if test -d /usr/nec ;then
12258         lt_prog_compiler_pic='-Kconform_pic'
12259         lt_prog_compiler_static='-Bstatic'
12260       fi
12261       ;;
12262
12263     uts4*)
12264       lt_prog_compiler_pic='-pic'
12265       lt_prog_compiler_static='-Bstatic'
12266       ;;
12267
12268     *)
12269       lt_prog_compiler_can_build_shared=no
12270       ;;
12271     esac
12272   fi
12273
12274 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12275 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12276
12277 #
12278 # Check to make sure the PIC flag actually works.
12279 #
12280 if test -n "$lt_prog_compiler_pic"; then
12281
12282 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12283 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12284 if test "${lt_prog_compiler_pic_works+set}" = set; then
12285   echo $ECHO_N "(cached) $ECHO_C" >&6
12286 else
12287   lt_prog_compiler_pic_works=no
12288   ac_outfile=conftest.$ac_objext
12289    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12290    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12291    # Insert the option either (1) after the last *FLAGS variable, or
12292    # (2) before a word containing "conftest.", or (3) at the end.
12293    # Note that $ac_compile itself does not contain backslashes and begins
12294    # with a dollar sign (not a hyphen), so the echo should work correctly.
12295    # The option is referenced via a variable to avoid confusing sed.
12296    lt_compile=`echo "$ac_compile" | $SED \
12297    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12298    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12299    -e 's:$: $lt_compiler_flag:'`
12300    (eval echo "\"\$as_me:12300: $lt_compile\"" >&5)
12301    (eval "$lt_compile" 2>conftest.err)
12302    ac_status=$?
12303    cat conftest.err >&5
12304    echo "$as_me:12304: \$? = $ac_status" >&5
12305    if (exit $ac_status) && test -s "$ac_outfile"; then
12306      # The compiler can only warn and ignore the option if not recognized
12307      # So say no if there are warnings
12308      if test ! -s conftest.err; then
12309        lt_prog_compiler_pic_works=yes
12310      fi
12311    fi
12312    $rm conftest*
12313
12314 fi
12315 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12316 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12317
12318 if test x"$lt_prog_compiler_pic_works" = xyes; then
12319     case $lt_prog_compiler_pic in
12320      "" | " "*) ;;
12321      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12322      esac
12323 else
12324     lt_prog_compiler_pic=
12325      lt_prog_compiler_can_build_shared=no
12326 fi
12327
12328 fi
12329 case "$host_os" in
12330   # For platforms which do not support PIC, -DPIC is meaningless:
12331   *djgpp*)
12332     lt_prog_compiler_pic=
12333     ;;
12334   *)
12335     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12336     ;;
12337 esac
12338
12339 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12340 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12341 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12342   echo $ECHO_N "(cached) $ECHO_C" >&6
12343 else
12344   lt_cv_prog_compiler_c_o=no
12345    $rm -r conftest 2>/dev/null
12346    mkdir conftest
12347    cd conftest
12348    mkdir out
12349    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12350
12351    lt_compiler_flag="-o out/conftest2.$ac_objext"
12352    # Insert the option either (1) after the last *FLAGS variable, or
12353    # (2) before a word containing "conftest.", or (3) at the end.
12354    # Note that $ac_compile itself does not contain backslashes and begins
12355    # with a dollar sign (not a hyphen), so the echo should work correctly.
12356    lt_compile=`echo "$ac_compile" | $SED \
12357    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12358    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12359    -e 's:$: $lt_compiler_flag:'`
12360    (eval echo "\"\$as_me:12360: $lt_compile\"" >&5)
12361    (eval "$lt_compile" 2>out/conftest.err)
12362    ac_status=$?
12363    cat out/conftest.err >&5
12364    echo "$as_me:12364: \$? = $ac_status" >&5
12365    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12366    then
12367      # The compiler can only warn and ignore the option if not recognized
12368      # So say no if there are warnings
12369      if test ! -s out/conftest.err; then
12370        lt_cv_prog_compiler_c_o=yes
12371      fi
12372    fi
12373    chmod u+w .
12374    $rm conftest*
12375    # SGI C++ compiler will create directory out/ii_files/ for
12376    # template instantiation
12377    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12378    $rm out/* && rmdir out
12379    cd ..
12380    rmdir conftest
12381    $rm conftest*
12382
12383 fi
12384 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12385 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12386
12387
12388 hard_links="nottested"
12389 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12390   # do not overwrite the value of need_locks provided by the user
12391   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12392 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12393   hard_links=yes
12394   $rm conftest*
12395   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12396   touch conftest.a
12397   ln conftest.a conftest.b 2>&5 || hard_links=no
12398   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12399   echo "$as_me:$LINENO: result: $hard_links" >&5
12400 echo "${ECHO_T}$hard_links" >&6
12401   if test "$hard_links" = no; then
12402     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12403 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12404     need_locks=warn
12405   fi
12406 else
12407   need_locks=no
12408 fi
12409
12410 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12411 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12412
12413   runpath_var=
12414   allow_undefined_flag=
12415   enable_shared_with_static_runtimes=no
12416   archive_cmds=
12417   archive_expsym_cmds=
12418   old_archive_From_new_cmds=
12419   old_archive_from_expsyms_cmds=
12420   export_dynamic_flag_spec=
12421   whole_archive_flag_spec=
12422   thread_safe_flag_spec=
12423   hardcode_libdir_flag_spec=
12424   hardcode_libdir_flag_spec_ld=
12425   hardcode_libdir_separator=
12426   hardcode_direct=no
12427   hardcode_minus_L=no
12428   hardcode_shlibpath_var=unsupported
12429   link_all_deplibs=unknown
12430   hardcode_automatic=no
12431   module_cmds=
12432   module_expsym_cmds=
12433   always_export_symbols=no
12434   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12435   # include_expsyms should be a list of space-separated symbols to be *always*
12436   # included in the symbol list
12437   include_expsyms=
12438   # exclude_expsyms can be an extended regexp of symbols to exclude
12439   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12440   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12441   # as well as any symbol that contains `d'.
12442   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12443   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12444   # platforms (ab)use it in PIC code, but their linkers get confused if
12445   # the symbol is explicitly referenced.  Since portable code cannot
12446   # rely on this symbol name, it's probably fine to never include it in
12447   # preloaded symbol tables.
12448   extract_expsyms_cmds=
12449
12450   case $host_os in
12451   cygwin* | mingw* | pw32*)
12452     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12453     # When not using gcc, we currently assume that we are using
12454     # Microsoft Visual C++.
12455     if test "$GCC" != yes; then
12456       with_gnu_ld=no
12457     fi
12458     ;;
12459   openbsd*)
12460     with_gnu_ld=no
12461     ;;
12462   esac
12463
12464   ld_shlibs=yes
12465   if test "$with_gnu_ld" = yes; then
12466     # If archive_cmds runs LD, not CC, wlarc should be empty
12467     wlarc='${wl}'
12468
12469     # See if GNU ld supports shared libraries.
12470     case $host_os in
12471     aix3* | aix4* | aix5*)
12472       # On AIX/PPC, the GNU linker is very broken
12473       if test "$host_cpu" != ia64; then
12474         ld_shlibs=no
12475         cat <<EOF 1>&2
12476
12477 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12478 *** to be unable to reliably create shared libraries on AIX.
12479 *** Therefore, libtool is disabling shared libraries support.  If you
12480 *** really care for shared libraries, you may want to modify your PATH
12481 *** so that a non-GNU linker is found, and then restart.
12482
12483 EOF
12484       fi
12485       ;;
12486
12487     amigaos*)
12488       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)'
12489       hardcode_libdir_flag_spec='-L$libdir'
12490       hardcode_minus_L=yes
12491
12492       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12493       # that the semantics of dynamic libraries on AmigaOS, at least up
12494       # to version 4, is to share data among multiple programs linked
12495       # with the same dynamic library.  Since this doesn't match the
12496       # behavior of shared libraries on other platforms, we can't use
12497       # them.
12498       ld_shlibs=no
12499       ;;
12500
12501     beos*)
12502       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12503         allow_undefined_flag=unsupported
12504         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12505         # support --undefined.  This deserves some investigation.  FIXME
12506         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12507       else
12508         ld_shlibs=no
12509       fi
12510       ;;
12511
12512     cygwin* | mingw* | pw32*)
12513       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12514       # as there is no search path for DLLs.
12515       hardcode_libdir_flag_spec='-L$libdir'
12516       allow_undefined_flag=unsupported
12517       always_export_symbols=no
12518       enable_shared_with_static_runtimes=yes
12519       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12520
12521       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12522         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12523         # If the export-symbols file already is a .def file (1st line
12524         # is EXPORTS), use it as is; otherwise, prepend...
12525         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12526           cp $export_symbols $output_objdir/$soname.def;
12527         else
12528           echo EXPORTS > $output_objdir/$soname.def;
12529           cat $export_symbols >> $output_objdir/$soname.def;
12530         fi~
12531         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12532       else
12533         ld_shlibs=no
12534       fi
12535       ;;
12536
12537     netbsd*)
12538       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12539         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12540         wlarc=
12541       else
12542         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12543         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12544       fi
12545       ;;
12546
12547     solaris* | sysv5*)
12548       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12549         ld_shlibs=no
12550         cat <<EOF 1>&2
12551
12552 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12553 *** create shared libraries on Solaris systems.  Therefore, libtool
12554 *** is disabling shared libraries support.  We urge you to upgrade GNU
12555 *** binutils to release 2.9.1 or newer.  Another option is to modify
12556 *** your PATH or compiler configuration so that the native linker is
12557 *** used, and then restart.
12558
12559 EOF
12560       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12561         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12562         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12563       else
12564         ld_shlibs=no
12565       fi
12566       ;;
12567
12568     sunos4*)
12569       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12570       wlarc=
12571       hardcode_direct=yes
12572       hardcode_shlibpath_var=no
12573       ;;
12574
12575   linux*)
12576     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12577         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12578         archive_cmds="$tmp_archive_cmds"
12579       supports_anon_versioning=no
12580       case `$LD -v 2>/dev/null` in
12581         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12582         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12583         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12584         *\ 2.11.*) ;; # other 2.11 versions
12585         *) supports_anon_versioning=yes ;;
12586       esac
12587       if test $supports_anon_versioning = yes; then
12588         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12589 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12590 $echo "local: *; };" >> $output_objdir/$libname.ver~
12591         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12592       else
12593         archive_expsym_cmds="$tmp_archive_cmds"
12594       fi
12595     else
12596       ld_shlibs=no
12597     fi
12598     ;;
12599
12600     *)
12601       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12602         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12603         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12604       else
12605         ld_shlibs=no
12606       fi
12607       ;;
12608     esac
12609
12610     if test "$ld_shlibs" = yes; then
12611       runpath_var=LD_RUN_PATH
12612       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12613       export_dynamic_flag_spec='${wl}--export-dynamic'
12614       # ancient GNU ld didn't support --whole-archive et. al.
12615       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12616         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12617       else
12618         whole_archive_flag_spec=
12619       fi
12620     fi
12621   else
12622     # PORTME fill in a description of your system's linker (not GNU ld)
12623     case $host_os in
12624     aix3*)
12625       allow_undefined_flag=unsupported
12626       always_export_symbols=yes
12627       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'
12628       # Note: this linker hardcodes the directories in LIBPATH if there
12629       # are no directories specified by -L.
12630       hardcode_minus_L=yes
12631       if test "$GCC" = yes && test -z "$link_static_flag"; then
12632         # Neither direct hardcoding nor static linking is supported with a
12633         # broken collect2.
12634         hardcode_direct=unsupported
12635       fi
12636       ;;
12637
12638     aix4* | aix5*)
12639       if test "$host_cpu" = ia64; then
12640         # On IA64, the linker does run time linking by default, so we don't
12641         # have to do anything special.
12642         aix_use_runtimelinking=no
12643         exp_sym_flag='-Bexport'
12644         no_entry_flag=""
12645       else
12646         # If we're using GNU nm, then we don't want the "-C" option.
12647         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12648         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12649           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'
12650         else
12651           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'
12652         fi
12653         aix_use_runtimelinking=no
12654
12655         # Test if we are trying to use run time linking or normal
12656         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12657         # need to do runtime linking.
12658         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12659           for ld_flag in $LDFLAGS; do
12660           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12661             aix_use_runtimelinking=yes
12662             break
12663           fi
12664           done
12665         esac
12666
12667         exp_sym_flag='-bexport'
12668         no_entry_flag='-bnoentry'
12669       fi
12670
12671       # When large executables or shared objects are built, AIX ld can
12672       # have problems creating the table of contents.  If linking a library
12673       # or program results in "error TOC overflow" add -mminimal-toc to
12674       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12675       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12676
12677       archive_cmds=''
12678       hardcode_direct=yes
12679       hardcode_libdir_separator=':'
12680       link_all_deplibs=yes
12681
12682       if test "$GCC" = yes; then
12683         case $host_os in aix4.012|aix4.012.*)
12684         # We only want to do this on AIX 4.2 and lower, the check
12685         # below for broken collect2 doesn't work under 4.3+
12686           collect2name=`${CC} -print-prog-name=collect2`
12687           if test -f "$collect2name" && \
12688            strings "$collect2name" | grep resolve_lib_name >/dev/null
12689           then
12690           # We have reworked collect2
12691           hardcode_direct=yes
12692           else
12693           # We have old collect2
12694           hardcode_direct=unsupported
12695           # It fails to find uninstalled libraries when the uninstalled
12696           # path is not listed in the libpath.  Setting hardcode_minus_L
12697           # to unsupported forces relinking
12698           hardcode_minus_L=yes
12699           hardcode_libdir_flag_spec='-L$libdir'
12700           hardcode_libdir_separator=
12701           fi
12702         esac
12703         shared_flag='-shared'
12704       else
12705         # not using gcc
12706         if test "$host_cpu" = ia64; then
12707         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12708         # chokes on -Wl,-G. The following line is correct:
12709           shared_flag='-G'
12710         else
12711         if test "$aix_use_runtimelinking" = yes; then
12712             shared_flag='${wl}-G'
12713           else
12714             shared_flag='${wl}-bM:SRE'
12715         fi
12716         fi
12717       fi
12718
12719       # It seems that -bexpall does not export symbols beginning with
12720       # underscore (_), so it is better to generate a list of symbols to export.
12721       always_export_symbols=yes
12722       if test "$aix_use_runtimelinking" = yes; then
12723         # Warning - without using the other runtime loading flags (-brtl),
12724         # -berok will link without error, but may produce a broken library.
12725         allow_undefined_flag='-berok'
12726        # Determine the default libpath from the value encoded in an empty executable.
12727        cat >conftest.$ac_ext <<_ACEOF
12728 /* confdefs.h.  */
12729 _ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h.  */
12733
12734 int
12735 main ()
12736 {
12737
12738   ;
12739   return 0;
12740 }
12741 _ACEOF
12742 rm -f conftest.$ac_objext conftest$ac_exeext
12743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12744   (eval $ac_link) 2>conftest.er1
12745   ac_status=$?
12746   grep -v '^ *+' conftest.er1 >conftest.err
12747   rm -f conftest.er1
12748   cat conftest.err >&5
12749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750   (exit $ac_status); } &&
12751          { ac_try='test -z "$ac_c_werror_flag"
12752                          || test ! -s conftest.err'
12753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754   (eval $ac_try) 2>&5
12755   ac_status=$?
12756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757   (exit $ac_status); }; } &&
12758          { ac_try='test -s conftest$ac_exeext'
12759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760   (eval $ac_try) 2>&5
12761   ac_status=$?
12762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763   (exit $ac_status); }; }; then
12764
12765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12766 }'`
12767 # Check for a 64-bit object if we didn't find anything.
12768 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; }
12769 }'`; fi
12770 else
12771   echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12773
12774 fi
12775 rm -f conftest.err conftest.$ac_objext \
12776       conftest$ac_exeext conftest.$ac_ext
12777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12778
12779        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12780         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"
12781        else
12782         if test "$host_cpu" = ia64; then
12783           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12784           allow_undefined_flag="-z nodefs"
12785           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"
12786         else
12787          # Determine the default libpath from the value encoded in an empty executable.
12788          cat >conftest.$ac_ext <<_ACEOF
12789 /* confdefs.h.  */
12790 _ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h.  */
12794
12795 int
12796 main ()
12797 {
12798
12799   ;
12800   return 0;
12801 }
12802 _ACEOF
12803 rm -f conftest.$ac_objext conftest$ac_exeext
12804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12805   (eval $ac_link) 2>conftest.er1
12806   ac_status=$?
12807   grep -v '^ *+' conftest.er1 >conftest.err
12808   rm -f conftest.er1
12809   cat conftest.err >&5
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); } &&
12812          { ac_try='test -z "$ac_c_werror_flag"
12813                          || test ! -s conftest.err'
12814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12815   (eval $ac_try) 2>&5
12816   ac_status=$?
12817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818   (exit $ac_status); }; } &&
12819          { ac_try='test -s conftest$ac_exeext'
12820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821   (eval $ac_try) 2>&5
12822   ac_status=$?
12823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824   (exit $ac_status); }; }; then
12825
12826 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12827 }'`
12828 # Check for a 64-bit object if we didn't find anything.
12829 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; }
12830 }'`; fi
12831 else
12832   echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12834
12835 fi
12836 rm -f conftest.err conftest.$ac_objext \
12837       conftest$ac_exeext conftest.$ac_ext
12838 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12839
12840          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12841           # Warning - without using the other run time loading flags,
12842           # -berok will link without error, but may produce a broken library.
12843           no_undefined_flag=' ${wl}-bernotok'
12844           allow_undefined_flag=' ${wl}-berok'
12845           # -bexpall does not export symbols beginning with underscore (_)
12846           always_export_symbols=yes
12847           # Exported symbols can be pulled into shared objects from archives
12848           whole_archive_flag_spec=' '
12849           archive_cmds_need_lc=yes
12850           # This is similar to how AIX traditionally builds it's shared libraries.
12851           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'
12852         fi
12853       fi
12854       ;;
12855
12856     amigaos*)
12857       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)'
12858       hardcode_libdir_flag_spec='-L$libdir'
12859       hardcode_minus_L=yes
12860       # see comment about different semantics on the GNU ld section
12861       ld_shlibs=no
12862       ;;
12863
12864     bsdi[45]*)
12865       export_dynamic_flag_spec=-rdynamic
12866       ;;
12867
12868     cygwin* | mingw* | pw32*)
12869       # When not using gcc, we currently assume that we are using
12870       # Microsoft Visual C++.
12871       # hardcode_libdir_flag_spec is actually meaningless, as there is
12872       # no search path for DLLs.
12873       hardcode_libdir_flag_spec=' '
12874       allow_undefined_flag=unsupported
12875       # Tell ltmain to make .lib files, not .a files.
12876       libext=lib
12877       # Tell ltmain to make .dll files, not .so files.
12878       shrext_cmds=".dll"
12879       # FIXME: Setting linknames here is a bad hack.
12880       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12881       # The linker will automatically build a .lib file if we build a DLL.
12882       old_archive_From_new_cmds='true'
12883       # FIXME: Should let the user specify the lib program.
12884       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12885       fix_srcfile_path='`cygpath -w "$srcfile"`'
12886       enable_shared_with_static_runtimes=yes
12887       ;;
12888
12889     darwin* | rhapsody*)
12890       case "$host_os" in
12891         rhapsody* | darwin1.[012])
12892          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12893          ;;
12894        *) # Darwin 1.3 on
12895          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12896            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12897          else
12898            case ${MACOSX_DEPLOYMENT_TARGET} in
12899              10.[012])
12900                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12901                ;;
12902              10.*)
12903                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12904                ;;
12905            esac
12906          fi
12907          ;;
12908       esac
12909       archive_cmds_need_lc=no
12910       hardcode_direct=no
12911       hardcode_automatic=yes
12912       hardcode_shlibpath_var=unsupported
12913       whole_archive_flag_spec=''
12914       link_all_deplibs=yes
12915     if test "$GCC" = yes ; then
12916         output_verbose_link_cmd='echo'
12917         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12918       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12919       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12920       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}'
12921       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}'
12922     else
12923       case "$cc_basename" in
12924         xlc*)
12925          output_verbose_link_cmd='echo'
12926          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12927          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12928           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12929          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}'
12930           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}'
12931           ;;
12932        *)
12933          ld_shlibs=no
12934           ;;
12935       esac
12936     fi
12937       ;;
12938
12939     dgux*)
12940       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12941       hardcode_libdir_flag_spec='-L$libdir'
12942       hardcode_shlibpath_var=no
12943       ;;
12944
12945     freebsd1*)
12946       ld_shlibs=no
12947       ;;
12948
12949     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12950     # support.  Future versions do this automatically, but an explicit c++rt0.o
12951     # does not break anything, and helps significantly (at the cost of a little
12952     # extra space).
12953     freebsd2.2*)
12954       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12955       hardcode_libdir_flag_spec='-R$libdir'
12956       hardcode_direct=yes
12957       hardcode_shlibpath_var=no
12958       ;;
12959
12960     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12961     freebsd2*)
12962       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12963       hardcode_direct=yes
12964       hardcode_minus_L=yes
12965       hardcode_shlibpath_var=no
12966       ;;
12967
12968     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12969     freebsd* | kfreebsd*-gnu)
12970       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12971       hardcode_libdir_flag_spec='-R$libdir'
12972       hardcode_direct=yes
12973       hardcode_shlibpath_var=no
12974       ;;
12975
12976     hpux9*)
12977       if test "$GCC" = yes; then
12978         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'
12979       else
12980         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'
12981       fi
12982       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12983       hardcode_libdir_separator=:
12984       hardcode_direct=yes
12985
12986       # hardcode_minus_L: Not really in the search PATH,
12987       # but as the default location of the library.
12988       hardcode_minus_L=yes
12989       export_dynamic_flag_spec='${wl}-E'
12990       ;;
12991
12992     hpux10* | hpux11*)
12993       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12994         case "$host_cpu" in
12995         hppa*64*|ia64*)
12996           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12997           ;;
12998         *)
12999           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13000           ;;
13001         esac
13002       else
13003         case "$host_cpu" in
13004         hppa*64*|ia64*)
13005           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13006           ;;
13007         *)
13008           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13009           ;;
13010         esac
13011       fi
13012       if test "$with_gnu_ld" = no; then
13013         case "$host_cpu" in
13014         hppa*64*)
13015           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13016           hardcode_libdir_flag_spec_ld='+b $libdir'
13017           hardcode_libdir_separator=:
13018           hardcode_direct=no
13019           hardcode_shlibpath_var=no
13020           ;;
13021         ia64*)
13022           hardcode_libdir_flag_spec='-L$libdir'
13023           hardcode_direct=no
13024           hardcode_shlibpath_var=no
13025
13026           # hardcode_minus_L: Not really in the search PATH,
13027           # but as the default location of the library.
13028           hardcode_minus_L=yes
13029           ;;
13030         *)
13031           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13032           hardcode_libdir_separator=:
13033           hardcode_direct=yes
13034           export_dynamic_flag_spec='${wl}-E'
13035
13036           # hardcode_minus_L: Not really in the search PATH,
13037           # but as the default location of the library.
13038           hardcode_minus_L=yes
13039           ;;
13040         esac
13041       fi
13042       ;;
13043
13044     irix5* | irix6* | nonstopux*)
13045       if test "$GCC" = yes; then
13046         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'
13047       else
13048         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'
13049         hardcode_libdir_flag_spec_ld='-rpath $libdir'
13050       fi
13051       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13052       hardcode_libdir_separator=:
13053       link_all_deplibs=yes
13054       ;;
13055
13056     netbsd*)
13057       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13058         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13059       else
13060         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13061       fi
13062       hardcode_libdir_flag_spec='-R$libdir'
13063       hardcode_direct=yes
13064       hardcode_shlibpath_var=no
13065       ;;
13066
13067     newsos6)
13068       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13069       hardcode_direct=yes
13070       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13071       hardcode_libdir_separator=:
13072       hardcode_shlibpath_var=no
13073       ;;
13074
13075     openbsd*)
13076       hardcode_direct=yes
13077       hardcode_shlibpath_var=no
13078       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13079         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13080         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13081         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13082         export_dynamic_flag_spec='${wl}-E'
13083       else
13084        case $host_os in
13085          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13086            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13087            hardcode_libdir_flag_spec='-R$libdir'
13088            ;;
13089          *)
13090            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13091            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13092            ;;
13093        esac
13094       fi
13095       ;;
13096
13097     os2*)
13098       hardcode_libdir_flag_spec='-L$libdir'
13099       hardcode_minus_L=yes
13100       allow_undefined_flag=unsupported
13101       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'
13102       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13103       ;;
13104
13105     osf3*)
13106       if test "$GCC" = yes; then
13107         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13108         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'
13109       else
13110         allow_undefined_flag=' -expect_unresolved \*'
13111         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'
13112       fi
13113       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13114       hardcode_libdir_separator=:
13115       ;;
13116
13117     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13118       if test "$GCC" = yes; then
13119         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13120         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'
13121         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13122       else
13123         allow_undefined_flag=' -expect_unresolved \*'
13124         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'
13125         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13126         $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'
13127
13128         # Both c and cxx compiler support -rpath directly
13129         hardcode_libdir_flag_spec='-rpath $libdir'
13130       fi
13131       hardcode_libdir_separator=:
13132       ;;
13133
13134     sco3.2v5*)
13135       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13136       hardcode_shlibpath_var=no
13137       export_dynamic_flag_spec='${wl}-Bexport'
13138       runpath_var=LD_RUN_PATH
13139       hardcode_runpath_var=yes
13140       ;;
13141
13142     solaris*)
13143       no_undefined_flag=' -z text'
13144       if test "$GCC" = yes; then
13145         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13146         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13147           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13148       else
13149         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13150         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13151         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13152       fi
13153       hardcode_libdir_flag_spec='-R$libdir'
13154       hardcode_shlibpath_var=no
13155       case $host_os in
13156       solaris2.[0-5] | solaris2.[0-5].*) ;;
13157       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13158         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13159       esac
13160       link_all_deplibs=yes
13161       ;;
13162
13163     sunos4*)
13164       if test "x$host_vendor" = xsequent; then
13165         # Use $CC to link under sequent, because it throws in some extra .o
13166         # files that make .init and .fini sections work.
13167         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13168       else
13169         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13170       fi
13171       hardcode_libdir_flag_spec='-L$libdir'
13172       hardcode_direct=yes
13173       hardcode_minus_L=yes
13174       hardcode_shlibpath_var=no
13175       ;;
13176
13177     sysv4)
13178       case $host_vendor in
13179         sni)
13180           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13181           hardcode_direct=yes # is this really true???
13182         ;;
13183         siemens)
13184           ## LD is ld it makes a PLAMLIB
13185           ## CC just makes a GrossModule.
13186           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13187           reload_cmds='$CC -r -o $output$reload_objs'
13188           hardcode_direct=no
13189         ;;
13190         motorola)
13191           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13192           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13193         ;;
13194       esac
13195       runpath_var='LD_RUN_PATH'
13196       hardcode_shlibpath_var=no
13197       ;;
13198
13199     sysv4.3*)
13200       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13201       hardcode_shlibpath_var=no
13202       export_dynamic_flag_spec='-Bexport'
13203       ;;
13204
13205     sysv4*MP*)
13206       if test -d /usr/nec; then
13207         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13208         hardcode_shlibpath_var=no
13209         runpath_var=LD_RUN_PATH
13210         hardcode_runpath_var=yes
13211         ld_shlibs=yes
13212       fi
13213       ;;
13214
13215     sysv4.2uw2*)
13216       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13217       hardcode_direct=yes
13218       hardcode_minus_L=no
13219       hardcode_shlibpath_var=no
13220       hardcode_runpath_var=yes
13221       runpath_var=LD_RUN_PATH
13222       ;;
13223
13224    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13225       no_undefined_flag='${wl}-z ${wl}text'
13226       if test "$GCC" = yes; then
13227         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13228       else
13229         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13230       fi
13231       runpath_var='LD_RUN_PATH'
13232       hardcode_shlibpath_var=no
13233       ;;
13234
13235     sysv5*)
13236       no_undefined_flag=' -z text'
13237       # $CC -shared without GNU ld will not create a library from C++
13238       # object files and a static libstdc++, better avoid it by now
13239       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13240       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13241                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13242       hardcode_libdir_flag_spec=
13243       hardcode_shlibpath_var=no
13244       runpath_var='LD_RUN_PATH'
13245       ;;
13246
13247     uts4*)
13248       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13249       hardcode_libdir_flag_spec='-L$libdir'
13250       hardcode_shlibpath_var=no
13251       ;;
13252
13253     *)
13254       ld_shlibs=no
13255       ;;
13256     esac
13257   fi
13258
13259 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13260 echo "${ECHO_T}$ld_shlibs" >&6
13261 test "$ld_shlibs" = no && can_build_shared=no
13262
13263 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13264 if test "$GCC" = yes; then
13265   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13266 fi
13267
13268 #
13269 # Do we need to explicitly link libc?
13270 #
13271 case "x$archive_cmds_need_lc" in
13272 x|xyes)
13273   # Assume -lc should be added
13274   archive_cmds_need_lc=yes
13275
13276   if test "$enable_shared" = yes && test "$GCC" = yes; then
13277     case $archive_cmds in
13278     *'~'*)
13279       # FIXME: we may have to deal with multi-command sequences.
13280       ;;
13281     '$CC '*)
13282       # Test whether the compiler implicitly links with -lc since on some
13283       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13284       # to ld, don't add -lc before -lgcc.
13285       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13286 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13287       $rm conftest*
13288       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13289
13290       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13291   (eval $ac_compile) 2>&5
13292   ac_status=$?
13293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294   (exit $ac_status); } 2>conftest.err; then
13295         soname=conftest
13296         lib=conftest
13297         libobjs=conftest.$ac_objext
13298         deplibs=
13299         wl=$lt_prog_compiler_wl
13300         compiler_flags=-v
13301         linker_flags=-v
13302         verstring=
13303         output_objdir=.
13304         libname=conftest
13305         lt_save_allow_undefined_flag=$allow_undefined_flag
13306         allow_undefined_flag=
13307         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13308   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13309   ac_status=$?
13310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); }
13312         then
13313           archive_cmds_need_lc=no
13314         else
13315           archive_cmds_need_lc=yes
13316         fi
13317         allow_undefined_flag=$lt_save_allow_undefined_flag
13318       else
13319         cat conftest.err 1>&5
13320       fi
13321       $rm conftest*
13322       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13323 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13324       ;;
13325     esac
13326   fi
13327   ;;
13328 esac
13329
13330 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13331 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13332 library_names_spec=
13333 libname_spec='lib$name'
13334 soname_spec=
13335 shrext_cmds=".so"
13336 postinstall_cmds=
13337 postuninstall_cmds=
13338 finish_cmds=
13339 finish_eval=
13340 shlibpath_var=
13341 shlibpath_overrides_runpath=unknown
13342 version_type=none
13343 dynamic_linker="$host_os ld.so"
13344 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13345 if test "$GCC" = yes; then
13346   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13347   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13348     # if the path contains ";" then we assume it to be the separator
13349     # otherwise default to the standard path separator (i.e. ":") - it is
13350     # assumed that no part of a normal pathname contains ";" but that should
13351     # okay in the real world where ";" in dirpaths is itself problematic.
13352     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13353   else
13354     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13355   fi
13356 else
13357   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13358 fi
13359 need_lib_prefix=unknown
13360 hardcode_into_libs=no
13361
13362 # when you set need_version to no, make sure it does not cause -set_version
13363 # flags to be left without arguments
13364 need_version=unknown
13365
13366 case $host_os in
13367 aix3*)
13368   version_type=linux
13369   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13370   shlibpath_var=LIBPATH
13371
13372   # AIX 3 has no versioning support, so we append a major version to the name.
13373   soname_spec='${libname}${release}${shared_ext}$major'
13374   ;;
13375
13376 aix4* | aix5*)
13377   version_type=linux
13378   need_lib_prefix=no
13379   need_version=no
13380   hardcode_into_libs=yes
13381   if test "$host_cpu" = ia64; then
13382     # AIX 5 supports IA64
13383     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13384     shlibpath_var=LD_LIBRARY_PATH
13385   else
13386     # With GCC up to 2.95.x, collect2 would create an import file
13387     # for dependence libraries.  The import file would start with
13388     # the line `#! .'.  This would cause the generated library to
13389     # depend on `.', always an invalid library.  This was fixed in
13390     # development snapshots of GCC prior to 3.0.
13391     case $host_os in
13392       aix4 | aix4.[01] | aix4.[01].*)
13393       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13394            echo ' yes '
13395            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13396         :
13397       else
13398         can_build_shared=no
13399       fi
13400       ;;
13401     esac
13402     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13403     # soname into executable. Probably we can add versioning support to
13404     # collect2, so additional links can be useful in future.
13405     if test "$aix_use_runtimelinking" = yes; then
13406       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13407       # instead of lib<name>.a to let people know that these are not
13408       # typical AIX shared libraries.
13409       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13410     else
13411       # We preserve .a as extension for shared libraries through AIX4.2
13412       # and later when we are not doing run time linking.
13413       library_names_spec='${libname}${release}.a $libname.a'
13414       soname_spec='${libname}${release}${shared_ext}$major'
13415     fi
13416     shlibpath_var=LIBPATH
13417   fi
13418   ;;
13419
13420 amigaos*)
13421   library_names_spec='$libname.ixlibrary $libname.a'
13422   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13423   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'
13424   ;;
13425
13426 beos*)
13427   library_names_spec='${libname}${shared_ext}'
13428   dynamic_linker="$host_os ld.so"
13429   shlibpath_var=LIBRARY_PATH
13430   ;;
13431
13432 bsdi[45]*)
13433   version_type=linux
13434   need_version=no
13435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13436   soname_spec='${libname}${release}${shared_ext}$major'
13437   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13438   shlibpath_var=LD_LIBRARY_PATH
13439   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13440   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13441   # the default ld.so.conf also contains /usr/contrib/lib and
13442   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13443   # libtool to hard-code these into programs
13444   ;;
13445
13446 cygwin* | mingw* | pw32*)
13447   version_type=windows
13448   shrext_cmds=".dll"
13449   need_version=no
13450   need_lib_prefix=no
13451
13452   case $GCC,$host_os in
13453   yes,cygwin* | yes,mingw* | yes,pw32*)
13454     library_names_spec='$libname.dll.a'
13455     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13456     postinstall_cmds='base_file=`basename \${file}`~
13457       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13458       dldir=$destdir/`dirname \$dlpath`~
13459       test -d \$dldir || mkdir -p \$dldir~
13460       $install_prog $dir/$dlname \$dldir/$dlname'
13461     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13462       dlpath=$dir/\$dldll~
13463        $rm \$dlpath'
13464     shlibpath_overrides_runpath=yes
13465
13466     case $host_os in
13467     cygwin*)
13468       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13469       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13470       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13471       ;;
13472     mingw*)
13473       # MinGW DLLs use traditional 'lib' prefix
13474       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13475       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13476       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13477         # It is most probably a Windows format PATH printed by
13478         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13479         # path with ; separators, and with drive letters. We can handle the
13480         # drive letters (cygwin fileutils understands them), so leave them,
13481         # especially as we might pass files found there to a mingw objdump,
13482         # which wouldn't understand a cygwinified path. Ahh.
13483         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13484       else
13485         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13486       fi
13487       ;;
13488     pw32*)
13489       # pw32 DLLs use 'pw' prefix rather than 'lib'
13490       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13491       ;;
13492     esac
13493     ;;
13494
13495   *)
13496     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13497     ;;
13498   esac
13499   dynamic_linker='Win32 ld.exe'
13500   # FIXME: first we should search . and the directory the executable is in
13501   shlibpath_var=PATH
13502   ;;
13503
13504 darwin* | rhapsody*)
13505   dynamic_linker="$host_os dyld"
13506   version_type=darwin
13507   need_lib_prefix=no
13508   need_version=no
13509   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13510   soname_spec='${libname}${release}${major}$shared_ext'
13511   shlibpath_overrides_runpath=yes
13512   shlibpath_var=DYLD_LIBRARY_PATH
13513   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13514   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13515   if test "$GCC" = yes; then
13516     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"`
13517   else
13518     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13519   fi
13520   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13521   ;;
13522
13523 dgux*)
13524   version_type=linux
13525   need_lib_prefix=no
13526   need_version=no
13527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13528   soname_spec='${libname}${release}${shared_ext}$major'
13529   shlibpath_var=LD_LIBRARY_PATH
13530   ;;
13531
13532 freebsd1*)
13533   dynamic_linker=no
13534   ;;
13535
13536 kfreebsd*-gnu)
13537   version_type=linux
13538   need_lib_prefix=no
13539   need_version=no
13540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13541   soname_spec='${libname}${release}${shared_ext}$major'
13542   shlibpath_var=LD_LIBRARY_PATH
13543   shlibpath_overrides_runpath=no
13544   hardcode_into_libs=yes
13545   dynamic_linker='GNU ld.so'
13546   ;;
13547
13548 freebsd*)
13549   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13550   version_type=freebsd-$objformat
13551   case $version_type in
13552     freebsd-elf*)
13553       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13554       need_version=no
13555       need_lib_prefix=no
13556       ;;
13557     freebsd-*)
13558       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13559       need_version=yes
13560       ;;
13561   esac
13562   shlibpath_var=LD_LIBRARY_PATH
13563   case $host_os in
13564   freebsd2*)
13565     shlibpath_overrides_runpath=yes
13566     ;;
13567   freebsd3.01* | freebsdelf3.01*)
13568     shlibpath_overrides_runpath=yes
13569     hardcode_into_libs=yes
13570     ;;
13571   *) # from 3.2 on
13572     shlibpath_overrides_runpath=no
13573     hardcode_into_libs=yes
13574     ;;
13575   esac
13576   ;;
13577
13578 gnu*)
13579   version_type=linux
13580   need_lib_prefix=no
13581   need_version=no
13582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13583   soname_spec='${libname}${release}${shared_ext}$major'
13584   shlibpath_var=LD_LIBRARY_PATH
13585   hardcode_into_libs=yes
13586   ;;
13587
13588 hpux9* | hpux10* | hpux11*)
13589   # Give a soname corresponding to the major version so that dld.sl refuses to
13590   # link against other versions.
13591   version_type=sunos
13592   need_lib_prefix=no
13593   need_version=no
13594   case "$host_cpu" in
13595   ia64*)
13596     shrext_cmds='.so'
13597     hardcode_into_libs=yes
13598     dynamic_linker="$host_os dld.so"
13599     shlibpath_var=LD_LIBRARY_PATH
13600     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13601     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13602     soname_spec='${libname}${release}${shared_ext}$major'
13603     if test "X$HPUX_IA64_MODE" = X32; then
13604       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13605     else
13606       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13607     fi
13608     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13609     ;;
13610    hppa*64*)
13611      shrext_cmds='.sl'
13612      hardcode_into_libs=yes
13613      dynamic_linker="$host_os dld.sl"
13614      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13615      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13616      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13617      soname_spec='${libname}${release}${shared_ext}$major'
13618      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13619      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13620      ;;
13621    *)
13622     shrext_cmds='.sl'
13623     dynamic_linker="$host_os dld.sl"
13624     shlibpath_var=SHLIB_PATH
13625     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13626     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13627     soname_spec='${libname}${release}${shared_ext}$major'
13628     ;;
13629   esac
13630   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13631   postinstall_cmds='chmod 555 $lib'
13632   ;;
13633
13634 irix5* | irix6* | nonstopux*)
13635   case $host_os in
13636     nonstopux*) version_type=nonstopux ;;
13637     *)
13638         if test "$lt_cv_prog_gnu_ld" = yes; then
13639                 version_type=linux
13640         else
13641                 version_type=irix
13642         fi ;;
13643   esac
13644   need_lib_prefix=no
13645   need_version=no
13646   soname_spec='${libname}${release}${shared_ext}$major'
13647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13648   case $host_os in
13649   irix5* | nonstopux*)
13650     libsuff= shlibsuff=
13651     ;;
13652   *)
13653     case $LD in # libtool.m4 will add one of these switches to LD
13654     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13655       libsuff= shlibsuff= libmagic=32-bit;;
13656     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13657       libsuff=32 shlibsuff=N32 libmagic=N32;;
13658     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13659       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13660     *) libsuff= shlibsuff= libmagic=never-match;;
13661     esac
13662     ;;
13663   esac
13664   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13665   shlibpath_overrides_runpath=no
13666   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13667   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13668   hardcode_into_libs=yes
13669   ;;
13670
13671 # No shared lib support for Linux oldld, aout, or coff.
13672 linux*oldld* | linux*aout* | linux*coff*)
13673   dynamic_linker=no
13674   ;;
13675
13676 # This must be Linux ELF.
13677 linux*)
13678   version_type=linux
13679   need_lib_prefix=no
13680   need_version=no
13681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13682   soname_spec='${libname}${release}${shared_ext}$major'
13683   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13684   shlibpath_var=LD_LIBRARY_PATH
13685   shlibpath_overrides_runpath=no
13686   # This implies no fast_install, which is unacceptable.
13687   # Some rework will be needed to allow for fast_install
13688   # before this can be enabled.
13689   hardcode_into_libs=yes
13690
13691   # Append ld.so.conf contents to the search path
13692   if test -f /etc/ld.so.conf; then
13693     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13694     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13695   fi
13696
13697   # We used to test for /lib/ld.so.1 and disable shared libraries on
13698   # powerpc, because MkLinux only supported shared libraries with the
13699   # GNU dynamic linker.  Since this was broken with cross compilers,
13700   # most powerpc-linux boxes support dynamic linking these days and
13701   # people can always --disable-shared, the test was removed, and we
13702   # assume the GNU/Linux dynamic linker is in use.
13703   dynamic_linker='GNU/Linux ld.so'
13704   ;;
13705
13706 knetbsd*-gnu)
13707   version_type=linux
13708   need_lib_prefix=no
13709   need_version=no
13710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13711   soname_spec='${libname}${release}${shared_ext}$major'
13712   shlibpath_var=LD_LIBRARY_PATH
13713   shlibpath_overrides_runpath=no
13714   hardcode_into_libs=yes
13715   dynamic_linker='GNU ld.so'
13716   ;;
13717
13718 netbsd*)
13719   version_type=sunos
13720   need_lib_prefix=no
13721   need_version=no
13722   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13723     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13724     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13725     dynamic_linker='NetBSD (a.out) ld.so'
13726   else
13727     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13728     soname_spec='${libname}${release}${shared_ext}$major'
13729     dynamic_linker='NetBSD ld.elf_so'
13730   fi
13731   shlibpath_var=LD_LIBRARY_PATH
13732   shlibpath_overrides_runpath=yes
13733   hardcode_into_libs=yes
13734   ;;
13735
13736 newsos6)
13737   version_type=linux
13738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13739   shlibpath_var=LD_LIBRARY_PATH
13740   shlibpath_overrides_runpath=yes
13741   ;;
13742
13743 nto-qnx*)
13744   version_type=linux
13745   need_lib_prefix=no
13746   need_version=no
13747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13748   soname_spec='${libname}${release}${shared_ext}$major'
13749   shlibpath_var=LD_LIBRARY_PATH
13750   shlibpath_overrides_runpath=yes
13751   ;;
13752
13753 openbsd*)
13754   version_type=sunos
13755   need_lib_prefix=no
13756   need_version=no
13757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13758   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13759   shlibpath_var=LD_LIBRARY_PATH
13760   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13761     case $host_os in
13762       openbsd2.[89] | openbsd2.[89].*)
13763         shlibpath_overrides_runpath=no
13764         ;;
13765       *)
13766         shlibpath_overrides_runpath=yes
13767         ;;
13768       esac
13769   else
13770     shlibpath_overrides_runpath=yes
13771   fi
13772   ;;
13773
13774 os2*)
13775   libname_spec='$name'
13776   shrext_cmds=".dll"
13777   need_lib_prefix=no
13778   library_names_spec='$libname${shared_ext} $libname.a'
13779   dynamic_linker='OS/2 ld.exe'
13780   shlibpath_var=LIBPATH
13781   ;;
13782
13783 osf3* | osf4* | osf5*)
13784   version_type=osf
13785   need_lib_prefix=no
13786   need_version=no
13787   soname_spec='${libname}${release}${shared_ext}$major'
13788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13789   shlibpath_var=LD_LIBRARY_PATH
13790   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13791   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13792   ;;
13793
13794 sco3.2v5*)
13795   version_type=osf
13796   soname_spec='${libname}${release}${shared_ext}$major'
13797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13798   shlibpath_var=LD_LIBRARY_PATH
13799   ;;
13800
13801 solaris*)
13802   version_type=linux
13803   need_lib_prefix=no
13804   need_version=no
13805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13806   soname_spec='${libname}${release}${shared_ext}$major'
13807   shlibpath_var=LD_LIBRARY_PATH
13808   shlibpath_overrides_runpath=yes
13809   hardcode_into_libs=yes
13810   # ldd complains unless libraries are executable
13811   postinstall_cmds='chmod +x $lib'
13812   ;;
13813
13814 sunos4*)
13815   version_type=sunos
13816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13817   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13818   shlibpath_var=LD_LIBRARY_PATH
13819   shlibpath_overrides_runpath=yes
13820   if test "$with_gnu_ld" = yes; then
13821     need_lib_prefix=no
13822   fi
13823   need_version=yes
13824   ;;
13825
13826 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13827   version_type=linux
13828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13829   soname_spec='${libname}${release}${shared_ext}$major'
13830   shlibpath_var=LD_LIBRARY_PATH
13831   case $host_vendor in
13832     sni)
13833       shlibpath_overrides_runpath=no
13834       need_lib_prefix=no
13835       export_dynamic_flag_spec='${wl}-Blargedynsym'
13836       runpath_var=LD_RUN_PATH
13837       ;;
13838     siemens)
13839       need_lib_prefix=no
13840       ;;
13841     motorola)
13842       need_lib_prefix=no
13843       need_version=no
13844       shlibpath_overrides_runpath=no
13845       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13846       ;;
13847   esac
13848   ;;
13849
13850 sysv4*MP*)
13851   if test -d /usr/nec ;then
13852     version_type=linux
13853     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13854     soname_spec='$libname${shared_ext}.$major'
13855     shlibpath_var=LD_LIBRARY_PATH
13856   fi
13857   ;;
13858
13859 uts4*)
13860   version_type=linux
13861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13862   soname_spec='${libname}${release}${shared_ext}$major'
13863   shlibpath_var=LD_LIBRARY_PATH
13864   ;;
13865
13866 *)
13867   dynamic_linker=no
13868   ;;
13869 esac
13870 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13871 echo "${ECHO_T}$dynamic_linker" >&6
13872 test "$dynamic_linker" = no && can_build_shared=no
13873
13874 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13875 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13876 hardcode_action=
13877 if test -n "$hardcode_libdir_flag_spec" || \
13878    test -n "$runpath_var" || \
13879    test "X$hardcode_automatic" = "Xyes" ; then
13880
13881   # We can hardcode non-existant directories.
13882   if test "$hardcode_direct" != no &&
13883      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13884      # have to relink, otherwise we might link with an installed library
13885      # when we should be linking with a yet-to-be-installed one
13886      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13887      test "$hardcode_minus_L" != no; then
13888     # Linking always hardcodes the temporary library directory.
13889     hardcode_action=relink
13890   else
13891     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13892     hardcode_action=immediate
13893   fi
13894 else
13895   # We cannot hardcode anything, or else we can only hardcode existing
13896   # directories.
13897   hardcode_action=unsupported
13898 fi
13899 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13900 echo "${ECHO_T}$hardcode_action" >&6
13901
13902 if test "$hardcode_action" = relink; then
13903   # Fast installation is not supported
13904   enable_fast_install=no
13905 elif test "$shlibpath_overrides_runpath" = yes ||
13906      test "$enable_shared" = no; then
13907   # Fast installation is not necessary
13908   enable_fast_install=needless
13909 fi
13910
13911 striplib=
13912 old_striplib=
13913 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13914 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13915 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13916   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13917   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13918   echo "$as_me:$LINENO: result: yes" >&5
13919 echo "${ECHO_T}yes" >&6
13920 else
13921 # FIXME - insert some real tests, host_os isn't really good enough
13922   case $host_os in
13923    darwin*)
13924        if test -n "$STRIP" ; then
13925          striplib="$STRIP -x"
13926          echo "$as_me:$LINENO: result: yes" >&5
13927 echo "${ECHO_T}yes" >&6
13928        else
13929   echo "$as_me:$LINENO: result: no" >&5
13930 echo "${ECHO_T}no" >&6
13931 fi
13932        ;;
13933    *)
13934   echo "$as_me:$LINENO: result: no" >&5
13935 echo "${ECHO_T}no" >&6
13936     ;;
13937   esac
13938 fi
13939
13940 if test "x$enable_dlopen" != xyes; then
13941   enable_dlopen=unknown
13942   enable_dlopen_self=unknown
13943   enable_dlopen_self_static=unknown
13944 else
13945   lt_cv_dlopen=no
13946   lt_cv_dlopen_libs=
13947
13948   case $host_os in
13949   beos*)
13950     lt_cv_dlopen="load_add_on"
13951     lt_cv_dlopen_libs=
13952     lt_cv_dlopen_self=yes
13953     ;;
13954
13955   mingw* | pw32*)
13956     lt_cv_dlopen="LoadLibrary"
13957     lt_cv_dlopen_libs=
13958    ;;
13959
13960   cygwin*)
13961     lt_cv_dlopen="dlopen"
13962     lt_cv_dlopen_libs=
13963    ;;
13964
13965   darwin*)
13966   # if libdl is installed we need to link against it
13967     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13968 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13969 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13970   echo $ECHO_N "(cached) $ECHO_C" >&6
13971 else
13972   ac_check_lib_save_LIBS=$LIBS
13973 LIBS="-ldl  $LIBS"
13974 cat >conftest.$ac_ext <<_ACEOF
13975 /* confdefs.h.  */
13976 _ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h.  */
13980
13981 /* Override any gcc2 internal prototype to avoid an error.  */
13982 #ifdef __cplusplus
13983 extern "C"
13984 #endif
13985 /* We use char because int might match the return type of a gcc2
13986    builtin and then its argument prototype would still apply.  */
13987 char dlopen ();
13988 int
13989 main ()
13990 {
13991 dlopen ();
13992   ;
13993   return 0;
13994 }
13995 _ACEOF
13996 rm -f conftest.$ac_objext conftest$ac_exeext
13997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13998   (eval $ac_link) 2>conftest.er1
13999   ac_status=$?
14000   grep -v '^ *+' conftest.er1 >conftest.err
14001   rm -f conftest.er1
14002   cat conftest.err >&5
14003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004   (exit $ac_status); } &&
14005          { ac_try='test -z "$ac_c_werror_flag"
14006                          || test ! -s conftest.err'
14007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008   (eval $ac_try) 2>&5
14009   ac_status=$?
14010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011   (exit $ac_status); }; } &&
14012          { ac_try='test -s conftest$ac_exeext'
14013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14014   (eval $ac_try) 2>&5
14015   ac_status=$?
14016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017   (exit $ac_status); }; }; then
14018   ac_cv_lib_dl_dlopen=yes
14019 else
14020   echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14022
14023 ac_cv_lib_dl_dlopen=no
14024 fi
14025 rm -f conftest.err conftest.$ac_objext \
14026       conftest$ac_exeext conftest.$ac_ext
14027 LIBS=$ac_check_lib_save_LIBS
14028 fi
14029 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14030 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14031 if test $ac_cv_lib_dl_dlopen = yes; then
14032   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14033 else
14034
14035     lt_cv_dlopen="dyld"
14036     lt_cv_dlopen_libs=
14037     lt_cv_dlopen_self=yes
14038
14039 fi
14040
14041    ;;
14042
14043   *)
14044     echo "$as_me:$LINENO: checking for shl_load" >&5
14045 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14046 if test "${ac_cv_func_shl_load+set}" = set; then
14047   echo $ECHO_N "(cached) $ECHO_C" >&6
14048 else
14049   cat >conftest.$ac_ext <<_ACEOF
14050 /* confdefs.h.  */
14051 _ACEOF
14052 cat confdefs.h >>conftest.$ac_ext
14053 cat >>conftest.$ac_ext <<_ACEOF
14054 /* end confdefs.h.  */
14055 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14057 #define shl_load innocuous_shl_load
14058
14059 /* System header to define __stub macros and hopefully few prototypes,
14060     which can conflict with char shl_load (); below.
14061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14062     <limits.h> exists even on freestanding compilers.  */
14063
14064 #ifdef __STDC__
14065 # include <limits.h>
14066 #else
14067 # include <assert.h>
14068 #endif
14069
14070 #undef shl_load
14071
14072 /* Override any gcc2 internal prototype to avoid an error.  */
14073 #ifdef __cplusplus
14074 extern "C"
14075 {
14076 #endif
14077 /* We use char because int might match the return type of a gcc2
14078    builtin and then its argument prototype would still apply.  */
14079 char shl_load ();
14080 /* The GNU C library defines this for functions which it implements
14081     to always fail with ENOSYS.  Some functions are actually named
14082     something starting with __ and the normal name is an alias.  */
14083 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14084 choke me
14085 #else
14086 char (*f) () = shl_load;
14087 #endif
14088 #ifdef __cplusplus
14089 }
14090 #endif
14091
14092 int
14093 main ()
14094 {
14095 return f != shl_load;
14096   ;
14097   return 0;
14098 }
14099 _ACEOF
14100 rm -f conftest.$ac_objext conftest$ac_exeext
14101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14102   (eval $ac_link) 2>conftest.er1
14103   ac_status=$?
14104   grep -v '^ *+' conftest.er1 >conftest.err
14105   rm -f conftest.er1
14106   cat conftest.err >&5
14107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108   (exit $ac_status); } &&
14109          { ac_try='test -z "$ac_c_werror_flag"
14110                          || test ! -s conftest.err'
14111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112   (eval $ac_try) 2>&5
14113   ac_status=$?
14114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115   (exit $ac_status); }; } &&
14116          { ac_try='test -s conftest$ac_exeext'
14117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118   (eval $ac_try) 2>&5
14119   ac_status=$?
14120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121   (exit $ac_status); }; }; then
14122   ac_cv_func_shl_load=yes
14123 else
14124   echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14126
14127 ac_cv_func_shl_load=no
14128 fi
14129 rm -f conftest.err conftest.$ac_objext \
14130       conftest$ac_exeext conftest.$ac_ext
14131 fi
14132 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14133 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14134 if test $ac_cv_func_shl_load = yes; then
14135   lt_cv_dlopen="shl_load"
14136 else
14137   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14138 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14139 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14140   echo $ECHO_N "(cached) $ECHO_C" >&6
14141 else
14142   ac_check_lib_save_LIBS=$LIBS
14143 LIBS="-ldld  $LIBS"
14144 cat >conftest.$ac_ext <<_ACEOF
14145 /* confdefs.h.  */
14146 _ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h.  */
14150
14151 /* Override any gcc2 internal prototype to avoid an error.  */
14152 #ifdef __cplusplus
14153 extern "C"
14154 #endif
14155 /* We use char because int might match the return type of a gcc2
14156    builtin and then its argument prototype would still apply.  */
14157 char shl_load ();
14158 int
14159 main ()
14160 {
14161 shl_load ();
14162   ;
14163   return 0;
14164 }
14165 _ACEOF
14166 rm -f conftest.$ac_objext conftest$ac_exeext
14167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14168   (eval $ac_link) 2>conftest.er1
14169   ac_status=$?
14170   grep -v '^ *+' conftest.er1 >conftest.err
14171   rm -f conftest.er1
14172   cat conftest.err >&5
14173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174   (exit $ac_status); } &&
14175          { ac_try='test -z "$ac_c_werror_flag"
14176                          || test ! -s conftest.err'
14177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178   (eval $ac_try) 2>&5
14179   ac_status=$?
14180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181   (exit $ac_status); }; } &&
14182          { ac_try='test -s conftest$ac_exeext'
14183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184   (eval $ac_try) 2>&5
14185   ac_status=$?
14186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187   (exit $ac_status); }; }; then
14188   ac_cv_lib_dld_shl_load=yes
14189 else
14190   echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14192
14193 ac_cv_lib_dld_shl_load=no
14194 fi
14195 rm -f conftest.err conftest.$ac_objext \
14196       conftest$ac_exeext conftest.$ac_ext
14197 LIBS=$ac_check_lib_save_LIBS
14198 fi
14199 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14200 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14201 if test $ac_cv_lib_dld_shl_load = yes; then
14202   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14203 else
14204   echo "$as_me:$LINENO: checking for dlopen" >&5
14205 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14206 if test "${ac_cv_func_dlopen+set}" = set; then
14207   echo $ECHO_N "(cached) $ECHO_C" >&6
14208 else
14209   cat >conftest.$ac_ext <<_ACEOF
14210 /* confdefs.h.  */
14211 _ACEOF
14212 cat confdefs.h >>conftest.$ac_ext
14213 cat >>conftest.$ac_ext <<_ACEOF
14214 /* end confdefs.h.  */
14215 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14217 #define dlopen innocuous_dlopen
14218
14219 /* System header to define __stub macros and hopefully few prototypes,
14220     which can conflict with char dlopen (); below.
14221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14222     <limits.h> exists even on freestanding compilers.  */
14223
14224 #ifdef __STDC__
14225 # include <limits.h>
14226 #else
14227 # include <assert.h>
14228 #endif
14229
14230 #undef dlopen
14231
14232 /* Override any gcc2 internal prototype to avoid an error.  */
14233 #ifdef __cplusplus
14234 extern "C"
14235 {
14236 #endif
14237 /* We use char because int might match the return type of a gcc2
14238    builtin and then its argument prototype would still apply.  */
14239 char dlopen ();
14240 /* The GNU C library defines this for functions which it implements
14241     to always fail with ENOSYS.  Some functions are actually named
14242     something starting with __ and the normal name is an alias.  */
14243 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14244 choke me
14245 #else
14246 char (*f) () = dlopen;
14247 #endif
14248 #ifdef __cplusplus
14249 }
14250 #endif
14251
14252 int
14253 main ()
14254 {
14255 return f != dlopen;
14256   ;
14257   return 0;
14258 }
14259 _ACEOF
14260 rm -f conftest.$ac_objext conftest$ac_exeext
14261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14262   (eval $ac_link) 2>conftest.er1
14263   ac_status=$?
14264   grep -v '^ *+' conftest.er1 >conftest.err
14265   rm -f conftest.er1
14266   cat conftest.err >&5
14267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268   (exit $ac_status); } &&
14269          { ac_try='test -z "$ac_c_werror_flag"
14270                          || test ! -s conftest.err'
14271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272   (eval $ac_try) 2>&5
14273   ac_status=$?
14274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275   (exit $ac_status); }; } &&
14276          { ac_try='test -s conftest$ac_exeext'
14277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278   (eval $ac_try) 2>&5
14279   ac_status=$?
14280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281   (exit $ac_status); }; }; then
14282   ac_cv_func_dlopen=yes
14283 else
14284   echo "$as_me: failed program was:" >&5
14285 sed 's/^/| /' conftest.$ac_ext >&5
14286
14287 ac_cv_func_dlopen=no
14288 fi
14289 rm -f conftest.err conftest.$ac_objext \
14290       conftest$ac_exeext conftest.$ac_ext
14291 fi
14292 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14293 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14294 if test $ac_cv_func_dlopen = yes; then
14295   lt_cv_dlopen="dlopen"
14296 else
14297   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14298 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14299 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14300   echo $ECHO_N "(cached) $ECHO_C" >&6
14301 else
14302   ac_check_lib_save_LIBS=$LIBS
14303 LIBS="-ldl  $LIBS"
14304 cat >conftest.$ac_ext <<_ACEOF
14305 /* confdefs.h.  */
14306 _ACEOF
14307 cat confdefs.h >>conftest.$ac_ext
14308 cat >>conftest.$ac_ext <<_ACEOF
14309 /* end confdefs.h.  */
14310
14311 /* Override any gcc2 internal prototype to avoid an error.  */
14312 #ifdef __cplusplus
14313 extern "C"
14314 #endif
14315 /* We use char because int might match the return type of a gcc2
14316    builtin and then its argument prototype would still apply.  */
14317 char dlopen ();
14318 int
14319 main ()
14320 {
14321 dlopen ();
14322   ;
14323   return 0;
14324 }
14325 _ACEOF
14326 rm -f conftest.$ac_objext conftest$ac_exeext
14327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14328   (eval $ac_link) 2>conftest.er1
14329   ac_status=$?
14330   grep -v '^ *+' conftest.er1 >conftest.err
14331   rm -f conftest.er1
14332   cat conftest.err >&5
14333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); } &&
14335          { ac_try='test -z "$ac_c_werror_flag"
14336                          || test ! -s conftest.err'
14337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338   (eval $ac_try) 2>&5
14339   ac_status=$?
14340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341   (exit $ac_status); }; } &&
14342          { ac_try='test -s conftest$ac_exeext'
14343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344   (eval $ac_try) 2>&5
14345   ac_status=$?
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); }; }; then
14348   ac_cv_lib_dl_dlopen=yes
14349 else
14350   echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14352
14353 ac_cv_lib_dl_dlopen=no
14354 fi
14355 rm -f conftest.err conftest.$ac_objext \
14356       conftest$ac_exeext conftest.$ac_ext
14357 LIBS=$ac_check_lib_save_LIBS
14358 fi
14359 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14360 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14361 if test $ac_cv_lib_dl_dlopen = yes; then
14362   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14363 else
14364   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14365 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14366 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14367   echo $ECHO_N "(cached) $ECHO_C" >&6
14368 else
14369   ac_check_lib_save_LIBS=$LIBS
14370 LIBS="-lsvld  $LIBS"
14371 cat >conftest.$ac_ext <<_ACEOF
14372 /* confdefs.h.  */
14373 _ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h.  */
14377
14378 /* Override any gcc2 internal prototype to avoid an error.  */
14379 #ifdef __cplusplus
14380 extern "C"
14381 #endif
14382 /* We use char because int might match the return type of a gcc2
14383    builtin and then its argument prototype would still apply.  */
14384 char dlopen ();
14385 int
14386 main ()
14387 {
14388 dlopen ();
14389   ;
14390   return 0;
14391 }
14392 _ACEOF
14393 rm -f conftest.$ac_objext conftest$ac_exeext
14394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14395   (eval $ac_link) 2>conftest.er1
14396   ac_status=$?
14397   grep -v '^ *+' conftest.er1 >conftest.err
14398   rm -f conftest.er1
14399   cat conftest.err >&5
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); } &&
14402          { ac_try='test -z "$ac_c_werror_flag"
14403                          || test ! -s conftest.err'
14404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405   (eval $ac_try) 2>&5
14406   ac_status=$?
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); }; } &&
14409          { ac_try='test -s conftest$ac_exeext'
14410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411   (eval $ac_try) 2>&5
14412   ac_status=$?
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); }; }; then
14415   ac_cv_lib_svld_dlopen=yes
14416 else
14417   echo "$as_me: failed program was:" >&5
14418 sed 's/^/| /' conftest.$ac_ext >&5
14419
14420 ac_cv_lib_svld_dlopen=no
14421 fi
14422 rm -f conftest.err conftest.$ac_objext \
14423       conftest$ac_exeext conftest.$ac_ext
14424 LIBS=$ac_check_lib_save_LIBS
14425 fi
14426 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14427 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14428 if test $ac_cv_lib_svld_dlopen = yes; then
14429   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14430 else
14431   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14432 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14433 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14434   echo $ECHO_N "(cached) $ECHO_C" >&6
14435 else
14436   ac_check_lib_save_LIBS=$LIBS
14437 LIBS="-ldld  $LIBS"
14438 cat >conftest.$ac_ext <<_ACEOF
14439 /* confdefs.h.  */
14440 _ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h.  */
14444
14445 /* Override any gcc2 internal prototype to avoid an error.  */
14446 #ifdef __cplusplus
14447 extern "C"
14448 #endif
14449 /* We use char because int might match the return type of a gcc2
14450    builtin and then its argument prototype would still apply.  */
14451 char dld_link ();
14452 int
14453 main ()
14454 {
14455 dld_link ();
14456   ;
14457   return 0;
14458 }
14459 _ACEOF
14460 rm -f conftest.$ac_objext conftest$ac_exeext
14461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14462   (eval $ac_link) 2>conftest.er1
14463   ac_status=$?
14464   grep -v '^ *+' conftest.er1 >conftest.err
14465   rm -f conftest.er1
14466   cat conftest.err >&5
14467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468   (exit $ac_status); } &&
14469          { ac_try='test -z "$ac_c_werror_flag"
14470                          || test ! -s conftest.err'
14471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472   (eval $ac_try) 2>&5
14473   ac_status=$?
14474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475   (exit $ac_status); }; } &&
14476          { ac_try='test -s conftest$ac_exeext'
14477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478   (eval $ac_try) 2>&5
14479   ac_status=$?
14480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481   (exit $ac_status); }; }; then
14482   ac_cv_lib_dld_dld_link=yes
14483 else
14484   echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14486
14487 ac_cv_lib_dld_dld_link=no
14488 fi
14489 rm -f conftest.err conftest.$ac_objext \
14490       conftest$ac_exeext conftest.$ac_ext
14491 LIBS=$ac_check_lib_save_LIBS
14492 fi
14493 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14494 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14495 if test $ac_cv_lib_dld_dld_link = yes; then
14496   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14497 fi
14498
14499
14500 fi
14501
14502
14503 fi
14504
14505
14506 fi
14507
14508
14509 fi
14510
14511
14512 fi
14513
14514     ;;
14515   esac
14516
14517   if test "x$lt_cv_dlopen" != xno; then
14518     enable_dlopen=yes
14519   else
14520     enable_dlopen=no
14521   fi
14522
14523   case $lt_cv_dlopen in
14524   dlopen)
14525     save_CPPFLAGS="$CPPFLAGS"
14526     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14527
14528     save_LDFLAGS="$LDFLAGS"
14529     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14530
14531     save_LIBS="$LIBS"
14532     LIBS="$lt_cv_dlopen_libs $LIBS"
14533
14534     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14535 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14536 if test "${lt_cv_dlopen_self+set}" = set; then
14537   echo $ECHO_N "(cached) $ECHO_C" >&6
14538 else
14539           if test "$cross_compiling" = yes; then :
14540   lt_cv_dlopen_self=cross
14541 else
14542   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14543   lt_status=$lt_dlunknown
14544   cat > conftest.$ac_ext <<EOF
14545 #line 14545 "configure"
14546 #include "confdefs.h"
14547
14548 #if HAVE_DLFCN_H
14549 #include <dlfcn.h>
14550 #endif
14551
14552 #include <stdio.h>
14553
14554 #ifdef RTLD_GLOBAL
14555 #  define LT_DLGLOBAL           RTLD_GLOBAL
14556 #else
14557 #  ifdef DL_GLOBAL
14558 #    define LT_DLGLOBAL         DL_GLOBAL
14559 #  else
14560 #    define LT_DLGLOBAL         0
14561 #  endif
14562 #endif
14563
14564 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14565    find out it does not work in some platform. */
14566 #ifndef LT_DLLAZY_OR_NOW
14567 #  ifdef RTLD_LAZY
14568 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14569 #  else
14570 #    ifdef DL_LAZY
14571 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14572 #    else
14573 #      ifdef RTLD_NOW
14574 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14575 #      else
14576 #        ifdef DL_NOW
14577 #          define LT_DLLAZY_OR_NOW      DL_NOW
14578 #        else
14579 #          define LT_DLLAZY_OR_NOW      0
14580 #        endif
14581 #      endif
14582 #    endif
14583 #  endif
14584 #endif
14585
14586 #ifdef __cplusplus
14587 extern "C" void exit (int);
14588 #endif
14589
14590 void fnord() { int i=42;}
14591 int main ()
14592 {
14593   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14594   int status = $lt_dlunknown;
14595
14596   if (self)
14597     {
14598       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14599       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14600       /* dlclose (self); */
14601     }
14602
14603     exit (status);
14604 }
14605 EOF
14606   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14607   (eval $ac_link) 2>&5
14608   ac_status=$?
14609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14611     (./conftest; exit; ) 2>/dev/null
14612     lt_status=$?
14613     case x$lt_status in
14614       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14615       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14616       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14617     esac
14618   else :
14619     # compilation failed
14620     lt_cv_dlopen_self=no
14621   fi
14622 fi
14623 rm -fr conftest*
14624
14625
14626 fi
14627 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14628 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14629
14630     if test "x$lt_cv_dlopen_self" = xyes; then
14631       LDFLAGS="$LDFLAGS $link_static_flag"
14632       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14633 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14634 if test "${lt_cv_dlopen_self_static+set}" = set; then
14635   echo $ECHO_N "(cached) $ECHO_C" >&6
14636 else
14637           if test "$cross_compiling" = yes; then :
14638   lt_cv_dlopen_self_static=cross
14639 else
14640   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14641   lt_status=$lt_dlunknown
14642   cat > conftest.$ac_ext <<EOF
14643 #line 14643 "configure"
14644 #include "confdefs.h"
14645
14646 #if HAVE_DLFCN_H
14647 #include <dlfcn.h>
14648 #endif
14649
14650 #include <stdio.h>
14651
14652 #ifdef RTLD_GLOBAL
14653 #  define LT_DLGLOBAL           RTLD_GLOBAL
14654 #else
14655 #  ifdef DL_GLOBAL
14656 #    define LT_DLGLOBAL         DL_GLOBAL
14657 #  else
14658 #    define LT_DLGLOBAL         0
14659 #  endif
14660 #endif
14661
14662 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14663    find out it does not work in some platform. */
14664 #ifndef LT_DLLAZY_OR_NOW
14665 #  ifdef RTLD_LAZY
14666 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14667 #  else
14668 #    ifdef DL_LAZY
14669 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14670 #    else
14671 #      ifdef RTLD_NOW
14672 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14673 #      else
14674 #        ifdef DL_NOW
14675 #          define LT_DLLAZY_OR_NOW      DL_NOW
14676 #        else
14677 #          define LT_DLLAZY_OR_NOW      0
14678 #        endif
14679 #      endif
14680 #    endif
14681 #  endif
14682 #endif
14683
14684 #ifdef __cplusplus
14685 extern "C" void exit (int);
14686 #endif
14687
14688 void fnord() { int i=42;}
14689 int main ()
14690 {
14691   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14692   int status = $lt_dlunknown;
14693
14694   if (self)
14695     {
14696       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14697       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14698       /* dlclose (self); */
14699     }
14700
14701     exit (status);
14702 }
14703 EOF
14704   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14705   (eval $ac_link) 2>&5
14706   ac_status=$?
14707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14709     (./conftest; exit; ) 2>/dev/null
14710     lt_status=$?
14711     case x$lt_status in
14712       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14713       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14714       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14715     esac
14716   else :
14717     # compilation failed
14718     lt_cv_dlopen_self_static=no
14719   fi
14720 fi
14721 rm -fr conftest*
14722
14723
14724 fi
14725 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14726 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14727     fi
14728
14729     CPPFLAGS="$save_CPPFLAGS"
14730     LDFLAGS="$save_LDFLAGS"
14731     LIBS="$save_LIBS"
14732     ;;
14733   esac
14734
14735   case $lt_cv_dlopen_self in
14736   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14737   *) enable_dlopen_self=unknown ;;
14738   esac
14739
14740   case $lt_cv_dlopen_self_static in
14741   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14742   *) enable_dlopen_self_static=unknown ;;
14743   esac
14744 fi
14745
14746
14747 # Report which librarie types wil actually be built
14748 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14749 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14750 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14751 echo "${ECHO_T}$can_build_shared" >&6
14752
14753 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14754 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14755 test "$can_build_shared" = "no" && enable_shared=no
14756
14757 # On AIX, shared libraries and static libraries use the same namespace, and
14758 # are all built from PIC.
14759 case "$host_os" in
14760 aix3*)
14761   test "$enable_shared" = yes && enable_static=no
14762   if test -n "$RANLIB"; then
14763     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14764     postinstall_cmds='$RANLIB $lib'
14765   fi
14766   ;;
14767
14768 aix4* | aix5*)
14769   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14770     test "$enable_shared" = yes && enable_static=no
14771   fi
14772     ;;
14773 esac
14774 echo "$as_me:$LINENO: result: $enable_shared" >&5
14775 echo "${ECHO_T}$enable_shared" >&6
14776
14777 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14778 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14779 # Make sure either enable_shared or enable_static is yes.
14780 test "$enable_shared" = yes || enable_static=yes
14781 echo "$as_me:$LINENO: result: $enable_static" >&5
14782 echo "${ECHO_T}$enable_static" >&6
14783
14784 # The else clause should only fire when bootstrapping the
14785 # libtool distribution, otherwise you forgot to ship ltmain.sh
14786 # with your package, and you will get complaints that there are
14787 # no rules to generate ltmain.sh.
14788 if test -f "$ltmain"; then
14789   # See if we are running on zsh, and set the options which allow our commands through
14790   # without removal of \ escapes.
14791   if test -n "${ZSH_VERSION+set}" ; then
14792     setopt NO_GLOB_SUBST
14793   fi
14794   # Now quote all the things that may contain metacharacters while being
14795   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14796   # variables and quote the copies for generation of the libtool script.
14797   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14798     SED SHELL STRIP \
14799     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14800     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14801     deplibs_check_method reload_flag reload_cmds need_locks \
14802     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14803     lt_cv_sys_global_symbol_to_c_name_address \
14804     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14805     old_postinstall_cmds old_postuninstall_cmds \
14806     compiler \
14807     CC \
14808     LD \
14809     lt_prog_compiler_wl \
14810     lt_prog_compiler_pic \
14811     lt_prog_compiler_static \
14812     lt_prog_compiler_no_builtin_flag \
14813     export_dynamic_flag_spec \
14814     thread_safe_flag_spec \
14815     whole_archive_flag_spec \
14816     enable_shared_with_static_runtimes \
14817     old_archive_cmds \
14818     old_archive_from_new_cmds \
14819     predep_objects \
14820     postdep_objects \
14821     predeps \
14822     postdeps \
14823     compiler_lib_search_path \
14824     archive_cmds \
14825     archive_expsym_cmds \
14826     postinstall_cmds \
14827     postuninstall_cmds \
14828     old_archive_from_expsyms_cmds \
14829     allow_undefined_flag \
14830     no_undefined_flag \
14831     export_symbols_cmds \
14832     hardcode_libdir_flag_spec \
14833     hardcode_libdir_flag_spec_ld \
14834     hardcode_libdir_separator \
14835     hardcode_automatic \
14836     module_cmds \
14837     module_expsym_cmds \
14838     lt_cv_prog_compiler_c_o \
14839     exclude_expsyms \
14840     include_expsyms; do
14841
14842     case $var in
14843     old_archive_cmds | \
14844     old_archive_from_new_cmds | \
14845     archive_cmds | \
14846     archive_expsym_cmds | \
14847     module_cmds | \
14848     module_expsym_cmds | \
14849     old_archive_from_expsyms_cmds | \
14850     export_symbols_cmds | \
14851     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14852     postinstall_cmds | postuninstall_cmds | \
14853     old_postinstall_cmds | old_postuninstall_cmds | \
14854     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14855       # Double-quote double-evaled strings.
14856       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14857       ;;
14858     *)
14859       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14860       ;;
14861     esac
14862   done
14863
14864   case $lt_echo in
14865   *'\$0 --fallback-echo"')
14866     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14867     ;;
14868   esac
14869
14870 cfgfile="${ofile}T"
14871   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14872   $rm -f "$cfgfile"
14873   { echo "$as_me:$LINENO: creating $ofile" >&5
14874 echo "$as_me: creating $ofile" >&6;}
14875
14876   cat <<__EOF__ >> "$cfgfile"
14877 #! $SHELL
14878
14879 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14880 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14881 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14882 #
14883 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14884 # Free Software Foundation, Inc.
14885 #
14886 # This file is part of GNU Libtool:
14887 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14888 #
14889 # This program is free software; you can redistribute it and/or modify
14890 # it under the terms of the GNU General Public License as published by
14891 # the Free Software Foundation; either version 2 of the License, or
14892 # (at your option) any later version.
14893 #
14894 # This program is distributed in the hope that it will be useful, but
14895 # WITHOUT ANY WARRANTY; without even the implied warranty of
14896 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14897 # General Public License for more details.
14898 #
14899 # You should have received a copy of the GNU General Public License
14900 # along with this program; if not, write to the Free Software
14901 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14902 #
14903 # As a special exception to the GNU General Public License, if you
14904 # distribute this file as part of a program that contains a
14905 # configuration script generated by Autoconf, you may include it under
14906 # the same distribution terms that you use for the rest of that program.
14907
14908 # A sed program that does not truncate output.
14909 SED=$lt_SED
14910
14911 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14912 Xsed="$SED -e s/^X//"
14913
14914 # The HP-UX ksh and POSIX shell print the target directory to stdout
14915 # if CDPATH is set.
14916 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14917
14918 # The names of the tagged configurations supported by this script.
14919 available_tags=
14920
14921 # ### BEGIN LIBTOOL CONFIG
14922
14923 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14924
14925 # Shell to use when invoking shell scripts.
14926 SHELL=$lt_SHELL
14927
14928 # Whether or not to build shared libraries.
14929 build_libtool_libs=$enable_shared
14930
14931 # Whether or not to build static libraries.
14932 build_old_libs=$enable_static
14933
14934 # Whether or not to add -lc for building shared libraries.
14935 build_libtool_need_lc=$archive_cmds_need_lc
14936
14937 # Whether or not to disallow shared libs when runtime libs are static
14938 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14939
14940 # Whether or not to optimize for fast installation.
14941 fast_install=$enable_fast_install
14942
14943 # The host system.
14944 host_alias=$host_alias
14945 host=$host
14946
14947 # An echo program that does not interpret backslashes.
14948 echo=$lt_echo
14949
14950 # The archiver.
14951 AR=$lt_AR
14952 AR_FLAGS=$lt_AR_FLAGS
14953
14954 # A C compiler.
14955 LTCC=$lt_LTCC
14956
14957 # A language-specific compiler.
14958 CC=$lt_compiler
14959
14960 # Is the compiler the GNU C compiler?
14961 with_gcc=$GCC
14962
14963 # An ERE matcher.
14964 EGREP=$lt_EGREP
14965
14966 # The linker used to build libraries.
14967 LD=$lt_LD
14968
14969 # Whether we need hard or soft links.
14970 LN_S=$lt_LN_S
14971
14972 # A BSD-compatible nm program.
14973 NM=$lt_NM
14974
14975 # A symbol stripping program
14976 STRIP=$lt_STRIP
14977
14978 # Used to examine libraries when file_magic_cmd begins "file"
14979 MAGIC_CMD=$MAGIC_CMD
14980
14981 # Used on cygwin: DLL creation program.
14982 DLLTOOL="$DLLTOOL"
14983
14984 # Used on cygwin: object dumper.
14985 OBJDUMP="$OBJDUMP"
14986
14987 # Used on cygwin: assembler.
14988 AS="$AS"
14989
14990 # The name of the directory that contains temporary libtool files.
14991 objdir=$objdir
14992
14993 # How to create reloadable object files.
14994 reload_flag=$lt_reload_flag
14995 reload_cmds=$lt_reload_cmds
14996
14997 # How to pass a linker flag through the compiler.
14998 wl=$lt_lt_prog_compiler_wl
14999
15000 # Object file suffix (normally "o").
15001 objext="$ac_objext"
15002
15003 # Old archive suffix (normally "a").
15004 libext="$libext"
15005
15006 # Shared library suffix (normally ".so").
15007 shrext_cmds='$shrext_cmds'
15008
15009 # Executable file suffix (normally "").
15010 exeext="$exeext"
15011
15012 # Additional compiler flags for building library objects.
15013 pic_flag=$lt_lt_prog_compiler_pic
15014 pic_mode=$pic_mode
15015
15016 # What is the maximum length of a command?
15017 max_cmd_len=$lt_cv_sys_max_cmd_len
15018
15019 # Does compiler simultaneously support -c and -o options?
15020 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15021
15022 # Must we lock files when doing compilation ?
15023 need_locks=$lt_need_locks
15024
15025 # Do we need the lib prefix for modules?
15026 need_lib_prefix=$need_lib_prefix
15027
15028 # Do we need a version for libraries?
15029 need_version=$need_version
15030
15031 # Whether dlopen is supported.
15032 dlopen_support=$enable_dlopen
15033
15034 # Whether dlopen of programs is supported.
15035 dlopen_self=$enable_dlopen_self
15036
15037 # Whether dlopen of statically linked programs is supported.
15038 dlopen_self_static=$enable_dlopen_self_static
15039
15040 # Compiler flag to prevent dynamic linking.
15041 link_static_flag=$lt_lt_prog_compiler_static
15042
15043 # Compiler flag to turn off builtin functions.
15044 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15045
15046 # Compiler flag to allow reflexive dlopens.
15047 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15048
15049 # Compiler flag to generate shared objects directly from archives.
15050 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15051
15052 # Compiler flag to generate thread-safe objects.
15053 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15054
15055 # Library versioning type.
15056 version_type=$version_type
15057
15058 # Format of library name prefix.
15059 libname_spec=$lt_libname_spec
15060
15061 # List of archive names.  First name is the real one, the rest are links.
15062 # The last name is the one that the linker finds with -lNAME.
15063 library_names_spec=$lt_library_names_spec
15064
15065 # The coded name of the library, if different from the real name.
15066 soname_spec=$lt_soname_spec
15067
15068 # Commands used to build and install an old-style archive.
15069 RANLIB=$lt_RANLIB
15070 old_archive_cmds=$lt_old_archive_cmds
15071 old_postinstall_cmds=$lt_old_postinstall_cmds
15072 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15073
15074 # Create an old-style archive from a shared archive.
15075 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15076
15077 # Create a temporary old-style archive to link instead of a shared archive.
15078 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15079
15080 # Commands used to build and install a shared archive.
15081 archive_cmds=$lt_archive_cmds
15082 archive_expsym_cmds=$lt_archive_expsym_cmds
15083 postinstall_cmds=$lt_postinstall_cmds
15084 postuninstall_cmds=$lt_postuninstall_cmds
15085
15086 # Commands used to build a loadable module (assumed same as above if empty)
15087 module_cmds=$lt_module_cmds
15088 module_expsym_cmds=$lt_module_expsym_cmds
15089
15090 # Commands to strip libraries.
15091 old_striplib=$lt_old_striplib
15092 striplib=$lt_striplib
15093
15094 # Dependencies to place before the objects being linked to create a
15095 # shared library.
15096 predep_objects=$lt_predep_objects
15097
15098 # Dependencies to place after the objects being linked to create a
15099 # shared library.
15100 postdep_objects=$lt_postdep_objects
15101
15102 # Dependencies to place before the objects being linked to create a
15103 # shared library.
15104 predeps=$lt_predeps
15105
15106 # Dependencies to place after the objects being linked to create a
15107 # shared library.
15108 postdeps=$lt_postdeps
15109
15110 # The library search path used internally by the compiler when linking
15111 # a shared library.
15112 compiler_lib_search_path=$lt_compiler_lib_search_path
15113
15114 # Method to check whether dependent libraries are shared objects.
15115 deplibs_check_method=$lt_deplibs_check_method
15116
15117 # Command to use when deplibs_check_method == file_magic.
15118 file_magic_cmd=$lt_file_magic_cmd
15119
15120 # Flag that allows shared libraries with undefined symbols to be built.
15121 allow_undefined_flag=$lt_allow_undefined_flag
15122
15123 # Flag that forces no undefined symbols.
15124 no_undefined_flag=$lt_no_undefined_flag
15125
15126 # Commands used to finish a libtool library installation in a directory.
15127 finish_cmds=$lt_finish_cmds
15128
15129 # Same as above, but a single script fragment to be evaled but not shown.
15130 finish_eval=$lt_finish_eval
15131
15132 # Take the output of nm and produce a listing of raw symbols and C names.
15133 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15134
15135 # Transform the output of nm in a proper C declaration
15136 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15137
15138 # Transform the output of nm in a C name address pair
15139 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15140
15141 # This is the shared library runtime path variable.
15142 runpath_var=$runpath_var
15143
15144 # This is the shared library path variable.
15145 shlibpath_var=$shlibpath_var
15146
15147 # Is shlibpath searched before the hard-coded library search path?
15148 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15149
15150 # How to hardcode a shared library path into an executable.
15151 hardcode_action=$hardcode_action
15152
15153 # Whether we should hardcode library paths into libraries.
15154 hardcode_into_libs=$hardcode_into_libs
15155
15156 # Flag to hardcode \$libdir into a binary during linking.
15157 # This must work even if \$libdir does not exist.
15158 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15159
15160 # If ld is used when linking, flag to hardcode \$libdir into
15161 # a binary during linking. This must work even if \$libdir does
15162 # not exist.
15163 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15164
15165 # Whether we need a single -rpath flag with a separated argument.
15166 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15167
15168 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15169 # resulting binary.
15170 hardcode_direct=$hardcode_direct
15171
15172 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15173 # resulting binary.
15174 hardcode_minus_L=$hardcode_minus_L
15175
15176 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15177 # the resulting binary.
15178 hardcode_shlibpath_var=$hardcode_shlibpath_var
15179
15180 # Set to yes if building a shared library automatically hardcodes DIR into the library
15181 # and all subsequent libraries and executables linked against it.
15182 hardcode_automatic=$hardcode_automatic
15183
15184 # Variables whose values should be saved in libtool wrapper scripts and
15185 # restored at relink time.
15186 variables_saved_for_relink="$variables_saved_for_relink"
15187
15188 # Whether libtool must link a program against all its dependency libraries.
15189 link_all_deplibs=$link_all_deplibs
15190
15191 # Compile-time system search path for libraries
15192 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15193
15194 # Run-time system search path for libraries
15195 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15196
15197 # Fix the shell variable \$srcfile for the compiler.
15198 fix_srcfile_path="$fix_srcfile_path"
15199
15200 # Set to yes if exported symbols are required.
15201 always_export_symbols=$always_export_symbols
15202
15203 # The commands to list exported symbols.
15204 export_symbols_cmds=$lt_export_symbols_cmds
15205
15206 # The commands to extract the exported symbol list from a shared archive.
15207 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15208
15209 # Symbols that should not be listed in the preloaded symbols.
15210 exclude_expsyms=$lt_exclude_expsyms
15211
15212 # Symbols that must always be exported.
15213 include_expsyms=$lt_include_expsyms
15214
15215 # ### END LIBTOOL CONFIG
15216
15217 __EOF__
15218
15219
15220   case $host_os in
15221   aix3*)
15222     cat <<\EOF >> "$cfgfile"
15223
15224 # AIX sometimes has problems with the GCC collect2 program.  For some
15225 # reason, if we set the COLLECT_NAMES environment variable, the problems
15226 # vanish in a puff of smoke.
15227 if test "X${COLLECT_NAMES+set}" != Xset; then
15228   COLLECT_NAMES=
15229   export COLLECT_NAMES
15230 fi
15231 EOF
15232     ;;
15233   esac
15234
15235   # We use sed instead of cat because bash on DJGPP gets confused if
15236   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15237   # text mode, it properly converts lines to CR/LF.  This bash problem
15238   # is reportedly fixed, but why not run on old versions too?
15239   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15240
15241   mv -f "$cfgfile" "$ofile" || \
15242     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15243   chmod +x "$ofile"
15244
15245 else
15246   # If there is no Makefile yet, we rely on a make rule to execute
15247   # `config.status --recheck' to rerun these tests and create the
15248   # libtool script then.
15249   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15250   if test -f "$ltmain_in"; then
15251     test -f Makefile && make "$ltmain"
15252   fi
15253 fi
15254
15255
15256 ac_ext=c
15257 ac_cpp='$CPP $CPPFLAGS'
15258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15261
15262 CC="$lt_save_CC"
15263
15264
15265 # Check whether --with-tags or --without-tags was given.
15266 if test "${with_tags+set}" = set; then
15267   withval="$with_tags"
15268   tagnames="$withval"
15269 fi;
15270
15271 if test -f "$ltmain" && test -n "$tagnames"; then
15272   if test ! -f "${ofile}"; then
15273     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15274 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15275   fi
15276
15277   if test -z "$LTCC"; then
15278     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15279     if test -z "$LTCC"; then
15280       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15281 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15282     else
15283       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15284 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15285     fi
15286   fi
15287
15288   # Extract list of available tagged configurations in $ofile.
15289   # Note that this assumes the entire list is on one line.
15290   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15291
15292   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15293   for tagname in $tagnames; do
15294     IFS="$lt_save_ifs"
15295     # Check whether tagname contains only valid characters
15296     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15297     "") ;;
15298     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15299 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15300    { (exit 1); exit 1; }; }
15301         ;;
15302     esac
15303
15304     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15305     then
15306       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15307 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15308    { (exit 1); exit 1; }; }
15309     fi
15310
15311     # Update the list of available tags.
15312     if test -n "$tagname"; then
15313       echo appending configuration tag "$tagname" to $ofile
15314
15315       case $tagname in
15316       CXX)
15317         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15318             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15319             (test "X$CXX" != "Xg++"))) ; then
15320           ac_ext=cc
15321 ac_cpp='$CXXCPP $CPPFLAGS'
15322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15325
15326
15327
15328
15329 archive_cmds_need_lc_CXX=no
15330 allow_undefined_flag_CXX=
15331 always_export_symbols_CXX=no
15332 archive_expsym_cmds_CXX=
15333 export_dynamic_flag_spec_CXX=
15334 hardcode_direct_CXX=no
15335 hardcode_libdir_flag_spec_CXX=
15336 hardcode_libdir_flag_spec_ld_CXX=
15337 hardcode_libdir_separator_CXX=
15338 hardcode_minus_L_CXX=no
15339 hardcode_automatic_CXX=no
15340 module_cmds_CXX=
15341 module_expsym_cmds_CXX=
15342 link_all_deplibs_CXX=unknown
15343 old_archive_cmds_CXX=$old_archive_cmds
15344 no_undefined_flag_CXX=
15345 whole_archive_flag_spec_CXX=
15346 enable_shared_with_static_runtimes_CXX=no
15347
15348 # Dependencies to place before and after the object being linked:
15349 predep_objects_CXX=
15350 postdep_objects_CXX=
15351 predeps_CXX=
15352 postdeps_CXX=
15353 compiler_lib_search_path_CXX=
15354
15355 # Source file extension for C++ test sources.
15356 ac_ext=cc
15357
15358 # Object file extension for compiled C++ test sources.
15359 objext=o
15360 objext_CXX=$objext
15361
15362 # Code to be used in simple compile tests
15363 lt_simple_compile_test_code="int some_variable = 0;\n"
15364
15365 # Code to be used in simple link tests
15366 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15367
15368 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15369
15370 # If no C compiler was specified, use CC.
15371 LTCC=${LTCC-"$CC"}
15372
15373 # Allow CC to be a program name with arguments.
15374 compiler=$CC
15375
15376
15377 # Allow CC to be a program name with arguments.
15378 lt_save_CC=$CC
15379 lt_save_LD=$LD
15380 lt_save_GCC=$GCC
15381 GCC=$GXX
15382 lt_save_with_gnu_ld=$with_gnu_ld
15383 lt_save_path_LD=$lt_cv_path_LD
15384 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15385   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15386 else
15387   unset lt_cv_prog_gnu_ld
15388 fi
15389 if test -n "${lt_cv_path_LDCXX+set}"; then
15390   lt_cv_path_LD=$lt_cv_path_LDCXX
15391 else
15392   unset lt_cv_path_LD
15393 fi
15394 test -z "${LDCXX+set}" || LD=$LDCXX
15395 CC=${CXX-"c++"}
15396 compiler=$CC
15397 compiler_CXX=$CC
15398 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15399
15400 # We don't want -fno-exception wen compiling C++ code, so set the
15401 # no_builtin_flag separately
15402 if test "$GXX" = yes; then
15403   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15404 else
15405   lt_prog_compiler_no_builtin_flag_CXX=
15406 fi
15407
15408 if test "$GXX" = yes; then
15409   # Set up default GNU C++ configuration
15410
15411
15412 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15413 if test "${with_gnu_ld+set}" = set; then
15414   withval="$with_gnu_ld"
15415   test "$withval" = no || with_gnu_ld=yes
15416 else
15417   with_gnu_ld=no
15418 fi;
15419 ac_prog=ld
15420 if test "$GCC" = yes; then
15421   # Check if gcc -print-prog-name=ld gives a path.
15422   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15423 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15424   case $host in
15425   *-*-mingw*)
15426     # gcc leaves a trailing carriage return which upsets mingw
15427     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15428   *)
15429     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15430   esac
15431   case $ac_prog in
15432     # Accept absolute paths.
15433     [\\/]* | ?:[\\/]*)
15434       re_direlt='/[^/][^/]*/\.\./'
15435       # Canonicalize the pathname of ld
15436       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15437       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15438         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15439       done
15440       test -z "$LD" && LD="$ac_prog"
15441       ;;
15442   "")
15443     # If it fails, then pretend we aren't using GCC.
15444     ac_prog=ld
15445     ;;
15446   *)
15447     # If it is relative, then search for the first ld in PATH.
15448     with_gnu_ld=unknown
15449     ;;
15450   esac
15451 elif test "$with_gnu_ld" = yes; then
15452   echo "$as_me:$LINENO: checking for GNU ld" >&5
15453 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15454 else
15455   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15456 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15457 fi
15458 if test "${lt_cv_path_LD+set}" = set; then
15459   echo $ECHO_N "(cached) $ECHO_C" >&6
15460 else
15461   if test -z "$LD"; then
15462   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15463   for ac_dir in $PATH; do
15464     IFS="$lt_save_ifs"
15465     test -z "$ac_dir" && ac_dir=.
15466     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15467       lt_cv_path_LD="$ac_dir/$ac_prog"
15468       # Check to see if the program is GNU ld.  I'd rather use --version,
15469       # but apparently some GNU ld's only accept -v.
15470       # Break only if it was the GNU/non-GNU ld that we prefer.
15471       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15472       *GNU* | *'with BFD'*)
15473         test "$with_gnu_ld" != no && break
15474         ;;
15475       *)
15476         test "$with_gnu_ld" != yes && break
15477         ;;
15478       esac
15479     fi
15480   done
15481   IFS="$lt_save_ifs"
15482 else
15483   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15484 fi
15485 fi
15486
15487 LD="$lt_cv_path_LD"
15488 if test -n "$LD"; then
15489   echo "$as_me:$LINENO: result: $LD" >&5
15490 echo "${ECHO_T}$LD" >&6
15491 else
15492   echo "$as_me:$LINENO: result: no" >&5
15493 echo "${ECHO_T}no" >&6
15494 fi
15495 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15496 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15497    { (exit 1); exit 1; }; }
15498 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15499 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15500 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15501   echo $ECHO_N "(cached) $ECHO_C" >&6
15502 else
15503   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15504 case `$LD -v 2>&1 </dev/null` in
15505 *GNU* | *'with BFD'*)
15506   lt_cv_prog_gnu_ld=yes
15507   ;;
15508 *)
15509   lt_cv_prog_gnu_ld=no
15510   ;;
15511 esac
15512 fi
15513 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15514 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15515 with_gnu_ld=$lt_cv_prog_gnu_ld
15516
15517
15518
15519   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15520   # archiving commands below assume that GNU ld is being used.
15521   if test "$with_gnu_ld" = yes; then
15522     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15523     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'
15524
15525     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15526     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15527
15528     # If archive_cmds runs LD, not CC, wlarc should be empty
15529     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15530     #     investigate it a little bit more. (MM)
15531     wlarc='${wl}'
15532
15533     # ancient GNU ld didn't support --whole-archive et. al.
15534     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15535         grep 'no-whole-archive' > /dev/null; then
15536       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15537     else
15538       whole_archive_flag_spec_CXX=
15539     fi
15540   else
15541     with_gnu_ld=no
15542     wlarc=
15543
15544     # A generic and very simple default shared library creation
15545     # command for GNU C++ for the case where it uses the native
15546     # linker, instead of GNU ld.  If possible, this setting should
15547     # overridden to take advantage of the native linker features on
15548     # the platform it is being used on.
15549     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15550   fi
15551
15552   # Commands to make compiler produce verbose output that lists
15553   # what "hidden" libraries, object files and flags are used when
15554   # linking a shared library.
15555   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15556
15557 else
15558   GXX=no
15559   with_gnu_ld=no
15560   wlarc=
15561 fi
15562
15563 # PORTME: fill in a description of your system's C++ link characteristics
15564 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15565 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15566 ld_shlibs_CXX=yes
15567 case $host_os in
15568   aix3*)
15569     # FIXME: insert proper C++ library support
15570     ld_shlibs_CXX=no
15571     ;;
15572   aix4* | aix5*)
15573     if test "$host_cpu" = ia64; then
15574       # On IA64, the linker does run time linking by default, so we don't
15575       # have to do anything special.
15576       aix_use_runtimelinking=no
15577       exp_sym_flag='-Bexport'
15578       no_entry_flag=""
15579     else
15580       aix_use_runtimelinking=no
15581
15582       # Test if we are trying to use run time linking or normal
15583       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15584       # need to do runtime linking.
15585       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15586         for ld_flag in $LDFLAGS; do
15587           case $ld_flag in
15588           *-brtl*)
15589             aix_use_runtimelinking=yes
15590             break
15591             ;;
15592           esac
15593         done
15594       esac
15595
15596       exp_sym_flag='-bexport'
15597       no_entry_flag='-bnoentry'
15598     fi
15599
15600     # When large executables or shared objects are built, AIX ld can
15601     # have problems creating the table of contents.  If linking a library
15602     # or program results in "error TOC overflow" add -mminimal-toc to
15603     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15604     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15605
15606     archive_cmds_CXX=''
15607     hardcode_direct_CXX=yes
15608     hardcode_libdir_separator_CXX=':'
15609     link_all_deplibs_CXX=yes
15610
15611     if test "$GXX" = yes; then
15612       case $host_os in aix4.012|aix4.012.*)
15613       # We only want to do this on AIX 4.2 and lower, the check
15614       # below for broken collect2 doesn't work under 4.3+
15615         collect2name=`${CC} -print-prog-name=collect2`
15616         if test -f "$collect2name" && \
15617            strings "$collect2name" | grep resolve_lib_name >/dev/null
15618         then
15619           # We have reworked collect2
15620           hardcode_direct_CXX=yes
15621         else
15622           # We have old collect2
15623           hardcode_direct_CXX=unsupported
15624           # It fails to find uninstalled libraries when the uninstalled
15625           # path is not listed in the libpath.  Setting hardcode_minus_L
15626           # to unsupported forces relinking
15627           hardcode_minus_L_CXX=yes
15628           hardcode_libdir_flag_spec_CXX='-L$libdir'
15629           hardcode_libdir_separator_CXX=
15630         fi
15631       esac
15632       shared_flag='-shared'
15633     else
15634       # not using gcc
15635       if test "$host_cpu" = ia64; then
15636         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15637         # chokes on -Wl,-G. The following line is correct:
15638         shared_flag='-G'
15639       else
15640         if test "$aix_use_runtimelinking" = yes; then
15641           shared_flag='${wl}-G'
15642         else
15643           shared_flag='${wl}-bM:SRE'
15644         fi
15645       fi
15646     fi
15647
15648     # It seems that -bexpall does not export symbols beginning with
15649     # underscore (_), so it is better to generate a list of symbols to export.
15650     always_export_symbols_CXX=yes
15651     if test "$aix_use_runtimelinking" = yes; then
15652       # Warning - without using the other runtime loading flags (-brtl),
15653       # -berok will link without error, but may produce a broken library.
15654       allow_undefined_flag_CXX='-berok'
15655       # Determine the default libpath from the value encoded in an empty executable.
15656       cat >conftest.$ac_ext <<_ACEOF
15657 /* confdefs.h.  */
15658 _ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h.  */
15662
15663 int
15664 main ()
15665 {
15666
15667   ;
15668   return 0;
15669 }
15670 _ACEOF
15671 rm -f conftest.$ac_objext conftest$ac_exeext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15673   (eval $ac_link) 2>conftest.er1
15674   ac_status=$?
15675   grep -v '^ *+' conftest.er1 >conftest.err
15676   rm -f conftest.er1
15677   cat conftest.err >&5
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); } &&
15680          { ac_try='test -z "$ac_cxx_werror_flag"
15681                          || test ! -s conftest.err'
15682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15683   (eval $ac_try) 2>&5
15684   ac_status=$?
15685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686   (exit $ac_status); }; } &&
15687          { ac_try='test -s conftest$ac_exeext'
15688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689   (eval $ac_try) 2>&5
15690   ac_status=$?
15691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); }; }; then
15693
15694 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15695 }'`
15696 # Check for a 64-bit object if we didn't find anything.
15697 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; }
15698 }'`; fi
15699 else
15700   echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15702
15703 fi
15704 rm -f conftest.err conftest.$ac_objext \
15705       conftest$ac_exeext conftest.$ac_ext
15706 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15707
15708       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15709
15710       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"
15711      else
15712       if test "$host_cpu" = ia64; then
15713         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15714         allow_undefined_flag_CXX="-z nodefs"
15715         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"
15716       else
15717         # Determine the default libpath from the value encoded in an empty executable.
15718         cat >conftest.$ac_ext <<_ACEOF
15719 /* confdefs.h.  */
15720 _ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h.  */
15724
15725 int
15726 main ()
15727 {
15728
15729   ;
15730   return 0;
15731 }
15732 _ACEOF
15733 rm -f conftest.$ac_objext conftest$ac_exeext
15734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15735   (eval $ac_link) 2>conftest.er1
15736   ac_status=$?
15737   grep -v '^ *+' conftest.er1 >conftest.err
15738   rm -f conftest.er1
15739   cat conftest.err >&5
15740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741   (exit $ac_status); } &&
15742          { ac_try='test -z "$ac_cxx_werror_flag"
15743                          || test ! -s conftest.err'
15744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745   (eval $ac_try) 2>&5
15746   ac_status=$?
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); }; } &&
15749          { ac_try='test -s conftest$ac_exeext'
15750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15751   (eval $ac_try) 2>&5
15752   ac_status=$?
15753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754   (exit $ac_status); }; }; then
15755
15756 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15757 }'`
15758 # Check for a 64-bit object if we didn't find anything.
15759 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; }
15760 }'`; fi
15761 else
15762   echo "$as_me: failed program was:" >&5
15763 sed 's/^/| /' conftest.$ac_ext >&5
15764
15765 fi
15766 rm -f conftest.err conftest.$ac_objext \
15767       conftest$ac_exeext conftest.$ac_ext
15768 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15769
15770         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15771         # Warning - without using the other run time loading flags,
15772         # -berok will link without error, but may produce a broken library.
15773         no_undefined_flag_CXX=' ${wl}-bernotok'
15774         allow_undefined_flag_CXX=' ${wl}-berok'
15775         # -bexpall does not export symbols beginning with underscore (_)
15776         always_export_symbols_CXX=yes
15777         # Exported symbols can be pulled into shared objects from archives
15778         whole_archive_flag_spec_CXX=' '
15779         archive_cmds_need_lc_CXX=yes
15780         # This is similar to how AIX traditionally builds it's shared libraries.
15781         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'
15782       fi
15783     fi
15784     ;;
15785   chorus*)
15786     case $cc_basename in
15787       *)
15788         # FIXME: insert proper C++ library support
15789         ld_shlibs_CXX=no
15790         ;;
15791     esac
15792     ;;
15793
15794
15795   cygwin* | mingw* | pw32*)
15796     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15797     # as there is no search path for DLLs.
15798     hardcode_libdir_flag_spec_CXX='-L$libdir'
15799     allow_undefined_flag_CXX=unsupported
15800     always_export_symbols_CXX=no
15801     enable_shared_with_static_runtimes_CXX=yes
15802
15803     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15804       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'
15805       # If the export-symbols file already is a .def file (1st line
15806       # is EXPORTS), use it as is; otherwise, prepend...
15807       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15808         cp $export_symbols $output_objdir/$soname.def;
15809       else
15810         echo EXPORTS > $output_objdir/$soname.def;
15811         cat $export_symbols >> $output_objdir/$soname.def;
15812       fi~
15813       $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'
15814     else
15815       ld_shlibs_CXX=no
15816     fi
15817   ;;
15818       darwin* | rhapsody*)
15819         case "$host_os" in
15820         rhapsody* | darwin1.[012])
15821          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15822          ;;
15823        *) # Darwin 1.3 on
15824          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15825            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15826          else
15827            case ${MACOSX_DEPLOYMENT_TARGET} in
15828              10.[012])
15829                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15830                ;;
15831              10.*)
15832                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15833                ;;
15834            esac
15835          fi
15836          ;;
15837         esac
15838       archive_cmds_need_lc_CXX=no
15839       hardcode_direct_CXX=no
15840       hardcode_automatic_CXX=yes
15841       hardcode_shlibpath_var_CXX=unsupported
15842       whole_archive_flag_spec_CXX=''
15843       link_all_deplibs_CXX=yes
15844
15845     if test "$GXX" = yes ; then
15846       lt_int_apple_cc_single_mod=no
15847       output_verbose_link_cmd='echo'
15848       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15849        lt_int_apple_cc_single_mod=yes
15850       fi
15851       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15852        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15853       else
15854           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'
15855         fi
15856         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15857         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15858           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15859             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}'
15860           else
15861             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}'
15862           fi
15863             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}'
15864       else
15865       case "$cc_basename" in
15866         xlc*)
15867          output_verbose_link_cmd='echo'
15868           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'
15869           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15870           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15871           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}'
15872           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}'
15873           ;;
15874        *)
15875          ld_shlibs_CXX=no
15876           ;;
15877       esac
15878       fi
15879         ;;
15880
15881   dgux*)
15882     case $cc_basename in
15883       ec++)
15884         # FIXME: insert proper C++ library support
15885         ld_shlibs_CXX=no
15886         ;;
15887       ghcx)
15888         # Green Hills C++ Compiler
15889         # FIXME: insert proper C++ library support
15890         ld_shlibs_CXX=no
15891         ;;
15892       *)
15893         # FIXME: insert proper C++ library support
15894         ld_shlibs_CXX=no
15895         ;;
15896     esac
15897     ;;
15898   freebsd12*)
15899     # C++ shared libraries reported to be fairly broken before switch to ELF
15900     ld_shlibs_CXX=no
15901     ;;
15902   freebsd-elf*)
15903     archive_cmds_need_lc_CXX=no
15904     ;;
15905   freebsd* | kfreebsd*-gnu)
15906     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15907     # conventions
15908     ld_shlibs_CXX=yes
15909     ;;
15910   gnu*)
15911     ;;
15912   hpux9*)
15913     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15914     hardcode_libdir_separator_CXX=:
15915     export_dynamic_flag_spec_CXX='${wl}-E'
15916     hardcode_direct_CXX=yes
15917     hardcode_minus_L_CXX=yes # Not in the search PATH,
15918                                 # but as the default
15919                                 # location of the library.
15920
15921     case $cc_basename in
15922     CC)
15923       # FIXME: insert proper C++ library support
15924       ld_shlibs_CXX=no
15925       ;;
15926     aCC)
15927       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'
15928       # Commands to make compiler produce verbose output that lists
15929       # what "hidden" libraries, object files and flags are used when
15930       # linking a shared library.
15931       #
15932       # There doesn't appear to be a way to prevent this compiler from
15933       # explicitly linking system object files so we need to strip them
15934       # from the output so that they don't get included in the library
15935       # dependencies.
15936       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'
15937       ;;
15938     *)
15939       if test "$GXX" = yes; then
15940         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'
15941       else
15942         # FIXME: insert proper C++ library support
15943         ld_shlibs_CXX=no
15944       fi
15945       ;;
15946     esac
15947     ;;
15948   hpux10*|hpux11*)
15949     if test $with_gnu_ld = no; then
15950       case "$host_cpu" in
15951       hppa*64*)
15952         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15953         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15954         hardcode_libdir_separator_CXX=:
15955         ;;
15956       ia64*)
15957         hardcode_libdir_flag_spec_CXX='-L$libdir'
15958         ;;
15959       *)
15960         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15961         hardcode_libdir_separator_CXX=:
15962         export_dynamic_flag_spec_CXX='${wl}-E'
15963         ;;
15964       esac
15965     fi
15966     case "$host_cpu" in
15967     hppa*64*)
15968       hardcode_direct_CXX=no
15969       hardcode_shlibpath_var_CXX=no
15970       ;;
15971     ia64*)
15972       hardcode_direct_CXX=no
15973       hardcode_shlibpath_var_CXX=no
15974       hardcode_minus_L_CXX=yes # Not in the search PATH,
15975                                               # but as the default
15976                                               # location of the library.
15977       ;;
15978     *)
15979       hardcode_direct_CXX=yes
15980       hardcode_minus_L_CXX=yes # Not in the search PATH,
15981                                               # but as the default
15982                                               # location of the library.
15983       ;;
15984     esac
15985
15986     case $cc_basename in
15987       CC)
15988         # FIXME: insert proper C++ library support
15989         ld_shlibs_CXX=no
15990         ;;
15991       aCC)
15992         case "$host_cpu" in
15993         hppa*64*|ia64*)
15994           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15995           ;;
15996         *)
15997           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15998           ;;
15999         esac
16000         # Commands to make compiler produce verbose output that lists
16001         # what "hidden" libraries, object files and flags are used when
16002         # linking a shared library.
16003         #
16004         # There doesn't appear to be a way to prevent this compiler from
16005         # explicitly linking system object files so we need to strip them
16006         # from the output so that they don't get included in the library
16007         # dependencies.
16008         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'
16009         ;;
16010       *)
16011         if test "$GXX" = yes; then
16012           if test $with_gnu_ld = no; then
16013             case "$host_cpu" in
16014             ia64*|hppa*64*)
16015               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16016               ;;
16017             *)
16018               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'
16019               ;;
16020             esac
16021           fi
16022         else
16023           # FIXME: insert proper C++ library support
16024           ld_shlibs_CXX=no
16025         fi
16026         ;;
16027     esac
16028     ;;
16029   irix5* | irix6*)
16030     case $cc_basename in
16031       CC)
16032         # SGI C++
16033         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'
16034
16035         # Archives containing C++ object files must be created using
16036         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16037         # necessary to make sure instantiated templates are included
16038         # in the archive.
16039         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16040         ;;
16041       *)
16042         if test "$GXX" = yes; then
16043           if test "$with_gnu_ld" = no; then
16044             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'
16045           else
16046             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'
16047           fi
16048         fi
16049         link_all_deplibs_CXX=yes
16050         ;;
16051     esac
16052     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16053     hardcode_libdir_separator_CXX=:
16054     ;;
16055   linux*)
16056     case $cc_basename in
16057       KCC)
16058         # Kuck and Associates, Inc. (KAI) C++ Compiler
16059
16060         # KCC will only create a shared library if the output file
16061         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16062         # to its proper name (with version) after linking.
16063         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'
16064         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'
16065         # Commands to make compiler produce verbose output that lists
16066         # what "hidden" libraries, object files and flags are used when
16067         # linking a shared library.
16068         #
16069         # There doesn't appear to be a way to prevent this compiler from
16070         # explicitly linking system object files so we need to strip them
16071         # from the output so that they don't get included in the library
16072         # dependencies.
16073         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'
16074
16075         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16076         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16077
16078         # Archives containing C++ object files must be created using
16079         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16080         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16081         ;;
16082       icpc)
16083         # Intel C++
16084         with_gnu_ld=yes
16085         # version 8.0 and above of icpc choke on multiply defined symbols
16086         # if we add $predep_objects and $postdep_objects, however 7.1 and
16087         # earlier do not add the objects themselves.
16088         case `$CC -V 2>&1` in
16089         *"Version 7."*)
16090           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16091           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'
16092           ;;
16093         *)  # Version 8.0 or newer
16094           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16095         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16096           ;;
16097         esac
16098         archive_cmds_need_lc_CXX=no
16099         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16100         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16101         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16102         ;;
16103       cxx)
16104         # Compaq C++
16105         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16106         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'
16107
16108         runpath_var=LD_RUN_PATH
16109         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16110         hardcode_libdir_separator_CXX=:
16111
16112         # Commands to make compiler produce verbose output that lists
16113         # what "hidden" libraries, object files and flags are used when
16114         # linking a shared library.
16115         #
16116         # There doesn't appear to be a way to prevent this compiler from
16117         # explicitly linking system object files so we need to strip them
16118         # from the output so that they don't get included in the library
16119         # dependencies.
16120         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'
16121         ;;
16122     esac
16123     ;;
16124   lynxos*)
16125     # FIXME: insert proper C++ library support
16126     ld_shlibs_CXX=no
16127     ;;
16128   m88k*)
16129     # FIXME: insert proper C++ library support
16130     ld_shlibs_CXX=no
16131     ;;
16132   mvs*)
16133     case $cc_basename in
16134       cxx)
16135         # FIXME: insert proper C++ library support
16136         ld_shlibs_CXX=no
16137         ;;
16138       *)
16139         # FIXME: insert proper C++ library support
16140         ld_shlibs_CXX=no
16141         ;;
16142     esac
16143     ;;
16144   netbsd*)
16145     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16146       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16147       wlarc=
16148       hardcode_libdir_flag_spec_CXX='-R$libdir'
16149       hardcode_direct_CXX=yes
16150       hardcode_shlibpath_var_CXX=no
16151     fi
16152     # Workaround some broken pre-1.5 toolchains
16153     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16154     ;;
16155   openbsd2*)
16156     # C++ shared libraries are fairly broken
16157     ld_shlibs_CXX=no
16158     ;;
16159   openbsd*)
16160     hardcode_direct_CXX=yes
16161     hardcode_shlibpath_var_CXX=no
16162     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16163     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16164     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16165       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16166       export_dynamic_flag_spec_CXX='${wl}-E'
16167       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16168     fi
16169     output_verbose_link_cmd='echo'
16170     ;;
16171   osf3*)
16172     case $cc_basename in
16173       KCC)
16174         # Kuck and Associates, Inc. (KAI) C++ Compiler
16175
16176         # KCC will only create a shared library if the output file
16177         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16178         # to its proper name (with version) after linking.
16179         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'
16180
16181         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16182         hardcode_libdir_separator_CXX=:
16183
16184         # Archives containing C++ object files must be created using
16185         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16186         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16187
16188         ;;
16189       RCC)
16190         # Rational C++ 2.4.1
16191         # FIXME: insert proper C++ library support
16192         ld_shlibs_CXX=no
16193         ;;
16194       cxx)
16195         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16196         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'
16197
16198         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16199         hardcode_libdir_separator_CXX=:
16200
16201         # Commands to make compiler produce verbose output that lists
16202         # what "hidden" libraries, object files and flags are used when
16203         # linking a shared library.
16204         #
16205         # There doesn't appear to be a way to prevent this compiler from
16206         # explicitly linking system object files so we need to strip them
16207         # from the output so that they don't get included in the library
16208         # dependencies.
16209         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'
16210         ;;
16211       *)
16212         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16213           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16214           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'
16215
16216           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16217           hardcode_libdir_separator_CXX=:
16218
16219           # Commands to make compiler produce verbose output that lists
16220           # what "hidden" libraries, object files and flags are used when
16221           # linking a shared library.
16222           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16223
16224         else
16225           # FIXME: insert proper C++ library support
16226           ld_shlibs_CXX=no
16227         fi
16228         ;;
16229     esac
16230     ;;
16231   osf4* | osf5*)
16232     case $cc_basename in
16233       KCC)
16234         # Kuck and Associates, Inc. (KAI) C++ Compiler
16235
16236         # KCC will only create a shared library if the output file
16237         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16238         # to its proper name (with version) after linking.
16239         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'
16240
16241         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16242         hardcode_libdir_separator_CXX=:
16243
16244         # Archives containing C++ object files must be created using
16245         # the KAI C++ compiler.
16246         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16247         ;;
16248       RCC)
16249         # Rational C++ 2.4.1
16250         # FIXME: insert proper C++ library support
16251         ld_shlibs_CXX=no
16252         ;;
16253       cxx)
16254         allow_undefined_flag_CXX=' -expect_unresolved \*'
16255         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'
16256         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16257           echo "-hidden">> $lib.exp~
16258           $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~
16259           $rm $lib.exp'
16260
16261         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16262         hardcode_libdir_separator_CXX=:
16263
16264         # Commands to make compiler produce verbose output that lists
16265         # what "hidden" libraries, object files and flags are used when
16266         # linking a shared library.
16267         #
16268         # There doesn't appear to be a way to prevent this compiler from
16269         # explicitly linking system object files so we need to strip them
16270         # from the output so that they don't get included in the library
16271         # dependencies.
16272         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'
16273         ;;
16274       *)
16275         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16276           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16277          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'
16278
16279           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16280           hardcode_libdir_separator_CXX=:
16281
16282           # Commands to make compiler produce verbose output that lists
16283           # what "hidden" libraries, object files and flags are used when
16284           # linking a shared library.
16285           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16286
16287         else
16288           # FIXME: insert proper C++ library support
16289           ld_shlibs_CXX=no
16290         fi
16291         ;;
16292     esac
16293     ;;
16294   psos*)
16295     # FIXME: insert proper C++ library support
16296     ld_shlibs_CXX=no
16297     ;;
16298   sco*)
16299     archive_cmds_need_lc_CXX=no
16300     case $cc_basename in
16301       CC)
16302         # FIXME: insert proper C++ library support
16303         ld_shlibs_CXX=no
16304         ;;
16305       *)
16306         # FIXME: insert proper C++ library support
16307         ld_shlibs_CXX=no
16308         ;;
16309     esac
16310     ;;
16311   sunos4*)
16312     case $cc_basename in
16313       CC)
16314         # Sun C++ 4.x
16315         # FIXME: insert proper C++ library support
16316         ld_shlibs_CXX=no
16317         ;;
16318       lcc)
16319         # Lucid
16320         # FIXME: insert proper C++ library support
16321         ld_shlibs_CXX=no
16322         ;;
16323       *)
16324         # FIXME: insert proper C++ library support
16325         ld_shlibs_CXX=no
16326         ;;
16327     esac
16328     ;;
16329   solaris*)
16330     case $cc_basename in
16331       CC)
16332         # Sun C++ 4.2, 5.x and Centerline C++
16333         no_undefined_flag_CXX=' -zdefs'
16334         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16335         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16336         $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'
16337
16338         hardcode_libdir_flag_spec_CXX='-R$libdir'
16339         hardcode_shlibpath_var_CXX=no
16340         case $host_os in
16341           solaris2.0-5 | solaris2.0-5.*) ;;
16342           *)
16343             # The C++ compiler is used as linker so we must use $wl
16344             # flag to pass the commands to the underlying system
16345             # linker.
16346             # Supported since Solaris 2.6 (maybe 2.5.1?)
16347             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16348             ;;
16349         esac
16350         link_all_deplibs_CXX=yes
16351
16352         # Commands to make compiler produce verbose output that lists
16353         # what "hidden" libraries, object files and flags are used when
16354         # linking a shared library.
16355         #
16356         # There doesn't appear to be a way to prevent this compiler from
16357         # explicitly linking system object files so we need to strip them
16358         # from the output so that they don't get included in the library
16359         # dependencies.
16360         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'
16361
16362         # Archives containing C++ object files must be created using
16363         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16364         # necessary to make sure instantiated templates are included
16365         # in the archive.
16366         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16367         ;;
16368       gcx)
16369         # Green Hills C++ Compiler
16370         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16371
16372         # The C++ compiler must be used to create the archive.
16373         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16374         ;;
16375       *)
16376         # GNU C++ compiler with Solaris linker
16377         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16378           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16379           if $CC --version | grep -v '^2\.7' > /dev/null; then
16380             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16381             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16382                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16383
16384             # Commands to make compiler produce verbose output that lists
16385             # what "hidden" libraries, object files and flags are used when
16386             # linking a shared library.
16387             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16388           else
16389             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16390             # platform.
16391             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16392             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16393                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16394
16395             # Commands to make compiler produce verbose output that lists
16396             # what "hidden" libraries, object files and flags are used when
16397             # linking a shared library.
16398             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16399           fi
16400
16401           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16402         fi
16403         ;;
16404     esac
16405     ;;
16406   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16407     archive_cmds_need_lc_CXX=no
16408     ;;
16409   tandem*)
16410     case $cc_basename in
16411       NCC)
16412         # NonStop-UX NCC 3.20
16413         # FIXME: insert proper C++ library support
16414         ld_shlibs_CXX=no
16415         ;;
16416       *)
16417         # FIXME: insert proper C++ library support
16418         ld_shlibs_CXX=no
16419         ;;
16420     esac
16421     ;;
16422   vxworks*)
16423     # FIXME: insert proper C++ library support
16424     ld_shlibs_CXX=no
16425     ;;
16426   *)
16427     # FIXME: insert proper C++ library support
16428     ld_shlibs_CXX=no
16429     ;;
16430 esac
16431 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16432 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16433 test "$ld_shlibs_CXX" = no && can_build_shared=no
16434
16435 GCC_CXX="$GXX"
16436 LD_CXX="$LD"
16437
16438
16439 cat > conftest.$ac_ext <<EOF
16440 class Foo
16441 {
16442 public:
16443   Foo (void) { a = 0; }
16444 private:
16445   int a;
16446 };
16447 EOF
16448
16449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16450   (eval $ac_compile) 2>&5
16451   ac_status=$?
16452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453   (exit $ac_status); }; then
16454   # Parse the compiler output and extract the necessary
16455   # objects, libraries and library flags.
16456
16457   # Sentinel used to keep track of whether or not we are before
16458   # the conftest object file.
16459   pre_test_object_deps_done=no
16460
16461   # The `*' in the case matches for architectures that use `case' in
16462   # $output_verbose_cmd can trigger glob expansion during the loop
16463   # eval without this substitution.
16464   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16465
16466   for p in `eval $output_verbose_link_cmd`; do
16467     case $p in
16468
16469     -L* | -R* | -l*)
16470        # Some compilers place space between "-{L,R}" and the path.
16471        # Remove the space.
16472        if test $p = "-L" \
16473           || test $p = "-R"; then
16474          prev=$p
16475          continue
16476        else
16477          prev=
16478        fi
16479
16480        if test "$pre_test_object_deps_done" = no; then
16481          case $p in
16482          -L* | -R*)
16483            # Internal compiler library paths should come after those
16484            # provided the user.  The postdeps already come after the
16485            # user supplied libs so there is no need to process them.
16486            if test -z "$compiler_lib_search_path_CXX"; then
16487              compiler_lib_search_path_CXX="${prev}${p}"
16488            else
16489              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16490            fi
16491            ;;
16492          # The "-l" case would never come before the object being
16493          # linked, so don't bother handling this case.
16494          esac
16495        else
16496          if test -z "$postdeps_CXX"; then
16497            postdeps_CXX="${prev}${p}"
16498          else
16499            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16500          fi
16501        fi
16502        ;;
16503
16504     *.$objext)
16505        # This assumes that the test object file only shows up
16506        # once in the compiler output.
16507        if test "$p" = "conftest.$objext"; then
16508          pre_test_object_deps_done=yes
16509          continue
16510        fi
16511
16512        if test "$pre_test_object_deps_done" = no; then
16513          if test -z "$predep_objects_CXX"; then
16514            predep_objects_CXX="$p"
16515          else
16516            predep_objects_CXX="$predep_objects_CXX $p"
16517          fi
16518        else
16519          if test -z "$postdep_objects_CXX"; then
16520            postdep_objects_CXX="$p"
16521          else
16522            postdep_objects_CXX="$postdep_objects_CXX $p"
16523          fi
16524        fi
16525        ;;
16526
16527     *) ;; # Ignore the rest.
16528
16529     esac
16530   done
16531
16532   # Clean up.
16533   rm -f a.out a.exe
16534 else
16535   echo "libtool.m4: error: problem compiling CXX test program"
16536 fi
16537
16538 $rm -f confest.$objext
16539
16540 case " $postdeps_CXX " in
16541 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16542 esac
16543
16544 lt_prog_compiler_wl_CXX=
16545 lt_prog_compiler_pic_CXX=
16546 lt_prog_compiler_static_CXX=
16547
16548 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16549 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16550
16551   # C++ specific cases for pic, static, wl, etc.
16552   if test "$GXX" = yes; then
16553     lt_prog_compiler_wl_CXX='-Wl,'
16554     lt_prog_compiler_static_CXX='-static'
16555
16556     case $host_os in
16557     aix*)
16558       # All AIX code is PIC.
16559       if test "$host_cpu" = ia64; then
16560         # AIX 5 now supports IA64 processor
16561         lt_prog_compiler_static_CXX='-Bstatic'
16562       fi
16563       ;;
16564     amigaos*)
16565       # FIXME: we need at least 68020 code to build shared libraries, but
16566       # adding the `-m68020' flag to GCC prevents building anything better,
16567       # like `-m68040'.
16568       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16569       ;;
16570     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16571       # PIC is the default for these OSes.
16572       ;;
16573     mingw* | os2* | pw32*)
16574       # This hack is so that the source file can tell whether it is being
16575       # built for inclusion in a dll (and should export symbols for example).
16576       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16577       ;;
16578     darwin* | rhapsody*)
16579       # PIC is the default on this platform
16580       # Common symbols not allowed in MH_DYLIB files
16581       lt_prog_compiler_pic_CXX='-fno-common'
16582       ;;
16583     *djgpp*)
16584       # DJGPP does not support shared libraries at all
16585       lt_prog_compiler_pic_CXX=
16586       ;;
16587     sysv4*MP*)
16588       if test -d /usr/nec; then
16589         lt_prog_compiler_pic_CXX=-Kconform_pic
16590       fi
16591       ;;
16592     hpux*)
16593       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16594       # not for PA HP-UX.
16595       case "$host_cpu" in
16596       hppa*64*|ia64*)
16597         ;;
16598       *)
16599         lt_prog_compiler_pic_CXX='-fPIC'
16600         ;;
16601       esac
16602       ;;
16603     *)
16604       lt_prog_compiler_pic_CXX='-fPIC'
16605       ;;
16606     esac
16607   else
16608     case $host_os in
16609       aix4* | aix5*)
16610         # All AIX code is PIC.
16611         if test "$host_cpu" = ia64; then
16612           # AIX 5 now supports IA64 processor
16613           lt_prog_compiler_static_CXX='-Bstatic'
16614         else
16615           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16616         fi
16617         ;;
16618       chorus*)
16619         case $cc_basename in
16620         cxch68)
16621           # Green Hills C++ Compiler
16622           # _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"
16623           ;;
16624         esac
16625         ;;
16626        darwin*)
16627          # PIC is the default on this platform
16628          # Common symbols not allowed in MH_DYLIB files
16629          case "$cc_basename" in
16630            xlc*)
16631            lt_prog_compiler_pic_CXX='-qnocommon'
16632            lt_prog_compiler_wl_CXX='-Wl,'
16633            ;;
16634          esac
16635        ;;
16636       dgux*)
16637         case $cc_basename in
16638           ec++)
16639             lt_prog_compiler_pic_CXX='-KPIC'
16640             ;;
16641           ghcx)
16642             # Green Hills C++ Compiler
16643             lt_prog_compiler_pic_CXX='-pic'
16644             ;;
16645           *)
16646             ;;
16647         esac
16648         ;;
16649       freebsd* | kfreebsd*-gnu)
16650         # FreeBSD uses GNU C++
16651         ;;
16652       hpux9* | hpux10* | hpux11*)
16653         case $cc_basename in
16654           CC)
16655             lt_prog_compiler_wl_CXX='-Wl,'
16656             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16657             if test "$host_cpu" != ia64; then
16658               lt_prog_compiler_pic_CXX='+Z'
16659             fi
16660             ;;
16661           aCC)
16662             lt_prog_compiler_wl_CXX='-Wl,'
16663             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16664             case "$host_cpu" in
16665             hppa*64*|ia64*)
16666               # +Z the default
16667               ;;
16668             *)
16669               lt_prog_compiler_pic_CXX='+Z'
16670               ;;
16671             esac
16672             ;;
16673           *)
16674             ;;
16675         esac
16676         ;;
16677       irix5* | irix6* | nonstopux*)
16678         case $cc_basename in
16679           CC)
16680             lt_prog_compiler_wl_CXX='-Wl,'
16681             lt_prog_compiler_static_CXX='-non_shared'
16682             # CC pic flag -KPIC is the default.
16683             ;;
16684           *)
16685             ;;
16686         esac
16687         ;;
16688       linux*)
16689         case $cc_basename in
16690           KCC)
16691             # KAI C++ Compiler
16692             lt_prog_compiler_wl_CXX='--backend -Wl,'
16693             lt_prog_compiler_pic_CXX='-fPIC'
16694             ;;
16695           icpc)
16696             # Intel C++
16697             lt_prog_compiler_wl_CXX='-Wl,'
16698             lt_prog_compiler_pic_CXX='-KPIC'
16699             lt_prog_compiler_static_CXX='-static'
16700             ;;
16701           cxx)
16702             # Compaq C++
16703             # Make sure the PIC flag is empty.  It appears that all Alpha
16704             # Linux and Compaq Tru64 Unix objects are PIC.
16705             lt_prog_compiler_pic_CXX=
16706             lt_prog_compiler_static_CXX='-non_shared'
16707             ;;
16708           *)
16709             ;;
16710         esac
16711         ;;
16712       lynxos*)
16713         ;;
16714       m88k*)
16715         ;;
16716       mvs*)
16717         case $cc_basename in
16718           cxx)
16719             lt_prog_compiler_pic_CXX='-W c,exportall'
16720             ;;
16721           *)
16722             ;;
16723         esac
16724         ;;
16725       netbsd*)
16726         ;;
16727       osf3* | osf4* | osf5*)
16728         case $cc_basename in
16729           KCC)
16730             lt_prog_compiler_wl_CXX='--backend -Wl,'
16731             ;;
16732           RCC)
16733             # Rational C++ 2.4.1
16734             lt_prog_compiler_pic_CXX='-pic'
16735             ;;
16736           cxx)
16737             # Digital/Compaq C++
16738             lt_prog_compiler_wl_CXX='-Wl,'
16739             # Make sure the PIC flag is empty.  It appears that all Alpha
16740             # Linux and Compaq Tru64 Unix objects are PIC.
16741             lt_prog_compiler_pic_CXX=
16742             lt_prog_compiler_static_CXX='-non_shared'
16743             ;;
16744           *)
16745             ;;
16746         esac
16747         ;;
16748       psos*)
16749         ;;
16750       sco*)
16751         case $cc_basename in
16752           CC)
16753             lt_prog_compiler_pic_CXX='-fPIC'
16754             ;;
16755           *)
16756             ;;
16757         esac
16758         ;;
16759       solaris*)
16760         case $cc_basename in
16761           CC)
16762             # Sun C++ 4.2, 5.x and Centerline C++
16763             lt_prog_compiler_pic_CXX='-KPIC'
16764             lt_prog_compiler_static_CXX='-Bstatic'
16765             lt_prog_compiler_wl_CXX='-Qoption ld '
16766             ;;
16767           gcx)
16768             # Green Hills C++ Compiler
16769             lt_prog_compiler_pic_CXX='-PIC'
16770             ;;
16771           *)
16772             ;;
16773         esac
16774         ;;
16775       sunos4*)
16776         case $cc_basename in
16777           CC)
16778             # Sun C++ 4.x
16779             lt_prog_compiler_pic_CXX='-pic'
16780             lt_prog_compiler_static_CXX='-Bstatic'
16781             ;;
16782           lcc)
16783             # Lucid
16784             lt_prog_compiler_pic_CXX='-pic'
16785             ;;
16786           *)
16787             ;;
16788         esac
16789         ;;
16790       tandem*)
16791         case $cc_basename in
16792           NCC)
16793             # NonStop-UX NCC 3.20
16794             lt_prog_compiler_pic_CXX='-KPIC'
16795             ;;
16796           *)
16797             ;;
16798         esac
16799         ;;
16800       unixware*)
16801         ;;
16802       vxworks*)
16803         ;;
16804       *)
16805         lt_prog_compiler_can_build_shared_CXX=no
16806         ;;
16807     esac
16808   fi
16809
16810 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16811 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16812
16813 #
16814 # Check to make sure the PIC flag actually works.
16815 #
16816 if test -n "$lt_prog_compiler_pic_CXX"; then
16817
16818 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16819 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16820 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16821   echo $ECHO_N "(cached) $ECHO_C" >&6
16822 else
16823   lt_prog_compiler_pic_works_CXX=no
16824   ac_outfile=conftest.$ac_objext
16825    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16826    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16827    # Insert the option either (1) after the last *FLAGS variable, or
16828    # (2) before a word containing "conftest.", or (3) at the end.
16829    # Note that $ac_compile itself does not contain backslashes and begins
16830    # with a dollar sign (not a hyphen), so the echo should work correctly.
16831    # The option is referenced via a variable to avoid confusing sed.
16832    lt_compile=`echo "$ac_compile" | $SED \
16833    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16834    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16835    -e 's:$: $lt_compiler_flag:'`
16836    (eval echo "\"\$as_me:16836: $lt_compile\"" >&5)
16837    (eval "$lt_compile" 2>conftest.err)
16838    ac_status=$?
16839    cat conftest.err >&5
16840    echo "$as_me:16840: \$? = $ac_status" >&5
16841    if (exit $ac_status) && test -s "$ac_outfile"; then
16842      # The compiler can only warn and ignore the option if not recognized
16843      # So say no if there are warnings
16844      if test ! -s conftest.err; then
16845        lt_prog_compiler_pic_works_CXX=yes
16846      fi
16847    fi
16848    $rm conftest*
16849
16850 fi
16851 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16852 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16853
16854 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16855     case $lt_prog_compiler_pic_CXX in
16856      "" | " "*) ;;
16857      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16858      esac
16859 else
16860     lt_prog_compiler_pic_CXX=
16861      lt_prog_compiler_can_build_shared_CXX=no
16862 fi
16863
16864 fi
16865 case "$host_os" in
16866   # For platforms which do not support PIC, -DPIC is meaningless:
16867   *djgpp*)
16868     lt_prog_compiler_pic_CXX=
16869     ;;
16870   *)
16871     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16872     ;;
16873 esac
16874
16875 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16876 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16877 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16878   echo $ECHO_N "(cached) $ECHO_C" >&6
16879 else
16880   lt_cv_prog_compiler_c_o_CXX=no
16881    $rm -r conftest 2>/dev/null
16882    mkdir conftest
16883    cd conftest
16884    mkdir out
16885    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16886
16887    lt_compiler_flag="-o out/conftest2.$ac_objext"
16888    # Insert the option either (1) after the last *FLAGS variable, or
16889    # (2) before a word containing "conftest.", or (3) at the end.
16890    # Note that $ac_compile itself does not contain backslashes and begins
16891    # with a dollar sign (not a hyphen), so the echo should work correctly.
16892    lt_compile=`echo "$ac_compile" | $SED \
16893    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16894    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16895    -e 's:$: $lt_compiler_flag:'`
16896    (eval echo "\"\$as_me:16896: $lt_compile\"" >&5)
16897    (eval "$lt_compile" 2>out/conftest.err)
16898    ac_status=$?
16899    cat out/conftest.err >&5
16900    echo "$as_me:16900: \$? = $ac_status" >&5
16901    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16902    then
16903      # The compiler can only warn and ignore the option if not recognized
16904      # So say no if there are warnings
16905      if test ! -s out/conftest.err; then
16906        lt_cv_prog_compiler_c_o_CXX=yes
16907      fi
16908    fi
16909    chmod u+w .
16910    $rm conftest*
16911    # SGI C++ compiler will create directory out/ii_files/ for
16912    # template instantiation
16913    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16914    $rm out/* && rmdir out
16915    cd ..
16916    rmdir conftest
16917    $rm conftest*
16918
16919 fi
16920 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16921 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16922
16923
16924 hard_links="nottested"
16925 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16926   # do not overwrite the value of need_locks provided by the user
16927   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16928 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16929   hard_links=yes
16930   $rm conftest*
16931   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16932   touch conftest.a
16933   ln conftest.a conftest.b 2>&5 || hard_links=no
16934   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16935   echo "$as_me:$LINENO: result: $hard_links" >&5
16936 echo "${ECHO_T}$hard_links" >&6
16937   if test "$hard_links" = no; then
16938     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16939 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16940     need_locks=warn
16941   fi
16942 else
16943   need_locks=no
16944 fi
16945
16946 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16947 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16948
16949   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16950   case $host_os in
16951   aix4* | aix5*)
16952     # If we're using GNU nm, then we don't want the "-C" option.
16953     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16954     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16955       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'
16956     else
16957       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'
16958     fi
16959     ;;
16960   pw32*)
16961     export_symbols_cmds_CXX="$ltdll_cmds"
16962   ;;
16963   cygwin* | mingw*)
16964     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16965   ;;
16966   *)
16967     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16968   ;;
16969   esac
16970
16971 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16972 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16973 test "$ld_shlibs_CXX" = no && can_build_shared=no
16974
16975 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16976 if test "$GCC" = yes; then
16977   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16978 fi
16979
16980 #
16981 # Do we need to explicitly link libc?
16982 #
16983 case "x$archive_cmds_need_lc_CXX" in
16984 x|xyes)
16985   # Assume -lc should be added
16986   archive_cmds_need_lc_CXX=yes
16987
16988   if test "$enable_shared" = yes && test "$GCC" = yes; then
16989     case $archive_cmds_CXX in
16990     *'~'*)
16991       # FIXME: we may have to deal with multi-command sequences.
16992       ;;
16993     '$CC '*)
16994       # Test whether the compiler implicitly links with -lc since on some
16995       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16996       # to ld, don't add -lc before -lgcc.
16997       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16998 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16999       $rm conftest*
17000       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17001
17002       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17003   (eval $ac_compile) 2>&5
17004   ac_status=$?
17005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006   (exit $ac_status); } 2>conftest.err; then
17007         soname=conftest
17008         lib=conftest
17009         libobjs=conftest.$ac_objext
17010         deplibs=
17011         wl=$lt_prog_compiler_wl_CXX
17012         compiler_flags=-v
17013         linker_flags=-v
17014         verstring=
17015         output_objdir=.
17016         libname=conftest
17017         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17018         allow_undefined_flag_CXX=
17019         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17020   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17021   ac_status=$?
17022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023   (exit $ac_status); }
17024         then
17025           archive_cmds_need_lc_CXX=no
17026         else
17027           archive_cmds_need_lc_CXX=yes
17028         fi
17029         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17030       else
17031         cat conftest.err 1>&5
17032       fi
17033       $rm conftest*
17034       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17035 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17036       ;;
17037     esac
17038   fi
17039   ;;
17040 esac
17041
17042 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17043 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17044 library_names_spec=
17045 libname_spec='lib$name'
17046 soname_spec=
17047 shrext_cmds=".so"
17048 postinstall_cmds=
17049 postuninstall_cmds=
17050 finish_cmds=
17051 finish_eval=
17052 shlibpath_var=
17053 shlibpath_overrides_runpath=unknown
17054 version_type=none
17055 dynamic_linker="$host_os ld.so"
17056 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17057 if test "$GCC" = yes; then
17058   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17059   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17060     # if the path contains ";" then we assume it to be the separator
17061     # otherwise default to the standard path separator (i.e. ":") - it is
17062     # assumed that no part of a normal pathname contains ";" but that should
17063     # okay in the real world where ";" in dirpaths is itself problematic.
17064     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17065   else
17066     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17067   fi
17068 else
17069   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17070 fi
17071 need_lib_prefix=unknown
17072 hardcode_into_libs=no
17073
17074 # when you set need_version to no, make sure it does not cause -set_version
17075 # flags to be left without arguments
17076 need_version=unknown
17077
17078 case $host_os in
17079 aix3*)
17080   version_type=linux
17081   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17082   shlibpath_var=LIBPATH
17083
17084   # AIX 3 has no versioning support, so we append a major version to the name.
17085   soname_spec='${libname}${release}${shared_ext}$major'
17086   ;;
17087
17088 aix4* | aix5*)
17089   version_type=linux
17090   need_lib_prefix=no
17091   need_version=no
17092   hardcode_into_libs=yes
17093   if test "$host_cpu" = ia64; then
17094     # AIX 5 supports IA64
17095     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17096     shlibpath_var=LD_LIBRARY_PATH
17097   else
17098     # With GCC up to 2.95.x, collect2 would create an import file
17099     # for dependence libraries.  The import file would start with
17100     # the line `#! .'.  This would cause the generated library to
17101     # depend on `.', always an invalid library.  This was fixed in
17102     # development snapshots of GCC prior to 3.0.
17103     case $host_os in
17104       aix4 | aix4.[01] | aix4.[01].*)
17105       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17106            echo ' yes '
17107            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17108         :
17109       else
17110         can_build_shared=no
17111       fi
17112       ;;
17113     esac
17114     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17115     # soname into executable. Probably we can add versioning support to
17116     # collect2, so additional links can be useful in future.
17117     if test "$aix_use_runtimelinking" = yes; then
17118       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17119       # instead of lib<name>.a to let people know that these are not
17120       # typical AIX shared libraries.
17121       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17122     else
17123       # We preserve .a as extension for shared libraries through AIX4.2
17124       # and later when we are not doing run time linking.
17125       library_names_spec='${libname}${release}.a $libname.a'
17126       soname_spec='${libname}${release}${shared_ext}$major'
17127     fi
17128     shlibpath_var=LIBPATH
17129   fi
17130   ;;
17131
17132 amigaos*)
17133   library_names_spec='$libname.ixlibrary $libname.a'
17134   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17135   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'
17136   ;;
17137
17138 beos*)
17139   library_names_spec='${libname}${shared_ext}'
17140   dynamic_linker="$host_os ld.so"
17141   shlibpath_var=LIBRARY_PATH
17142   ;;
17143
17144 bsdi[45]*)
17145   version_type=linux
17146   need_version=no
17147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17148   soname_spec='${libname}${release}${shared_ext}$major'
17149   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17150   shlibpath_var=LD_LIBRARY_PATH
17151   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17152   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17153   # the default ld.so.conf also contains /usr/contrib/lib and
17154   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17155   # libtool to hard-code these into programs
17156   ;;
17157
17158 cygwin* | mingw* | pw32*)
17159   version_type=windows
17160   shrext_cmds=".dll"
17161   need_version=no
17162   need_lib_prefix=no
17163
17164   case $GCC,$host_os in
17165   yes,cygwin* | yes,mingw* | yes,pw32*)
17166     library_names_spec='$libname.dll.a'
17167     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17168     postinstall_cmds='base_file=`basename \${file}`~
17169       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17170       dldir=$destdir/`dirname \$dlpath`~
17171       test -d \$dldir || mkdir -p \$dldir~
17172       $install_prog $dir/$dlname \$dldir/$dlname'
17173     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17174       dlpath=$dir/\$dldll~
17175        $rm \$dlpath'
17176     shlibpath_overrides_runpath=yes
17177
17178     case $host_os in
17179     cygwin*)
17180       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17181       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17182       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17183       ;;
17184     mingw*)
17185       # MinGW DLLs use traditional 'lib' prefix
17186       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17187       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17188       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17189         # It is most probably a Windows format PATH printed by
17190         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17191         # path with ; separators, and with drive letters. We can handle the
17192         # drive letters (cygwin fileutils understands them), so leave them,
17193         # especially as we might pass files found there to a mingw objdump,
17194         # which wouldn't understand a cygwinified path. Ahh.
17195         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17196       else
17197         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17198       fi
17199       ;;
17200     pw32*)
17201       # pw32 DLLs use 'pw' prefix rather than 'lib'
17202       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17203       ;;
17204     esac
17205     ;;
17206
17207   *)
17208     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17209     ;;
17210   esac
17211   dynamic_linker='Win32 ld.exe'
17212   # FIXME: first we should search . and the directory the executable is in
17213   shlibpath_var=PATH
17214   ;;
17215
17216 darwin* | rhapsody*)
17217   dynamic_linker="$host_os dyld"
17218   version_type=darwin
17219   need_lib_prefix=no
17220   need_version=no
17221   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17222   soname_spec='${libname}${release}${major}$shared_ext'
17223   shlibpath_overrides_runpath=yes
17224   shlibpath_var=DYLD_LIBRARY_PATH
17225   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17226   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17227   if test "$GCC" = yes; then
17228     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"`
17229   else
17230     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17231   fi
17232   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17233   ;;
17234
17235 dgux*)
17236   version_type=linux
17237   need_lib_prefix=no
17238   need_version=no
17239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17240   soname_spec='${libname}${release}${shared_ext}$major'
17241   shlibpath_var=LD_LIBRARY_PATH
17242   ;;
17243
17244 freebsd1*)
17245   dynamic_linker=no
17246   ;;
17247
17248 kfreebsd*-gnu)
17249   version_type=linux
17250   need_lib_prefix=no
17251   need_version=no
17252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17253   soname_spec='${libname}${release}${shared_ext}$major'
17254   shlibpath_var=LD_LIBRARY_PATH
17255   shlibpath_overrides_runpath=no
17256   hardcode_into_libs=yes
17257   dynamic_linker='GNU ld.so'
17258   ;;
17259
17260 freebsd*)
17261   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17262   version_type=freebsd-$objformat
17263   case $version_type in
17264     freebsd-elf*)
17265       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17266       need_version=no
17267       need_lib_prefix=no
17268       ;;
17269     freebsd-*)
17270       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17271       need_version=yes
17272       ;;
17273   esac
17274   shlibpath_var=LD_LIBRARY_PATH
17275   case $host_os in
17276   freebsd2*)
17277     shlibpath_overrides_runpath=yes
17278     ;;
17279   freebsd3.01* | freebsdelf3.01*)
17280     shlibpath_overrides_runpath=yes
17281     hardcode_into_libs=yes
17282     ;;
17283   *) # from 3.2 on
17284     shlibpath_overrides_runpath=no
17285     hardcode_into_libs=yes
17286     ;;
17287   esac
17288   ;;
17289
17290 gnu*)
17291   version_type=linux
17292   need_lib_prefix=no
17293   need_version=no
17294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17295   soname_spec='${libname}${release}${shared_ext}$major'
17296   shlibpath_var=LD_LIBRARY_PATH
17297   hardcode_into_libs=yes
17298   ;;
17299
17300 hpux9* | hpux10* | hpux11*)
17301   # Give a soname corresponding to the major version so that dld.sl refuses to
17302   # link against other versions.
17303   version_type=sunos
17304   need_lib_prefix=no
17305   need_version=no
17306   case "$host_cpu" in
17307   ia64*)
17308     shrext_cmds='.so'
17309     hardcode_into_libs=yes
17310     dynamic_linker="$host_os dld.so"
17311     shlibpath_var=LD_LIBRARY_PATH
17312     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17313     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17314     soname_spec='${libname}${release}${shared_ext}$major'
17315     if test "X$HPUX_IA64_MODE" = X32; then
17316       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17317     else
17318       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17319     fi
17320     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17321     ;;
17322    hppa*64*)
17323      shrext_cmds='.sl'
17324      hardcode_into_libs=yes
17325      dynamic_linker="$host_os dld.sl"
17326      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17327      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17328      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17329      soname_spec='${libname}${release}${shared_ext}$major'
17330      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17331      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17332      ;;
17333    *)
17334     shrext_cmds='.sl'
17335     dynamic_linker="$host_os dld.sl"
17336     shlibpath_var=SHLIB_PATH
17337     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17338     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17339     soname_spec='${libname}${release}${shared_ext}$major'
17340     ;;
17341   esac
17342   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17343   postinstall_cmds='chmod 555 $lib'
17344   ;;
17345
17346 irix5* | irix6* | nonstopux*)
17347   case $host_os in
17348     nonstopux*) version_type=nonstopux ;;
17349     *)
17350         if test "$lt_cv_prog_gnu_ld" = yes; then
17351                 version_type=linux
17352         else
17353                 version_type=irix
17354         fi ;;
17355   esac
17356   need_lib_prefix=no
17357   need_version=no
17358   soname_spec='${libname}${release}${shared_ext}$major'
17359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17360   case $host_os in
17361   irix5* | nonstopux*)
17362     libsuff= shlibsuff=
17363     ;;
17364   *)
17365     case $LD in # libtool.m4 will add one of these switches to LD
17366     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17367       libsuff= shlibsuff= libmagic=32-bit;;
17368     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17369       libsuff=32 shlibsuff=N32 libmagic=N32;;
17370     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17371       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17372     *) libsuff= shlibsuff= libmagic=never-match;;
17373     esac
17374     ;;
17375   esac
17376   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17377   shlibpath_overrides_runpath=no
17378   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17379   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17380   hardcode_into_libs=yes
17381   ;;
17382
17383 # No shared lib support for Linux oldld, aout, or coff.
17384 linux*oldld* | linux*aout* | linux*coff*)
17385   dynamic_linker=no
17386   ;;
17387
17388 # This must be Linux ELF.
17389 linux*)
17390   version_type=linux
17391   need_lib_prefix=no
17392   need_version=no
17393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17394   soname_spec='${libname}${release}${shared_ext}$major'
17395   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17396   shlibpath_var=LD_LIBRARY_PATH
17397   shlibpath_overrides_runpath=no
17398   # This implies no fast_install, which is unacceptable.
17399   # Some rework will be needed to allow for fast_install
17400   # before this can be enabled.
17401   hardcode_into_libs=yes
17402
17403   # Append ld.so.conf contents to the search path
17404   if test -f /etc/ld.so.conf; then
17405     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17406     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17407   fi
17408
17409   # We used to test for /lib/ld.so.1 and disable shared libraries on
17410   # powerpc, because MkLinux only supported shared libraries with the
17411   # GNU dynamic linker.  Since this was broken with cross compilers,
17412   # most powerpc-linux boxes support dynamic linking these days and
17413   # people can always --disable-shared, the test was removed, and we
17414   # assume the GNU/Linux dynamic linker is in use.
17415   dynamic_linker='GNU/Linux ld.so'
17416   ;;
17417
17418 knetbsd*-gnu)
17419   version_type=linux
17420   need_lib_prefix=no
17421   need_version=no
17422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17423   soname_spec='${libname}${release}${shared_ext}$major'
17424   shlibpath_var=LD_LIBRARY_PATH
17425   shlibpath_overrides_runpath=no
17426   hardcode_into_libs=yes
17427   dynamic_linker='GNU ld.so'
17428   ;;
17429
17430 netbsd*)
17431   version_type=sunos
17432   need_lib_prefix=no
17433   need_version=no
17434   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17435     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17436     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17437     dynamic_linker='NetBSD (a.out) ld.so'
17438   else
17439     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17440     soname_spec='${libname}${release}${shared_ext}$major'
17441     dynamic_linker='NetBSD ld.elf_so'
17442   fi
17443   shlibpath_var=LD_LIBRARY_PATH
17444   shlibpath_overrides_runpath=yes
17445   hardcode_into_libs=yes
17446   ;;
17447
17448 newsos6)
17449   version_type=linux
17450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17451   shlibpath_var=LD_LIBRARY_PATH
17452   shlibpath_overrides_runpath=yes
17453   ;;
17454
17455 nto-qnx*)
17456   version_type=linux
17457   need_lib_prefix=no
17458   need_version=no
17459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17460   soname_spec='${libname}${release}${shared_ext}$major'
17461   shlibpath_var=LD_LIBRARY_PATH
17462   shlibpath_overrides_runpath=yes
17463   ;;
17464
17465 openbsd*)
17466   version_type=sunos
17467   need_lib_prefix=no
17468   need_version=no
17469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17470   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17471   shlibpath_var=LD_LIBRARY_PATH
17472   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17473     case $host_os in
17474       openbsd2.[89] | openbsd2.[89].*)
17475         shlibpath_overrides_runpath=no
17476         ;;
17477       *)
17478         shlibpath_overrides_runpath=yes
17479         ;;
17480       esac
17481   else
17482     shlibpath_overrides_runpath=yes
17483   fi
17484   ;;
17485
17486 os2*)
17487   libname_spec='$name'
17488   shrext_cmds=".dll"
17489   need_lib_prefix=no
17490   library_names_spec='$libname${shared_ext} $libname.a'
17491   dynamic_linker='OS/2 ld.exe'
17492   shlibpath_var=LIBPATH
17493   ;;
17494
17495 osf3* | osf4* | osf5*)
17496   version_type=osf
17497   need_lib_prefix=no
17498   need_version=no
17499   soname_spec='${libname}${release}${shared_ext}$major'
17500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501   shlibpath_var=LD_LIBRARY_PATH
17502   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17503   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17504   ;;
17505
17506 sco3.2v5*)
17507   version_type=osf
17508   soname_spec='${libname}${release}${shared_ext}$major'
17509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17510   shlibpath_var=LD_LIBRARY_PATH
17511   ;;
17512
17513 solaris*)
17514   version_type=linux
17515   need_lib_prefix=no
17516   need_version=no
17517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17518   soname_spec='${libname}${release}${shared_ext}$major'
17519   shlibpath_var=LD_LIBRARY_PATH
17520   shlibpath_overrides_runpath=yes
17521   hardcode_into_libs=yes
17522   # ldd complains unless libraries are executable
17523   postinstall_cmds='chmod +x $lib'
17524   ;;
17525
17526 sunos4*)
17527   version_type=sunos
17528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17529   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17530   shlibpath_var=LD_LIBRARY_PATH
17531   shlibpath_overrides_runpath=yes
17532   if test "$with_gnu_ld" = yes; then
17533     need_lib_prefix=no
17534   fi
17535   need_version=yes
17536   ;;
17537
17538 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17539   version_type=linux
17540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17541   soname_spec='${libname}${release}${shared_ext}$major'
17542   shlibpath_var=LD_LIBRARY_PATH
17543   case $host_vendor in
17544     sni)
17545       shlibpath_overrides_runpath=no
17546       need_lib_prefix=no
17547       export_dynamic_flag_spec='${wl}-Blargedynsym'
17548       runpath_var=LD_RUN_PATH
17549       ;;
17550     siemens)
17551       need_lib_prefix=no
17552       ;;
17553     motorola)
17554       need_lib_prefix=no
17555       need_version=no
17556       shlibpath_overrides_runpath=no
17557       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17558       ;;
17559   esac
17560   ;;
17561
17562 sysv4*MP*)
17563   if test -d /usr/nec ;then
17564     version_type=linux
17565     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17566     soname_spec='$libname${shared_ext}.$major'
17567     shlibpath_var=LD_LIBRARY_PATH
17568   fi
17569   ;;
17570
17571 uts4*)
17572   version_type=linux
17573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17574   soname_spec='${libname}${release}${shared_ext}$major'
17575   shlibpath_var=LD_LIBRARY_PATH
17576   ;;
17577
17578 *)
17579   dynamic_linker=no
17580   ;;
17581 esac
17582 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17583 echo "${ECHO_T}$dynamic_linker" >&6
17584 test "$dynamic_linker" = no && can_build_shared=no
17585
17586 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17587 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17588 hardcode_action_CXX=
17589 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17590    test -n "$runpath_var_CXX" || \
17591    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17592
17593   # We can hardcode non-existant directories.
17594   if test "$hardcode_direct_CXX" != no &&
17595      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17596      # have to relink, otherwise we might link with an installed library
17597      # when we should be linking with a yet-to-be-installed one
17598      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17599      test "$hardcode_minus_L_CXX" != no; then
17600     # Linking always hardcodes the temporary library directory.
17601     hardcode_action_CXX=relink
17602   else
17603     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17604     hardcode_action_CXX=immediate
17605   fi
17606 else
17607   # We cannot hardcode anything, or else we can only hardcode existing
17608   # directories.
17609   hardcode_action_CXX=unsupported
17610 fi
17611 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17612 echo "${ECHO_T}$hardcode_action_CXX" >&6
17613
17614 if test "$hardcode_action_CXX" = relink; then
17615   # Fast installation is not supported
17616   enable_fast_install=no
17617 elif test "$shlibpath_overrides_runpath" = yes ||
17618      test "$enable_shared" = no; then
17619   # Fast installation is not necessary
17620   enable_fast_install=needless
17621 fi
17622
17623 striplib=
17624 old_striplib=
17625 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17626 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17627 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17628   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17629   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17630   echo "$as_me:$LINENO: result: yes" >&5
17631 echo "${ECHO_T}yes" >&6
17632 else
17633 # FIXME - insert some real tests, host_os isn't really good enough
17634   case $host_os in
17635    darwin*)
17636        if test -n "$STRIP" ; then
17637          striplib="$STRIP -x"
17638          echo "$as_me:$LINENO: result: yes" >&5
17639 echo "${ECHO_T}yes" >&6
17640        else
17641   echo "$as_me:$LINENO: result: no" >&5
17642 echo "${ECHO_T}no" >&6
17643 fi
17644        ;;
17645    *)
17646   echo "$as_me:$LINENO: result: no" >&5
17647 echo "${ECHO_T}no" >&6
17648     ;;
17649   esac
17650 fi
17651
17652 if test "x$enable_dlopen" != xyes; then
17653   enable_dlopen=unknown
17654   enable_dlopen_self=unknown
17655   enable_dlopen_self_static=unknown
17656 else
17657   lt_cv_dlopen=no
17658   lt_cv_dlopen_libs=
17659
17660   case $host_os in
17661   beos*)
17662     lt_cv_dlopen="load_add_on"
17663     lt_cv_dlopen_libs=
17664     lt_cv_dlopen_self=yes
17665     ;;
17666
17667   mingw* | pw32*)
17668     lt_cv_dlopen="LoadLibrary"
17669     lt_cv_dlopen_libs=
17670    ;;
17671
17672   cygwin*)
17673     lt_cv_dlopen="dlopen"
17674     lt_cv_dlopen_libs=
17675    ;;
17676
17677   darwin*)
17678   # if libdl is installed we need to link against it
17679     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17680 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17681 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17682   echo $ECHO_N "(cached) $ECHO_C" >&6
17683 else
17684   ac_check_lib_save_LIBS=$LIBS
17685 LIBS="-ldl  $LIBS"
17686 cat >conftest.$ac_ext <<_ACEOF
17687 /* confdefs.h.  */
17688 _ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h.  */
17692
17693 /* Override any gcc2 internal prototype to avoid an error.  */
17694 #ifdef __cplusplus
17695 extern "C"
17696 #endif
17697 /* We use char because int might match the return type of a gcc2
17698    builtin and then its argument prototype would still apply.  */
17699 char dlopen ();
17700 int
17701 main ()
17702 {
17703 dlopen ();
17704   ;
17705   return 0;
17706 }
17707 _ACEOF
17708 rm -f conftest.$ac_objext conftest$ac_exeext
17709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17710   (eval $ac_link) 2>conftest.er1
17711   ac_status=$?
17712   grep -v '^ *+' conftest.er1 >conftest.err
17713   rm -f conftest.er1
17714   cat conftest.err >&5
17715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716   (exit $ac_status); } &&
17717          { ac_try='test -z "$ac_cxx_werror_flag"
17718                          || test ! -s conftest.err'
17719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720   (eval $ac_try) 2>&5
17721   ac_status=$?
17722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723   (exit $ac_status); }; } &&
17724          { ac_try='test -s conftest$ac_exeext'
17725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726   (eval $ac_try) 2>&5
17727   ac_status=$?
17728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729   (exit $ac_status); }; }; then
17730   ac_cv_lib_dl_dlopen=yes
17731 else
17732   echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17734
17735 ac_cv_lib_dl_dlopen=no
17736 fi
17737 rm -f conftest.err conftest.$ac_objext \
17738       conftest$ac_exeext conftest.$ac_ext
17739 LIBS=$ac_check_lib_save_LIBS
17740 fi
17741 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17742 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17743 if test $ac_cv_lib_dl_dlopen = yes; then
17744   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17745 else
17746
17747     lt_cv_dlopen="dyld"
17748     lt_cv_dlopen_libs=
17749     lt_cv_dlopen_self=yes
17750
17751 fi
17752
17753    ;;
17754
17755   *)
17756     echo "$as_me:$LINENO: checking for shl_load" >&5
17757 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17758 if test "${ac_cv_func_shl_load+set}" = set; then
17759   echo $ECHO_N "(cached) $ECHO_C" >&6
17760 else
17761   cat >conftest.$ac_ext <<_ACEOF
17762 /* confdefs.h.  */
17763 _ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h.  */
17767 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17769 #define shl_load innocuous_shl_load
17770
17771 /* System header to define __stub macros and hopefully few prototypes,
17772     which can conflict with char shl_load (); below.
17773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17774     <limits.h> exists even on freestanding compilers.  */
17775
17776 #ifdef __STDC__
17777 # include <limits.h>
17778 #else
17779 # include <assert.h>
17780 #endif
17781
17782 #undef shl_load
17783
17784 /* Override any gcc2 internal prototype to avoid an error.  */
17785 #ifdef __cplusplus
17786 extern "C"
17787 {
17788 #endif
17789 /* We use char because int might match the return type of a gcc2
17790    builtin and then its argument prototype would still apply.  */
17791 char shl_load ();
17792 /* The GNU C library defines this for functions which it implements
17793     to always fail with ENOSYS.  Some functions are actually named
17794     something starting with __ and the normal name is an alias.  */
17795 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17796 choke me
17797 #else
17798 char (*f) () = shl_load;
17799 #endif
17800 #ifdef __cplusplus
17801 }
17802 #endif
17803
17804 int
17805 main ()
17806 {
17807 return f != shl_load;
17808   ;
17809   return 0;
17810 }
17811 _ACEOF
17812 rm -f conftest.$ac_objext conftest$ac_exeext
17813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17814   (eval $ac_link) 2>conftest.er1
17815   ac_status=$?
17816   grep -v '^ *+' conftest.er1 >conftest.err
17817   rm -f conftest.er1
17818   cat conftest.err >&5
17819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820   (exit $ac_status); } &&
17821          { ac_try='test -z "$ac_cxx_werror_flag"
17822                          || test ! -s conftest.err'
17823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824   (eval $ac_try) 2>&5
17825   ac_status=$?
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); }; } &&
17828          { ac_try='test -s conftest$ac_exeext'
17829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17830   (eval $ac_try) 2>&5
17831   ac_status=$?
17832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833   (exit $ac_status); }; }; then
17834   ac_cv_func_shl_load=yes
17835 else
17836   echo "$as_me: failed program was:" >&5
17837 sed 's/^/| /' conftest.$ac_ext >&5
17838
17839 ac_cv_func_shl_load=no
17840 fi
17841 rm -f conftest.err conftest.$ac_objext \
17842       conftest$ac_exeext conftest.$ac_ext
17843 fi
17844 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17845 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17846 if test $ac_cv_func_shl_load = yes; then
17847   lt_cv_dlopen="shl_load"
17848 else
17849   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17850 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17851 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17852   echo $ECHO_N "(cached) $ECHO_C" >&6
17853 else
17854   ac_check_lib_save_LIBS=$LIBS
17855 LIBS="-ldld  $LIBS"
17856 cat >conftest.$ac_ext <<_ACEOF
17857 /* confdefs.h.  */
17858 _ACEOF
17859 cat confdefs.h >>conftest.$ac_ext
17860 cat >>conftest.$ac_ext <<_ACEOF
17861 /* end confdefs.h.  */
17862
17863 /* Override any gcc2 internal prototype to avoid an error.  */
17864 #ifdef __cplusplus
17865 extern "C"
17866 #endif
17867 /* We use char because int might match the return type of a gcc2
17868    builtin and then its argument prototype would still apply.  */
17869 char shl_load ();
17870 int
17871 main ()
17872 {
17873 shl_load ();
17874   ;
17875   return 0;
17876 }
17877 _ACEOF
17878 rm -f conftest.$ac_objext conftest$ac_exeext
17879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17880   (eval $ac_link) 2>conftest.er1
17881   ac_status=$?
17882   grep -v '^ *+' conftest.er1 >conftest.err
17883   rm -f conftest.er1
17884   cat conftest.err >&5
17885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886   (exit $ac_status); } &&
17887          { ac_try='test -z "$ac_cxx_werror_flag"
17888                          || test ! -s conftest.err'
17889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890   (eval $ac_try) 2>&5
17891   ac_status=$?
17892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893   (exit $ac_status); }; } &&
17894          { ac_try='test -s conftest$ac_exeext'
17895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896   (eval $ac_try) 2>&5
17897   ac_status=$?
17898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899   (exit $ac_status); }; }; then
17900   ac_cv_lib_dld_shl_load=yes
17901 else
17902   echo "$as_me: failed program was:" >&5
17903 sed 's/^/| /' conftest.$ac_ext >&5
17904
17905 ac_cv_lib_dld_shl_load=no
17906 fi
17907 rm -f conftest.err conftest.$ac_objext \
17908       conftest$ac_exeext conftest.$ac_ext
17909 LIBS=$ac_check_lib_save_LIBS
17910 fi
17911 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17912 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17913 if test $ac_cv_lib_dld_shl_load = yes; then
17914   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17915 else
17916   echo "$as_me:$LINENO: checking for dlopen" >&5
17917 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17918 if test "${ac_cv_func_dlopen+set}" = set; then
17919   echo $ECHO_N "(cached) $ECHO_C" >&6
17920 else
17921   cat >conftest.$ac_ext <<_ACEOF
17922 /* confdefs.h.  */
17923 _ACEOF
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h.  */
17927 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17929 #define dlopen innocuous_dlopen
17930
17931 /* System header to define __stub macros and hopefully few prototypes,
17932     which can conflict with char dlopen (); below.
17933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17934     <limits.h> exists even on freestanding compilers.  */
17935
17936 #ifdef __STDC__
17937 # include <limits.h>
17938 #else
17939 # include <assert.h>
17940 #endif
17941
17942 #undef dlopen
17943
17944 /* Override any gcc2 internal prototype to avoid an error.  */
17945 #ifdef __cplusplus
17946 extern "C"
17947 {
17948 #endif
17949 /* We use char because int might match the return type of a gcc2
17950    builtin and then its argument prototype would still apply.  */
17951 char dlopen ();
17952 /* The GNU C library defines this for functions which it implements
17953     to always fail with ENOSYS.  Some functions are actually named
17954     something starting with __ and the normal name is an alias.  */
17955 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17956 choke me
17957 #else
17958 char (*f) () = dlopen;
17959 #endif
17960 #ifdef __cplusplus
17961 }
17962 #endif
17963
17964 int
17965 main ()
17966 {
17967 return f != dlopen;
17968   ;
17969   return 0;
17970 }
17971 _ACEOF
17972 rm -f conftest.$ac_objext conftest$ac_exeext
17973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17974   (eval $ac_link) 2>conftest.er1
17975   ac_status=$?
17976   grep -v '^ *+' conftest.er1 >conftest.err
17977   rm -f conftest.er1
17978   cat conftest.err >&5
17979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980   (exit $ac_status); } &&
17981          { ac_try='test -z "$ac_cxx_werror_flag"
17982                          || test ! -s conftest.err'
17983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984   (eval $ac_try) 2>&5
17985   ac_status=$?
17986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987   (exit $ac_status); }; } &&
17988          { ac_try='test -s conftest$ac_exeext'
17989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990   (eval $ac_try) 2>&5
17991   ac_status=$?
17992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993   (exit $ac_status); }; }; then
17994   ac_cv_func_dlopen=yes
17995 else
17996   echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17998
17999 ac_cv_func_dlopen=no
18000 fi
18001 rm -f conftest.err conftest.$ac_objext \
18002       conftest$ac_exeext conftest.$ac_ext
18003 fi
18004 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18005 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18006 if test $ac_cv_func_dlopen = yes; then
18007   lt_cv_dlopen="dlopen"
18008 else
18009   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18010 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18011 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18012   echo $ECHO_N "(cached) $ECHO_C" >&6
18013 else
18014   ac_check_lib_save_LIBS=$LIBS
18015 LIBS="-ldl  $LIBS"
18016 cat >conftest.$ac_ext <<_ACEOF
18017 /* confdefs.h.  */
18018 _ACEOF
18019 cat confdefs.h >>conftest.$ac_ext
18020 cat >>conftest.$ac_ext <<_ACEOF
18021 /* end confdefs.h.  */
18022
18023 /* Override any gcc2 internal prototype to avoid an error.  */
18024 #ifdef __cplusplus
18025 extern "C"
18026 #endif
18027 /* We use char because int might match the return type of a gcc2
18028    builtin and then its argument prototype would still apply.  */
18029 char dlopen ();
18030 int
18031 main ()
18032 {
18033 dlopen ();
18034   ;
18035   return 0;
18036 }
18037 _ACEOF
18038 rm -f conftest.$ac_objext conftest$ac_exeext
18039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18040   (eval $ac_link) 2>conftest.er1
18041   ac_status=$?
18042   grep -v '^ *+' conftest.er1 >conftest.err
18043   rm -f conftest.er1
18044   cat conftest.err >&5
18045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046   (exit $ac_status); } &&
18047          { ac_try='test -z "$ac_cxx_werror_flag"
18048                          || test ! -s conftest.err'
18049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18050   (eval $ac_try) 2>&5
18051   ac_status=$?
18052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053   (exit $ac_status); }; } &&
18054          { ac_try='test -s conftest$ac_exeext'
18055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18056   (eval $ac_try) 2>&5
18057   ac_status=$?
18058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059   (exit $ac_status); }; }; then
18060   ac_cv_lib_dl_dlopen=yes
18061 else
18062   echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18064
18065 ac_cv_lib_dl_dlopen=no
18066 fi
18067 rm -f conftest.err conftest.$ac_objext \
18068       conftest$ac_exeext conftest.$ac_ext
18069 LIBS=$ac_check_lib_save_LIBS
18070 fi
18071 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18072 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18073 if test $ac_cv_lib_dl_dlopen = yes; then
18074   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18075 else
18076   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18077 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18078 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18079   echo $ECHO_N "(cached) $ECHO_C" >&6
18080 else
18081   ac_check_lib_save_LIBS=$LIBS
18082 LIBS="-lsvld  $LIBS"
18083 cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h.  */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h.  */
18089
18090 /* Override any gcc2 internal prototype to avoid an error.  */
18091 #ifdef __cplusplus
18092 extern "C"
18093 #endif
18094 /* We use char because int might match the return type of a gcc2
18095    builtin and then its argument prototype would still apply.  */
18096 char dlopen ();
18097 int
18098 main ()
18099 {
18100 dlopen ();
18101   ;
18102   return 0;
18103 }
18104 _ACEOF
18105 rm -f conftest.$ac_objext conftest$ac_exeext
18106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18107   (eval $ac_link) 2>conftest.er1
18108   ac_status=$?
18109   grep -v '^ *+' conftest.er1 >conftest.err
18110   rm -f conftest.er1
18111   cat conftest.err >&5
18112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113   (exit $ac_status); } &&
18114          { ac_try='test -z "$ac_cxx_werror_flag"
18115                          || test ! -s conftest.err'
18116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117   (eval $ac_try) 2>&5
18118   ac_status=$?
18119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120   (exit $ac_status); }; } &&
18121          { ac_try='test -s conftest$ac_exeext'
18122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123   (eval $ac_try) 2>&5
18124   ac_status=$?
18125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126   (exit $ac_status); }; }; then
18127   ac_cv_lib_svld_dlopen=yes
18128 else
18129   echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18131
18132 ac_cv_lib_svld_dlopen=no
18133 fi
18134 rm -f conftest.err conftest.$ac_objext \
18135       conftest$ac_exeext conftest.$ac_ext
18136 LIBS=$ac_check_lib_save_LIBS
18137 fi
18138 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18139 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18140 if test $ac_cv_lib_svld_dlopen = yes; then
18141   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18142 else
18143   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18144 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18145 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18146   echo $ECHO_N "(cached) $ECHO_C" >&6
18147 else
18148   ac_check_lib_save_LIBS=$LIBS
18149 LIBS="-ldld  $LIBS"
18150 cat >conftest.$ac_ext <<_ACEOF
18151 /* confdefs.h.  */
18152 _ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h.  */
18156
18157 /* Override any gcc2 internal prototype to avoid an error.  */
18158 #ifdef __cplusplus
18159 extern "C"
18160 #endif
18161 /* We use char because int might match the return type of a gcc2
18162    builtin and then its argument prototype would still apply.  */
18163 char dld_link ();
18164 int
18165 main ()
18166 {
18167 dld_link ();
18168   ;
18169   return 0;
18170 }
18171 _ACEOF
18172 rm -f conftest.$ac_objext conftest$ac_exeext
18173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18174   (eval $ac_link) 2>conftest.er1
18175   ac_status=$?
18176   grep -v '^ *+' conftest.er1 >conftest.err
18177   rm -f conftest.er1
18178   cat conftest.err >&5
18179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180   (exit $ac_status); } &&
18181          { ac_try='test -z "$ac_cxx_werror_flag"
18182                          || test ! -s conftest.err'
18183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18184   (eval $ac_try) 2>&5
18185   ac_status=$?
18186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187   (exit $ac_status); }; } &&
18188          { ac_try='test -s conftest$ac_exeext'
18189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18190   (eval $ac_try) 2>&5
18191   ac_status=$?
18192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193   (exit $ac_status); }; }; then
18194   ac_cv_lib_dld_dld_link=yes
18195 else
18196   echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18198
18199 ac_cv_lib_dld_dld_link=no
18200 fi
18201 rm -f conftest.err conftest.$ac_objext \
18202       conftest$ac_exeext conftest.$ac_ext
18203 LIBS=$ac_check_lib_save_LIBS
18204 fi
18205 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18206 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18207 if test $ac_cv_lib_dld_dld_link = yes; then
18208   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18209 fi
18210
18211
18212 fi
18213
18214
18215 fi
18216
18217
18218 fi
18219
18220
18221 fi
18222
18223
18224 fi
18225
18226     ;;
18227   esac
18228
18229   if test "x$lt_cv_dlopen" != xno; then
18230     enable_dlopen=yes
18231   else
18232     enable_dlopen=no
18233   fi
18234
18235   case $lt_cv_dlopen in
18236   dlopen)
18237     save_CPPFLAGS="$CPPFLAGS"
18238     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18239
18240     save_LDFLAGS="$LDFLAGS"
18241     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18242
18243     save_LIBS="$LIBS"
18244     LIBS="$lt_cv_dlopen_libs $LIBS"
18245
18246     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18247 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18248 if test "${lt_cv_dlopen_self+set}" = set; then
18249   echo $ECHO_N "(cached) $ECHO_C" >&6
18250 else
18251           if test "$cross_compiling" = yes; then :
18252   lt_cv_dlopen_self=cross
18253 else
18254   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18255   lt_status=$lt_dlunknown
18256   cat > conftest.$ac_ext <<EOF
18257 #line 18257 "configure"
18258 #include "confdefs.h"
18259
18260 #if HAVE_DLFCN_H
18261 #include <dlfcn.h>
18262 #endif
18263
18264 #include <stdio.h>
18265
18266 #ifdef RTLD_GLOBAL
18267 #  define LT_DLGLOBAL           RTLD_GLOBAL
18268 #else
18269 #  ifdef DL_GLOBAL
18270 #    define LT_DLGLOBAL         DL_GLOBAL
18271 #  else
18272 #    define LT_DLGLOBAL         0
18273 #  endif
18274 #endif
18275
18276 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18277    find out it does not work in some platform. */
18278 #ifndef LT_DLLAZY_OR_NOW
18279 #  ifdef RTLD_LAZY
18280 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18281 #  else
18282 #    ifdef DL_LAZY
18283 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18284 #    else
18285 #      ifdef RTLD_NOW
18286 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18287 #      else
18288 #        ifdef DL_NOW
18289 #          define LT_DLLAZY_OR_NOW      DL_NOW
18290 #        else
18291 #          define LT_DLLAZY_OR_NOW      0
18292 #        endif
18293 #      endif
18294 #    endif
18295 #  endif
18296 #endif
18297
18298 #ifdef __cplusplus
18299 extern "C" void exit (int);
18300 #endif
18301
18302 void fnord() { int i=42;}
18303 int main ()
18304 {
18305   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18306   int status = $lt_dlunknown;
18307
18308   if (self)
18309     {
18310       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18311       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18312       /* dlclose (self); */
18313     }
18314
18315     exit (status);
18316 }
18317 EOF
18318   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18319   (eval $ac_link) 2>&5
18320   ac_status=$?
18321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18323     (./conftest; exit; ) 2>/dev/null
18324     lt_status=$?
18325     case x$lt_status in
18326       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18327       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18328       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18329     esac
18330   else :
18331     # compilation failed
18332     lt_cv_dlopen_self=no
18333   fi
18334 fi
18335 rm -fr conftest*
18336
18337
18338 fi
18339 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18340 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18341
18342     if test "x$lt_cv_dlopen_self" = xyes; then
18343       LDFLAGS="$LDFLAGS $link_static_flag"
18344       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18345 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18346 if test "${lt_cv_dlopen_self_static+set}" = set; then
18347   echo $ECHO_N "(cached) $ECHO_C" >&6
18348 else
18349           if test "$cross_compiling" = yes; then :
18350   lt_cv_dlopen_self_static=cross
18351 else
18352   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18353   lt_status=$lt_dlunknown
18354   cat > conftest.$ac_ext <<EOF
18355 #line 18355 "configure"
18356 #include "confdefs.h"
18357
18358 #if HAVE_DLFCN_H
18359 #include <dlfcn.h>
18360 #endif
18361
18362 #include <stdio.h>
18363
18364 #ifdef RTLD_GLOBAL
18365 #  define LT_DLGLOBAL           RTLD_GLOBAL
18366 #else
18367 #  ifdef DL_GLOBAL
18368 #    define LT_DLGLOBAL         DL_GLOBAL
18369 #  else
18370 #    define LT_DLGLOBAL         0
18371 #  endif
18372 #endif
18373
18374 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18375    find out it does not work in some platform. */
18376 #ifndef LT_DLLAZY_OR_NOW
18377 #  ifdef RTLD_LAZY
18378 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18379 #  else
18380 #    ifdef DL_LAZY
18381 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18382 #    else
18383 #      ifdef RTLD_NOW
18384 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18385 #      else
18386 #        ifdef DL_NOW
18387 #          define LT_DLLAZY_OR_NOW      DL_NOW
18388 #        else
18389 #          define LT_DLLAZY_OR_NOW      0
18390 #        endif
18391 #      endif
18392 #    endif
18393 #  endif
18394 #endif
18395
18396 #ifdef __cplusplus
18397 extern "C" void exit (int);
18398 #endif
18399
18400 void fnord() { int i=42;}
18401 int main ()
18402 {
18403   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18404   int status = $lt_dlunknown;
18405
18406   if (self)
18407     {
18408       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18409       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18410       /* dlclose (self); */
18411     }
18412
18413     exit (status);
18414 }
18415 EOF
18416   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18417   (eval $ac_link) 2>&5
18418   ac_status=$?
18419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18421     (./conftest; exit; ) 2>/dev/null
18422     lt_status=$?
18423     case x$lt_status in
18424       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18425       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18426       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18427     esac
18428   else :
18429     # compilation failed
18430     lt_cv_dlopen_self_static=no
18431   fi
18432 fi
18433 rm -fr conftest*
18434
18435
18436 fi
18437 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18438 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18439     fi
18440
18441     CPPFLAGS="$save_CPPFLAGS"
18442     LDFLAGS="$save_LDFLAGS"
18443     LIBS="$save_LIBS"
18444     ;;
18445   esac
18446
18447   case $lt_cv_dlopen_self in
18448   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18449   *) enable_dlopen_self=unknown ;;
18450   esac
18451
18452   case $lt_cv_dlopen_self_static in
18453   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18454   *) enable_dlopen_self_static=unknown ;;
18455   esac
18456 fi
18457
18458
18459 # The else clause should only fire when bootstrapping the
18460 # libtool distribution, otherwise you forgot to ship ltmain.sh
18461 # with your package, and you will get complaints that there are
18462 # no rules to generate ltmain.sh.
18463 if test -f "$ltmain"; then
18464   # See if we are running on zsh, and set the options which allow our commands through
18465   # without removal of \ escapes.
18466   if test -n "${ZSH_VERSION+set}" ; then
18467     setopt NO_GLOB_SUBST
18468   fi
18469   # Now quote all the things that may contain metacharacters while being
18470   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18471   # variables and quote the copies for generation of the libtool script.
18472   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18473     SED SHELL STRIP \
18474     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18475     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18476     deplibs_check_method reload_flag reload_cmds need_locks \
18477     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18478     lt_cv_sys_global_symbol_to_c_name_address \
18479     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18480     old_postinstall_cmds old_postuninstall_cmds \
18481     compiler_CXX \
18482     CC_CXX \
18483     LD_CXX \
18484     lt_prog_compiler_wl_CXX \
18485     lt_prog_compiler_pic_CXX \
18486     lt_prog_compiler_static_CXX \
18487     lt_prog_compiler_no_builtin_flag_CXX \
18488     export_dynamic_flag_spec_CXX \
18489     thread_safe_flag_spec_CXX \
18490     whole_archive_flag_spec_CXX \
18491     enable_shared_with_static_runtimes_CXX \
18492     old_archive_cmds_CXX \
18493     old_archive_from_new_cmds_CXX \
18494     predep_objects_CXX \
18495     postdep_objects_CXX \
18496     predeps_CXX \
18497     postdeps_CXX \
18498     compiler_lib_search_path_CXX \
18499     archive_cmds_CXX \
18500     archive_expsym_cmds_CXX \
18501     postinstall_cmds_CXX \
18502     postuninstall_cmds_CXX \
18503     old_archive_from_expsyms_cmds_CXX \
18504     allow_undefined_flag_CXX \
18505     no_undefined_flag_CXX \
18506     export_symbols_cmds_CXX \
18507     hardcode_libdir_flag_spec_CXX \
18508     hardcode_libdir_flag_spec_ld_CXX \
18509     hardcode_libdir_separator_CXX \
18510     hardcode_automatic_CXX \
18511     module_cmds_CXX \
18512     module_expsym_cmds_CXX \
18513     lt_cv_prog_compiler_c_o_CXX \
18514     exclude_expsyms_CXX \
18515     include_expsyms_CXX; do
18516
18517     case $var in
18518     old_archive_cmds_CXX | \
18519     old_archive_from_new_cmds_CXX | \
18520     archive_cmds_CXX | \
18521     archive_expsym_cmds_CXX | \
18522     module_cmds_CXX | \
18523     module_expsym_cmds_CXX | \
18524     old_archive_from_expsyms_cmds_CXX | \
18525     export_symbols_cmds_CXX | \
18526     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18527     postinstall_cmds | postuninstall_cmds | \
18528     old_postinstall_cmds | old_postuninstall_cmds | \
18529     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18530       # Double-quote double-evaled strings.
18531       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18532       ;;
18533     *)
18534       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18535       ;;
18536     esac
18537   done
18538
18539   case $lt_echo in
18540   *'\$0 --fallback-echo"')
18541     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18542     ;;
18543   esac
18544
18545 cfgfile="$ofile"
18546
18547   cat <<__EOF__ >> "$cfgfile"
18548 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18549
18550 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18551
18552 # Shell to use when invoking shell scripts.
18553 SHELL=$lt_SHELL
18554
18555 # Whether or not to build shared libraries.
18556 build_libtool_libs=$enable_shared
18557
18558 # Whether or not to build static libraries.
18559 build_old_libs=$enable_static
18560
18561 # Whether or not to add -lc for building shared libraries.
18562 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18563
18564 # Whether or not to disallow shared libs when runtime libs are static
18565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18566
18567 # Whether or not to optimize for fast installation.
18568 fast_install=$enable_fast_install
18569
18570 # The host system.
18571 host_alias=$host_alias
18572 host=$host
18573
18574 # An echo program that does not interpret backslashes.
18575 echo=$lt_echo
18576
18577 # The archiver.
18578 AR=$lt_AR
18579 AR_FLAGS=$lt_AR_FLAGS
18580
18581 # A C compiler.
18582 LTCC=$lt_LTCC
18583
18584 # A language-specific compiler.
18585 CC=$lt_compiler_CXX
18586
18587 # Is the compiler the GNU C compiler?
18588 with_gcc=$GCC_CXX
18589
18590 # An ERE matcher.
18591 EGREP=$lt_EGREP
18592
18593 # The linker used to build libraries.
18594 LD=$lt_LD_CXX
18595
18596 # Whether we need hard or soft links.
18597 LN_S=$lt_LN_S
18598
18599 # A BSD-compatible nm program.
18600 NM=$lt_NM
18601
18602 # A symbol stripping program
18603 STRIP=$lt_STRIP
18604
18605 # Used to examine libraries when file_magic_cmd begins "file"
18606 MAGIC_CMD=$MAGIC_CMD
18607
18608 # Used on cygwin: DLL creation program.
18609 DLLTOOL="$DLLTOOL"
18610
18611 # Used on cygwin: object dumper.
18612 OBJDUMP="$OBJDUMP"
18613
18614 # Used on cygwin: assembler.
18615 AS="$AS"
18616
18617 # The name of the directory that contains temporary libtool files.
18618 objdir=$objdir
18619
18620 # How to create reloadable object files.
18621 reload_flag=$lt_reload_flag
18622 reload_cmds=$lt_reload_cmds
18623
18624 # How to pass a linker flag through the compiler.
18625 wl=$lt_lt_prog_compiler_wl_CXX
18626
18627 # Object file suffix (normally "o").
18628 objext="$ac_objext"
18629
18630 # Old archive suffix (normally "a").
18631 libext="$libext"
18632
18633 # Shared library suffix (normally ".so").
18634 shrext_cmds='$shrext_cmds'
18635
18636 # Executable file suffix (normally "").
18637 exeext="$exeext"
18638
18639 # Additional compiler flags for building library objects.
18640 pic_flag=$lt_lt_prog_compiler_pic_CXX
18641 pic_mode=$pic_mode
18642
18643 # What is the maximum length of a command?
18644 max_cmd_len=$lt_cv_sys_max_cmd_len
18645
18646 # Does compiler simultaneously support -c and -o options?
18647 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18648
18649 # Must we lock files when doing compilation ?
18650 need_locks=$lt_need_locks
18651
18652 # Do we need the lib prefix for modules?
18653 need_lib_prefix=$need_lib_prefix
18654
18655 # Do we need a version for libraries?
18656 need_version=$need_version
18657
18658 # Whether dlopen is supported.
18659 dlopen_support=$enable_dlopen
18660
18661 # Whether dlopen of programs is supported.
18662 dlopen_self=$enable_dlopen_self
18663
18664 # Whether dlopen of statically linked programs is supported.
18665 dlopen_self_static=$enable_dlopen_self_static
18666
18667 # Compiler flag to prevent dynamic linking.
18668 link_static_flag=$lt_lt_prog_compiler_static_CXX
18669
18670 # Compiler flag to turn off builtin functions.
18671 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18672
18673 # Compiler flag to allow reflexive dlopens.
18674 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18675
18676 # Compiler flag to generate shared objects directly from archives.
18677 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18678
18679 # Compiler flag to generate thread-safe objects.
18680 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18681
18682 # Library versioning type.
18683 version_type=$version_type
18684
18685 # Format of library name prefix.
18686 libname_spec=$lt_libname_spec
18687
18688 # List of archive names.  First name is the real one, the rest are links.
18689 # The last name is the one that the linker finds with -lNAME.
18690 library_names_spec=$lt_library_names_spec
18691
18692 # The coded name of the library, if different from the real name.
18693 soname_spec=$lt_soname_spec
18694
18695 # Commands used to build and install an old-style archive.
18696 RANLIB=$lt_RANLIB
18697 old_archive_cmds=$lt_old_archive_cmds_CXX
18698 old_postinstall_cmds=$lt_old_postinstall_cmds
18699 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18700
18701 # Create an old-style archive from a shared archive.
18702 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18703
18704 # Create a temporary old-style archive to link instead of a shared archive.
18705 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18706
18707 # Commands used to build and install a shared archive.
18708 archive_cmds=$lt_archive_cmds_CXX
18709 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18710 postinstall_cmds=$lt_postinstall_cmds
18711 postuninstall_cmds=$lt_postuninstall_cmds
18712
18713 # Commands used to build a loadable module (assumed same as above if empty)
18714 module_cmds=$lt_module_cmds_CXX
18715 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18716
18717 # Commands to strip libraries.
18718 old_striplib=$lt_old_striplib
18719 striplib=$lt_striplib
18720
18721 # Dependencies to place before the objects being linked to create a
18722 # shared library.
18723 predep_objects=$lt_predep_objects_CXX
18724
18725 # Dependencies to place after the objects being linked to create a
18726 # shared library.
18727 postdep_objects=$lt_postdep_objects_CXX
18728
18729 # Dependencies to place before the objects being linked to create a
18730 # shared library.
18731 predeps=$lt_predeps_CXX
18732
18733 # Dependencies to place after the objects being linked to create a
18734 # shared library.
18735 postdeps=$lt_postdeps_CXX
18736
18737 # The library search path used internally by the compiler when linking
18738 # a shared library.
18739 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18740
18741 # Method to check whether dependent libraries are shared objects.
18742 deplibs_check_method=$lt_deplibs_check_method
18743
18744 # Command to use when deplibs_check_method == file_magic.
18745 file_magic_cmd=$lt_file_magic_cmd
18746
18747 # Flag that allows shared libraries with undefined symbols to be built.
18748 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18749
18750 # Flag that forces no undefined symbols.
18751 no_undefined_flag=$lt_no_undefined_flag_CXX
18752
18753 # Commands used to finish a libtool library installation in a directory.
18754 finish_cmds=$lt_finish_cmds
18755
18756 # Same as above, but a single script fragment to be evaled but not shown.
18757 finish_eval=$lt_finish_eval
18758
18759 # Take the output of nm and produce a listing of raw symbols and C names.
18760 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18761
18762 # Transform the output of nm in a proper C declaration
18763 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18764
18765 # Transform the output of nm in a C name address pair
18766 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18767
18768 # This is the shared library runtime path variable.
18769 runpath_var=$runpath_var
18770
18771 # This is the shared library path variable.
18772 shlibpath_var=$shlibpath_var
18773
18774 # Is shlibpath searched before the hard-coded library search path?
18775 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18776
18777 # How to hardcode a shared library path into an executable.
18778 hardcode_action=$hardcode_action_CXX
18779
18780 # Whether we should hardcode library paths into libraries.
18781 hardcode_into_libs=$hardcode_into_libs
18782
18783 # Flag to hardcode \$libdir into a binary during linking.
18784 # This must work even if \$libdir does not exist.
18785 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18786
18787 # If ld is used when linking, flag to hardcode \$libdir into
18788 # a binary during linking. This must work even if \$libdir does
18789 # not exist.
18790 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18791
18792 # Whether we need a single -rpath flag with a separated argument.
18793 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18794
18795 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18796 # resulting binary.
18797 hardcode_direct=$hardcode_direct_CXX
18798
18799 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18800 # resulting binary.
18801 hardcode_minus_L=$hardcode_minus_L_CXX
18802
18803 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18804 # the resulting binary.
18805 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18806
18807 # Set to yes if building a shared library automatically hardcodes DIR into the library
18808 # and all subsequent libraries and executables linked against it.
18809 hardcode_automatic=$hardcode_automatic_CXX
18810
18811 # Variables whose values should be saved in libtool wrapper scripts and
18812 # restored at relink time.
18813 variables_saved_for_relink="$variables_saved_for_relink"
18814
18815 # Whether libtool must link a program against all its dependency libraries.
18816 link_all_deplibs=$link_all_deplibs_CXX
18817
18818 # Compile-time system search path for libraries
18819 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18820
18821 # Run-time system search path for libraries
18822 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18823
18824 # Fix the shell variable \$srcfile for the compiler.
18825 fix_srcfile_path="$fix_srcfile_path_CXX"
18826
18827 # Set to yes if exported symbols are required.
18828 always_export_symbols=$always_export_symbols_CXX
18829
18830 # The commands to list exported symbols.
18831 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18832
18833 # The commands to extract the exported symbol list from a shared archive.
18834 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18835
18836 # Symbols that should not be listed in the preloaded symbols.
18837 exclude_expsyms=$lt_exclude_expsyms_CXX
18838
18839 # Symbols that must always be exported.
18840 include_expsyms=$lt_include_expsyms_CXX
18841
18842 # ### END LIBTOOL TAG CONFIG: $tagname
18843
18844 __EOF__
18845
18846
18847 else
18848   # If there is no Makefile yet, we rely on a make rule to execute
18849   # `config.status --recheck' to rerun these tests and create the
18850   # libtool script then.
18851   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18852   if test -f "$ltmain_in"; then
18853     test -f Makefile && make "$ltmain"
18854   fi
18855 fi
18856
18857
18858 ac_ext=c
18859 ac_cpp='$CPP $CPPFLAGS'
18860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18863
18864 CC=$lt_save_CC
18865 LDCXX=$LD
18866 LD=$lt_save_LD
18867 GCC=$lt_save_GCC
18868 with_gnu_ldcxx=$with_gnu_ld
18869 with_gnu_ld=$lt_save_with_gnu_ld
18870 lt_cv_path_LDCXX=$lt_cv_path_LD
18871 lt_cv_path_LD=$lt_save_path_LD
18872 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18873 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18874
18875         else
18876           tagname=""
18877         fi
18878         ;;
18879
18880       F77)
18881         if test -n "$F77" && test "X$F77" != "Xno"; then
18882
18883 ac_ext=f
18884 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18885 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18886 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18887
18888
18889 archive_cmds_need_lc_F77=no
18890 allow_undefined_flag_F77=
18891 always_export_symbols_F77=no
18892 archive_expsym_cmds_F77=
18893 export_dynamic_flag_spec_F77=
18894 hardcode_direct_F77=no
18895 hardcode_libdir_flag_spec_F77=
18896 hardcode_libdir_flag_spec_ld_F77=
18897 hardcode_libdir_separator_F77=
18898 hardcode_minus_L_F77=no
18899 hardcode_automatic_F77=no
18900 module_cmds_F77=
18901 module_expsym_cmds_F77=
18902 link_all_deplibs_F77=unknown
18903 old_archive_cmds_F77=$old_archive_cmds
18904 no_undefined_flag_F77=
18905 whole_archive_flag_spec_F77=
18906 enable_shared_with_static_runtimes_F77=no
18907
18908 # Source file extension for f77 test sources.
18909 ac_ext=f
18910
18911 # Object file extension for compiled f77 test sources.
18912 objext=o
18913 objext_F77=$objext
18914
18915 # Code to be used in simple compile tests
18916 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18917
18918 # Code to be used in simple link tests
18919 lt_simple_link_test_code="      program t\n      end\n"
18920
18921 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18922
18923 # If no C compiler was specified, use CC.
18924 LTCC=${LTCC-"$CC"}
18925
18926 # Allow CC to be a program name with arguments.
18927 compiler=$CC
18928
18929
18930 # Allow CC to be a program name with arguments.
18931 lt_save_CC="$CC"
18932 CC=${F77-"f77"}
18933 compiler=$CC
18934 compiler_F77=$CC
18935 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18936
18937 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18938 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18939 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18940 echo "${ECHO_T}$can_build_shared" >&6
18941
18942 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18943 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18944 test "$can_build_shared" = "no" && enable_shared=no
18945
18946 # On AIX, shared libraries and static libraries use the same namespace, and
18947 # are all built from PIC.
18948 case "$host_os" in
18949 aix3*)
18950   test "$enable_shared" = yes && enable_static=no
18951   if test -n "$RANLIB"; then
18952     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18953     postinstall_cmds='$RANLIB $lib'
18954   fi
18955   ;;
18956 aix4* | aix5*)
18957   test "$enable_shared" = yes && enable_static=no
18958   ;;
18959 esac
18960 echo "$as_me:$LINENO: result: $enable_shared" >&5
18961 echo "${ECHO_T}$enable_shared" >&6
18962
18963 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18964 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18965 # Make sure either enable_shared or enable_static is yes.
18966 test "$enable_shared" = yes || enable_static=yes
18967 echo "$as_me:$LINENO: result: $enable_static" >&5
18968 echo "${ECHO_T}$enable_static" >&6
18969
18970 test "$ld_shlibs_F77" = no && can_build_shared=no
18971
18972 GCC_F77="$G77"
18973 LD_F77="$LD"
18974
18975 lt_prog_compiler_wl_F77=
18976 lt_prog_compiler_pic_F77=
18977 lt_prog_compiler_static_F77=
18978
18979 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18980 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18981
18982   if test "$GCC" = yes; then
18983     lt_prog_compiler_wl_F77='-Wl,'
18984     lt_prog_compiler_static_F77='-static'
18985
18986     case $host_os in
18987       aix*)
18988       # All AIX code is PIC.
18989       if test "$host_cpu" = ia64; then
18990         # AIX 5 now supports IA64 processor
18991         lt_prog_compiler_static_F77='-Bstatic'
18992       fi
18993       ;;
18994
18995     amigaos*)
18996       # FIXME: we need at least 68020 code to build shared libraries, but
18997       # adding the `-m68020' flag to GCC prevents building anything better,
18998       # like `-m68040'.
18999       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19000       ;;
19001
19002     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19003       # PIC is the default for these OSes.
19004       ;;
19005
19006     mingw* | pw32* | os2*)
19007       # This hack is so that the source file can tell whether it is being
19008       # built for inclusion in a dll (and should export symbols for example).
19009       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19010       ;;
19011
19012     darwin* | rhapsody*)
19013       # PIC is the default on this platform
19014       # Common symbols not allowed in MH_DYLIB files
19015       lt_prog_compiler_pic_F77='-fno-common'
19016       ;;
19017
19018     msdosdjgpp*)
19019       # Just because we use GCC doesn't mean we suddenly get shared libraries
19020       # on systems that don't support them.
19021       lt_prog_compiler_can_build_shared_F77=no
19022       enable_shared=no
19023       ;;
19024
19025     sysv4*MP*)
19026       if test -d /usr/nec; then
19027         lt_prog_compiler_pic_F77=-Kconform_pic
19028       fi
19029       ;;
19030
19031     hpux*)
19032       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19033       # not for PA HP-UX.
19034       case "$host_cpu" in
19035       hppa*64*|ia64*)
19036         # +Z the default
19037         ;;
19038       *)
19039         lt_prog_compiler_pic_F77='-fPIC'
19040         ;;
19041       esac
19042       ;;
19043
19044     *)
19045       lt_prog_compiler_pic_F77='-fPIC'
19046       ;;
19047     esac
19048   else
19049     # PORTME Check for flag to pass linker flags through the system compiler.
19050     case $host_os in
19051     aix*)
19052       lt_prog_compiler_wl_F77='-Wl,'
19053       if test "$host_cpu" = ia64; then
19054         # AIX 5 now supports IA64 processor
19055         lt_prog_compiler_static_F77='-Bstatic'
19056       else
19057         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19058       fi
19059       ;;
19060       darwin*)
19061         # PIC is the default on this platform
19062         # Common symbols not allowed in MH_DYLIB files
19063        case "$cc_basename" in
19064          xlc*)
19065          lt_prog_compiler_pic_F77='-qnocommon'
19066          lt_prog_compiler_wl_F77='-Wl,'
19067          ;;
19068        esac
19069        ;;
19070
19071     mingw* | pw32* | os2*)
19072       # This hack is so that the source file can tell whether it is being
19073       # built for inclusion in a dll (and should export symbols for example).
19074       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19075       ;;
19076
19077     hpux9* | hpux10* | hpux11*)
19078       lt_prog_compiler_wl_F77='-Wl,'
19079       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19080       # not for PA HP-UX.
19081       case "$host_cpu" in
19082       hppa*64*|ia64*)
19083         # +Z the default
19084         ;;
19085       *)
19086         lt_prog_compiler_pic_F77='+Z'
19087         ;;
19088       esac
19089       # Is there a better lt_prog_compiler_static that works with the bundled CC?
19090       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19091       ;;
19092
19093     irix5* | irix6* | nonstopux*)
19094       lt_prog_compiler_wl_F77='-Wl,'
19095       # PIC (with -KPIC) is the default.
19096       lt_prog_compiler_static_F77='-non_shared'
19097       ;;
19098
19099     newsos6)
19100       lt_prog_compiler_pic_F77='-KPIC'
19101       lt_prog_compiler_static_F77='-Bstatic'
19102       ;;
19103
19104     linux*)
19105       case $CC in
19106       icc* | ecc*)
19107         lt_prog_compiler_wl_F77='-Wl,'
19108         lt_prog_compiler_pic_F77='-KPIC'
19109         lt_prog_compiler_static_F77='-static'
19110         ;;
19111       ccc*)
19112         lt_prog_compiler_wl_F77='-Wl,'
19113         # All Alpha code is PIC.
19114         lt_prog_compiler_static_F77='-non_shared'
19115         ;;
19116       esac
19117       ;;
19118
19119     osf3* | osf4* | osf5*)
19120       lt_prog_compiler_wl_F77='-Wl,'
19121       # All OSF/1 code is PIC.
19122       lt_prog_compiler_static_F77='-non_shared'
19123       ;;
19124
19125     sco3.2v5*)
19126       lt_prog_compiler_pic_F77='-Kpic'
19127       lt_prog_compiler_static_F77='-dn'
19128       ;;
19129
19130     solaris*)
19131       lt_prog_compiler_wl_F77='-Wl,'
19132       lt_prog_compiler_pic_F77='-KPIC'
19133       lt_prog_compiler_static_F77='-Bstatic'
19134       ;;
19135
19136     sunos4*)
19137       lt_prog_compiler_wl_F77='-Qoption ld '
19138       lt_prog_compiler_pic_F77='-PIC'
19139       lt_prog_compiler_static_F77='-Bstatic'
19140       ;;
19141
19142     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19143       lt_prog_compiler_wl_F77='-Wl,'
19144       lt_prog_compiler_pic_F77='-KPIC'
19145       lt_prog_compiler_static_F77='-Bstatic'
19146       ;;
19147
19148     sysv4*MP*)
19149       if test -d /usr/nec ;then
19150         lt_prog_compiler_pic_F77='-Kconform_pic'
19151         lt_prog_compiler_static_F77='-Bstatic'
19152       fi
19153       ;;
19154
19155     uts4*)
19156       lt_prog_compiler_pic_F77='-pic'
19157       lt_prog_compiler_static_F77='-Bstatic'
19158       ;;
19159
19160     *)
19161       lt_prog_compiler_can_build_shared_F77=no
19162       ;;
19163     esac
19164   fi
19165
19166 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19167 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19168
19169 #
19170 # Check to make sure the PIC flag actually works.
19171 #
19172 if test -n "$lt_prog_compiler_pic_F77"; then
19173
19174 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19175 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19176 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19177   echo $ECHO_N "(cached) $ECHO_C" >&6
19178 else
19179   lt_prog_compiler_pic_works_F77=no
19180   ac_outfile=conftest.$ac_objext
19181    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19182    lt_compiler_flag="$lt_prog_compiler_pic_F77"
19183    # Insert the option either (1) after the last *FLAGS variable, or
19184    # (2) before a word containing "conftest.", or (3) at the end.
19185    # Note that $ac_compile itself does not contain backslashes and begins
19186    # with a dollar sign (not a hyphen), so the echo should work correctly.
19187    # The option is referenced via a variable to avoid confusing sed.
19188    lt_compile=`echo "$ac_compile" | $SED \
19189    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19190    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19191    -e 's:$: $lt_compiler_flag:'`
19192    (eval echo "\"\$as_me:19192: $lt_compile\"" >&5)
19193    (eval "$lt_compile" 2>conftest.err)
19194    ac_status=$?
19195    cat conftest.err >&5
19196    echo "$as_me:19196: \$? = $ac_status" >&5
19197    if (exit $ac_status) && test -s "$ac_outfile"; then
19198      # The compiler can only warn and ignore the option if not recognized
19199      # So say no if there are warnings
19200      if test ! -s conftest.err; then
19201        lt_prog_compiler_pic_works_F77=yes
19202      fi
19203    fi
19204    $rm conftest*
19205
19206 fi
19207 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19208 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19209
19210 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19211     case $lt_prog_compiler_pic_F77 in
19212      "" | " "*) ;;
19213      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19214      esac
19215 else
19216     lt_prog_compiler_pic_F77=
19217      lt_prog_compiler_can_build_shared_F77=no
19218 fi
19219
19220 fi
19221 case "$host_os" in
19222   # For platforms which do not support PIC, -DPIC is meaningless:
19223   *djgpp*)
19224     lt_prog_compiler_pic_F77=
19225     ;;
19226   *)
19227     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19228     ;;
19229 esac
19230
19231 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19232 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19233 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19234   echo $ECHO_N "(cached) $ECHO_C" >&6
19235 else
19236   lt_cv_prog_compiler_c_o_F77=no
19237    $rm -r conftest 2>/dev/null
19238    mkdir conftest
19239    cd conftest
19240    mkdir out
19241    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19242
19243    lt_compiler_flag="-o out/conftest2.$ac_objext"
19244    # Insert the option either (1) after the last *FLAGS variable, or
19245    # (2) before a word containing "conftest.", or (3) at the end.
19246    # Note that $ac_compile itself does not contain backslashes and begins
19247    # with a dollar sign (not a hyphen), so the echo should work correctly.
19248    lt_compile=`echo "$ac_compile" | $SED \
19249    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19250    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19251    -e 's:$: $lt_compiler_flag:'`
19252    (eval echo "\"\$as_me:19252: $lt_compile\"" >&5)
19253    (eval "$lt_compile" 2>out/conftest.err)
19254    ac_status=$?
19255    cat out/conftest.err >&5
19256    echo "$as_me:19256: \$? = $ac_status" >&5
19257    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19258    then
19259      # The compiler can only warn and ignore the option if not recognized
19260      # So say no if there are warnings
19261      if test ! -s out/conftest.err; then
19262        lt_cv_prog_compiler_c_o_F77=yes
19263      fi
19264    fi
19265    chmod u+w .
19266    $rm conftest*
19267    # SGI C++ compiler will create directory out/ii_files/ for
19268    # template instantiation
19269    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19270    $rm out/* && rmdir out
19271    cd ..
19272    rmdir conftest
19273    $rm conftest*
19274
19275 fi
19276 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19277 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19278
19279
19280 hard_links="nottested"
19281 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19282   # do not overwrite the value of need_locks provided by the user
19283   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19284 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19285   hard_links=yes
19286   $rm conftest*
19287   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19288   touch conftest.a
19289   ln conftest.a conftest.b 2>&5 || hard_links=no
19290   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19291   echo "$as_me:$LINENO: result: $hard_links" >&5
19292 echo "${ECHO_T}$hard_links" >&6
19293   if test "$hard_links" = no; then
19294     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19295 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19296     need_locks=warn
19297   fi
19298 else
19299   need_locks=no
19300 fi
19301
19302 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19303 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19304
19305   runpath_var=
19306   allow_undefined_flag_F77=
19307   enable_shared_with_static_runtimes_F77=no
19308   archive_cmds_F77=
19309   archive_expsym_cmds_F77=
19310   old_archive_From_new_cmds_F77=
19311   old_archive_from_expsyms_cmds_F77=
19312   export_dynamic_flag_spec_F77=
19313   whole_archive_flag_spec_F77=
19314   thread_safe_flag_spec_F77=
19315   hardcode_libdir_flag_spec_F77=
19316   hardcode_libdir_flag_spec_ld_F77=
19317   hardcode_libdir_separator_F77=
19318   hardcode_direct_F77=no
19319   hardcode_minus_L_F77=no
19320   hardcode_shlibpath_var_F77=unsupported
19321   link_all_deplibs_F77=unknown
19322   hardcode_automatic_F77=no
19323   module_cmds_F77=
19324   module_expsym_cmds_F77=
19325   always_export_symbols_F77=no
19326   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19327   # include_expsyms should be a list of space-separated symbols to be *always*
19328   # included in the symbol list
19329   include_expsyms_F77=
19330   # exclude_expsyms can be an extended regexp of symbols to exclude
19331   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19332   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19333   # as well as any symbol that contains `d'.
19334   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19335   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19336   # platforms (ab)use it in PIC code, but their linkers get confused if
19337   # the symbol is explicitly referenced.  Since portable code cannot
19338   # rely on this symbol name, it's probably fine to never include it in
19339   # preloaded symbol tables.
19340   extract_expsyms_cmds=
19341
19342   case $host_os in
19343   cygwin* | mingw* | pw32*)
19344     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19345     # When not using gcc, we currently assume that we are using
19346     # Microsoft Visual C++.
19347     if test "$GCC" != yes; then
19348       with_gnu_ld=no
19349     fi
19350     ;;
19351   openbsd*)
19352     with_gnu_ld=no
19353     ;;
19354   esac
19355
19356   ld_shlibs_F77=yes
19357   if test "$with_gnu_ld" = yes; then
19358     # If archive_cmds runs LD, not CC, wlarc should be empty
19359     wlarc='${wl}'
19360
19361     # See if GNU ld supports shared libraries.
19362     case $host_os in
19363     aix3* | aix4* | aix5*)
19364       # On AIX/PPC, the GNU linker is very broken
19365       if test "$host_cpu" != ia64; then
19366         ld_shlibs_F77=no
19367         cat <<EOF 1>&2
19368
19369 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19370 *** to be unable to reliably create shared libraries on AIX.
19371 *** Therefore, libtool is disabling shared libraries support.  If you
19372 *** really care for shared libraries, you may want to modify your PATH
19373 *** so that a non-GNU linker is found, and then restart.
19374
19375 EOF
19376       fi
19377       ;;
19378
19379     amigaos*)
19380       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)'
19381       hardcode_libdir_flag_spec_F77='-L$libdir'
19382       hardcode_minus_L_F77=yes
19383
19384       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19385       # that the semantics of dynamic libraries on AmigaOS, at least up
19386       # to version 4, is to share data among multiple programs linked
19387       # with the same dynamic library.  Since this doesn't match the
19388       # behavior of shared libraries on other platforms, we can't use
19389       # them.
19390       ld_shlibs_F77=no
19391       ;;
19392
19393     beos*)
19394       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19395         allow_undefined_flag_F77=unsupported
19396         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19397         # support --undefined.  This deserves some investigation.  FIXME
19398         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19399       else
19400         ld_shlibs_F77=no
19401       fi
19402       ;;
19403
19404     cygwin* | mingw* | pw32*)
19405       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19406       # as there is no search path for DLLs.
19407       hardcode_libdir_flag_spec_F77='-L$libdir'
19408       allow_undefined_flag_F77=unsupported
19409       always_export_symbols_F77=no
19410       enable_shared_with_static_runtimes_F77=yes
19411       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19412
19413       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19414         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19415         # If the export-symbols file already is a .def file (1st line
19416         # is EXPORTS), use it as is; otherwise, prepend...
19417         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19418           cp $export_symbols $output_objdir/$soname.def;
19419         else
19420           echo EXPORTS > $output_objdir/$soname.def;
19421           cat $export_symbols >> $output_objdir/$soname.def;
19422         fi~
19423         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19424       else
19425         ld_shlibs=no
19426       fi
19427       ;;
19428
19429     netbsd*)
19430       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19431         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19432         wlarc=
19433       else
19434         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19435         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19436       fi
19437       ;;
19438
19439     solaris* | sysv5*)
19440       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19441         ld_shlibs_F77=no
19442         cat <<EOF 1>&2
19443
19444 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19445 *** create shared libraries on Solaris systems.  Therefore, libtool
19446 *** is disabling shared libraries support.  We urge you to upgrade GNU
19447 *** binutils to release 2.9.1 or newer.  Another option is to modify
19448 *** your PATH or compiler configuration so that the native linker is
19449 *** used, and then restart.
19450
19451 EOF
19452       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19453         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19454         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19455       else
19456         ld_shlibs_F77=no
19457       fi
19458       ;;
19459
19460     sunos4*)
19461       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19462       wlarc=
19463       hardcode_direct_F77=yes
19464       hardcode_shlibpath_var_F77=no
19465       ;;
19466
19467   linux*)
19468     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19469         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19470         archive_cmds_F77="$tmp_archive_cmds"
19471       supports_anon_versioning=no
19472       case `$LD -v 2>/dev/null` in
19473         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19474         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19475         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19476         *\ 2.11.*) ;; # other 2.11 versions
19477         *) supports_anon_versioning=yes ;;
19478       esac
19479       if test $supports_anon_versioning = yes; then
19480         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19481 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19482 $echo "local: *; };" >> $output_objdir/$libname.ver~
19483         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19484       else
19485         archive_expsym_cmds_F77="$tmp_archive_cmds"
19486       fi
19487     else
19488       ld_shlibs_F77=no
19489     fi
19490     ;;
19491
19492     *)
19493       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19494         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19495         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19496       else
19497         ld_shlibs_F77=no
19498       fi
19499       ;;
19500     esac
19501
19502     if test "$ld_shlibs_F77" = yes; then
19503       runpath_var=LD_RUN_PATH
19504       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19505       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19506       # ancient GNU ld didn't support --whole-archive et. al.
19507       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19508         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19509       else
19510         whole_archive_flag_spec_F77=
19511       fi
19512     fi
19513   else
19514     # PORTME fill in a description of your system's linker (not GNU ld)
19515     case $host_os in
19516     aix3*)
19517       allow_undefined_flag_F77=unsupported
19518       always_export_symbols_F77=yes
19519       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'
19520       # Note: this linker hardcodes the directories in LIBPATH if there
19521       # are no directories specified by -L.
19522       hardcode_minus_L_F77=yes
19523       if test "$GCC" = yes && test -z "$link_static_flag"; then
19524         # Neither direct hardcoding nor static linking is supported with a
19525         # broken collect2.
19526         hardcode_direct_F77=unsupported
19527       fi
19528       ;;
19529
19530     aix4* | aix5*)
19531       if test "$host_cpu" = ia64; then
19532         # On IA64, the linker does run time linking by default, so we don't
19533         # have to do anything special.
19534         aix_use_runtimelinking=no
19535         exp_sym_flag='-Bexport'
19536         no_entry_flag=""
19537       else
19538         # If we're using GNU nm, then we don't want the "-C" option.
19539         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19540         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19541           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'
19542         else
19543           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'
19544         fi
19545         aix_use_runtimelinking=no
19546
19547         # Test if we are trying to use run time linking or normal
19548         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19549         # need to do runtime linking.
19550         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19551           for ld_flag in $LDFLAGS; do
19552           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19553             aix_use_runtimelinking=yes
19554             break
19555           fi
19556           done
19557         esac
19558
19559         exp_sym_flag='-bexport'
19560         no_entry_flag='-bnoentry'
19561       fi
19562
19563       # When large executables or shared objects are built, AIX ld can
19564       # have problems creating the table of contents.  If linking a library
19565       # or program results in "error TOC overflow" add -mminimal-toc to
19566       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19567       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19568
19569       archive_cmds_F77=''
19570       hardcode_direct_F77=yes
19571       hardcode_libdir_separator_F77=':'
19572       link_all_deplibs_F77=yes
19573
19574       if test "$GCC" = yes; then
19575         case $host_os in aix4.012|aix4.012.*)
19576         # We only want to do this on AIX 4.2 and lower, the check
19577         # below for broken collect2 doesn't work under 4.3+
19578           collect2name=`${CC} -print-prog-name=collect2`
19579           if test -f "$collect2name" && \
19580            strings "$collect2name" | grep resolve_lib_name >/dev/null
19581           then
19582           # We have reworked collect2
19583           hardcode_direct_F77=yes
19584           else
19585           # We have old collect2
19586           hardcode_direct_F77=unsupported
19587           # It fails to find uninstalled libraries when the uninstalled
19588           # path is not listed in the libpath.  Setting hardcode_minus_L
19589           # to unsupported forces relinking
19590           hardcode_minus_L_F77=yes
19591           hardcode_libdir_flag_spec_F77='-L$libdir'
19592           hardcode_libdir_separator_F77=
19593           fi
19594         esac
19595         shared_flag='-shared'
19596       else
19597         # not using gcc
19598         if test "$host_cpu" = ia64; then
19599         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19600         # chokes on -Wl,-G. The following line is correct:
19601           shared_flag='-G'
19602         else
19603         if test "$aix_use_runtimelinking" = yes; then
19604             shared_flag='${wl}-G'
19605           else
19606             shared_flag='${wl}-bM:SRE'
19607         fi
19608         fi
19609       fi
19610
19611       # It seems that -bexpall does not export symbols beginning with
19612       # underscore (_), so it is better to generate a list of symbols to export.
19613       always_export_symbols_F77=yes
19614       if test "$aix_use_runtimelinking" = yes; then
19615         # Warning - without using the other runtime loading flags (-brtl),
19616         # -berok will link without error, but may produce a broken library.
19617         allow_undefined_flag_F77='-berok'
19618        # Determine the default libpath from the value encoded in an empty executable.
19619        cat >conftest.$ac_ext <<_ACEOF
19620       program main
19621
19622       end
19623 _ACEOF
19624 rm -f conftest.$ac_objext conftest$ac_exeext
19625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19626   (eval $ac_link) 2>conftest.er1
19627   ac_status=$?
19628   grep -v '^ *+' conftest.er1 >conftest.err
19629   rm -f conftest.er1
19630   cat conftest.err >&5
19631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); } &&
19633          { ac_try='test -z "$ac_f77_werror_flag"
19634                          || test ! -s conftest.err'
19635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636   (eval $ac_try) 2>&5
19637   ac_status=$?
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); }; } &&
19640          { ac_try='test -s conftest$ac_exeext'
19641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642   (eval $ac_try) 2>&5
19643   ac_status=$?
19644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645   (exit $ac_status); }; }; then
19646
19647 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19648 }'`
19649 # Check for a 64-bit object if we didn't find anything.
19650 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; }
19651 }'`; fi
19652 else
19653   echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19655
19656 fi
19657 rm -f conftest.err conftest.$ac_objext \
19658       conftest$ac_exeext conftest.$ac_ext
19659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19660
19661        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19662         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"
19663        else
19664         if test "$host_cpu" = ia64; then
19665           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19666           allow_undefined_flag_F77="-z nodefs"
19667           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"
19668         else
19669          # Determine the default libpath from the value encoded in an empty executable.
19670          cat >conftest.$ac_ext <<_ACEOF
19671       program main
19672
19673       end
19674 _ACEOF
19675 rm -f conftest.$ac_objext conftest$ac_exeext
19676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19677   (eval $ac_link) 2>conftest.er1
19678   ac_status=$?
19679   grep -v '^ *+' conftest.er1 >conftest.err
19680   rm -f conftest.er1
19681   cat conftest.err >&5
19682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683   (exit $ac_status); } &&
19684          { ac_try='test -z "$ac_f77_werror_flag"
19685                          || test ! -s conftest.err'
19686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687   (eval $ac_try) 2>&5
19688   ac_status=$?
19689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690   (exit $ac_status); }; } &&
19691          { ac_try='test -s conftest$ac_exeext'
19692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19693   (eval $ac_try) 2>&5
19694   ac_status=$?
19695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696   (exit $ac_status); }; }; then
19697
19698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19699 }'`
19700 # Check for a 64-bit object if we didn't find anything.
19701 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; }
19702 }'`; fi
19703 else
19704   echo "$as_me: failed program was:" >&5
19705 sed 's/^/| /' conftest.$ac_ext >&5
19706
19707 fi
19708 rm -f conftest.err conftest.$ac_objext \
19709       conftest$ac_exeext conftest.$ac_ext
19710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19711
19712          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19713           # Warning - without using the other run time loading flags,
19714           # -berok will link without error, but may produce a broken library.
19715           no_undefined_flag_F77=' ${wl}-bernotok'
19716           allow_undefined_flag_F77=' ${wl}-berok'
19717           # -bexpall does not export symbols beginning with underscore (_)
19718           always_export_symbols_F77=yes
19719           # Exported symbols can be pulled into shared objects from archives
19720           whole_archive_flag_spec_F77=' '
19721           archive_cmds_need_lc_F77=yes
19722           # This is similar to how AIX traditionally builds it's shared libraries.
19723           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'
19724         fi
19725       fi
19726       ;;
19727
19728     amigaos*)
19729       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)'
19730       hardcode_libdir_flag_spec_F77='-L$libdir'
19731       hardcode_minus_L_F77=yes
19732       # see comment about different semantics on the GNU ld section
19733       ld_shlibs_F77=no
19734       ;;
19735
19736     bsdi[45]*)
19737       export_dynamic_flag_spec_F77=-rdynamic
19738       ;;
19739
19740     cygwin* | mingw* | pw32*)
19741       # When not using gcc, we currently assume that we are using
19742       # Microsoft Visual C++.
19743       # hardcode_libdir_flag_spec is actually meaningless, as there is
19744       # no search path for DLLs.
19745       hardcode_libdir_flag_spec_F77=' '
19746       allow_undefined_flag_F77=unsupported
19747       # Tell ltmain to make .lib files, not .a files.
19748       libext=lib
19749       # Tell ltmain to make .dll files, not .so files.
19750       shrext_cmds=".dll"
19751       # FIXME: Setting linknames here is a bad hack.
19752       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19753       # The linker will automatically build a .lib file if we build a DLL.
19754       old_archive_From_new_cmds_F77='true'
19755       # FIXME: Should let the user specify the lib program.
19756       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19757       fix_srcfile_path='`cygpath -w "$srcfile"`'
19758       enable_shared_with_static_runtimes_F77=yes
19759       ;;
19760
19761     darwin* | rhapsody*)
19762       case "$host_os" in
19763         rhapsody* | darwin1.[012])
19764          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19765          ;;
19766        *) # Darwin 1.3 on
19767          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19768            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19769          else
19770            case ${MACOSX_DEPLOYMENT_TARGET} in
19771              10.[012])
19772                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19773                ;;
19774              10.*)
19775                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19776                ;;
19777            esac
19778          fi
19779          ;;
19780       esac
19781       archive_cmds_need_lc_F77=no
19782       hardcode_direct_F77=no
19783       hardcode_automatic_F77=yes
19784       hardcode_shlibpath_var_F77=unsupported
19785       whole_archive_flag_spec_F77=''
19786       link_all_deplibs_F77=yes
19787     if test "$GCC" = yes ; then
19788         output_verbose_link_cmd='echo'
19789         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19790       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19791       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19792       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}'
19793       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}'
19794     else
19795       case "$cc_basename" in
19796         xlc*)
19797          output_verbose_link_cmd='echo'
19798          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19799          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19800           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19801          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}'
19802           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}'
19803           ;;
19804        *)
19805          ld_shlibs_F77=no
19806           ;;
19807       esac
19808     fi
19809       ;;
19810
19811     dgux*)
19812       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19813       hardcode_libdir_flag_spec_F77='-L$libdir'
19814       hardcode_shlibpath_var_F77=no
19815       ;;
19816
19817     freebsd1*)
19818       ld_shlibs_F77=no
19819       ;;
19820
19821     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19822     # support.  Future versions do this automatically, but an explicit c++rt0.o
19823     # does not break anything, and helps significantly (at the cost of a little
19824     # extra space).
19825     freebsd2.2*)
19826       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19827       hardcode_libdir_flag_spec_F77='-R$libdir'
19828       hardcode_direct_F77=yes
19829       hardcode_shlibpath_var_F77=no
19830       ;;
19831
19832     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19833     freebsd2*)
19834       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19835       hardcode_direct_F77=yes
19836       hardcode_minus_L_F77=yes
19837       hardcode_shlibpath_var_F77=no
19838       ;;
19839
19840     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19841     freebsd* | kfreebsd*-gnu)
19842       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19843       hardcode_libdir_flag_spec_F77='-R$libdir'
19844       hardcode_direct_F77=yes
19845       hardcode_shlibpath_var_F77=no
19846       ;;
19847
19848     hpux9*)
19849       if test "$GCC" = yes; then
19850         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'
19851       else
19852         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'
19853       fi
19854       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19855       hardcode_libdir_separator_F77=:
19856       hardcode_direct_F77=yes
19857
19858       # hardcode_minus_L: Not really in the search PATH,
19859       # but as the default location of the library.
19860       hardcode_minus_L_F77=yes
19861       export_dynamic_flag_spec_F77='${wl}-E'
19862       ;;
19863
19864     hpux10* | hpux11*)
19865       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19866         case "$host_cpu" in
19867         hppa*64*|ia64*)
19868           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19869           ;;
19870         *)
19871           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19872           ;;
19873         esac
19874       else
19875         case "$host_cpu" in
19876         hppa*64*|ia64*)
19877           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19878           ;;
19879         *)
19880           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19881           ;;
19882         esac
19883       fi
19884       if test "$with_gnu_ld" = no; then
19885         case "$host_cpu" in
19886         hppa*64*)
19887           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19888           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19889           hardcode_libdir_separator_F77=:
19890           hardcode_direct_F77=no
19891           hardcode_shlibpath_var_F77=no
19892           ;;
19893         ia64*)
19894           hardcode_libdir_flag_spec_F77='-L$libdir'
19895           hardcode_direct_F77=no
19896           hardcode_shlibpath_var_F77=no
19897
19898           # hardcode_minus_L: Not really in the search PATH,
19899           # but as the default location of the library.
19900           hardcode_minus_L_F77=yes
19901           ;;
19902         *)
19903           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19904           hardcode_libdir_separator_F77=:
19905           hardcode_direct_F77=yes
19906           export_dynamic_flag_spec_F77='${wl}-E'
19907
19908           # hardcode_minus_L: Not really in the search PATH,
19909           # but as the default location of the library.
19910           hardcode_minus_L_F77=yes
19911           ;;
19912         esac
19913       fi
19914       ;;
19915
19916     irix5* | irix6* | nonstopux*)
19917       if test "$GCC" = yes; then
19918         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'
19919       else
19920         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'
19921         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19922       fi
19923       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19924       hardcode_libdir_separator_F77=:
19925       link_all_deplibs_F77=yes
19926       ;;
19927
19928     netbsd*)
19929       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19930         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19931       else
19932         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19933       fi
19934       hardcode_libdir_flag_spec_F77='-R$libdir'
19935       hardcode_direct_F77=yes
19936       hardcode_shlibpath_var_F77=no
19937       ;;
19938
19939     newsos6)
19940       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19941       hardcode_direct_F77=yes
19942       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19943       hardcode_libdir_separator_F77=:
19944       hardcode_shlibpath_var_F77=no
19945       ;;
19946
19947     openbsd*)
19948       hardcode_direct_F77=yes
19949       hardcode_shlibpath_var_F77=no
19950       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19951         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19952         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19953         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19954         export_dynamic_flag_spec_F77='${wl}-E'
19955       else
19956        case $host_os in
19957          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19958            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19959            hardcode_libdir_flag_spec_F77='-R$libdir'
19960            ;;
19961          *)
19962            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19963            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19964            ;;
19965        esac
19966       fi
19967       ;;
19968
19969     os2*)
19970       hardcode_libdir_flag_spec_F77='-L$libdir'
19971       hardcode_minus_L_F77=yes
19972       allow_undefined_flag_F77=unsupported
19973       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'
19974       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19975       ;;
19976
19977     osf3*)
19978       if test "$GCC" = yes; then
19979         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19980         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'
19981       else
19982         allow_undefined_flag_F77=' -expect_unresolved \*'
19983         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'
19984       fi
19985       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19986       hardcode_libdir_separator_F77=:
19987       ;;
19988
19989     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19990       if test "$GCC" = yes; then
19991         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19992         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'
19993         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19994       else
19995         allow_undefined_flag_F77=' -expect_unresolved \*'
19996         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'
19997         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~
19998         $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'
19999
20000         # Both c and cxx compiler support -rpath directly
20001         hardcode_libdir_flag_spec_F77='-rpath $libdir'
20002       fi
20003       hardcode_libdir_separator_F77=:
20004       ;;
20005
20006     sco3.2v5*)
20007       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20008       hardcode_shlibpath_var_F77=no
20009       export_dynamic_flag_spec_F77='${wl}-Bexport'
20010       runpath_var=LD_RUN_PATH
20011       hardcode_runpath_var=yes
20012       ;;
20013
20014     solaris*)
20015       no_undefined_flag_F77=' -z text'
20016       if test "$GCC" = yes; then
20017         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20018         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20019           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20020       else
20021         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20022         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20023         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20024       fi
20025       hardcode_libdir_flag_spec_F77='-R$libdir'
20026       hardcode_shlibpath_var_F77=no
20027       case $host_os in
20028       solaris2.[0-5] | solaris2.[0-5].*) ;;
20029       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20030         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20031       esac
20032       link_all_deplibs_F77=yes
20033       ;;
20034
20035     sunos4*)
20036       if test "x$host_vendor" = xsequent; then
20037         # Use $CC to link under sequent, because it throws in some extra .o
20038         # files that make .init and .fini sections work.
20039         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20040       else
20041         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20042       fi
20043       hardcode_libdir_flag_spec_F77='-L$libdir'
20044       hardcode_direct_F77=yes
20045       hardcode_minus_L_F77=yes
20046       hardcode_shlibpath_var_F77=no
20047       ;;
20048
20049     sysv4)
20050       case $host_vendor in
20051         sni)
20052           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20053           hardcode_direct_F77=yes # is this really true???
20054         ;;
20055         siemens)
20056           ## LD is ld it makes a PLAMLIB
20057           ## CC just makes a GrossModule.
20058           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20059           reload_cmds_F77='$CC -r -o $output$reload_objs'
20060           hardcode_direct_F77=no
20061         ;;
20062         motorola)
20063           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20064           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20065         ;;
20066       esac
20067       runpath_var='LD_RUN_PATH'
20068       hardcode_shlibpath_var_F77=no
20069       ;;
20070
20071     sysv4.3*)
20072       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20073       hardcode_shlibpath_var_F77=no
20074       export_dynamic_flag_spec_F77='-Bexport'
20075       ;;
20076
20077     sysv4*MP*)
20078       if test -d /usr/nec; then
20079         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20080         hardcode_shlibpath_var_F77=no
20081         runpath_var=LD_RUN_PATH
20082         hardcode_runpath_var=yes
20083         ld_shlibs_F77=yes
20084       fi
20085       ;;
20086
20087     sysv4.2uw2*)
20088       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20089       hardcode_direct_F77=yes
20090       hardcode_minus_L_F77=no
20091       hardcode_shlibpath_var_F77=no
20092       hardcode_runpath_var=yes
20093       runpath_var=LD_RUN_PATH
20094       ;;
20095
20096    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
20097       no_undefined_flag_F77='${wl}-z ${wl}text'
20098       if test "$GCC" = yes; then
20099         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20100       else
20101         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20102       fi
20103       runpath_var='LD_RUN_PATH'
20104       hardcode_shlibpath_var_F77=no
20105       ;;
20106
20107     sysv5*)
20108       no_undefined_flag_F77=' -z text'
20109       # $CC -shared without GNU ld will not create a library from C++
20110       # object files and a static libstdc++, better avoid it by now
20111       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20112       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20113                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20114       hardcode_libdir_flag_spec_F77=
20115       hardcode_shlibpath_var_F77=no
20116       runpath_var='LD_RUN_PATH'
20117       ;;
20118
20119     uts4*)
20120       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20121       hardcode_libdir_flag_spec_F77='-L$libdir'
20122       hardcode_shlibpath_var_F77=no
20123       ;;
20124
20125     *)
20126       ld_shlibs_F77=no
20127       ;;
20128     esac
20129   fi
20130
20131 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20132 echo "${ECHO_T}$ld_shlibs_F77" >&6
20133 test "$ld_shlibs_F77" = no && can_build_shared=no
20134
20135 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20136 if test "$GCC" = yes; then
20137   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20138 fi
20139
20140 #
20141 # Do we need to explicitly link libc?
20142 #
20143 case "x$archive_cmds_need_lc_F77" in
20144 x|xyes)
20145   # Assume -lc should be added
20146   archive_cmds_need_lc_F77=yes
20147
20148   if test "$enable_shared" = yes && test "$GCC" = yes; then
20149     case $archive_cmds_F77 in
20150     *'~'*)
20151       # FIXME: we may have to deal with multi-command sequences.
20152       ;;
20153     '$CC '*)
20154       # Test whether the compiler implicitly links with -lc since on some
20155       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20156       # to ld, don't add -lc before -lgcc.
20157       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20158 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20159       $rm conftest*
20160       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20161
20162       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20163   (eval $ac_compile) 2>&5
20164   ac_status=$?
20165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166   (exit $ac_status); } 2>conftest.err; then
20167         soname=conftest
20168         lib=conftest
20169         libobjs=conftest.$ac_objext
20170         deplibs=
20171         wl=$lt_prog_compiler_wl_F77
20172         compiler_flags=-v
20173         linker_flags=-v
20174         verstring=
20175         output_objdir=.
20176         libname=conftest
20177         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20178         allow_undefined_flag_F77=
20179         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20180   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20181   ac_status=$?
20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); }
20184         then
20185           archive_cmds_need_lc_F77=no
20186         else
20187           archive_cmds_need_lc_F77=yes
20188         fi
20189         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20190       else
20191         cat conftest.err 1>&5
20192       fi
20193       $rm conftest*
20194       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20195 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20196       ;;
20197     esac
20198   fi
20199   ;;
20200 esac
20201
20202 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20203 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20204 library_names_spec=
20205 libname_spec='lib$name'
20206 soname_spec=
20207 shrext_cmds=".so"
20208 postinstall_cmds=
20209 postuninstall_cmds=
20210 finish_cmds=
20211 finish_eval=
20212 shlibpath_var=
20213 shlibpath_overrides_runpath=unknown
20214 version_type=none
20215 dynamic_linker="$host_os ld.so"
20216 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20217 if test "$GCC" = yes; then
20218   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20219   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20220     # if the path contains ";" then we assume it to be the separator
20221     # otherwise default to the standard path separator (i.e. ":") - it is
20222     # assumed that no part of a normal pathname contains ";" but that should
20223     # okay in the real world where ";" in dirpaths is itself problematic.
20224     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20225   else
20226     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20227   fi
20228 else
20229   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20230 fi
20231 need_lib_prefix=unknown
20232 hardcode_into_libs=no
20233
20234 # when you set need_version to no, make sure it does not cause -set_version
20235 # flags to be left without arguments
20236 need_version=unknown
20237
20238 case $host_os in
20239 aix3*)
20240   version_type=linux
20241   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20242   shlibpath_var=LIBPATH
20243
20244   # AIX 3 has no versioning support, so we append a major version to the name.
20245   soname_spec='${libname}${release}${shared_ext}$major'
20246   ;;
20247
20248 aix4* | aix5*)
20249   version_type=linux
20250   need_lib_prefix=no
20251   need_version=no
20252   hardcode_into_libs=yes
20253   if test "$host_cpu" = ia64; then
20254     # AIX 5 supports IA64
20255     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20256     shlibpath_var=LD_LIBRARY_PATH
20257   else
20258     # With GCC up to 2.95.x, collect2 would create an import file
20259     # for dependence libraries.  The import file would start with
20260     # the line `#! .'.  This would cause the generated library to
20261     # depend on `.', always an invalid library.  This was fixed in
20262     # development snapshots of GCC prior to 3.0.
20263     case $host_os in
20264       aix4 | aix4.[01] | aix4.[01].*)
20265       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20266            echo ' yes '
20267            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20268         :
20269       else
20270         can_build_shared=no
20271       fi
20272       ;;
20273     esac
20274     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20275     # soname into executable. Probably we can add versioning support to
20276     # collect2, so additional links can be useful in future.
20277     if test "$aix_use_runtimelinking" = yes; then
20278       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20279       # instead of lib<name>.a to let people know that these are not
20280       # typical AIX shared libraries.
20281       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20282     else
20283       # We preserve .a as extension for shared libraries through AIX4.2
20284       # and later when we are not doing run time linking.
20285       library_names_spec='${libname}${release}.a $libname.a'
20286       soname_spec='${libname}${release}${shared_ext}$major'
20287     fi
20288     shlibpath_var=LIBPATH
20289   fi
20290   ;;
20291
20292 amigaos*)
20293   library_names_spec='$libname.ixlibrary $libname.a'
20294   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20295   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'
20296   ;;
20297
20298 beos*)
20299   library_names_spec='${libname}${shared_ext}'
20300   dynamic_linker="$host_os ld.so"
20301   shlibpath_var=LIBRARY_PATH
20302   ;;
20303
20304 bsdi[45]*)
20305   version_type=linux
20306   need_version=no
20307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20308   soname_spec='${libname}${release}${shared_ext}$major'
20309   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20310   shlibpath_var=LD_LIBRARY_PATH
20311   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20312   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20313   # the default ld.so.conf also contains /usr/contrib/lib and
20314   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20315   # libtool to hard-code these into programs
20316   ;;
20317
20318 cygwin* | mingw* | pw32*)
20319   version_type=windows
20320   shrext_cmds=".dll"
20321   need_version=no
20322   need_lib_prefix=no
20323
20324   case $GCC,$host_os in
20325   yes,cygwin* | yes,mingw* | yes,pw32*)
20326     library_names_spec='$libname.dll.a'
20327     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20328     postinstall_cmds='base_file=`basename \${file}`~
20329       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20330       dldir=$destdir/`dirname \$dlpath`~
20331       test -d \$dldir || mkdir -p \$dldir~
20332       $install_prog $dir/$dlname \$dldir/$dlname'
20333     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20334       dlpath=$dir/\$dldll~
20335        $rm \$dlpath'
20336     shlibpath_overrides_runpath=yes
20337
20338     case $host_os in
20339     cygwin*)
20340       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20341       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20342       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20343       ;;
20344     mingw*)
20345       # MinGW DLLs use traditional 'lib' prefix
20346       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20347       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20348       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20349         # It is most probably a Windows format PATH printed by
20350         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20351         # path with ; separators, and with drive letters. We can handle the
20352         # drive letters (cygwin fileutils understands them), so leave them,
20353         # especially as we might pass files found there to a mingw objdump,
20354         # which wouldn't understand a cygwinified path. Ahh.
20355         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20356       else
20357         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20358       fi
20359       ;;
20360     pw32*)
20361       # pw32 DLLs use 'pw' prefix rather than 'lib'
20362       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20363       ;;
20364     esac
20365     ;;
20366
20367   *)
20368     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20369     ;;
20370   esac
20371   dynamic_linker='Win32 ld.exe'
20372   # FIXME: first we should search . and the directory the executable is in
20373   shlibpath_var=PATH
20374   ;;
20375
20376 darwin* | rhapsody*)
20377   dynamic_linker="$host_os dyld"
20378   version_type=darwin
20379   need_lib_prefix=no
20380   need_version=no
20381   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20382   soname_spec='${libname}${release}${major}$shared_ext'
20383   shlibpath_overrides_runpath=yes
20384   shlibpath_var=DYLD_LIBRARY_PATH
20385   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20386   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20387   if test "$GCC" = yes; then
20388     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"`
20389   else
20390     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20391   fi
20392   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20393   ;;
20394
20395 dgux*)
20396   version_type=linux
20397   need_lib_prefix=no
20398   need_version=no
20399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20400   soname_spec='${libname}${release}${shared_ext}$major'
20401   shlibpath_var=LD_LIBRARY_PATH
20402   ;;
20403
20404 freebsd1*)
20405   dynamic_linker=no
20406   ;;
20407
20408 kfreebsd*-gnu)
20409   version_type=linux
20410   need_lib_prefix=no
20411   need_version=no
20412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20413   soname_spec='${libname}${release}${shared_ext}$major'
20414   shlibpath_var=LD_LIBRARY_PATH
20415   shlibpath_overrides_runpath=no
20416   hardcode_into_libs=yes
20417   dynamic_linker='GNU ld.so'
20418   ;;
20419
20420 freebsd*)
20421   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20422   version_type=freebsd-$objformat
20423   case $version_type in
20424     freebsd-elf*)
20425       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20426       need_version=no
20427       need_lib_prefix=no
20428       ;;
20429     freebsd-*)
20430       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20431       need_version=yes
20432       ;;
20433   esac
20434   shlibpath_var=LD_LIBRARY_PATH
20435   case $host_os in
20436   freebsd2*)
20437     shlibpath_overrides_runpath=yes
20438     ;;
20439   freebsd3.01* | freebsdelf3.01*)
20440     shlibpath_overrides_runpath=yes
20441     hardcode_into_libs=yes
20442     ;;
20443   *) # from 3.2 on
20444     shlibpath_overrides_runpath=no
20445     hardcode_into_libs=yes
20446     ;;
20447   esac
20448   ;;
20449
20450 gnu*)
20451   version_type=linux
20452   need_lib_prefix=no
20453   need_version=no
20454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20455   soname_spec='${libname}${release}${shared_ext}$major'
20456   shlibpath_var=LD_LIBRARY_PATH
20457   hardcode_into_libs=yes
20458   ;;
20459
20460 hpux9* | hpux10* | hpux11*)
20461   # Give a soname corresponding to the major version so that dld.sl refuses to
20462   # link against other versions.
20463   version_type=sunos
20464   need_lib_prefix=no
20465   need_version=no
20466   case "$host_cpu" in
20467   ia64*)
20468     shrext_cmds='.so'
20469     hardcode_into_libs=yes
20470     dynamic_linker="$host_os dld.so"
20471     shlibpath_var=LD_LIBRARY_PATH
20472     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20473     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20474     soname_spec='${libname}${release}${shared_ext}$major'
20475     if test "X$HPUX_IA64_MODE" = X32; then
20476       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20477     else
20478       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20479     fi
20480     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20481     ;;
20482    hppa*64*)
20483      shrext_cmds='.sl'
20484      hardcode_into_libs=yes
20485      dynamic_linker="$host_os dld.sl"
20486      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20487      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20488      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20489      soname_spec='${libname}${release}${shared_ext}$major'
20490      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20491      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20492      ;;
20493    *)
20494     shrext_cmds='.sl'
20495     dynamic_linker="$host_os dld.sl"
20496     shlibpath_var=SHLIB_PATH
20497     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20498     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20499     soname_spec='${libname}${release}${shared_ext}$major'
20500     ;;
20501   esac
20502   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20503   postinstall_cmds='chmod 555 $lib'
20504   ;;
20505
20506 irix5* | irix6* | nonstopux*)
20507   case $host_os in
20508     nonstopux*) version_type=nonstopux ;;
20509     *)
20510         if test "$lt_cv_prog_gnu_ld" = yes; then
20511                 version_type=linux
20512         else
20513                 version_type=irix
20514         fi ;;
20515   esac
20516   need_lib_prefix=no
20517   need_version=no
20518   soname_spec='${libname}${release}${shared_ext}$major'
20519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20520   case $host_os in
20521   irix5* | nonstopux*)
20522     libsuff= shlibsuff=
20523     ;;
20524   *)
20525     case $LD in # libtool.m4 will add one of these switches to LD
20526     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20527       libsuff= shlibsuff= libmagic=32-bit;;
20528     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20529       libsuff=32 shlibsuff=N32 libmagic=N32;;
20530     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20531       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20532     *) libsuff= shlibsuff= libmagic=never-match;;
20533     esac
20534     ;;
20535   esac
20536   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20537   shlibpath_overrides_runpath=no
20538   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20539   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20540   hardcode_into_libs=yes
20541   ;;
20542
20543 # No shared lib support for Linux oldld, aout, or coff.
20544 linux*oldld* | linux*aout* | linux*coff*)
20545   dynamic_linker=no
20546   ;;
20547
20548 # This must be Linux ELF.
20549 linux*)
20550   version_type=linux
20551   need_lib_prefix=no
20552   need_version=no
20553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20554   soname_spec='${libname}${release}${shared_ext}$major'
20555   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20556   shlibpath_var=LD_LIBRARY_PATH
20557   shlibpath_overrides_runpath=no
20558   # This implies no fast_install, which is unacceptable.
20559   # Some rework will be needed to allow for fast_install
20560   # before this can be enabled.
20561   hardcode_into_libs=yes
20562
20563   # Append ld.so.conf contents to the search path
20564   if test -f /etc/ld.so.conf; then
20565     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20566     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20567   fi
20568
20569   # We used to test for /lib/ld.so.1 and disable shared libraries on
20570   # powerpc, because MkLinux only supported shared libraries with the
20571   # GNU dynamic linker.  Since this was broken with cross compilers,
20572   # most powerpc-linux boxes support dynamic linking these days and
20573   # people can always --disable-shared, the test was removed, and we
20574   # assume the GNU/Linux dynamic linker is in use.
20575   dynamic_linker='GNU/Linux ld.so'
20576   ;;
20577
20578 knetbsd*-gnu)
20579   version_type=linux
20580   need_lib_prefix=no
20581   need_version=no
20582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20583   soname_spec='${libname}${release}${shared_ext}$major'
20584   shlibpath_var=LD_LIBRARY_PATH
20585   shlibpath_overrides_runpath=no
20586   hardcode_into_libs=yes
20587   dynamic_linker='GNU ld.so'
20588   ;;
20589
20590 netbsd*)
20591   version_type=sunos
20592   need_lib_prefix=no
20593   need_version=no
20594   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20595     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20596     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20597     dynamic_linker='NetBSD (a.out) ld.so'
20598   else
20599     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20600     soname_spec='${libname}${release}${shared_ext}$major'
20601     dynamic_linker='NetBSD ld.elf_so'
20602   fi
20603   shlibpath_var=LD_LIBRARY_PATH
20604   shlibpath_overrides_runpath=yes
20605   hardcode_into_libs=yes
20606   ;;
20607
20608 newsos6)
20609   version_type=linux
20610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20611   shlibpath_var=LD_LIBRARY_PATH
20612   shlibpath_overrides_runpath=yes
20613   ;;
20614
20615 nto-qnx*)
20616   version_type=linux
20617   need_lib_prefix=no
20618   need_version=no
20619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20620   soname_spec='${libname}${release}${shared_ext}$major'
20621   shlibpath_var=LD_LIBRARY_PATH
20622   shlibpath_overrides_runpath=yes
20623   ;;
20624
20625 openbsd*)
20626   version_type=sunos
20627   need_lib_prefix=no
20628   need_version=no
20629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20630   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20631   shlibpath_var=LD_LIBRARY_PATH
20632   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20633     case $host_os in
20634       openbsd2.[89] | openbsd2.[89].*)
20635         shlibpath_overrides_runpath=no
20636         ;;
20637       *)
20638         shlibpath_overrides_runpath=yes
20639         ;;
20640       esac
20641   else
20642     shlibpath_overrides_runpath=yes
20643   fi
20644   ;;
20645
20646 os2*)
20647   libname_spec='$name'
20648   shrext_cmds=".dll"
20649   need_lib_prefix=no
20650   library_names_spec='$libname${shared_ext} $libname.a'
20651   dynamic_linker='OS/2 ld.exe'
20652   shlibpath_var=LIBPATH
20653   ;;
20654
20655 osf3* | osf4* | osf5*)
20656   version_type=osf
20657   need_lib_prefix=no
20658   need_version=no
20659   soname_spec='${libname}${release}${shared_ext}$major'
20660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20661   shlibpath_var=LD_LIBRARY_PATH
20662   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20663   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20664   ;;
20665
20666 sco3.2v5*)
20667   version_type=osf
20668   soname_spec='${libname}${release}${shared_ext}$major'
20669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20670   shlibpath_var=LD_LIBRARY_PATH
20671   ;;
20672
20673 solaris*)
20674   version_type=linux
20675   need_lib_prefix=no
20676   need_version=no
20677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20678   soname_spec='${libname}${release}${shared_ext}$major'
20679   shlibpath_var=LD_LIBRARY_PATH
20680   shlibpath_overrides_runpath=yes
20681   hardcode_into_libs=yes
20682   # ldd complains unless libraries are executable
20683   postinstall_cmds='chmod +x $lib'
20684   ;;
20685
20686 sunos4*)
20687   version_type=sunos
20688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20689   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20690   shlibpath_var=LD_LIBRARY_PATH
20691   shlibpath_overrides_runpath=yes
20692   if test "$with_gnu_ld" = yes; then
20693     need_lib_prefix=no
20694   fi
20695   need_version=yes
20696   ;;
20697
20698 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20699   version_type=linux
20700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20701   soname_spec='${libname}${release}${shared_ext}$major'
20702   shlibpath_var=LD_LIBRARY_PATH
20703   case $host_vendor in
20704     sni)
20705       shlibpath_overrides_runpath=no
20706       need_lib_prefix=no
20707       export_dynamic_flag_spec='${wl}-Blargedynsym'
20708       runpath_var=LD_RUN_PATH
20709       ;;
20710     siemens)
20711       need_lib_prefix=no
20712       ;;
20713     motorola)
20714       need_lib_prefix=no
20715       need_version=no
20716       shlibpath_overrides_runpath=no
20717       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20718       ;;
20719   esac
20720   ;;
20721
20722 sysv4*MP*)
20723   if test -d /usr/nec ;then
20724     version_type=linux
20725     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20726     soname_spec='$libname${shared_ext}.$major'
20727     shlibpath_var=LD_LIBRARY_PATH
20728   fi
20729   ;;
20730
20731 uts4*)
20732   version_type=linux
20733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20734   soname_spec='${libname}${release}${shared_ext}$major'
20735   shlibpath_var=LD_LIBRARY_PATH
20736   ;;
20737
20738 *)
20739   dynamic_linker=no
20740   ;;
20741 esac
20742 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20743 echo "${ECHO_T}$dynamic_linker" >&6
20744 test "$dynamic_linker" = no && can_build_shared=no
20745
20746 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20747 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20748 hardcode_action_F77=
20749 if test -n "$hardcode_libdir_flag_spec_F77" || \
20750    test -n "$runpath_var_F77" || \
20751    test "X$hardcode_automatic_F77" = "Xyes" ; then
20752
20753   # We can hardcode non-existant directories.
20754   if test "$hardcode_direct_F77" != no &&
20755      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20756      # have to relink, otherwise we might link with an installed library
20757      # when we should be linking with a yet-to-be-installed one
20758      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20759      test "$hardcode_minus_L_F77" != no; then
20760     # Linking always hardcodes the temporary library directory.
20761     hardcode_action_F77=relink
20762   else
20763     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20764     hardcode_action_F77=immediate
20765   fi
20766 else
20767   # We cannot hardcode anything, or else we can only hardcode existing
20768   # directories.
20769   hardcode_action_F77=unsupported
20770 fi
20771 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20772 echo "${ECHO_T}$hardcode_action_F77" >&6
20773
20774 if test "$hardcode_action_F77" = relink; then
20775   # Fast installation is not supported
20776   enable_fast_install=no
20777 elif test "$shlibpath_overrides_runpath" = yes ||
20778      test "$enable_shared" = no; then
20779   # Fast installation is not necessary
20780   enable_fast_install=needless
20781 fi
20782
20783 striplib=
20784 old_striplib=
20785 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20786 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20787 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20788   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20789   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20790   echo "$as_me:$LINENO: result: yes" >&5
20791 echo "${ECHO_T}yes" >&6
20792 else
20793 # FIXME - insert some real tests, host_os isn't really good enough
20794   case $host_os in
20795    darwin*)
20796        if test -n "$STRIP" ; then
20797          striplib="$STRIP -x"
20798          echo "$as_me:$LINENO: result: yes" >&5
20799 echo "${ECHO_T}yes" >&6
20800        else
20801   echo "$as_me:$LINENO: result: no" >&5
20802 echo "${ECHO_T}no" >&6
20803 fi
20804        ;;
20805    *)
20806   echo "$as_me:$LINENO: result: no" >&5
20807 echo "${ECHO_T}no" >&6
20808     ;;
20809   esac
20810 fi
20811
20812
20813
20814 # The else clause should only fire when bootstrapping the
20815 # libtool distribution, otherwise you forgot to ship ltmain.sh
20816 # with your package, and you will get complaints that there are
20817 # no rules to generate ltmain.sh.
20818 if test -f "$ltmain"; then
20819   # See if we are running on zsh, and set the options which allow our commands through
20820   # without removal of \ escapes.
20821   if test -n "${ZSH_VERSION+set}" ; then
20822     setopt NO_GLOB_SUBST
20823   fi
20824   # Now quote all the things that may contain metacharacters while being
20825   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20826   # variables and quote the copies for generation of the libtool script.
20827   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20828     SED SHELL STRIP \
20829     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20830     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20831     deplibs_check_method reload_flag reload_cmds need_locks \
20832     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20833     lt_cv_sys_global_symbol_to_c_name_address \
20834     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20835     old_postinstall_cmds old_postuninstall_cmds \
20836     compiler_F77 \
20837     CC_F77 \
20838     LD_F77 \
20839     lt_prog_compiler_wl_F77 \
20840     lt_prog_compiler_pic_F77 \
20841     lt_prog_compiler_static_F77 \
20842     lt_prog_compiler_no_builtin_flag_F77 \
20843     export_dynamic_flag_spec_F77 \
20844     thread_safe_flag_spec_F77 \
20845     whole_archive_flag_spec_F77 \
20846     enable_shared_with_static_runtimes_F77 \
20847     old_archive_cmds_F77 \
20848     old_archive_from_new_cmds_F77 \
20849     predep_objects_F77 \
20850     postdep_objects_F77 \
20851     predeps_F77 \
20852     postdeps_F77 \
20853     compiler_lib_search_path_F77 \
20854     archive_cmds_F77 \
20855     archive_expsym_cmds_F77 \
20856     postinstall_cmds_F77 \
20857     postuninstall_cmds_F77 \
20858     old_archive_from_expsyms_cmds_F77 \
20859     allow_undefined_flag_F77 \
20860     no_undefined_flag_F77 \
20861     export_symbols_cmds_F77 \
20862     hardcode_libdir_flag_spec_F77 \
20863     hardcode_libdir_flag_spec_ld_F77 \
20864     hardcode_libdir_separator_F77 \
20865     hardcode_automatic_F77 \
20866     module_cmds_F77 \
20867     module_expsym_cmds_F77 \
20868     lt_cv_prog_compiler_c_o_F77 \
20869     exclude_expsyms_F77 \
20870     include_expsyms_F77; do
20871
20872     case $var in
20873     old_archive_cmds_F77 | \
20874     old_archive_from_new_cmds_F77 | \
20875     archive_cmds_F77 | \
20876     archive_expsym_cmds_F77 | \
20877     module_cmds_F77 | \
20878     module_expsym_cmds_F77 | \
20879     old_archive_from_expsyms_cmds_F77 | \
20880     export_symbols_cmds_F77 | \
20881     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20882     postinstall_cmds | postuninstall_cmds | \
20883     old_postinstall_cmds | old_postuninstall_cmds | \
20884     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20885       # Double-quote double-evaled strings.
20886       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20887       ;;
20888     *)
20889       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20890       ;;
20891     esac
20892   done
20893
20894   case $lt_echo in
20895   *'\$0 --fallback-echo"')
20896     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20897     ;;
20898   esac
20899
20900 cfgfile="$ofile"
20901
20902   cat <<__EOF__ >> "$cfgfile"
20903 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20904
20905 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20906
20907 # Shell to use when invoking shell scripts.
20908 SHELL=$lt_SHELL
20909
20910 # Whether or not to build shared libraries.
20911 build_libtool_libs=$enable_shared
20912
20913 # Whether or not to build static libraries.
20914 build_old_libs=$enable_static
20915
20916 # Whether or not to add -lc for building shared libraries.
20917 build_libtool_need_lc=$archive_cmds_need_lc_F77
20918
20919 # Whether or not to disallow shared libs when runtime libs are static
20920 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20921
20922 # Whether or not to optimize for fast installation.
20923 fast_install=$enable_fast_install
20924
20925 # The host system.
20926 host_alias=$host_alias
20927 host=$host
20928
20929 # An echo program that does not interpret backslashes.
20930 echo=$lt_echo
20931
20932 # The archiver.
20933 AR=$lt_AR
20934 AR_FLAGS=$lt_AR_FLAGS
20935
20936 # A C compiler.
20937 LTCC=$lt_LTCC
20938
20939 # A language-specific compiler.
20940 CC=$lt_compiler_F77
20941
20942 # Is the compiler the GNU C compiler?
20943 with_gcc=$GCC_F77
20944
20945 # An ERE matcher.
20946 EGREP=$lt_EGREP
20947
20948 # The linker used to build libraries.
20949 LD=$lt_LD_F77
20950
20951 # Whether we need hard or soft links.
20952 LN_S=$lt_LN_S
20953
20954 # A BSD-compatible nm program.
20955 NM=$lt_NM
20956
20957 # A symbol stripping program
20958 STRIP=$lt_STRIP
20959
20960 # Used to examine libraries when file_magic_cmd begins "file"
20961 MAGIC_CMD=$MAGIC_CMD
20962
20963 # Used on cygwin: DLL creation program.
20964 DLLTOOL="$DLLTOOL"
20965
20966 # Used on cygwin: object dumper.
20967 OBJDUMP="$OBJDUMP"
20968
20969 # Used on cygwin: assembler.
20970 AS="$AS"
20971
20972 # The name of the directory that contains temporary libtool files.
20973 objdir=$objdir
20974
20975 # How to create reloadable object files.
20976 reload_flag=$lt_reload_flag
20977 reload_cmds=$lt_reload_cmds
20978
20979 # How to pass a linker flag through the compiler.
20980 wl=$lt_lt_prog_compiler_wl_F77
20981
20982 # Object file suffix (normally "o").
20983 objext="$ac_objext"
20984
20985 # Old archive suffix (normally "a").
20986 libext="$libext"
20987
20988 # Shared library suffix (normally ".so").
20989 shrext_cmds='$shrext_cmds'
20990
20991 # Executable file suffix (normally "").
20992 exeext="$exeext"
20993
20994 # Additional compiler flags for building library objects.
20995 pic_flag=$lt_lt_prog_compiler_pic_F77
20996 pic_mode=$pic_mode
20997
20998 # What is the maximum length of a command?
20999 max_cmd_len=$lt_cv_sys_max_cmd_len
21000
21001 # Does compiler simultaneously support -c and -o options?
21002 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21003
21004 # Must we lock files when doing compilation ?
21005 need_locks=$lt_need_locks
21006
21007 # Do we need the lib prefix for modules?
21008 need_lib_prefix=$need_lib_prefix
21009
21010 # Do we need a version for libraries?
21011 need_version=$need_version
21012
21013 # Whether dlopen is supported.
21014 dlopen_support=$enable_dlopen
21015
21016 # Whether dlopen of programs is supported.
21017 dlopen_self=$enable_dlopen_self
21018
21019 # Whether dlopen of statically linked programs is supported.
21020 dlopen_self_static=$enable_dlopen_self_static
21021
21022 # Compiler flag to prevent dynamic linking.
21023 link_static_flag=$lt_lt_prog_compiler_static_F77
21024
21025 # Compiler flag to turn off builtin functions.
21026 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21027
21028 # Compiler flag to allow reflexive dlopens.
21029 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21030
21031 # Compiler flag to generate shared objects directly from archives.
21032 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21033
21034 # Compiler flag to generate thread-safe objects.
21035 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21036
21037 # Library versioning type.
21038 version_type=$version_type
21039
21040 # Format of library name prefix.
21041 libname_spec=$lt_libname_spec
21042
21043 # List of archive names.  First name is the real one, the rest are links.
21044 # The last name is the one that the linker finds with -lNAME.
21045 library_names_spec=$lt_library_names_spec
21046
21047 # The coded name of the library, if different from the real name.
21048 soname_spec=$lt_soname_spec
21049
21050 # Commands used to build and install an old-style archive.
21051 RANLIB=$lt_RANLIB
21052 old_archive_cmds=$lt_old_archive_cmds_F77
21053 old_postinstall_cmds=$lt_old_postinstall_cmds
21054 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21055
21056 # Create an old-style archive from a shared archive.
21057 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21058
21059 # Create a temporary old-style archive to link instead of a shared archive.
21060 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21061
21062 # Commands used to build and install a shared archive.
21063 archive_cmds=$lt_archive_cmds_F77
21064 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21065 postinstall_cmds=$lt_postinstall_cmds
21066 postuninstall_cmds=$lt_postuninstall_cmds
21067
21068 # Commands used to build a loadable module (assumed same as above if empty)
21069 module_cmds=$lt_module_cmds_F77
21070 module_expsym_cmds=$lt_module_expsym_cmds_F77
21071
21072 # Commands to strip libraries.
21073 old_striplib=$lt_old_striplib
21074 striplib=$lt_striplib
21075
21076 # Dependencies to place before the objects being linked to create a
21077 # shared library.
21078 predep_objects=$lt_predep_objects_F77
21079
21080 # Dependencies to place after the objects being linked to create a
21081 # shared library.
21082 postdep_objects=$lt_postdep_objects_F77
21083
21084 # Dependencies to place before the objects being linked to create a
21085 # shared library.
21086 predeps=$lt_predeps_F77
21087
21088 # Dependencies to place after the objects being linked to create a
21089 # shared library.
21090 postdeps=$lt_postdeps_F77
21091
21092 # The library search path used internally by the compiler when linking
21093 # a shared library.
21094 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21095
21096 # Method to check whether dependent libraries are shared objects.
21097 deplibs_check_method=$lt_deplibs_check_method
21098
21099 # Command to use when deplibs_check_method == file_magic.
21100 file_magic_cmd=$lt_file_magic_cmd
21101
21102 # Flag that allows shared libraries with undefined symbols to be built.
21103 allow_undefined_flag=$lt_allow_undefined_flag_F77
21104
21105 # Flag that forces no undefined symbols.
21106 no_undefined_flag=$lt_no_undefined_flag_F77
21107
21108 # Commands used to finish a libtool library installation in a directory.
21109 finish_cmds=$lt_finish_cmds
21110
21111 # Same as above, but a single script fragment to be evaled but not shown.
21112 finish_eval=$lt_finish_eval
21113
21114 # Take the output of nm and produce a listing of raw symbols and C names.
21115 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21116
21117 # Transform the output of nm in a proper C declaration
21118 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21119
21120 # Transform the output of nm in a C name address pair
21121 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21122
21123 # This is the shared library runtime path variable.
21124 runpath_var=$runpath_var
21125
21126 # This is the shared library path variable.
21127 shlibpath_var=$shlibpath_var
21128
21129 # Is shlibpath searched before the hard-coded library search path?
21130 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21131
21132 # How to hardcode a shared library path into an executable.
21133 hardcode_action=$hardcode_action_F77
21134
21135 # Whether we should hardcode library paths into libraries.
21136 hardcode_into_libs=$hardcode_into_libs
21137
21138 # Flag to hardcode \$libdir into a binary during linking.
21139 # This must work even if \$libdir does not exist.
21140 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21141
21142 # If ld is used when linking, flag to hardcode \$libdir into
21143 # a binary during linking. This must work even if \$libdir does
21144 # not exist.
21145 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21146
21147 # Whether we need a single -rpath flag with a separated argument.
21148 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21149
21150 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21151 # resulting binary.
21152 hardcode_direct=$hardcode_direct_F77
21153
21154 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21155 # resulting binary.
21156 hardcode_minus_L=$hardcode_minus_L_F77
21157
21158 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21159 # the resulting binary.
21160 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21161
21162 # Set to yes if building a shared library automatically hardcodes DIR into the library
21163 # and all subsequent libraries and executables linked against it.
21164 hardcode_automatic=$hardcode_automatic_F77
21165
21166 # Variables whose values should be saved in libtool wrapper scripts and
21167 # restored at relink time.
21168 variables_saved_for_relink="$variables_saved_for_relink"
21169
21170 # Whether libtool must link a program against all its dependency libraries.
21171 link_all_deplibs=$link_all_deplibs_F77
21172
21173 # Compile-time system search path for libraries
21174 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21175
21176 # Run-time system search path for libraries
21177 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21178
21179 # Fix the shell variable \$srcfile for the compiler.
21180 fix_srcfile_path="$fix_srcfile_path_F77"
21181
21182 # Set to yes if exported symbols are required.
21183 always_export_symbols=$always_export_symbols_F77
21184
21185 # The commands to list exported symbols.
21186 export_symbols_cmds=$lt_export_symbols_cmds_F77
21187
21188 # The commands to extract the exported symbol list from a shared archive.
21189 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21190
21191 # Symbols that should not be listed in the preloaded symbols.
21192 exclude_expsyms=$lt_exclude_expsyms_F77
21193
21194 # Symbols that must always be exported.
21195 include_expsyms=$lt_include_expsyms_F77
21196
21197 # ### END LIBTOOL TAG CONFIG: $tagname
21198
21199 __EOF__
21200
21201
21202 else
21203   # If there is no Makefile yet, we rely on a make rule to execute
21204   # `config.status --recheck' to rerun these tests and create the
21205   # libtool script then.
21206   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21207   if test -f "$ltmain_in"; then
21208     test -f Makefile && make "$ltmain"
21209   fi
21210 fi
21211
21212
21213 ac_ext=c
21214 ac_cpp='$CPP $CPPFLAGS'
21215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21218
21219 CC="$lt_save_CC"
21220
21221         else
21222           tagname=""
21223         fi
21224         ;;
21225
21226       GCJ)
21227         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21228           ac_ext=c
21229 ac_cpp='$CPP $CPPFLAGS'
21230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21233
21234
21235 # Source file extension for Java test sources.
21236 ac_ext=java
21237
21238 # Object file extension for compiled Java test sources.
21239 objext=o
21240 objext_GCJ=$objext
21241
21242 # Code to be used in simple compile tests
21243 lt_simple_compile_test_code="class foo {}\n"
21244
21245 # Code to be used in simple link tests
21246 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21247
21248 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21249
21250 # If no C compiler was specified, use CC.
21251 LTCC=${LTCC-"$CC"}
21252
21253 # Allow CC to be a program name with arguments.
21254 compiler=$CC
21255
21256
21257 # Allow CC to be a program name with arguments.
21258 lt_save_CC="$CC"
21259 CC=${GCJ-"gcj"}
21260 compiler=$CC
21261 compiler_GCJ=$CC
21262
21263 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21264 archive_cmds_need_lc_GCJ=no
21265
21266
21267 lt_prog_compiler_no_builtin_flag_GCJ=
21268
21269 if test "$GCC" = yes; then
21270   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21271
21272
21273 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21274 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21275 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21276   echo $ECHO_N "(cached) $ECHO_C" >&6
21277 else
21278   lt_cv_prog_compiler_rtti_exceptions=no
21279   ac_outfile=conftest.$ac_objext
21280    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21281    lt_compiler_flag="-fno-rtti -fno-exceptions"
21282    # Insert the option either (1) after the last *FLAGS variable, or
21283    # (2) before a word containing "conftest.", or (3) at the end.
21284    # Note that $ac_compile itself does not contain backslashes and begins
21285    # with a dollar sign (not a hyphen), so the echo should work correctly.
21286    # The option is referenced via a variable to avoid confusing sed.
21287    lt_compile=`echo "$ac_compile" | $SED \
21288    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21289    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21290    -e 's:$: $lt_compiler_flag:'`
21291    (eval echo "\"\$as_me:21291: $lt_compile\"" >&5)
21292    (eval "$lt_compile" 2>conftest.err)
21293    ac_status=$?
21294    cat conftest.err >&5
21295    echo "$as_me:21295: \$? = $ac_status" >&5
21296    if (exit $ac_status) && test -s "$ac_outfile"; then
21297      # The compiler can only warn and ignore the option if not recognized
21298      # So say no if there are warnings
21299      if test ! -s conftest.err; then
21300        lt_cv_prog_compiler_rtti_exceptions=yes
21301      fi
21302    fi
21303    $rm conftest*
21304
21305 fi
21306 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21307 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21308
21309 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21310     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21311 else
21312     :
21313 fi
21314
21315 fi
21316
21317 lt_prog_compiler_wl_GCJ=
21318 lt_prog_compiler_pic_GCJ=
21319 lt_prog_compiler_static_GCJ=
21320
21321 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21322 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21323
21324   if test "$GCC" = yes; then
21325     lt_prog_compiler_wl_GCJ='-Wl,'
21326     lt_prog_compiler_static_GCJ='-static'
21327
21328     case $host_os in
21329       aix*)
21330       # All AIX code is PIC.
21331       if test "$host_cpu" = ia64; then
21332         # AIX 5 now supports IA64 processor
21333         lt_prog_compiler_static_GCJ='-Bstatic'
21334       fi
21335       ;;
21336
21337     amigaos*)
21338       # FIXME: we need at least 68020 code to build shared libraries, but
21339       # adding the `-m68020' flag to GCC prevents building anything better,
21340       # like `-m68040'.
21341       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21342       ;;
21343
21344     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21345       # PIC is the default for these OSes.
21346       ;;
21347
21348     mingw* | pw32* | os2*)
21349       # This hack is so that the source file can tell whether it is being
21350       # built for inclusion in a dll (and should export symbols for example).
21351       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21352       ;;
21353
21354     darwin* | rhapsody*)
21355       # PIC is the default on this platform
21356       # Common symbols not allowed in MH_DYLIB files
21357       lt_prog_compiler_pic_GCJ='-fno-common'
21358       ;;
21359
21360     msdosdjgpp*)
21361       # Just because we use GCC doesn't mean we suddenly get shared libraries
21362       # on systems that don't support them.
21363       lt_prog_compiler_can_build_shared_GCJ=no
21364       enable_shared=no
21365       ;;
21366
21367     sysv4*MP*)
21368       if test -d /usr/nec; then
21369         lt_prog_compiler_pic_GCJ=-Kconform_pic
21370       fi
21371       ;;
21372
21373     hpux*)
21374       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21375       # not for PA HP-UX.
21376       case "$host_cpu" in
21377       hppa*64*|ia64*)
21378         # +Z the default
21379         ;;
21380       *)
21381         lt_prog_compiler_pic_GCJ='-fPIC'
21382         ;;
21383       esac
21384       ;;
21385
21386     *)
21387       lt_prog_compiler_pic_GCJ='-fPIC'
21388       ;;
21389     esac
21390   else
21391     # PORTME Check for flag to pass linker flags through the system compiler.
21392     case $host_os in
21393     aix*)
21394       lt_prog_compiler_wl_GCJ='-Wl,'
21395       if test "$host_cpu" = ia64; then
21396         # AIX 5 now supports IA64 processor
21397         lt_prog_compiler_static_GCJ='-Bstatic'
21398       else
21399         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21400       fi
21401       ;;
21402       darwin*)
21403         # PIC is the default on this platform
21404         # Common symbols not allowed in MH_DYLIB files
21405        case "$cc_basename" in
21406          xlc*)
21407          lt_prog_compiler_pic_GCJ='-qnocommon'
21408          lt_prog_compiler_wl_GCJ='-Wl,'
21409          ;;
21410        esac
21411        ;;
21412
21413     mingw* | pw32* | os2*)
21414       # This hack is so that the source file can tell whether it is being
21415       # built for inclusion in a dll (and should export symbols for example).
21416       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21417       ;;
21418
21419     hpux9* | hpux10* | hpux11*)
21420       lt_prog_compiler_wl_GCJ='-Wl,'
21421       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21422       # not for PA HP-UX.
21423       case "$host_cpu" in
21424       hppa*64*|ia64*)
21425         # +Z the default
21426         ;;
21427       *)
21428         lt_prog_compiler_pic_GCJ='+Z'
21429         ;;
21430       esac
21431       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21432       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21433       ;;
21434
21435     irix5* | irix6* | nonstopux*)
21436       lt_prog_compiler_wl_GCJ='-Wl,'
21437       # PIC (with -KPIC) is the default.
21438       lt_prog_compiler_static_GCJ='-non_shared'
21439       ;;
21440
21441     newsos6)
21442       lt_prog_compiler_pic_GCJ='-KPIC'
21443       lt_prog_compiler_static_GCJ='-Bstatic'
21444       ;;
21445
21446     linux*)
21447       case $CC in
21448       icc* | ecc*)
21449         lt_prog_compiler_wl_GCJ='-Wl,'
21450         lt_prog_compiler_pic_GCJ='-KPIC'
21451         lt_prog_compiler_static_GCJ='-static'
21452         ;;
21453       ccc*)
21454         lt_prog_compiler_wl_GCJ='-Wl,'
21455         # All Alpha code is PIC.
21456         lt_prog_compiler_static_GCJ='-non_shared'
21457         ;;
21458       esac
21459       ;;
21460
21461     osf3* | osf4* | osf5*)
21462       lt_prog_compiler_wl_GCJ='-Wl,'
21463       # All OSF/1 code is PIC.
21464       lt_prog_compiler_static_GCJ='-non_shared'
21465       ;;
21466
21467     sco3.2v5*)
21468       lt_prog_compiler_pic_GCJ='-Kpic'
21469       lt_prog_compiler_static_GCJ='-dn'
21470       ;;
21471
21472     solaris*)
21473       lt_prog_compiler_wl_GCJ='-Wl,'
21474       lt_prog_compiler_pic_GCJ='-KPIC'
21475       lt_prog_compiler_static_GCJ='-Bstatic'
21476       ;;
21477
21478     sunos4*)
21479       lt_prog_compiler_wl_GCJ='-Qoption ld '
21480       lt_prog_compiler_pic_GCJ='-PIC'
21481       lt_prog_compiler_static_GCJ='-Bstatic'
21482       ;;
21483
21484     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21485       lt_prog_compiler_wl_GCJ='-Wl,'
21486       lt_prog_compiler_pic_GCJ='-KPIC'
21487       lt_prog_compiler_static_GCJ='-Bstatic'
21488       ;;
21489
21490     sysv4*MP*)
21491       if test -d /usr/nec ;then
21492         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21493         lt_prog_compiler_static_GCJ='-Bstatic'
21494       fi
21495       ;;
21496
21497     uts4*)
21498       lt_prog_compiler_pic_GCJ='-pic'
21499       lt_prog_compiler_static_GCJ='-Bstatic'
21500       ;;
21501
21502     *)
21503       lt_prog_compiler_can_build_shared_GCJ=no
21504       ;;
21505     esac
21506   fi
21507
21508 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21509 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21510
21511 #
21512 # Check to make sure the PIC flag actually works.
21513 #
21514 if test -n "$lt_prog_compiler_pic_GCJ"; then
21515
21516 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21517 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21518 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21519   echo $ECHO_N "(cached) $ECHO_C" >&6
21520 else
21521   lt_prog_compiler_pic_works_GCJ=no
21522   ac_outfile=conftest.$ac_objext
21523    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21524    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21525    # Insert the option either (1) after the last *FLAGS variable, or
21526    # (2) before a word containing "conftest.", or (3) at the end.
21527    # Note that $ac_compile itself does not contain backslashes and begins
21528    # with a dollar sign (not a hyphen), so the echo should work correctly.
21529    # The option is referenced via a variable to avoid confusing sed.
21530    lt_compile=`echo "$ac_compile" | $SED \
21531    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21532    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21533    -e 's:$: $lt_compiler_flag:'`
21534    (eval echo "\"\$as_me:21534: $lt_compile\"" >&5)
21535    (eval "$lt_compile" 2>conftest.err)
21536    ac_status=$?
21537    cat conftest.err >&5
21538    echo "$as_me:21538: \$? = $ac_status" >&5
21539    if (exit $ac_status) && test -s "$ac_outfile"; then
21540      # The compiler can only warn and ignore the option if not recognized
21541      # So say no if there are warnings
21542      if test ! -s conftest.err; then
21543        lt_prog_compiler_pic_works_GCJ=yes
21544      fi
21545    fi
21546    $rm conftest*
21547
21548 fi
21549 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21550 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21551
21552 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21553     case $lt_prog_compiler_pic_GCJ in
21554      "" | " "*) ;;
21555      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21556      esac
21557 else
21558     lt_prog_compiler_pic_GCJ=
21559      lt_prog_compiler_can_build_shared_GCJ=no
21560 fi
21561
21562 fi
21563 case "$host_os" in
21564   # For platforms which do not support PIC, -DPIC is meaningless:
21565   *djgpp*)
21566     lt_prog_compiler_pic_GCJ=
21567     ;;
21568   *)
21569     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21570     ;;
21571 esac
21572
21573 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21574 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21575 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21576   echo $ECHO_N "(cached) $ECHO_C" >&6
21577 else
21578   lt_cv_prog_compiler_c_o_GCJ=no
21579    $rm -r conftest 2>/dev/null
21580    mkdir conftest
21581    cd conftest
21582    mkdir out
21583    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21584
21585    lt_compiler_flag="-o out/conftest2.$ac_objext"
21586    # Insert the option either (1) after the last *FLAGS variable, or
21587    # (2) before a word containing "conftest.", or (3) at the end.
21588    # Note that $ac_compile itself does not contain backslashes and begins
21589    # with a dollar sign (not a hyphen), so the echo should work correctly.
21590    lt_compile=`echo "$ac_compile" | $SED \
21591    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21592    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21593    -e 's:$: $lt_compiler_flag:'`
21594    (eval echo "\"\$as_me:21594: $lt_compile\"" >&5)
21595    (eval "$lt_compile" 2>out/conftest.err)
21596    ac_status=$?
21597    cat out/conftest.err >&5
21598    echo "$as_me:21598: \$? = $ac_status" >&5
21599    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21600    then
21601      # The compiler can only warn and ignore the option if not recognized
21602      # So say no if there are warnings
21603      if test ! -s out/conftest.err; then
21604        lt_cv_prog_compiler_c_o_GCJ=yes
21605      fi
21606    fi
21607    chmod u+w .
21608    $rm conftest*
21609    # SGI C++ compiler will create directory out/ii_files/ for
21610    # template instantiation
21611    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21612    $rm out/* && rmdir out
21613    cd ..
21614    rmdir conftest
21615    $rm conftest*
21616
21617 fi
21618 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21619 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21620
21621
21622 hard_links="nottested"
21623 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21624   # do not overwrite the value of need_locks provided by the user
21625   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21626 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21627   hard_links=yes
21628   $rm conftest*
21629   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21630   touch conftest.a
21631   ln conftest.a conftest.b 2>&5 || hard_links=no
21632   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21633   echo "$as_me:$LINENO: result: $hard_links" >&5
21634 echo "${ECHO_T}$hard_links" >&6
21635   if test "$hard_links" = no; then
21636     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21637 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21638     need_locks=warn
21639   fi
21640 else
21641   need_locks=no
21642 fi
21643
21644 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21645 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21646
21647   runpath_var=
21648   allow_undefined_flag_GCJ=
21649   enable_shared_with_static_runtimes_GCJ=no
21650   archive_cmds_GCJ=
21651   archive_expsym_cmds_GCJ=
21652   old_archive_From_new_cmds_GCJ=
21653   old_archive_from_expsyms_cmds_GCJ=
21654   export_dynamic_flag_spec_GCJ=
21655   whole_archive_flag_spec_GCJ=
21656   thread_safe_flag_spec_GCJ=
21657   hardcode_libdir_flag_spec_GCJ=
21658   hardcode_libdir_flag_spec_ld_GCJ=
21659   hardcode_libdir_separator_GCJ=
21660   hardcode_direct_GCJ=no
21661   hardcode_minus_L_GCJ=no
21662   hardcode_shlibpath_var_GCJ=unsupported
21663   link_all_deplibs_GCJ=unknown
21664   hardcode_automatic_GCJ=no
21665   module_cmds_GCJ=
21666   module_expsym_cmds_GCJ=
21667   always_export_symbols_GCJ=no
21668   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21669   # include_expsyms should be a list of space-separated symbols to be *always*
21670   # included in the symbol list
21671   include_expsyms_GCJ=
21672   # exclude_expsyms can be an extended regexp of symbols to exclude
21673   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21674   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21675   # as well as any symbol that contains `d'.
21676   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21677   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21678   # platforms (ab)use it in PIC code, but their linkers get confused if
21679   # the symbol is explicitly referenced.  Since portable code cannot
21680   # rely on this symbol name, it's probably fine to never include it in
21681   # preloaded symbol tables.
21682   extract_expsyms_cmds=
21683
21684   case $host_os in
21685   cygwin* | mingw* | pw32*)
21686     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21687     # When not using gcc, we currently assume that we are using
21688     # Microsoft Visual C++.
21689     if test "$GCC" != yes; then
21690       with_gnu_ld=no
21691     fi
21692     ;;
21693   openbsd*)
21694     with_gnu_ld=no
21695     ;;
21696   esac
21697
21698   ld_shlibs_GCJ=yes
21699   if test "$with_gnu_ld" = yes; then
21700     # If archive_cmds runs LD, not CC, wlarc should be empty
21701     wlarc='${wl}'
21702
21703     # See if GNU ld supports shared libraries.
21704     case $host_os in
21705     aix3* | aix4* | aix5*)
21706       # On AIX/PPC, the GNU linker is very broken
21707       if test "$host_cpu" != ia64; then
21708         ld_shlibs_GCJ=no
21709         cat <<EOF 1>&2
21710
21711 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21712 *** to be unable to reliably create shared libraries on AIX.
21713 *** Therefore, libtool is disabling shared libraries support.  If you
21714 *** really care for shared libraries, you may want to modify your PATH
21715 *** so that a non-GNU linker is found, and then restart.
21716
21717 EOF
21718       fi
21719       ;;
21720
21721     amigaos*)
21722       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)'
21723       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21724       hardcode_minus_L_GCJ=yes
21725
21726       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21727       # that the semantics of dynamic libraries on AmigaOS, at least up
21728       # to version 4, is to share data among multiple programs linked
21729       # with the same dynamic library.  Since this doesn't match the
21730       # behavior of shared libraries on other platforms, we can't use
21731       # them.
21732       ld_shlibs_GCJ=no
21733       ;;
21734
21735     beos*)
21736       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21737         allow_undefined_flag_GCJ=unsupported
21738         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21739         # support --undefined.  This deserves some investigation.  FIXME
21740         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21741       else
21742         ld_shlibs_GCJ=no
21743       fi
21744       ;;
21745
21746     cygwin* | mingw* | pw32*)
21747       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21748       # as there is no search path for DLLs.
21749       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21750       allow_undefined_flag_GCJ=unsupported
21751       always_export_symbols_GCJ=no
21752       enable_shared_with_static_runtimes_GCJ=yes
21753       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21754
21755       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21756         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21757         # If the export-symbols file already is a .def file (1st line
21758         # is EXPORTS), use it as is; otherwise, prepend...
21759         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21760           cp $export_symbols $output_objdir/$soname.def;
21761         else
21762           echo EXPORTS > $output_objdir/$soname.def;
21763           cat $export_symbols >> $output_objdir/$soname.def;
21764         fi~
21765         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21766       else
21767         ld_shlibs=no
21768       fi
21769       ;;
21770
21771     netbsd*)
21772       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21773         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21774         wlarc=
21775       else
21776         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21777         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21778       fi
21779       ;;
21780
21781     solaris* | sysv5*)
21782       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21783         ld_shlibs_GCJ=no
21784         cat <<EOF 1>&2
21785
21786 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21787 *** create shared libraries on Solaris systems.  Therefore, libtool
21788 *** is disabling shared libraries support.  We urge you to upgrade GNU
21789 *** binutils to release 2.9.1 or newer.  Another option is to modify
21790 *** your PATH or compiler configuration so that the native linker is
21791 *** used, and then restart.
21792
21793 EOF
21794       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21795         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21796         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21797       else
21798         ld_shlibs_GCJ=no
21799       fi
21800       ;;
21801
21802     sunos4*)
21803       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21804       wlarc=
21805       hardcode_direct_GCJ=yes
21806       hardcode_shlibpath_var_GCJ=no
21807       ;;
21808
21809   linux*)
21810     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21811         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21812         archive_cmds_GCJ="$tmp_archive_cmds"
21813       supports_anon_versioning=no
21814       case `$LD -v 2>/dev/null` in
21815         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21816         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21817         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21818         *\ 2.11.*) ;; # other 2.11 versions
21819         *) supports_anon_versioning=yes ;;
21820       esac
21821       if test $supports_anon_versioning = yes; then
21822         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21823 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21824 $echo "local: *; };" >> $output_objdir/$libname.ver~
21825         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21826       else
21827         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21828       fi
21829     else
21830       ld_shlibs_GCJ=no
21831     fi
21832     ;;
21833
21834     *)
21835       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21836         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21837         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21838       else
21839         ld_shlibs_GCJ=no
21840       fi
21841       ;;
21842     esac
21843
21844     if test "$ld_shlibs_GCJ" = yes; then
21845       runpath_var=LD_RUN_PATH
21846       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21847       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21848       # ancient GNU ld didn't support --whole-archive et. al.
21849       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21850         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21851       else
21852         whole_archive_flag_spec_GCJ=
21853       fi
21854     fi
21855   else
21856     # PORTME fill in a description of your system's linker (not GNU ld)
21857     case $host_os in
21858     aix3*)
21859       allow_undefined_flag_GCJ=unsupported
21860       always_export_symbols_GCJ=yes
21861       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'
21862       # Note: this linker hardcodes the directories in LIBPATH if there
21863       # are no directories specified by -L.
21864       hardcode_minus_L_GCJ=yes
21865       if test "$GCC" = yes && test -z "$link_static_flag"; then
21866         # Neither direct hardcoding nor static linking is supported with a
21867         # broken collect2.
21868         hardcode_direct_GCJ=unsupported
21869       fi
21870       ;;
21871
21872     aix4* | aix5*)
21873       if test "$host_cpu" = ia64; then
21874         # On IA64, the linker does run time linking by default, so we don't
21875         # have to do anything special.
21876         aix_use_runtimelinking=no
21877         exp_sym_flag='-Bexport'
21878         no_entry_flag=""
21879       else
21880         # If we're using GNU nm, then we don't want the "-C" option.
21881         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21882         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21883           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'
21884         else
21885           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'
21886         fi
21887         aix_use_runtimelinking=no
21888
21889         # Test if we are trying to use run time linking or normal
21890         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21891         # need to do runtime linking.
21892         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21893           for ld_flag in $LDFLAGS; do
21894           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21895             aix_use_runtimelinking=yes
21896             break
21897           fi
21898           done
21899         esac
21900
21901         exp_sym_flag='-bexport'
21902         no_entry_flag='-bnoentry'
21903       fi
21904
21905       # When large executables or shared objects are built, AIX ld can
21906       # have problems creating the table of contents.  If linking a library
21907       # or program results in "error TOC overflow" add -mminimal-toc to
21908       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21909       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21910
21911       archive_cmds_GCJ=''
21912       hardcode_direct_GCJ=yes
21913       hardcode_libdir_separator_GCJ=':'
21914       link_all_deplibs_GCJ=yes
21915
21916       if test "$GCC" = yes; then
21917         case $host_os in aix4.012|aix4.012.*)
21918         # We only want to do this on AIX 4.2 and lower, the check
21919         # below for broken collect2 doesn't work under 4.3+
21920           collect2name=`${CC} -print-prog-name=collect2`
21921           if test -f "$collect2name" && \
21922            strings "$collect2name" | grep resolve_lib_name >/dev/null
21923           then
21924           # We have reworked collect2
21925           hardcode_direct_GCJ=yes
21926           else
21927           # We have old collect2
21928           hardcode_direct_GCJ=unsupported
21929           # It fails to find uninstalled libraries when the uninstalled
21930           # path is not listed in the libpath.  Setting hardcode_minus_L
21931           # to unsupported forces relinking
21932           hardcode_minus_L_GCJ=yes
21933           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21934           hardcode_libdir_separator_GCJ=
21935           fi
21936         esac
21937         shared_flag='-shared'
21938       else
21939         # not using gcc
21940         if test "$host_cpu" = ia64; then
21941         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21942         # chokes on -Wl,-G. The following line is correct:
21943           shared_flag='-G'
21944         else
21945         if test "$aix_use_runtimelinking" = yes; then
21946             shared_flag='${wl}-G'
21947           else
21948             shared_flag='${wl}-bM:SRE'
21949         fi
21950         fi
21951       fi
21952
21953       # It seems that -bexpall does not export symbols beginning with
21954       # underscore (_), so it is better to generate a list of symbols to export.
21955       always_export_symbols_GCJ=yes
21956       if test "$aix_use_runtimelinking" = yes; then
21957         # Warning - without using the other runtime loading flags (-brtl),
21958         # -berok will link without error, but may produce a broken library.
21959         allow_undefined_flag_GCJ='-berok'
21960        # Determine the default libpath from the value encoded in an empty executable.
21961        cat >conftest.$ac_ext <<_ACEOF
21962 /* confdefs.h.  */
21963 _ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h.  */
21967
21968 int
21969 main ()
21970 {
21971
21972   ;
21973   return 0;
21974 }
21975 _ACEOF
21976 rm -f conftest.$ac_objext conftest$ac_exeext
21977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21978   (eval $ac_link) 2>conftest.er1
21979   ac_status=$?
21980   grep -v '^ *+' conftest.er1 >conftest.err
21981   rm -f conftest.er1
21982   cat conftest.err >&5
21983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984   (exit $ac_status); } &&
21985          { ac_try='test -z "$ac_c_werror_flag"
21986                          || test ! -s conftest.err'
21987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21988   (eval $ac_try) 2>&5
21989   ac_status=$?
21990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991   (exit $ac_status); }; } &&
21992          { ac_try='test -s conftest$ac_exeext'
21993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21994   (eval $ac_try) 2>&5
21995   ac_status=$?
21996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997   (exit $ac_status); }; }; then
21998
21999 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22000 }'`
22001 # Check for a 64-bit object if we didn't find anything.
22002 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; }
22003 }'`; fi
22004 else
22005   echo "$as_me: failed program was:" >&5
22006 sed 's/^/| /' conftest.$ac_ext >&5
22007
22008 fi
22009 rm -f conftest.err conftest.$ac_objext \
22010       conftest$ac_exeext conftest.$ac_ext
22011 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22012
22013        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22014         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"
22015        else
22016         if test "$host_cpu" = ia64; then
22017           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22018           allow_undefined_flag_GCJ="-z nodefs"
22019           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"
22020         else
22021          # Determine the default libpath from the value encoded in an empty executable.
22022          cat >conftest.$ac_ext <<_ACEOF
22023 /* confdefs.h.  */
22024 _ACEOF
22025 cat confdefs.h >>conftest.$ac_ext
22026 cat >>conftest.$ac_ext <<_ACEOF
22027 /* end confdefs.h.  */
22028
22029 int
22030 main ()
22031 {
22032
22033   ;
22034   return 0;
22035 }
22036 _ACEOF
22037 rm -f conftest.$ac_objext conftest$ac_exeext
22038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22039   (eval $ac_link) 2>conftest.er1
22040   ac_status=$?
22041   grep -v '^ *+' conftest.er1 >conftest.err
22042   rm -f conftest.er1
22043   cat conftest.err >&5
22044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045   (exit $ac_status); } &&
22046          { ac_try='test -z "$ac_c_werror_flag"
22047                          || test ! -s conftest.err'
22048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22049   (eval $ac_try) 2>&5
22050   ac_status=$?
22051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052   (exit $ac_status); }; } &&
22053          { ac_try='test -s conftest$ac_exeext'
22054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22055   (eval $ac_try) 2>&5
22056   ac_status=$?
22057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058   (exit $ac_status); }; }; then
22059
22060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22061 }'`
22062 # Check for a 64-bit object if we didn't find anything.
22063 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; }
22064 }'`; fi
22065 else
22066   echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22068
22069 fi
22070 rm -f conftest.err conftest.$ac_objext \
22071       conftest$ac_exeext conftest.$ac_ext
22072 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22073
22074          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22075           # Warning - without using the other run time loading flags,
22076           # -berok will link without error, but may produce a broken library.
22077           no_undefined_flag_GCJ=' ${wl}-bernotok'
22078           allow_undefined_flag_GCJ=' ${wl}-berok'
22079           # -bexpall does not export symbols beginning with underscore (_)
22080           always_export_symbols_GCJ=yes
22081           # Exported symbols can be pulled into shared objects from archives
22082           whole_archive_flag_spec_GCJ=' '
22083           archive_cmds_need_lc_GCJ=yes
22084           # This is similar to how AIX traditionally builds it's shared libraries.
22085           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'
22086         fi
22087       fi
22088       ;;
22089
22090     amigaos*)
22091       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)'
22092       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22093       hardcode_minus_L_GCJ=yes
22094       # see comment about different semantics on the GNU ld section
22095       ld_shlibs_GCJ=no
22096       ;;
22097
22098     bsdi[45]*)
22099       export_dynamic_flag_spec_GCJ=-rdynamic
22100       ;;
22101
22102     cygwin* | mingw* | pw32*)
22103       # When not using gcc, we currently assume that we are using
22104       # Microsoft Visual C++.
22105       # hardcode_libdir_flag_spec is actually meaningless, as there is
22106       # no search path for DLLs.
22107       hardcode_libdir_flag_spec_GCJ=' '
22108       allow_undefined_flag_GCJ=unsupported
22109       # Tell ltmain to make .lib files, not .a files.
22110       libext=lib
22111       # Tell ltmain to make .dll files, not .so files.
22112       shrext_cmds=".dll"
22113       # FIXME: Setting linknames here is a bad hack.
22114       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22115       # The linker will automatically build a .lib file if we build a DLL.
22116       old_archive_From_new_cmds_GCJ='true'
22117       # FIXME: Should let the user specify the lib program.
22118       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22119       fix_srcfile_path='`cygpath -w "$srcfile"`'
22120       enable_shared_with_static_runtimes_GCJ=yes
22121       ;;
22122
22123     darwin* | rhapsody*)
22124       case "$host_os" in
22125         rhapsody* | darwin1.[012])
22126          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22127          ;;
22128        *) # Darwin 1.3 on
22129          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22130            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22131          else
22132            case ${MACOSX_DEPLOYMENT_TARGET} in
22133              10.[012])
22134                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22135                ;;
22136              10.*)
22137                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22138                ;;
22139            esac
22140          fi
22141          ;;
22142       esac
22143       archive_cmds_need_lc_GCJ=no
22144       hardcode_direct_GCJ=no
22145       hardcode_automatic_GCJ=yes
22146       hardcode_shlibpath_var_GCJ=unsupported
22147       whole_archive_flag_spec_GCJ=''
22148       link_all_deplibs_GCJ=yes
22149     if test "$GCC" = yes ; then
22150         output_verbose_link_cmd='echo'
22151         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22152       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22153       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22154       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}'
22155       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}'
22156     else
22157       case "$cc_basename" in
22158         xlc*)
22159          output_verbose_link_cmd='echo'
22160          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22161          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22162           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22163          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}'
22164           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}'
22165           ;;
22166        *)
22167          ld_shlibs_GCJ=no
22168           ;;
22169       esac
22170     fi
22171       ;;
22172
22173     dgux*)
22174       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22175       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22176       hardcode_shlibpath_var_GCJ=no
22177       ;;
22178
22179     freebsd1*)
22180       ld_shlibs_GCJ=no
22181       ;;
22182
22183     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22184     # support.  Future versions do this automatically, but an explicit c++rt0.o
22185     # does not break anything, and helps significantly (at the cost of a little
22186     # extra space).
22187     freebsd2.2*)
22188       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22189       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22190       hardcode_direct_GCJ=yes
22191       hardcode_shlibpath_var_GCJ=no
22192       ;;
22193
22194     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22195     freebsd2*)
22196       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22197       hardcode_direct_GCJ=yes
22198       hardcode_minus_L_GCJ=yes
22199       hardcode_shlibpath_var_GCJ=no
22200       ;;
22201
22202     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22203     freebsd* | kfreebsd*-gnu)
22204       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22205       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22206       hardcode_direct_GCJ=yes
22207       hardcode_shlibpath_var_GCJ=no
22208       ;;
22209
22210     hpux9*)
22211       if test "$GCC" = yes; then
22212         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'
22213       else
22214         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'
22215       fi
22216       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22217       hardcode_libdir_separator_GCJ=:
22218       hardcode_direct_GCJ=yes
22219
22220       # hardcode_minus_L: Not really in the search PATH,
22221       # but as the default location of the library.
22222       hardcode_minus_L_GCJ=yes
22223       export_dynamic_flag_spec_GCJ='${wl}-E'
22224       ;;
22225
22226     hpux10* | hpux11*)
22227       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22228         case "$host_cpu" in
22229         hppa*64*|ia64*)
22230           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22231           ;;
22232         *)
22233           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22234           ;;
22235         esac
22236       else
22237         case "$host_cpu" in
22238         hppa*64*|ia64*)
22239           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22240           ;;
22241         *)
22242           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22243           ;;
22244         esac
22245       fi
22246       if test "$with_gnu_ld" = no; then
22247         case "$host_cpu" in
22248         hppa*64*)
22249           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22250           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22251           hardcode_libdir_separator_GCJ=:
22252           hardcode_direct_GCJ=no
22253           hardcode_shlibpath_var_GCJ=no
22254           ;;
22255         ia64*)
22256           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22257           hardcode_direct_GCJ=no
22258           hardcode_shlibpath_var_GCJ=no
22259
22260           # hardcode_minus_L: Not really in the search PATH,
22261           # but as the default location of the library.
22262           hardcode_minus_L_GCJ=yes
22263           ;;
22264         *)
22265           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22266           hardcode_libdir_separator_GCJ=:
22267           hardcode_direct_GCJ=yes
22268           export_dynamic_flag_spec_GCJ='${wl}-E'
22269
22270           # hardcode_minus_L: Not really in the search PATH,
22271           # but as the default location of the library.
22272           hardcode_minus_L_GCJ=yes
22273           ;;
22274         esac
22275       fi
22276       ;;
22277
22278     irix5* | irix6* | nonstopux*)
22279       if test "$GCC" = yes; then
22280         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'
22281       else
22282         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'
22283         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22284       fi
22285       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22286       hardcode_libdir_separator_GCJ=:
22287       link_all_deplibs_GCJ=yes
22288       ;;
22289
22290     netbsd*)
22291       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22292         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22293       else
22294         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22295       fi
22296       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22297       hardcode_direct_GCJ=yes
22298       hardcode_shlibpath_var_GCJ=no
22299       ;;
22300
22301     newsos6)
22302       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22303       hardcode_direct_GCJ=yes
22304       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22305       hardcode_libdir_separator_GCJ=:
22306       hardcode_shlibpath_var_GCJ=no
22307       ;;
22308
22309     openbsd*)
22310       hardcode_direct_GCJ=yes
22311       hardcode_shlibpath_var_GCJ=no
22312       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22313         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22314         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22315         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22316         export_dynamic_flag_spec_GCJ='${wl}-E'
22317       else
22318        case $host_os in
22319          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22320            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22321            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22322            ;;
22323          *)
22324            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22325            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22326            ;;
22327        esac
22328       fi
22329       ;;
22330
22331     os2*)
22332       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22333       hardcode_minus_L_GCJ=yes
22334       allow_undefined_flag_GCJ=unsupported
22335       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'
22336       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22337       ;;
22338
22339     osf3*)
22340       if test "$GCC" = yes; then
22341         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22342         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'
22343       else
22344         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22345         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'
22346       fi
22347       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22348       hardcode_libdir_separator_GCJ=:
22349       ;;
22350
22351     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22352       if test "$GCC" = yes; then
22353         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22354         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'
22355         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22356       else
22357         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22358         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'
22359         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~
22360         $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'
22361
22362         # Both c and cxx compiler support -rpath directly
22363         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22364       fi
22365       hardcode_libdir_separator_GCJ=:
22366       ;;
22367
22368     sco3.2v5*)
22369       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22370       hardcode_shlibpath_var_GCJ=no
22371       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22372       runpath_var=LD_RUN_PATH
22373       hardcode_runpath_var=yes
22374       ;;
22375
22376     solaris*)
22377       no_undefined_flag_GCJ=' -z text'
22378       if test "$GCC" = yes; then
22379         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22380         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22381           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22382       else
22383         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22384         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22385         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22386       fi
22387       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22388       hardcode_shlibpath_var_GCJ=no
22389       case $host_os in
22390       solaris2.[0-5] | solaris2.[0-5].*) ;;
22391       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22392         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22393       esac
22394       link_all_deplibs_GCJ=yes
22395       ;;
22396
22397     sunos4*)
22398       if test "x$host_vendor" = xsequent; then
22399         # Use $CC to link under sequent, because it throws in some extra .o
22400         # files that make .init and .fini sections work.
22401         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22402       else
22403         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22404       fi
22405       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22406       hardcode_direct_GCJ=yes
22407       hardcode_minus_L_GCJ=yes
22408       hardcode_shlibpath_var_GCJ=no
22409       ;;
22410
22411     sysv4)
22412       case $host_vendor in
22413         sni)
22414           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22415           hardcode_direct_GCJ=yes # is this really true???
22416         ;;
22417         siemens)
22418           ## LD is ld it makes a PLAMLIB
22419           ## CC just makes a GrossModule.
22420           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22421           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22422           hardcode_direct_GCJ=no
22423         ;;
22424         motorola)
22425           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22426           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22427         ;;
22428       esac
22429       runpath_var='LD_RUN_PATH'
22430       hardcode_shlibpath_var_GCJ=no
22431       ;;
22432
22433     sysv4.3*)
22434       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22435       hardcode_shlibpath_var_GCJ=no
22436       export_dynamic_flag_spec_GCJ='-Bexport'
22437       ;;
22438
22439     sysv4*MP*)
22440       if test -d /usr/nec; then
22441         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22442         hardcode_shlibpath_var_GCJ=no
22443         runpath_var=LD_RUN_PATH
22444         hardcode_runpath_var=yes
22445         ld_shlibs_GCJ=yes
22446       fi
22447       ;;
22448
22449     sysv4.2uw2*)
22450       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22451       hardcode_direct_GCJ=yes
22452       hardcode_minus_L_GCJ=no
22453       hardcode_shlibpath_var_GCJ=no
22454       hardcode_runpath_var=yes
22455       runpath_var=LD_RUN_PATH
22456       ;;
22457
22458    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22459       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22460       if test "$GCC" = yes; then
22461         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22462       else
22463         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22464       fi
22465       runpath_var='LD_RUN_PATH'
22466       hardcode_shlibpath_var_GCJ=no
22467       ;;
22468
22469     sysv5*)
22470       no_undefined_flag_GCJ=' -z text'
22471       # $CC -shared without GNU ld will not create a library from C++
22472       # object files and a static libstdc++, better avoid it by now
22473       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22474       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22475                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22476       hardcode_libdir_flag_spec_GCJ=
22477       hardcode_shlibpath_var_GCJ=no
22478       runpath_var='LD_RUN_PATH'
22479       ;;
22480
22481     uts4*)
22482       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22483       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22484       hardcode_shlibpath_var_GCJ=no
22485       ;;
22486
22487     *)
22488       ld_shlibs_GCJ=no
22489       ;;
22490     esac
22491   fi
22492
22493 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22494 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22495 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22496
22497 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22498 if test "$GCC" = yes; then
22499   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22500 fi
22501
22502 #
22503 # Do we need to explicitly link libc?
22504 #
22505 case "x$archive_cmds_need_lc_GCJ" in
22506 x|xyes)
22507   # Assume -lc should be added
22508   archive_cmds_need_lc_GCJ=yes
22509
22510   if test "$enable_shared" = yes && test "$GCC" = yes; then
22511     case $archive_cmds_GCJ in
22512     *'~'*)
22513       # FIXME: we may have to deal with multi-command sequences.
22514       ;;
22515     '$CC '*)
22516       # Test whether the compiler implicitly links with -lc since on some
22517       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22518       # to ld, don't add -lc before -lgcc.
22519       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22520 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22521       $rm conftest*
22522       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22523
22524       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22525   (eval $ac_compile) 2>&5
22526   ac_status=$?
22527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528   (exit $ac_status); } 2>conftest.err; then
22529         soname=conftest
22530         lib=conftest
22531         libobjs=conftest.$ac_objext
22532         deplibs=
22533         wl=$lt_prog_compiler_wl_GCJ
22534         compiler_flags=-v
22535         linker_flags=-v
22536         verstring=
22537         output_objdir=.
22538         libname=conftest
22539         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22540         allow_undefined_flag_GCJ=
22541         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22542   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22543   ac_status=$?
22544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545   (exit $ac_status); }
22546         then
22547           archive_cmds_need_lc_GCJ=no
22548         else
22549           archive_cmds_need_lc_GCJ=yes
22550         fi
22551         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22552       else
22553         cat conftest.err 1>&5
22554       fi
22555       $rm conftest*
22556       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22557 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22558       ;;
22559     esac
22560   fi
22561   ;;
22562 esac
22563
22564 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22565 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22566 library_names_spec=
22567 libname_spec='lib$name'
22568 soname_spec=
22569 shrext_cmds=".so"
22570 postinstall_cmds=
22571 postuninstall_cmds=
22572 finish_cmds=
22573 finish_eval=
22574 shlibpath_var=
22575 shlibpath_overrides_runpath=unknown
22576 version_type=none
22577 dynamic_linker="$host_os ld.so"
22578 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22579 if test "$GCC" = yes; then
22580   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22581   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22582     # if the path contains ";" then we assume it to be the separator
22583     # otherwise default to the standard path separator (i.e. ":") - it is
22584     # assumed that no part of a normal pathname contains ";" but that should
22585     # okay in the real world where ";" in dirpaths is itself problematic.
22586     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22587   else
22588     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22589   fi
22590 else
22591   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22592 fi
22593 need_lib_prefix=unknown
22594 hardcode_into_libs=no
22595
22596 # when you set need_version to no, make sure it does not cause -set_version
22597 # flags to be left without arguments
22598 need_version=unknown
22599
22600 case $host_os in
22601 aix3*)
22602   version_type=linux
22603   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22604   shlibpath_var=LIBPATH
22605
22606   # AIX 3 has no versioning support, so we append a major version to the name.
22607   soname_spec='${libname}${release}${shared_ext}$major'
22608   ;;
22609
22610 aix4* | aix5*)
22611   version_type=linux
22612   need_lib_prefix=no
22613   need_version=no
22614   hardcode_into_libs=yes
22615   if test "$host_cpu" = ia64; then
22616     # AIX 5 supports IA64
22617     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22618     shlibpath_var=LD_LIBRARY_PATH
22619   else
22620     # With GCC up to 2.95.x, collect2 would create an import file
22621     # for dependence libraries.  The import file would start with
22622     # the line `#! .'.  This would cause the generated library to
22623     # depend on `.', always an invalid library.  This was fixed in
22624     # development snapshots of GCC prior to 3.0.
22625     case $host_os in
22626       aix4 | aix4.[01] | aix4.[01].*)
22627       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22628            echo ' yes '
22629            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22630         :
22631       else
22632         can_build_shared=no
22633       fi
22634       ;;
22635     esac
22636     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22637     # soname into executable. Probably we can add versioning support to
22638     # collect2, so additional links can be useful in future.
22639     if test "$aix_use_runtimelinking" = yes; then
22640       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22641       # instead of lib<name>.a to let people know that these are not
22642       # typical AIX shared libraries.
22643       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22644     else
22645       # We preserve .a as extension for shared libraries through AIX4.2
22646       # and later when we are not doing run time linking.
22647       library_names_spec='${libname}${release}.a $libname.a'
22648       soname_spec='${libname}${release}${shared_ext}$major'
22649     fi
22650     shlibpath_var=LIBPATH
22651   fi
22652   ;;
22653
22654 amigaos*)
22655   library_names_spec='$libname.ixlibrary $libname.a'
22656   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22657   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'
22658   ;;
22659
22660 beos*)
22661   library_names_spec='${libname}${shared_ext}'
22662   dynamic_linker="$host_os ld.so"
22663   shlibpath_var=LIBRARY_PATH
22664   ;;
22665
22666 bsdi[45]*)
22667   version_type=linux
22668   need_version=no
22669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22670   soname_spec='${libname}${release}${shared_ext}$major'
22671   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22672   shlibpath_var=LD_LIBRARY_PATH
22673   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22674   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22675   # the default ld.so.conf also contains /usr/contrib/lib and
22676   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22677   # libtool to hard-code these into programs
22678   ;;
22679
22680 cygwin* | mingw* | pw32*)
22681   version_type=windows
22682   shrext_cmds=".dll"
22683   need_version=no
22684   need_lib_prefix=no
22685
22686   case $GCC,$host_os in
22687   yes,cygwin* | yes,mingw* | yes,pw32*)
22688     library_names_spec='$libname.dll.a'
22689     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22690     postinstall_cmds='base_file=`basename \${file}`~
22691       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22692       dldir=$destdir/`dirname \$dlpath`~
22693       test -d \$dldir || mkdir -p \$dldir~
22694       $install_prog $dir/$dlname \$dldir/$dlname'
22695     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22696       dlpath=$dir/\$dldll~
22697        $rm \$dlpath'
22698     shlibpath_overrides_runpath=yes
22699
22700     case $host_os in
22701     cygwin*)
22702       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22703       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22704       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22705       ;;
22706     mingw*)
22707       # MinGW DLLs use traditional 'lib' prefix
22708       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22709       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22710       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22711         # It is most probably a Windows format PATH printed by
22712         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22713         # path with ; separators, and with drive letters. We can handle the
22714         # drive letters (cygwin fileutils understands them), so leave them,
22715         # especially as we might pass files found there to a mingw objdump,
22716         # which wouldn't understand a cygwinified path. Ahh.
22717         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22718       else
22719         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22720       fi
22721       ;;
22722     pw32*)
22723       # pw32 DLLs use 'pw' prefix rather than 'lib'
22724       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22725       ;;
22726     esac
22727     ;;
22728
22729   *)
22730     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22731     ;;
22732   esac
22733   dynamic_linker='Win32 ld.exe'
22734   # FIXME: first we should search . and the directory the executable is in
22735   shlibpath_var=PATH
22736   ;;
22737
22738 darwin* | rhapsody*)
22739   dynamic_linker="$host_os dyld"
22740   version_type=darwin
22741   need_lib_prefix=no
22742   need_version=no
22743   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22744   soname_spec='${libname}${release}${major}$shared_ext'
22745   shlibpath_overrides_runpath=yes
22746   shlibpath_var=DYLD_LIBRARY_PATH
22747   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22748   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22749   if test "$GCC" = yes; then
22750     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"`
22751   else
22752     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22753   fi
22754   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22755   ;;
22756
22757 dgux*)
22758   version_type=linux
22759   need_lib_prefix=no
22760   need_version=no
22761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22762   soname_spec='${libname}${release}${shared_ext}$major'
22763   shlibpath_var=LD_LIBRARY_PATH
22764   ;;
22765
22766 freebsd1*)
22767   dynamic_linker=no
22768   ;;
22769
22770 kfreebsd*-gnu)
22771   version_type=linux
22772   need_lib_prefix=no
22773   need_version=no
22774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22775   soname_spec='${libname}${release}${shared_ext}$major'
22776   shlibpath_var=LD_LIBRARY_PATH
22777   shlibpath_overrides_runpath=no
22778   hardcode_into_libs=yes
22779   dynamic_linker='GNU ld.so'
22780   ;;
22781
22782 freebsd*)
22783   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22784   version_type=freebsd-$objformat
22785   case $version_type in
22786     freebsd-elf*)
22787       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22788       need_version=no
22789       need_lib_prefix=no
22790       ;;
22791     freebsd-*)
22792       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22793       need_version=yes
22794       ;;
22795   esac
22796   shlibpath_var=LD_LIBRARY_PATH
22797   case $host_os in
22798   freebsd2*)
22799     shlibpath_overrides_runpath=yes
22800     ;;
22801   freebsd3.01* | freebsdelf3.01*)
22802     shlibpath_overrides_runpath=yes
22803     hardcode_into_libs=yes
22804     ;;
22805   *) # from 3.2 on
22806     shlibpath_overrides_runpath=no
22807     hardcode_into_libs=yes
22808     ;;
22809   esac
22810   ;;
22811
22812 gnu*)
22813   version_type=linux
22814   need_lib_prefix=no
22815   need_version=no
22816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22817   soname_spec='${libname}${release}${shared_ext}$major'
22818   shlibpath_var=LD_LIBRARY_PATH
22819   hardcode_into_libs=yes
22820   ;;
22821
22822 hpux9* | hpux10* | hpux11*)
22823   # Give a soname corresponding to the major version so that dld.sl refuses to
22824   # link against other versions.
22825   version_type=sunos
22826   need_lib_prefix=no
22827   need_version=no
22828   case "$host_cpu" in
22829   ia64*)
22830     shrext_cmds='.so'
22831     hardcode_into_libs=yes
22832     dynamic_linker="$host_os dld.so"
22833     shlibpath_var=LD_LIBRARY_PATH
22834     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22835     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22836     soname_spec='${libname}${release}${shared_ext}$major'
22837     if test "X$HPUX_IA64_MODE" = X32; then
22838       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22839     else
22840       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22841     fi
22842     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22843     ;;
22844    hppa*64*)
22845      shrext_cmds='.sl'
22846      hardcode_into_libs=yes
22847      dynamic_linker="$host_os dld.sl"
22848      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22849      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22850      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22851      soname_spec='${libname}${release}${shared_ext}$major'
22852      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22853      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22854      ;;
22855    *)
22856     shrext_cmds='.sl'
22857     dynamic_linker="$host_os dld.sl"
22858     shlibpath_var=SHLIB_PATH
22859     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22860     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22861     soname_spec='${libname}${release}${shared_ext}$major'
22862     ;;
22863   esac
22864   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22865   postinstall_cmds='chmod 555 $lib'
22866   ;;
22867
22868 irix5* | irix6* | nonstopux*)
22869   case $host_os in
22870     nonstopux*) version_type=nonstopux ;;
22871     *)
22872         if test "$lt_cv_prog_gnu_ld" = yes; then
22873                 version_type=linux
22874         else
22875                 version_type=irix
22876         fi ;;
22877   esac
22878   need_lib_prefix=no
22879   need_version=no
22880   soname_spec='${libname}${release}${shared_ext}$major'
22881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22882   case $host_os in
22883   irix5* | nonstopux*)
22884     libsuff= shlibsuff=
22885     ;;
22886   *)
22887     case $LD in # libtool.m4 will add one of these switches to LD
22888     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22889       libsuff= shlibsuff= libmagic=32-bit;;
22890     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22891       libsuff=32 shlibsuff=N32 libmagic=N32;;
22892     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22893       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22894     *) libsuff= shlibsuff= libmagic=never-match;;
22895     esac
22896     ;;
22897   esac
22898   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22899   shlibpath_overrides_runpath=no
22900   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22901   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22902   hardcode_into_libs=yes
22903   ;;
22904
22905 # No shared lib support for Linux oldld, aout, or coff.
22906 linux*oldld* | linux*aout* | linux*coff*)
22907   dynamic_linker=no
22908   ;;
22909
22910 # This must be Linux ELF.
22911 linux*)
22912   version_type=linux
22913   need_lib_prefix=no
22914   need_version=no
22915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22916   soname_spec='${libname}${release}${shared_ext}$major'
22917   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22918   shlibpath_var=LD_LIBRARY_PATH
22919   shlibpath_overrides_runpath=no
22920   # This implies no fast_install, which is unacceptable.
22921   # Some rework will be needed to allow for fast_install
22922   # before this can be enabled.
22923   hardcode_into_libs=yes
22924
22925   # Append ld.so.conf contents to the search path
22926   if test -f /etc/ld.so.conf; then
22927     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22928     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22929   fi
22930
22931   # We used to test for /lib/ld.so.1 and disable shared libraries on
22932   # powerpc, because MkLinux only supported shared libraries with the
22933   # GNU dynamic linker.  Since this was broken with cross compilers,
22934   # most powerpc-linux boxes support dynamic linking these days and
22935   # people can always --disable-shared, the test was removed, and we
22936   # assume the GNU/Linux dynamic linker is in use.
22937   dynamic_linker='GNU/Linux ld.so'
22938   ;;
22939
22940 knetbsd*-gnu)
22941   version_type=linux
22942   need_lib_prefix=no
22943   need_version=no
22944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22945   soname_spec='${libname}${release}${shared_ext}$major'
22946   shlibpath_var=LD_LIBRARY_PATH
22947   shlibpath_overrides_runpath=no
22948   hardcode_into_libs=yes
22949   dynamic_linker='GNU ld.so'
22950   ;;
22951
22952 netbsd*)
22953   version_type=sunos
22954   need_lib_prefix=no
22955   need_version=no
22956   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22957     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22958     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22959     dynamic_linker='NetBSD (a.out) ld.so'
22960   else
22961     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22962     soname_spec='${libname}${release}${shared_ext}$major'
22963     dynamic_linker='NetBSD ld.elf_so'
22964   fi
22965   shlibpath_var=LD_LIBRARY_PATH
22966   shlibpath_overrides_runpath=yes
22967   hardcode_into_libs=yes
22968   ;;
22969
22970 newsos6)
22971   version_type=linux
22972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22973   shlibpath_var=LD_LIBRARY_PATH
22974   shlibpath_overrides_runpath=yes
22975   ;;
22976
22977 nto-qnx*)
22978   version_type=linux
22979   need_lib_prefix=no
22980   need_version=no
22981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22982   soname_spec='${libname}${release}${shared_ext}$major'
22983   shlibpath_var=LD_LIBRARY_PATH
22984   shlibpath_overrides_runpath=yes
22985   ;;
22986
22987 openbsd*)
22988   version_type=sunos
22989   need_lib_prefix=no
22990   need_version=no
22991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22992   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22993   shlibpath_var=LD_LIBRARY_PATH
22994   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22995     case $host_os in
22996       openbsd2.[89] | openbsd2.[89].*)
22997         shlibpath_overrides_runpath=no
22998         ;;
22999       *)
23000         shlibpath_overrides_runpath=yes
23001         ;;
23002       esac
23003   else
23004     shlibpath_overrides_runpath=yes
23005   fi
23006   ;;
23007
23008 os2*)
23009   libname_spec='$name'
23010   shrext_cmds=".dll"
23011   need_lib_prefix=no
23012   library_names_spec='$libname${shared_ext} $libname.a'
23013   dynamic_linker='OS/2 ld.exe'
23014   shlibpath_var=LIBPATH
23015   ;;
23016
23017 osf3* | osf4* | osf5*)
23018   version_type=osf
23019   need_lib_prefix=no
23020   need_version=no
23021   soname_spec='${libname}${release}${shared_ext}$major'
23022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23023   shlibpath_var=LD_LIBRARY_PATH
23024   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23025   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23026   ;;
23027
23028 sco3.2v5*)
23029   version_type=osf
23030   soname_spec='${libname}${release}${shared_ext}$major'
23031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23032   shlibpath_var=LD_LIBRARY_PATH
23033   ;;
23034
23035 solaris*)
23036   version_type=linux
23037   need_lib_prefix=no
23038   need_version=no
23039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23040   soname_spec='${libname}${release}${shared_ext}$major'
23041   shlibpath_var=LD_LIBRARY_PATH
23042   shlibpath_overrides_runpath=yes
23043   hardcode_into_libs=yes
23044   # ldd complains unless libraries are executable
23045   postinstall_cmds='chmod +x $lib'
23046   ;;
23047
23048 sunos4*)
23049   version_type=sunos
23050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23051   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23052   shlibpath_var=LD_LIBRARY_PATH
23053   shlibpath_overrides_runpath=yes
23054   if test "$with_gnu_ld" = yes; then
23055     need_lib_prefix=no
23056   fi
23057   need_version=yes
23058   ;;
23059
23060 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23061   version_type=linux
23062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23063   soname_spec='${libname}${release}${shared_ext}$major'
23064   shlibpath_var=LD_LIBRARY_PATH
23065   case $host_vendor in
23066     sni)
23067       shlibpath_overrides_runpath=no
23068       need_lib_prefix=no
23069       export_dynamic_flag_spec='${wl}-Blargedynsym'
23070       runpath_var=LD_RUN_PATH
23071       ;;
23072     siemens)
23073       need_lib_prefix=no
23074       ;;
23075     motorola)
23076       need_lib_prefix=no
23077       need_version=no
23078       shlibpath_overrides_runpath=no
23079       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23080       ;;
23081   esac
23082   ;;
23083
23084 sysv4*MP*)
23085   if test -d /usr/nec ;then
23086     version_type=linux
23087     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23088     soname_spec='$libname${shared_ext}.$major'
23089     shlibpath_var=LD_LIBRARY_PATH
23090   fi
23091   ;;
23092
23093 uts4*)
23094   version_type=linux
23095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23096   soname_spec='${libname}${release}${shared_ext}$major'
23097   shlibpath_var=LD_LIBRARY_PATH
23098   ;;
23099
23100 *)
23101   dynamic_linker=no
23102   ;;
23103 esac
23104 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23105 echo "${ECHO_T}$dynamic_linker" >&6
23106 test "$dynamic_linker" = no && can_build_shared=no
23107
23108 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23109 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23110 hardcode_action_GCJ=
23111 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23112    test -n "$runpath_var_GCJ" || \
23113    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23114
23115   # We can hardcode non-existant directories.
23116   if test "$hardcode_direct_GCJ" != no &&
23117      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23118      # have to relink, otherwise we might link with an installed library
23119      # when we should be linking with a yet-to-be-installed one
23120      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23121      test "$hardcode_minus_L_GCJ" != no; then
23122     # Linking always hardcodes the temporary library directory.
23123     hardcode_action_GCJ=relink
23124   else
23125     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23126     hardcode_action_GCJ=immediate
23127   fi
23128 else
23129   # We cannot hardcode anything, or else we can only hardcode existing
23130   # directories.
23131   hardcode_action_GCJ=unsupported
23132 fi
23133 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23134 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23135
23136 if test "$hardcode_action_GCJ" = relink; then
23137   # Fast installation is not supported
23138   enable_fast_install=no
23139 elif test "$shlibpath_overrides_runpath" = yes ||
23140      test "$enable_shared" = no; then
23141   # Fast installation is not necessary
23142   enable_fast_install=needless
23143 fi
23144
23145 striplib=
23146 old_striplib=
23147 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23148 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23149 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23150   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23151   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23152   echo "$as_me:$LINENO: result: yes" >&5
23153 echo "${ECHO_T}yes" >&6
23154 else
23155 # FIXME - insert some real tests, host_os isn't really good enough
23156   case $host_os in
23157    darwin*)
23158        if test -n "$STRIP" ; then
23159          striplib="$STRIP -x"
23160          echo "$as_me:$LINENO: result: yes" >&5
23161 echo "${ECHO_T}yes" >&6
23162        else
23163   echo "$as_me:$LINENO: result: no" >&5
23164 echo "${ECHO_T}no" >&6
23165 fi
23166        ;;
23167    *)
23168   echo "$as_me:$LINENO: result: no" >&5
23169 echo "${ECHO_T}no" >&6
23170     ;;
23171   esac
23172 fi
23173
23174 if test "x$enable_dlopen" != xyes; then
23175   enable_dlopen=unknown
23176   enable_dlopen_self=unknown
23177   enable_dlopen_self_static=unknown
23178 else
23179   lt_cv_dlopen=no
23180   lt_cv_dlopen_libs=
23181
23182   case $host_os in
23183   beos*)
23184     lt_cv_dlopen="load_add_on"
23185     lt_cv_dlopen_libs=
23186     lt_cv_dlopen_self=yes
23187     ;;
23188
23189   mingw* | pw32*)
23190     lt_cv_dlopen="LoadLibrary"
23191     lt_cv_dlopen_libs=
23192    ;;
23193
23194   cygwin*)
23195     lt_cv_dlopen="dlopen"
23196     lt_cv_dlopen_libs=
23197    ;;
23198
23199   darwin*)
23200   # if libdl is installed we need to link against it
23201     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23202 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23203 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23204   echo $ECHO_N "(cached) $ECHO_C" >&6
23205 else
23206   ac_check_lib_save_LIBS=$LIBS
23207 LIBS="-ldl  $LIBS"
23208 cat >conftest.$ac_ext <<_ACEOF
23209 /* confdefs.h.  */
23210 _ACEOF
23211 cat confdefs.h >>conftest.$ac_ext
23212 cat >>conftest.$ac_ext <<_ACEOF
23213 /* end confdefs.h.  */
23214
23215 /* Override any gcc2 internal prototype to avoid an error.  */
23216 #ifdef __cplusplus
23217 extern "C"
23218 #endif
23219 /* We use char because int might match the return type of a gcc2
23220    builtin and then its argument prototype would still apply.  */
23221 char dlopen ();
23222 int
23223 main ()
23224 {
23225 dlopen ();
23226   ;
23227   return 0;
23228 }
23229 _ACEOF
23230 rm -f conftest.$ac_objext conftest$ac_exeext
23231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23232   (eval $ac_link) 2>conftest.er1
23233   ac_status=$?
23234   grep -v '^ *+' conftest.er1 >conftest.err
23235   rm -f conftest.er1
23236   cat conftest.err >&5
23237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238   (exit $ac_status); } &&
23239          { ac_try='test -z "$ac_c_werror_flag"
23240                          || test ! -s conftest.err'
23241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23242   (eval $ac_try) 2>&5
23243   ac_status=$?
23244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245   (exit $ac_status); }; } &&
23246          { ac_try='test -s conftest$ac_exeext'
23247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23248   (eval $ac_try) 2>&5
23249   ac_status=$?
23250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251   (exit $ac_status); }; }; then
23252   ac_cv_lib_dl_dlopen=yes
23253 else
23254   echo "$as_me: failed program was:" >&5
23255 sed 's/^/| /' conftest.$ac_ext >&5
23256
23257 ac_cv_lib_dl_dlopen=no
23258 fi
23259 rm -f conftest.err conftest.$ac_objext \
23260       conftest$ac_exeext conftest.$ac_ext
23261 LIBS=$ac_check_lib_save_LIBS
23262 fi
23263 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23264 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23265 if test $ac_cv_lib_dl_dlopen = yes; then
23266   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23267 else
23268
23269     lt_cv_dlopen="dyld"
23270     lt_cv_dlopen_libs=
23271     lt_cv_dlopen_self=yes
23272
23273 fi
23274
23275    ;;
23276
23277   *)
23278     echo "$as_me:$LINENO: checking for shl_load" >&5
23279 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23280 if test "${ac_cv_func_shl_load+set}" = set; then
23281   echo $ECHO_N "(cached) $ECHO_C" >&6
23282 else
23283   cat >conftest.$ac_ext <<_ACEOF
23284 /* confdefs.h.  */
23285 _ACEOF
23286 cat confdefs.h >>conftest.$ac_ext
23287 cat >>conftest.$ac_ext <<_ACEOF
23288 /* end confdefs.h.  */
23289 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23290    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23291 #define shl_load innocuous_shl_load
23292
23293 /* System header to define __stub macros and hopefully few prototypes,
23294     which can conflict with char shl_load (); below.
23295     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23296     <limits.h> exists even on freestanding compilers.  */
23297
23298 #ifdef __STDC__
23299 # include <limits.h>
23300 #else
23301 # include <assert.h>
23302 #endif
23303
23304 #undef shl_load
23305
23306 /* Override any gcc2 internal prototype to avoid an error.  */
23307 #ifdef __cplusplus
23308 extern "C"
23309 {
23310 #endif
23311 /* We use char because int might match the return type of a gcc2
23312    builtin and then its argument prototype would still apply.  */
23313 char shl_load ();
23314 /* The GNU C library defines this for functions which it implements
23315     to always fail with ENOSYS.  Some functions are actually named
23316     something starting with __ and the normal name is an alias.  */
23317 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23318 choke me
23319 #else
23320 char (*f) () = shl_load;
23321 #endif
23322 #ifdef __cplusplus
23323 }
23324 #endif
23325
23326 int
23327 main ()
23328 {
23329 return f != shl_load;
23330   ;
23331   return 0;
23332 }
23333 _ACEOF
23334 rm -f conftest.$ac_objext conftest$ac_exeext
23335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23336   (eval $ac_link) 2>conftest.er1
23337   ac_status=$?
23338   grep -v '^ *+' conftest.er1 >conftest.err
23339   rm -f conftest.er1
23340   cat conftest.err >&5
23341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342   (exit $ac_status); } &&
23343          { ac_try='test -z "$ac_c_werror_flag"
23344                          || test ! -s conftest.err'
23345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23346   (eval $ac_try) 2>&5
23347   ac_status=$?
23348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349   (exit $ac_status); }; } &&
23350          { ac_try='test -s conftest$ac_exeext'
23351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23352   (eval $ac_try) 2>&5
23353   ac_status=$?
23354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355   (exit $ac_status); }; }; then
23356   ac_cv_func_shl_load=yes
23357 else
23358   echo "$as_me: failed program was:" >&5
23359 sed 's/^/| /' conftest.$ac_ext >&5
23360
23361 ac_cv_func_shl_load=no
23362 fi
23363 rm -f conftest.err conftest.$ac_objext \
23364       conftest$ac_exeext conftest.$ac_ext
23365 fi
23366 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23367 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23368 if test $ac_cv_func_shl_load = yes; then
23369   lt_cv_dlopen="shl_load"
23370 else
23371   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23372 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23373 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23374   echo $ECHO_N "(cached) $ECHO_C" >&6
23375 else
23376   ac_check_lib_save_LIBS=$LIBS
23377 LIBS="-ldld  $LIBS"
23378 cat >conftest.$ac_ext <<_ACEOF
23379 /* confdefs.h.  */
23380 _ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h.  */
23384
23385 /* Override any gcc2 internal prototype to avoid an error.  */
23386 #ifdef __cplusplus
23387 extern "C"
23388 #endif
23389 /* We use char because int might match the return type of a gcc2
23390    builtin and then its argument prototype would still apply.  */
23391 char shl_load ();
23392 int
23393 main ()
23394 {
23395 shl_load ();
23396   ;
23397   return 0;
23398 }
23399 _ACEOF
23400 rm -f conftest.$ac_objext conftest$ac_exeext
23401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23402   (eval $ac_link) 2>conftest.er1
23403   ac_status=$?
23404   grep -v '^ *+' conftest.er1 >conftest.err
23405   rm -f conftest.er1
23406   cat conftest.err >&5
23407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408   (exit $ac_status); } &&
23409          { ac_try='test -z "$ac_c_werror_flag"
23410                          || test ! -s conftest.err'
23411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23412   (eval $ac_try) 2>&5
23413   ac_status=$?
23414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415   (exit $ac_status); }; } &&
23416          { ac_try='test -s conftest$ac_exeext'
23417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23418   (eval $ac_try) 2>&5
23419   ac_status=$?
23420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421   (exit $ac_status); }; }; then
23422   ac_cv_lib_dld_shl_load=yes
23423 else
23424   echo "$as_me: failed program was:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23426
23427 ac_cv_lib_dld_shl_load=no
23428 fi
23429 rm -f conftest.err conftest.$ac_objext \
23430       conftest$ac_exeext conftest.$ac_ext
23431 LIBS=$ac_check_lib_save_LIBS
23432 fi
23433 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23434 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23435 if test $ac_cv_lib_dld_shl_load = yes; then
23436   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23437 else
23438   echo "$as_me:$LINENO: checking for dlopen" >&5
23439 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23440 if test "${ac_cv_func_dlopen+set}" = set; then
23441   echo $ECHO_N "(cached) $ECHO_C" >&6
23442 else
23443   cat >conftest.$ac_ext <<_ACEOF
23444 /* confdefs.h.  */
23445 _ACEOF
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h.  */
23449 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23451 #define dlopen innocuous_dlopen
23452
23453 /* System header to define __stub macros and hopefully few prototypes,
23454     which can conflict with char dlopen (); below.
23455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23456     <limits.h> exists even on freestanding compilers.  */
23457
23458 #ifdef __STDC__
23459 # include <limits.h>
23460 #else
23461 # include <assert.h>
23462 #endif
23463
23464 #undef dlopen
23465
23466 /* Override any gcc2 internal prototype to avoid an error.  */
23467 #ifdef __cplusplus
23468 extern "C"
23469 {
23470 #endif
23471 /* We use char because int might match the return type of a gcc2
23472    builtin and then its argument prototype would still apply.  */
23473 char dlopen ();
23474 /* The GNU C library defines this for functions which it implements
23475     to always fail with ENOSYS.  Some functions are actually named
23476     something starting with __ and the normal name is an alias.  */
23477 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23478 choke me
23479 #else
23480 char (*f) () = dlopen;
23481 #endif
23482 #ifdef __cplusplus
23483 }
23484 #endif
23485
23486 int
23487 main ()
23488 {
23489 return f != dlopen;
23490   ;
23491   return 0;
23492 }
23493 _ACEOF
23494 rm -f conftest.$ac_objext conftest$ac_exeext
23495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23496   (eval $ac_link) 2>conftest.er1
23497   ac_status=$?
23498   grep -v '^ *+' conftest.er1 >conftest.err
23499   rm -f conftest.er1
23500   cat conftest.err >&5
23501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502   (exit $ac_status); } &&
23503          { ac_try='test -z "$ac_c_werror_flag"
23504                          || test ! -s conftest.err'
23505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506   (eval $ac_try) 2>&5
23507   ac_status=$?
23508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509   (exit $ac_status); }; } &&
23510          { ac_try='test -s conftest$ac_exeext'
23511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23512   (eval $ac_try) 2>&5
23513   ac_status=$?
23514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515   (exit $ac_status); }; }; then
23516   ac_cv_func_dlopen=yes
23517 else
23518   echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23520
23521 ac_cv_func_dlopen=no
23522 fi
23523 rm -f conftest.err conftest.$ac_objext \
23524       conftest$ac_exeext conftest.$ac_ext
23525 fi
23526 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23527 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23528 if test $ac_cv_func_dlopen = yes; then
23529   lt_cv_dlopen="dlopen"
23530 else
23531   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23532 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23533 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23534   echo $ECHO_N "(cached) $ECHO_C" >&6
23535 else
23536   ac_check_lib_save_LIBS=$LIBS
23537 LIBS="-ldl  $LIBS"
23538 cat >conftest.$ac_ext <<_ACEOF
23539 /* confdefs.h.  */
23540 _ACEOF
23541 cat confdefs.h >>conftest.$ac_ext
23542 cat >>conftest.$ac_ext <<_ACEOF
23543 /* end confdefs.h.  */
23544
23545 /* Override any gcc2 internal prototype to avoid an error.  */
23546 #ifdef __cplusplus
23547 extern "C"
23548 #endif
23549 /* We use char because int might match the return type of a gcc2
23550    builtin and then its argument prototype would still apply.  */
23551 char dlopen ();
23552 int
23553 main ()
23554 {
23555 dlopen ();
23556   ;
23557   return 0;
23558 }
23559 _ACEOF
23560 rm -f conftest.$ac_objext conftest$ac_exeext
23561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23562   (eval $ac_link) 2>conftest.er1
23563   ac_status=$?
23564   grep -v '^ *+' conftest.er1 >conftest.err
23565   rm -f conftest.er1
23566   cat conftest.err >&5
23567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568   (exit $ac_status); } &&
23569          { ac_try='test -z "$ac_c_werror_flag"
23570                          || test ! -s conftest.err'
23571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23572   (eval $ac_try) 2>&5
23573   ac_status=$?
23574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575   (exit $ac_status); }; } &&
23576          { ac_try='test -s conftest$ac_exeext'
23577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23578   (eval $ac_try) 2>&5
23579   ac_status=$?
23580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581   (exit $ac_status); }; }; then
23582   ac_cv_lib_dl_dlopen=yes
23583 else
23584   echo "$as_me: failed program was:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23586
23587 ac_cv_lib_dl_dlopen=no
23588 fi
23589 rm -f conftest.err conftest.$ac_objext \
23590       conftest$ac_exeext conftest.$ac_ext
23591 LIBS=$ac_check_lib_save_LIBS
23592 fi
23593 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23594 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23595 if test $ac_cv_lib_dl_dlopen = yes; then
23596   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23597 else
23598   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23599 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23600 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23601   echo $ECHO_N "(cached) $ECHO_C" >&6
23602 else
23603   ac_check_lib_save_LIBS=$LIBS
23604 LIBS="-lsvld  $LIBS"
23605 cat >conftest.$ac_ext <<_ACEOF
23606 /* confdefs.h.  */
23607 _ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h.  */
23611
23612 /* Override any gcc2 internal prototype to avoid an error.  */
23613 #ifdef __cplusplus
23614 extern "C"
23615 #endif
23616 /* We use char because int might match the return type of a gcc2
23617    builtin and then its argument prototype would still apply.  */
23618 char dlopen ();
23619 int
23620 main ()
23621 {
23622 dlopen ();
23623   ;
23624   return 0;
23625 }
23626 _ACEOF
23627 rm -f conftest.$ac_objext conftest$ac_exeext
23628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23629   (eval $ac_link) 2>conftest.er1
23630   ac_status=$?
23631   grep -v '^ *+' conftest.er1 >conftest.err
23632   rm -f conftest.er1
23633   cat conftest.err >&5
23634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635   (exit $ac_status); } &&
23636          { ac_try='test -z "$ac_c_werror_flag"
23637                          || test ! -s conftest.err'
23638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23639   (eval $ac_try) 2>&5
23640   ac_status=$?
23641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642   (exit $ac_status); }; } &&
23643          { ac_try='test -s conftest$ac_exeext'
23644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23645   (eval $ac_try) 2>&5
23646   ac_status=$?
23647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648   (exit $ac_status); }; }; then
23649   ac_cv_lib_svld_dlopen=yes
23650 else
23651   echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23653
23654 ac_cv_lib_svld_dlopen=no
23655 fi
23656 rm -f conftest.err conftest.$ac_objext \
23657       conftest$ac_exeext conftest.$ac_ext
23658 LIBS=$ac_check_lib_save_LIBS
23659 fi
23660 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23661 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23662 if test $ac_cv_lib_svld_dlopen = yes; then
23663   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23664 else
23665   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23666 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23667 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23668   echo $ECHO_N "(cached) $ECHO_C" >&6
23669 else
23670   ac_check_lib_save_LIBS=$LIBS
23671 LIBS="-ldld  $LIBS"
23672 cat >conftest.$ac_ext <<_ACEOF
23673 /* confdefs.h.  */
23674 _ACEOF
23675 cat confdefs.h >>conftest.$ac_ext
23676 cat >>conftest.$ac_ext <<_ACEOF
23677 /* end confdefs.h.  */
23678
23679 /* Override any gcc2 internal prototype to avoid an error.  */
23680 #ifdef __cplusplus
23681 extern "C"
23682 #endif
23683 /* We use char because int might match the return type of a gcc2
23684    builtin and then its argument prototype would still apply.  */
23685 char dld_link ();
23686 int
23687 main ()
23688 {
23689 dld_link ();
23690   ;
23691   return 0;
23692 }
23693 _ACEOF
23694 rm -f conftest.$ac_objext conftest$ac_exeext
23695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23696   (eval $ac_link) 2>conftest.er1
23697   ac_status=$?
23698   grep -v '^ *+' conftest.er1 >conftest.err
23699   rm -f conftest.er1
23700   cat conftest.err >&5
23701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702   (exit $ac_status); } &&
23703          { ac_try='test -z "$ac_c_werror_flag"
23704                          || test ! -s conftest.err'
23705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23706   (eval $ac_try) 2>&5
23707   ac_status=$?
23708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709   (exit $ac_status); }; } &&
23710          { ac_try='test -s conftest$ac_exeext'
23711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23712   (eval $ac_try) 2>&5
23713   ac_status=$?
23714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715   (exit $ac_status); }; }; then
23716   ac_cv_lib_dld_dld_link=yes
23717 else
23718   echo "$as_me: failed program was:" >&5
23719 sed 's/^/| /' conftest.$ac_ext >&5
23720
23721 ac_cv_lib_dld_dld_link=no
23722 fi
23723 rm -f conftest.err conftest.$ac_objext \
23724       conftest$ac_exeext conftest.$ac_ext
23725 LIBS=$ac_check_lib_save_LIBS
23726 fi
23727 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23728 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23729 if test $ac_cv_lib_dld_dld_link = yes; then
23730   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23731 fi
23732
23733
23734 fi
23735
23736
23737 fi
23738
23739
23740 fi
23741
23742
23743 fi
23744
23745
23746 fi
23747
23748     ;;
23749   esac
23750
23751   if test "x$lt_cv_dlopen" != xno; then
23752     enable_dlopen=yes
23753   else
23754     enable_dlopen=no
23755   fi
23756
23757   case $lt_cv_dlopen in
23758   dlopen)
23759     save_CPPFLAGS="$CPPFLAGS"
23760     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23761
23762     save_LDFLAGS="$LDFLAGS"
23763     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23764
23765     save_LIBS="$LIBS"
23766     LIBS="$lt_cv_dlopen_libs $LIBS"
23767
23768     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23769 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23770 if test "${lt_cv_dlopen_self+set}" = set; then
23771   echo $ECHO_N "(cached) $ECHO_C" >&6
23772 else
23773           if test "$cross_compiling" = yes; then :
23774   lt_cv_dlopen_self=cross
23775 else
23776   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23777   lt_status=$lt_dlunknown
23778   cat > conftest.$ac_ext <<EOF
23779 #line 23779 "configure"
23780 #include "confdefs.h"
23781
23782 #if HAVE_DLFCN_H
23783 #include <dlfcn.h>
23784 #endif
23785
23786 #include <stdio.h>
23787
23788 #ifdef RTLD_GLOBAL
23789 #  define LT_DLGLOBAL           RTLD_GLOBAL
23790 #else
23791 #  ifdef DL_GLOBAL
23792 #    define LT_DLGLOBAL         DL_GLOBAL
23793 #  else
23794 #    define LT_DLGLOBAL         0
23795 #  endif
23796 #endif
23797
23798 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23799    find out it does not work in some platform. */
23800 #ifndef LT_DLLAZY_OR_NOW
23801 #  ifdef RTLD_LAZY
23802 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23803 #  else
23804 #    ifdef DL_LAZY
23805 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23806 #    else
23807 #      ifdef RTLD_NOW
23808 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23809 #      else
23810 #        ifdef DL_NOW
23811 #          define LT_DLLAZY_OR_NOW      DL_NOW
23812 #        else
23813 #          define LT_DLLAZY_OR_NOW      0
23814 #        endif
23815 #      endif
23816 #    endif
23817 #  endif
23818 #endif
23819
23820 #ifdef __cplusplus
23821 extern "C" void exit (int);
23822 #endif
23823
23824 void fnord() { int i=42;}
23825 int main ()
23826 {
23827   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23828   int status = $lt_dlunknown;
23829
23830   if (self)
23831     {
23832       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23833       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23834       /* dlclose (self); */
23835     }
23836
23837     exit (status);
23838 }
23839 EOF
23840   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23841   (eval $ac_link) 2>&5
23842   ac_status=$?
23843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23845     (./conftest; exit; ) 2>/dev/null
23846     lt_status=$?
23847     case x$lt_status in
23848       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23849       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23850       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23851     esac
23852   else :
23853     # compilation failed
23854     lt_cv_dlopen_self=no
23855   fi
23856 fi
23857 rm -fr conftest*
23858
23859
23860 fi
23861 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23862 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23863
23864     if test "x$lt_cv_dlopen_self" = xyes; then
23865       LDFLAGS="$LDFLAGS $link_static_flag"
23866       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23867 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23868 if test "${lt_cv_dlopen_self_static+set}" = set; then
23869   echo $ECHO_N "(cached) $ECHO_C" >&6
23870 else
23871           if test "$cross_compiling" = yes; then :
23872   lt_cv_dlopen_self_static=cross
23873 else
23874   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23875   lt_status=$lt_dlunknown
23876   cat > conftest.$ac_ext <<EOF
23877 #line 23877 "configure"
23878 #include "confdefs.h"
23879
23880 #if HAVE_DLFCN_H
23881 #include <dlfcn.h>
23882 #endif
23883
23884 #include <stdio.h>
23885
23886 #ifdef RTLD_GLOBAL
23887 #  define LT_DLGLOBAL           RTLD_GLOBAL
23888 #else
23889 #  ifdef DL_GLOBAL
23890 #    define LT_DLGLOBAL         DL_GLOBAL
23891 #  else
23892 #    define LT_DLGLOBAL         0
23893 #  endif
23894 #endif
23895
23896 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23897    find out it does not work in some platform. */
23898 #ifndef LT_DLLAZY_OR_NOW
23899 #  ifdef RTLD_LAZY
23900 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23901 #  else
23902 #    ifdef DL_LAZY
23903 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23904 #    else
23905 #      ifdef RTLD_NOW
23906 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23907 #      else
23908 #        ifdef DL_NOW
23909 #          define LT_DLLAZY_OR_NOW      DL_NOW
23910 #        else
23911 #          define LT_DLLAZY_OR_NOW      0
23912 #        endif
23913 #      endif
23914 #    endif
23915 #  endif
23916 #endif
23917
23918 #ifdef __cplusplus
23919 extern "C" void exit (int);
23920 #endif
23921
23922 void fnord() { int i=42;}
23923 int main ()
23924 {
23925   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23926   int status = $lt_dlunknown;
23927
23928   if (self)
23929     {
23930       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23931       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23932       /* dlclose (self); */
23933     }
23934
23935     exit (status);
23936 }
23937 EOF
23938   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23939   (eval $ac_link) 2>&5
23940   ac_status=$?
23941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23943     (./conftest; exit; ) 2>/dev/null
23944     lt_status=$?
23945     case x$lt_status in
23946       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23947       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23948       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23949     esac
23950   else :
23951     # compilation failed
23952     lt_cv_dlopen_self_static=no
23953   fi
23954 fi
23955 rm -fr conftest*
23956
23957
23958 fi
23959 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23960 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23961     fi
23962
23963     CPPFLAGS="$save_CPPFLAGS"
23964     LDFLAGS="$save_LDFLAGS"
23965     LIBS="$save_LIBS"
23966     ;;
23967   esac
23968
23969   case $lt_cv_dlopen_self in
23970   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23971   *) enable_dlopen_self=unknown ;;
23972   esac
23973
23974   case $lt_cv_dlopen_self_static in
23975   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23976   *) enable_dlopen_self_static=unknown ;;
23977   esac
23978 fi
23979
23980
23981 # The else clause should only fire when bootstrapping the
23982 # libtool distribution, otherwise you forgot to ship ltmain.sh
23983 # with your package, and you will get complaints that there are
23984 # no rules to generate ltmain.sh.
23985 if test -f "$ltmain"; then
23986   # See if we are running on zsh, and set the options which allow our commands through
23987   # without removal of \ escapes.
23988   if test -n "${ZSH_VERSION+set}" ; then
23989     setopt NO_GLOB_SUBST
23990   fi
23991   # Now quote all the things that may contain metacharacters while being
23992   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23993   # variables and quote the copies for generation of the libtool script.
23994   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23995     SED SHELL STRIP \
23996     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23997     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23998     deplibs_check_method reload_flag reload_cmds need_locks \
23999     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24000     lt_cv_sys_global_symbol_to_c_name_address \
24001     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24002     old_postinstall_cmds old_postuninstall_cmds \
24003     compiler_GCJ \
24004     CC_GCJ \
24005     LD_GCJ \
24006     lt_prog_compiler_wl_GCJ \
24007     lt_prog_compiler_pic_GCJ \
24008     lt_prog_compiler_static_GCJ \
24009     lt_prog_compiler_no_builtin_flag_GCJ \
24010     export_dynamic_flag_spec_GCJ \
24011     thread_safe_flag_spec_GCJ \
24012     whole_archive_flag_spec_GCJ \
24013     enable_shared_with_static_runtimes_GCJ \
24014     old_archive_cmds_GCJ \
24015     old_archive_from_new_cmds_GCJ \
24016     predep_objects_GCJ \
24017     postdep_objects_GCJ \
24018     predeps_GCJ \
24019     postdeps_GCJ \
24020     compiler_lib_search_path_GCJ \
24021     archive_cmds_GCJ \
24022     archive_expsym_cmds_GCJ \
24023     postinstall_cmds_GCJ \
24024     postuninstall_cmds_GCJ \
24025     old_archive_from_expsyms_cmds_GCJ \
24026     allow_undefined_flag_GCJ \
24027     no_undefined_flag_GCJ \
24028     export_symbols_cmds_GCJ \
24029     hardcode_libdir_flag_spec_GCJ \
24030     hardcode_libdir_flag_spec_ld_GCJ \
24031     hardcode_libdir_separator_GCJ \
24032     hardcode_automatic_GCJ \
24033     module_cmds_GCJ \
24034     module_expsym_cmds_GCJ \
24035     lt_cv_prog_compiler_c_o_GCJ \
24036     exclude_expsyms_GCJ \
24037     include_expsyms_GCJ; do
24038
24039     case $var in
24040     old_archive_cmds_GCJ | \
24041     old_archive_from_new_cmds_GCJ | \
24042     archive_cmds_GCJ | \
24043     archive_expsym_cmds_GCJ | \
24044     module_cmds_GCJ | \
24045     module_expsym_cmds_GCJ | \
24046     old_archive_from_expsyms_cmds_GCJ | \
24047     export_symbols_cmds_GCJ | \
24048     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24049     postinstall_cmds | postuninstall_cmds | \
24050     old_postinstall_cmds | old_postuninstall_cmds | \
24051     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24052       # Double-quote double-evaled strings.
24053       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24054       ;;
24055     *)
24056       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24057       ;;
24058     esac
24059   done
24060
24061   case $lt_echo in
24062   *'\$0 --fallback-echo"')
24063     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24064     ;;
24065   esac
24066
24067 cfgfile="$ofile"
24068
24069   cat <<__EOF__ >> "$cfgfile"
24070 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24071
24072 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24073
24074 # Shell to use when invoking shell scripts.
24075 SHELL=$lt_SHELL
24076
24077 # Whether or not to build shared libraries.
24078 build_libtool_libs=$enable_shared
24079
24080 # Whether or not to build static libraries.
24081 build_old_libs=$enable_static
24082
24083 # Whether or not to add -lc for building shared libraries.
24084 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24085
24086 # Whether or not to disallow shared libs when runtime libs are static
24087 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24088
24089 # Whether or not to optimize for fast installation.
24090 fast_install=$enable_fast_install
24091
24092 # The host system.
24093 host_alias=$host_alias
24094 host=$host
24095
24096 # An echo program that does not interpret backslashes.
24097 echo=$lt_echo
24098
24099 # The archiver.
24100 AR=$lt_AR
24101 AR_FLAGS=$lt_AR_FLAGS
24102
24103 # A C compiler.
24104 LTCC=$lt_LTCC
24105
24106 # A language-specific compiler.
24107 CC=$lt_compiler_GCJ
24108
24109 # Is the compiler the GNU C compiler?
24110 with_gcc=$GCC_GCJ
24111
24112 # An ERE matcher.
24113 EGREP=$lt_EGREP
24114
24115 # The linker used to build libraries.
24116 LD=$lt_LD_GCJ
24117
24118 # Whether we need hard or soft links.
24119 LN_S=$lt_LN_S
24120
24121 # A BSD-compatible nm program.
24122 NM=$lt_NM
24123
24124 # A symbol stripping program
24125 STRIP=$lt_STRIP
24126
24127 # Used to examine libraries when file_magic_cmd begins "file"
24128 MAGIC_CMD=$MAGIC_CMD
24129
24130 # Used on cygwin: DLL creation program.
24131 DLLTOOL="$DLLTOOL"
24132
24133 # Used on cygwin: object dumper.
24134 OBJDUMP="$OBJDUMP"
24135
24136 # Used on cygwin: assembler.
24137 AS="$AS"
24138
24139 # The name of the directory that contains temporary libtool files.
24140 objdir=$objdir
24141
24142 # How to create reloadable object files.
24143 reload_flag=$lt_reload_flag
24144 reload_cmds=$lt_reload_cmds
24145
24146 # How to pass a linker flag through the compiler.
24147 wl=$lt_lt_prog_compiler_wl_GCJ
24148
24149 # Object file suffix (normally "o").
24150 objext="$ac_objext"
24151
24152 # Old archive suffix (normally "a").
24153 libext="$libext"
24154
24155 # Shared library suffix (normally ".so").
24156 shrext_cmds='$shrext_cmds'
24157
24158 # Executable file suffix (normally "").
24159 exeext="$exeext"
24160
24161 # Additional compiler flags for building library objects.
24162 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24163 pic_mode=$pic_mode
24164
24165 # What is the maximum length of a command?
24166 max_cmd_len=$lt_cv_sys_max_cmd_len
24167
24168 # Does compiler simultaneously support -c and -o options?
24169 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24170
24171 # Must we lock files when doing compilation ?
24172 need_locks=$lt_need_locks
24173
24174 # Do we need the lib prefix for modules?
24175 need_lib_prefix=$need_lib_prefix
24176
24177 # Do we need a version for libraries?
24178 need_version=$need_version
24179
24180 # Whether dlopen is supported.
24181 dlopen_support=$enable_dlopen
24182
24183 # Whether dlopen of programs is supported.
24184 dlopen_self=$enable_dlopen_self
24185
24186 # Whether dlopen of statically linked programs is supported.
24187 dlopen_self_static=$enable_dlopen_self_static
24188
24189 # Compiler flag to prevent dynamic linking.
24190 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24191
24192 # Compiler flag to turn off builtin functions.
24193 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24194
24195 # Compiler flag to allow reflexive dlopens.
24196 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24197
24198 # Compiler flag to generate shared objects directly from archives.
24199 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24200
24201 # Compiler flag to generate thread-safe objects.
24202 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24203
24204 # Library versioning type.
24205 version_type=$version_type
24206
24207 # Format of library name prefix.
24208 libname_spec=$lt_libname_spec
24209
24210 # List of archive names.  First name is the real one, the rest are links.
24211 # The last name is the one that the linker finds with -lNAME.
24212 library_names_spec=$lt_library_names_spec
24213
24214 # The coded name of the library, if different from the real name.
24215 soname_spec=$lt_soname_spec
24216
24217 # Commands used to build and install an old-style archive.
24218 RANLIB=$lt_RANLIB
24219 old_archive_cmds=$lt_old_archive_cmds_GCJ
24220 old_postinstall_cmds=$lt_old_postinstall_cmds
24221 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24222
24223 # Create an old-style archive from a shared archive.
24224 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24225
24226 # Create a temporary old-style archive to link instead of a shared archive.
24227 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24228
24229 # Commands used to build and install a shared archive.
24230 archive_cmds=$lt_archive_cmds_GCJ
24231 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24232 postinstall_cmds=$lt_postinstall_cmds
24233 postuninstall_cmds=$lt_postuninstall_cmds
24234
24235 # Commands used to build a loadable module (assumed same as above if empty)
24236 module_cmds=$lt_module_cmds_GCJ
24237 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24238
24239 # Commands to strip libraries.
24240 old_striplib=$lt_old_striplib
24241 striplib=$lt_striplib
24242
24243 # Dependencies to place before the objects being linked to create a
24244 # shared library.
24245 predep_objects=$lt_predep_objects_GCJ
24246
24247 # Dependencies to place after the objects being linked to create a
24248 # shared library.
24249 postdep_objects=$lt_postdep_objects_GCJ
24250
24251 # Dependencies to place before the objects being linked to create a
24252 # shared library.
24253 predeps=$lt_predeps_GCJ
24254
24255 # Dependencies to place after the objects being linked to create a
24256 # shared library.
24257 postdeps=$lt_postdeps_GCJ
24258
24259 # The library search path used internally by the compiler when linking
24260 # a shared library.
24261 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24262
24263 # Method to check whether dependent libraries are shared objects.
24264 deplibs_check_method=$lt_deplibs_check_method
24265
24266 # Command to use when deplibs_check_method == file_magic.
24267 file_magic_cmd=$lt_file_magic_cmd
24268
24269 # Flag that allows shared libraries with undefined symbols to be built.
24270 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24271
24272 # Flag that forces no undefined symbols.
24273 no_undefined_flag=$lt_no_undefined_flag_GCJ
24274
24275 # Commands used to finish a libtool library installation in a directory.
24276 finish_cmds=$lt_finish_cmds
24277
24278 # Same as above, but a single script fragment to be evaled but not shown.
24279 finish_eval=$lt_finish_eval
24280
24281 # Take the output of nm and produce a listing of raw symbols and C names.
24282 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24283
24284 # Transform the output of nm in a proper C declaration
24285 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24286
24287 # Transform the output of nm in a C name address pair
24288 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24289
24290 # This is the shared library runtime path variable.
24291 runpath_var=$runpath_var
24292
24293 # This is the shared library path variable.
24294 shlibpath_var=$shlibpath_var
24295
24296 # Is shlibpath searched before the hard-coded library search path?
24297 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24298
24299 # How to hardcode a shared library path into an executable.
24300 hardcode_action=$hardcode_action_GCJ
24301
24302 # Whether we should hardcode library paths into libraries.
24303 hardcode_into_libs=$hardcode_into_libs
24304
24305 # Flag to hardcode \$libdir into a binary during linking.
24306 # This must work even if \$libdir does not exist.
24307 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24308
24309 # If ld is used when linking, flag to hardcode \$libdir into
24310 # a binary during linking. This must work even if \$libdir does
24311 # not exist.
24312 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24313
24314 # Whether we need a single -rpath flag with a separated argument.
24315 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24316
24317 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24318 # resulting binary.
24319 hardcode_direct=$hardcode_direct_GCJ
24320
24321 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24322 # resulting binary.
24323 hardcode_minus_L=$hardcode_minus_L_GCJ
24324
24325 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24326 # the resulting binary.
24327 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24328
24329 # Set to yes if building a shared library automatically hardcodes DIR into the library
24330 # and all subsequent libraries and executables linked against it.
24331 hardcode_automatic=$hardcode_automatic_GCJ
24332
24333 # Variables whose values should be saved in libtool wrapper scripts and
24334 # restored at relink time.
24335 variables_saved_for_relink="$variables_saved_for_relink"
24336
24337 # Whether libtool must link a program against all its dependency libraries.
24338 link_all_deplibs=$link_all_deplibs_GCJ
24339
24340 # Compile-time system search path for libraries
24341 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24342
24343 # Run-time system search path for libraries
24344 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24345
24346 # Fix the shell variable \$srcfile for the compiler.
24347 fix_srcfile_path="$fix_srcfile_path_GCJ"
24348
24349 # Set to yes if exported symbols are required.
24350 always_export_symbols=$always_export_symbols_GCJ
24351
24352 # The commands to list exported symbols.
24353 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24354
24355 # The commands to extract the exported symbol list from a shared archive.
24356 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24357
24358 # Symbols that should not be listed in the preloaded symbols.
24359 exclude_expsyms=$lt_exclude_expsyms_GCJ
24360
24361 # Symbols that must always be exported.
24362 include_expsyms=$lt_include_expsyms_GCJ
24363
24364 # ### END LIBTOOL TAG CONFIG: $tagname
24365
24366 __EOF__
24367
24368
24369 else
24370   # If there is no Makefile yet, we rely on a make rule to execute
24371   # `config.status --recheck' to rerun these tests and create the
24372   # libtool script then.
24373   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24374   if test -f "$ltmain_in"; then
24375     test -f Makefile && make "$ltmain"
24376   fi
24377 fi
24378
24379
24380 ac_ext=c
24381 ac_cpp='$CPP $CPPFLAGS'
24382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24385
24386 CC="$lt_save_CC"
24387
24388         else
24389           tagname=""
24390         fi
24391         ;;
24392
24393       RC)
24394         ac_ext=c
24395 ac_cpp='$CPP $CPPFLAGS'
24396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24399
24400
24401 # Source file extension for RC test sources.
24402 ac_ext=rc
24403
24404 # Object file extension for compiled RC test sources.
24405 objext=o
24406 objext_RC=$objext
24407
24408 # Code to be used in simple compile tests
24409 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24410
24411 # Code to be used in simple link tests
24412 lt_simple_link_test_code="$lt_simple_compile_test_code"
24413
24414 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24415
24416 # If no C compiler was specified, use CC.
24417 LTCC=${LTCC-"$CC"}
24418
24419 # Allow CC to be a program name with arguments.
24420 compiler=$CC
24421
24422
24423 # Allow CC to be a program name with arguments.
24424 lt_save_CC="$CC"
24425 CC=${RC-"windres"}
24426 compiler=$CC
24427 compiler_RC=$CC
24428 lt_cv_prog_compiler_c_o_RC=yes
24429
24430 # The else clause should only fire when bootstrapping the
24431 # libtool distribution, otherwise you forgot to ship ltmain.sh
24432 # with your package, and you will get complaints that there are
24433 # no rules to generate ltmain.sh.
24434 if test -f "$ltmain"; then
24435   # See if we are running on zsh, and set the options which allow our commands through
24436   # without removal of \ escapes.
24437   if test -n "${ZSH_VERSION+set}" ; then
24438     setopt NO_GLOB_SUBST
24439   fi
24440   # Now quote all the things that may contain metacharacters while being
24441   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24442   # variables and quote the copies for generation of the libtool script.
24443   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24444     SED SHELL STRIP \
24445     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24446     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24447     deplibs_check_method reload_flag reload_cmds need_locks \
24448     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24449     lt_cv_sys_global_symbol_to_c_name_address \
24450     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24451     old_postinstall_cmds old_postuninstall_cmds \
24452     compiler_RC \
24453     CC_RC \
24454     LD_RC \
24455     lt_prog_compiler_wl_RC \
24456     lt_prog_compiler_pic_RC \
24457     lt_prog_compiler_static_RC \
24458     lt_prog_compiler_no_builtin_flag_RC \
24459     export_dynamic_flag_spec_RC \
24460     thread_safe_flag_spec_RC \
24461     whole_archive_flag_spec_RC \
24462     enable_shared_with_static_runtimes_RC \
24463     old_archive_cmds_RC \
24464     old_archive_from_new_cmds_RC \
24465     predep_objects_RC \
24466     postdep_objects_RC \
24467     predeps_RC \
24468     postdeps_RC \
24469     compiler_lib_search_path_RC \
24470     archive_cmds_RC \
24471     archive_expsym_cmds_RC \
24472     postinstall_cmds_RC \
24473     postuninstall_cmds_RC \
24474     old_archive_from_expsyms_cmds_RC \
24475     allow_undefined_flag_RC \
24476     no_undefined_flag_RC \
24477     export_symbols_cmds_RC \
24478     hardcode_libdir_flag_spec_RC \
24479     hardcode_libdir_flag_spec_ld_RC \
24480     hardcode_libdir_separator_RC \
24481     hardcode_automatic_RC \
24482     module_cmds_RC \
24483     module_expsym_cmds_RC \
24484     lt_cv_prog_compiler_c_o_RC \
24485     exclude_expsyms_RC \
24486     include_expsyms_RC; do
24487
24488     case $var in
24489     old_archive_cmds_RC | \
24490     old_archive_from_new_cmds_RC | \
24491     archive_cmds_RC | \
24492     archive_expsym_cmds_RC | \
24493     module_cmds_RC | \
24494     module_expsym_cmds_RC | \
24495     old_archive_from_expsyms_cmds_RC | \
24496     export_symbols_cmds_RC | \
24497     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24498     postinstall_cmds | postuninstall_cmds | \
24499     old_postinstall_cmds | old_postuninstall_cmds | \
24500     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24501       # Double-quote double-evaled strings.
24502       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24503       ;;
24504     *)
24505       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24506       ;;
24507     esac
24508   done
24509
24510   case $lt_echo in
24511   *'\$0 --fallback-echo"')
24512     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24513     ;;
24514   esac
24515
24516 cfgfile="$ofile"
24517
24518   cat <<__EOF__ >> "$cfgfile"
24519 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24520
24521 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24522
24523 # Shell to use when invoking shell scripts.
24524 SHELL=$lt_SHELL
24525
24526 # Whether or not to build shared libraries.
24527 build_libtool_libs=$enable_shared
24528
24529 # Whether or not to build static libraries.
24530 build_old_libs=$enable_static
24531
24532 # Whether or not to add -lc for building shared libraries.
24533 build_libtool_need_lc=$archive_cmds_need_lc_RC
24534
24535 # Whether or not to disallow shared libs when runtime libs are static
24536 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24537
24538 # Whether or not to optimize for fast installation.
24539 fast_install=$enable_fast_install
24540
24541 # The host system.
24542 host_alias=$host_alias
24543 host=$host
24544
24545 # An echo program that does not interpret backslashes.
24546 echo=$lt_echo
24547
24548 # The archiver.
24549 AR=$lt_AR
24550 AR_FLAGS=$lt_AR_FLAGS
24551
24552 # A C compiler.
24553 LTCC=$lt_LTCC
24554
24555 # A language-specific compiler.
24556 CC=$lt_compiler_RC
24557
24558 # Is the compiler the GNU C compiler?
24559 with_gcc=$GCC_RC
24560
24561 # An ERE matcher.
24562 EGREP=$lt_EGREP
24563
24564 # The linker used to build libraries.
24565 LD=$lt_LD_RC
24566
24567 # Whether we need hard or soft links.
24568 LN_S=$lt_LN_S
24569
24570 # A BSD-compatible nm program.
24571 NM=$lt_NM
24572
24573 # A symbol stripping program
24574 STRIP=$lt_STRIP
24575
24576 # Used to examine libraries when file_magic_cmd begins "file"
24577 MAGIC_CMD=$MAGIC_CMD
24578
24579 # Used on cygwin: DLL creation program.
24580 DLLTOOL="$DLLTOOL"
24581
24582 # Used on cygwin: object dumper.
24583 OBJDUMP="$OBJDUMP"
24584
24585 # Used on cygwin: assembler.
24586 AS="$AS"
24587
24588 # The name of the directory that contains temporary libtool files.
24589 objdir=$objdir
24590
24591 # How to create reloadable object files.
24592 reload_flag=$lt_reload_flag
24593 reload_cmds=$lt_reload_cmds
24594
24595 # How to pass a linker flag through the compiler.
24596 wl=$lt_lt_prog_compiler_wl_RC
24597
24598 # Object file suffix (normally "o").
24599 objext="$ac_objext"
24600
24601 # Old archive suffix (normally "a").
24602 libext="$libext"
24603
24604 # Shared library suffix (normally ".so").
24605 shrext_cmds='$shrext_cmds'
24606
24607 # Executable file suffix (normally "").
24608 exeext="$exeext"
24609
24610 # Additional compiler flags for building library objects.
24611 pic_flag=$lt_lt_prog_compiler_pic_RC
24612 pic_mode=$pic_mode
24613
24614 # What is the maximum length of a command?
24615 max_cmd_len=$lt_cv_sys_max_cmd_len
24616
24617 # Does compiler simultaneously support -c and -o options?
24618 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24619
24620 # Must we lock files when doing compilation ?
24621 need_locks=$lt_need_locks
24622
24623 # Do we need the lib prefix for modules?
24624 need_lib_prefix=$need_lib_prefix
24625
24626 # Do we need a version for libraries?
24627 need_version=$need_version
24628
24629 # Whether dlopen is supported.
24630 dlopen_support=$enable_dlopen
24631
24632 # Whether dlopen of programs is supported.
24633 dlopen_self=$enable_dlopen_self
24634
24635 # Whether dlopen of statically linked programs is supported.
24636 dlopen_self_static=$enable_dlopen_self_static
24637
24638 # Compiler flag to prevent dynamic linking.
24639 link_static_flag=$lt_lt_prog_compiler_static_RC
24640
24641 # Compiler flag to turn off builtin functions.
24642 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24643
24644 # Compiler flag to allow reflexive dlopens.
24645 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24646
24647 # Compiler flag to generate shared objects directly from archives.
24648 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24649
24650 # Compiler flag to generate thread-safe objects.
24651 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24652
24653 # Library versioning type.
24654 version_type=$version_type
24655
24656 # Format of library name prefix.
24657 libname_spec=$lt_libname_spec
24658
24659 # List of archive names.  First name is the real one, the rest are links.
24660 # The last name is the one that the linker finds with -lNAME.
24661 library_names_spec=$lt_library_names_spec
24662
24663 # The coded name of the library, if different from the real name.
24664 soname_spec=$lt_soname_spec
24665
24666 # Commands used to build and install an old-style archive.
24667 RANLIB=$lt_RANLIB
24668 old_archive_cmds=$lt_old_archive_cmds_RC
24669 old_postinstall_cmds=$lt_old_postinstall_cmds
24670 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24671
24672 # Create an old-style archive from a shared archive.
24673 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24674
24675 # Create a temporary old-style archive to link instead of a shared archive.
24676 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24677
24678 # Commands used to build and install a shared archive.
24679 archive_cmds=$lt_archive_cmds_RC
24680 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24681 postinstall_cmds=$lt_postinstall_cmds
24682 postuninstall_cmds=$lt_postuninstall_cmds
24683
24684 # Commands used to build a loadable module (assumed same as above if empty)
24685 module_cmds=$lt_module_cmds_RC
24686 module_expsym_cmds=$lt_module_expsym_cmds_RC
24687
24688 # Commands to strip libraries.
24689 old_striplib=$lt_old_striplib
24690 striplib=$lt_striplib
24691
24692 # Dependencies to place before the objects being linked to create a
24693 # shared library.
24694 predep_objects=$lt_predep_objects_RC
24695
24696 # Dependencies to place after the objects being linked to create a
24697 # shared library.
24698 postdep_objects=$lt_postdep_objects_RC
24699
24700 # Dependencies to place before the objects being linked to create a
24701 # shared library.
24702 predeps=$lt_predeps_RC
24703
24704 # Dependencies to place after the objects being linked to create a
24705 # shared library.
24706 postdeps=$lt_postdeps_RC
24707
24708 # The library search path used internally by the compiler when linking
24709 # a shared library.
24710 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24711
24712 # Method to check whether dependent libraries are shared objects.
24713 deplibs_check_method=$lt_deplibs_check_method
24714
24715 # Command to use when deplibs_check_method == file_magic.
24716 file_magic_cmd=$lt_file_magic_cmd
24717
24718 # Flag that allows shared libraries with undefined symbols to be built.
24719 allow_undefined_flag=$lt_allow_undefined_flag_RC
24720
24721 # Flag that forces no undefined symbols.
24722 no_undefined_flag=$lt_no_undefined_flag_RC
24723
24724 # Commands used to finish a libtool library installation in a directory.
24725 finish_cmds=$lt_finish_cmds
24726
24727 # Same as above, but a single script fragment to be evaled but not shown.
24728 finish_eval=$lt_finish_eval
24729
24730 # Take the output of nm and produce a listing of raw symbols and C names.
24731 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24732
24733 # Transform the output of nm in a proper C declaration
24734 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24735
24736 # Transform the output of nm in a C name address pair
24737 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24738
24739 # This is the shared library runtime path variable.
24740 runpath_var=$runpath_var
24741
24742 # This is the shared library path variable.
24743 shlibpath_var=$shlibpath_var
24744
24745 # Is shlibpath searched before the hard-coded library search path?
24746 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24747
24748 # How to hardcode a shared library path into an executable.
24749 hardcode_action=$hardcode_action_RC
24750
24751 # Whether we should hardcode library paths into libraries.
24752 hardcode_into_libs=$hardcode_into_libs
24753
24754 # Flag to hardcode \$libdir into a binary during linking.
24755 # This must work even if \$libdir does not exist.
24756 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24757
24758 # If ld is used when linking, flag to hardcode \$libdir into
24759 # a binary during linking. This must work even if \$libdir does
24760 # not exist.
24761 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24762
24763 # Whether we need a single -rpath flag with a separated argument.
24764 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24765
24766 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24767 # resulting binary.
24768 hardcode_direct=$hardcode_direct_RC
24769
24770 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24771 # resulting binary.
24772 hardcode_minus_L=$hardcode_minus_L_RC
24773
24774 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24775 # the resulting binary.
24776 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24777
24778 # Set to yes if building a shared library automatically hardcodes DIR into the library
24779 # and all subsequent libraries and executables linked against it.
24780 hardcode_automatic=$hardcode_automatic_RC
24781
24782 # Variables whose values should be saved in libtool wrapper scripts and
24783 # restored at relink time.
24784 variables_saved_for_relink="$variables_saved_for_relink"
24785
24786 # Whether libtool must link a program against all its dependency libraries.
24787 link_all_deplibs=$link_all_deplibs_RC
24788
24789 # Compile-time system search path for libraries
24790 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24791
24792 # Run-time system search path for libraries
24793 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24794
24795 # Fix the shell variable \$srcfile for the compiler.
24796 fix_srcfile_path="$fix_srcfile_path_RC"
24797
24798 # Set to yes if exported symbols are required.
24799 always_export_symbols=$always_export_symbols_RC
24800
24801 # The commands to list exported symbols.
24802 export_symbols_cmds=$lt_export_symbols_cmds_RC
24803
24804 # The commands to extract the exported symbol list from a shared archive.
24805 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24806
24807 # Symbols that should not be listed in the preloaded symbols.
24808 exclude_expsyms=$lt_exclude_expsyms_RC
24809
24810 # Symbols that must always be exported.
24811 include_expsyms=$lt_include_expsyms_RC
24812
24813 # ### END LIBTOOL TAG CONFIG: $tagname
24814
24815 __EOF__
24816
24817
24818 else
24819   # If there is no Makefile yet, we rely on a make rule to execute
24820   # `config.status --recheck' to rerun these tests and create the
24821   # libtool script then.
24822   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24823   if test -f "$ltmain_in"; then
24824     test -f Makefile && make "$ltmain"
24825   fi
24826 fi
24827
24828
24829 ac_ext=c
24830 ac_cpp='$CPP $CPPFLAGS'
24831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24834
24835 CC="$lt_save_CC"
24836
24837         ;;
24838
24839       *)
24840         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24841 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24842    { (exit 1); exit 1; }; }
24843         ;;
24844       esac
24845
24846       # Append the new tag name to the list of available tags.
24847       if test -n "$tagname" ; then
24848       available_tags="$available_tags $tagname"
24849     fi
24850     fi
24851   done
24852   IFS="$lt_save_ifs"
24853
24854   # Now substitute the updated list of available tags.
24855   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24856     mv "${ofile}T" "$ofile"
24857     chmod +x "$ofile"
24858   else
24859     rm -f "${ofile}T"
24860     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24861 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24862    { (exit 1); exit 1; }; }
24863   fi
24864 fi
24865
24866
24867
24868 # This can be used to rebuild libtool when needed
24869 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24870
24871 # Always use our own libtool.
24872 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24873
24874 # Prevent multiple expansion
24875
24876
24877
24878
24879
24880
24881
24882
24883
24884
24885
24886
24887
24888
24889
24890
24891
24892
24893
24894
24895
24896 if test "$lt_cv_dlopen_self" = "yes" ; then
24897
24898 cat >>confdefs.h <<\_ACEOF
24899 #define CAN_DLOPEN_SELF 1
24900 _ACEOF
24901
24902 fi
24903
24904 etags_version=`$ETAGS --version 2>&1`
24905 case "$etags_version" in
24906         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24907         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24908         *) ETAGSFLAGS="" ;;
24909 esac
24910 ETAGSFLAGS=$ETAGSFLAGS
24911
24912
24913 if test "$WITH_LLVMGCCDIR" = "default" ; then
24914   LLVMGCC="llvm-gcc${EXEEXT}"
24915   LLVMGXX="llvm-g++${EXEEXT}"
24916   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24917 set dummy $LLVMGCC; ac_word=$2
24918 echo "$as_me:$LINENO: checking for $ac_word" >&5
24919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24920 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24921   echo $ECHO_N "(cached) $ECHO_C" >&6
24922 else
24923   case $LLVMGCC in
24924   [\\/]* | ?:[\\/]*)
24925   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24926   ;;
24927   *)
24928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24929 for as_dir in $PATH
24930 do
24931   IFS=$as_save_IFS
24932   test -z "$as_dir" && as_dir=.
24933   for ac_exec_ext in '' $ac_executable_extensions; do
24934   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24935     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24937     break 2
24938   fi
24939 done
24940 done
24941
24942   ;;
24943 esac
24944 fi
24945 LLVMGCC=$ac_cv_path_LLVMGCC
24946
24947 if test -n "$LLVMGCC"; then
24948   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24949 echo "${ECHO_T}$LLVMGCC" >&6
24950 else
24951   echo "$as_me:$LINENO: result: no" >&5
24952 echo "${ECHO_T}no" >&6
24953 fi
24954
24955   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24956 set dummy $LLVMGXX; ac_word=$2
24957 echo "$as_me:$LINENO: checking for $ac_word" >&5
24958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24959 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24960   echo $ECHO_N "(cached) $ECHO_C" >&6
24961 else
24962   case $LLVMGXX in
24963   [\\/]* | ?:[\\/]*)
24964   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24965   ;;
24966   *)
24967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24968 for as_dir in $PATH
24969 do
24970   IFS=$as_save_IFS
24971   test -z "$as_dir" && as_dir=.
24972   for ac_exec_ext in '' $ac_executable_extensions; do
24973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24974     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24976     break 2
24977   fi
24978 done
24979 done
24980
24981   ;;
24982 esac
24983 fi
24984 LLVMGXX=$ac_cv_path_LLVMGXX
24985
24986 if test -n "$LLVMGXX"; then
24987   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24988 echo "${ECHO_T}$LLVMGXX" >&6
24989 else
24990   echo "$as_me:$LINENO: result: no" >&5
24991 echo "${ECHO_T}no" >&6
24992 fi
24993
24994 else
24995   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24996   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24997   LLVMGCC=$LLVMGCC
24998
24999   LLVMGXX=$LLVMGXX
25000
25001 fi
25002
25003 echo "$as_me:$LINENO: checking tool compatibility" >&5
25004 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
25005
25006 ICC=no
25007 IXX=no
25008 case $CC in
25009   icc*|icpc*)
25010     ICC=yes
25011     IXX=yes
25012     ;;
25013    *)
25014     ;;
25015 esac
25016
25017 if test "$GCC" != "yes" && test "$ICC" != "yes"
25018 then
25019   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25020 echo "$as_me: error: gcc|icc required but not found" >&2;}
25021    { (exit 1); exit 1; }; }
25022 fi
25023
25024 if test "$GXX" != "yes" && test "$IXX" != "yes"
25025 then
25026   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25027 echo "$as_me: error: g++|icc required but not found" >&2;}
25028    { (exit 1); exit 1; }; }
25029 fi
25030
25031 if test "$GCC" = "yes"
25032 then
25033   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
25034   if test "$gccmajor" -lt "3"
25035   then
25036     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25037 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25038    { (exit 1); exit 1; }; }
25039   fi
25040 fi
25041
25042 if test -z "$llvm_cv_gnu_make_command"
25043 then
25044   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25045 echo "$as_me: error: GNU Make required but not found" >&2;}
25046    { (exit 1); exit 1; }; }
25047 fi
25048
25049 echo "$as_me:$LINENO: result: ok" >&5
25050 echo "${ECHO_T}ok" >&6
25051
25052
25053
25054 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25055 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25056 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25057   echo $ECHO_N "(cached) $ECHO_C" >&6
25058 else
25059   ac_check_lib_save_LIBS=$LIBS
25060 LIBS="-lelf  $LIBS"
25061 cat >conftest.$ac_ext <<_ACEOF
25062 /* confdefs.h.  */
25063 _ACEOF
25064 cat confdefs.h >>conftest.$ac_ext
25065 cat >>conftest.$ac_ext <<_ACEOF
25066 /* end confdefs.h.  */
25067
25068 /* Override any gcc2 internal prototype to avoid an error.  */
25069 #ifdef __cplusplus
25070 extern "C"
25071 #endif
25072 /* We use char because int might match the return type of a gcc2
25073    builtin and then its argument prototype would still apply.  */
25074 char elf_begin ();
25075 int
25076 main ()
25077 {
25078 elf_begin ();
25079   ;
25080   return 0;
25081 }
25082 _ACEOF
25083 rm -f conftest.$ac_objext conftest$ac_exeext
25084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25085   (eval $ac_link) 2>conftest.er1
25086   ac_status=$?
25087   grep -v '^ *+' conftest.er1 >conftest.err
25088   rm -f conftest.er1
25089   cat conftest.err >&5
25090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091   (exit $ac_status); } &&
25092          { ac_try='test -z "$ac_c_werror_flag"
25093                          || test ! -s conftest.err'
25094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25095   (eval $ac_try) 2>&5
25096   ac_status=$?
25097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098   (exit $ac_status); }; } &&
25099          { ac_try='test -s conftest$ac_exeext'
25100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25101   (eval $ac_try) 2>&5
25102   ac_status=$?
25103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104   (exit $ac_status); }; }; then
25105   ac_cv_lib_elf_elf_begin=yes
25106 else
25107   echo "$as_me: failed program was:" >&5
25108 sed 's/^/| /' conftest.$ac_ext >&5
25109
25110 ac_cv_lib_elf_elf_begin=no
25111 fi
25112 rm -f conftest.err conftest.$ac_objext \
25113       conftest$ac_exeext conftest.$ac_ext
25114 LIBS=$ac_check_lib_save_LIBS
25115 fi
25116 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25117 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25118 if test $ac_cv_lib_elf_elf_begin = yes; then
25119   cat >>confdefs.h <<_ACEOF
25120 #define HAVE_LIBELF 1
25121 _ACEOF
25122
25123   LIBS="-lelf $LIBS"
25124
25125 fi
25126
25127
25128 echo "$as_me:$LINENO: checking for sin in -lm" >&5
25129 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25130 if test "${ac_cv_lib_m_sin+set}" = set; then
25131   echo $ECHO_N "(cached) $ECHO_C" >&6
25132 else
25133   ac_check_lib_save_LIBS=$LIBS
25134 LIBS="-lm  $LIBS"
25135 cat >conftest.$ac_ext <<_ACEOF
25136 /* confdefs.h.  */
25137 _ACEOF
25138 cat confdefs.h >>conftest.$ac_ext
25139 cat >>conftest.$ac_ext <<_ACEOF
25140 /* end confdefs.h.  */
25141
25142 /* Override any gcc2 internal prototype to avoid an error.  */
25143 #ifdef __cplusplus
25144 extern "C"
25145 #endif
25146 /* We use char because int might match the return type of a gcc2
25147    builtin and then its argument prototype would still apply.  */
25148 char sin ();
25149 int
25150 main ()
25151 {
25152 sin ();
25153   ;
25154   return 0;
25155 }
25156 _ACEOF
25157 rm -f conftest.$ac_objext conftest$ac_exeext
25158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25159   (eval $ac_link) 2>conftest.er1
25160   ac_status=$?
25161   grep -v '^ *+' conftest.er1 >conftest.err
25162   rm -f conftest.er1
25163   cat conftest.err >&5
25164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165   (exit $ac_status); } &&
25166          { ac_try='test -z "$ac_c_werror_flag"
25167                          || test ! -s conftest.err'
25168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25169   (eval $ac_try) 2>&5
25170   ac_status=$?
25171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172   (exit $ac_status); }; } &&
25173          { ac_try='test -s conftest$ac_exeext'
25174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25175   (eval $ac_try) 2>&5
25176   ac_status=$?
25177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178   (exit $ac_status); }; }; then
25179   ac_cv_lib_m_sin=yes
25180 else
25181   echo "$as_me: failed program was:" >&5
25182 sed 's/^/| /' conftest.$ac_ext >&5
25183
25184 ac_cv_lib_m_sin=no
25185 fi
25186 rm -f conftest.err conftest.$ac_objext \
25187       conftest$ac_exeext conftest.$ac_ext
25188 LIBS=$ac_check_lib_save_LIBS
25189 fi
25190 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25191 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25192 if test $ac_cv_lib_m_sin = yes; then
25193   cat >>confdefs.h <<_ACEOF
25194 #define HAVE_LIBM 1
25195 _ACEOF
25196
25197   LIBS="-lm $LIBS"
25198
25199 fi
25200
25201 if test "$llvm_cv_os_type" == "MingW" ; then
25202
25203 echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25204 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6
25205 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25206   echo $ECHO_N "(cached) $ECHO_C" >&6
25207 else
25208   ac_check_lib_save_LIBS=$LIBS
25209 LIBS="-limagehlp  $LIBS"
25210 cat >conftest.$ac_ext <<_ACEOF
25211 /* confdefs.h.  */
25212 _ACEOF
25213 cat confdefs.h >>conftest.$ac_ext
25214 cat >>conftest.$ac_ext <<_ACEOF
25215 /* end confdefs.h.  */
25216
25217
25218 int
25219 main ()
25220 {
25221 main ();
25222   ;
25223   return 0;
25224 }
25225 _ACEOF
25226 rm -f conftest.$ac_objext conftest$ac_exeext
25227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25228   (eval $ac_link) 2>conftest.er1
25229   ac_status=$?
25230   grep -v '^ *+' conftest.er1 >conftest.err
25231   rm -f conftest.er1
25232   cat conftest.err >&5
25233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234   (exit $ac_status); } &&
25235          { ac_try='test -z "$ac_c_werror_flag"
25236                          || test ! -s conftest.err'
25237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25238   (eval $ac_try) 2>&5
25239   ac_status=$?
25240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241   (exit $ac_status); }; } &&
25242          { ac_try='test -s conftest$ac_exeext'
25243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25244   (eval $ac_try) 2>&5
25245   ac_status=$?
25246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247   (exit $ac_status); }; }; then
25248   ac_cv_lib_imagehlp_main=yes
25249 else
25250   echo "$as_me: failed program was:" >&5
25251 sed 's/^/| /' conftest.$ac_ext >&5
25252
25253 ac_cv_lib_imagehlp_main=no
25254 fi
25255 rm -f conftest.err conftest.$ac_objext \
25256       conftest$ac_exeext conftest.$ac_ext
25257 LIBS=$ac_check_lib_save_LIBS
25258 fi
25259 echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25260 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6
25261 if test $ac_cv_lib_imagehlp_main = yes; then
25262   cat >>confdefs.h <<_ACEOF
25263 #define HAVE_LIBIMAGEHLP 1
25264 _ACEOF
25265
25266   LIBS="-limagehlp $LIBS"
25267
25268 fi
25269
25270
25271 echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25272 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6
25273 if test "${ac_cv_lib_psapi_main+set}" = set; then
25274   echo $ECHO_N "(cached) $ECHO_C" >&6
25275 else
25276   ac_check_lib_save_LIBS=$LIBS
25277 LIBS="-lpsapi  $LIBS"
25278 cat >conftest.$ac_ext <<_ACEOF
25279 /* confdefs.h.  */
25280 _ACEOF
25281 cat confdefs.h >>conftest.$ac_ext
25282 cat >>conftest.$ac_ext <<_ACEOF
25283 /* end confdefs.h.  */
25284
25285
25286 int
25287 main ()
25288 {
25289 main ();
25290   ;
25291   return 0;
25292 }
25293 _ACEOF
25294 rm -f conftest.$ac_objext conftest$ac_exeext
25295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25296   (eval $ac_link) 2>conftest.er1
25297   ac_status=$?
25298   grep -v '^ *+' conftest.er1 >conftest.err
25299   rm -f conftest.er1
25300   cat conftest.err >&5
25301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302   (exit $ac_status); } &&
25303          { ac_try='test -z "$ac_c_werror_flag"
25304                          || test ! -s conftest.err'
25305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25306   (eval $ac_try) 2>&5
25307   ac_status=$?
25308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309   (exit $ac_status); }; } &&
25310          { ac_try='test -s conftest$ac_exeext'
25311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25312   (eval $ac_try) 2>&5
25313   ac_status=$?
25314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315   (exit $ac_status); }; }; then
25316   ac_cv_lib_psapi_main=yes
25317 else
25318   echo "$as_me: failed program was:" >&5
25319 sed 's/^/| /' conftest.$ac_ext >&5
25320
25321 ac_cv_lib_psapi_main=no
25322 fi
25323 rm -f conftest.err conftest.$ac_objext \
25324       conftest$ac_exeext conftest.$ac_ext
25325 LIBS=$ac_check_lib_save_LIBS
25326 fi
25327 echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25328 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6
25329 if test $ac_cv_lib_psapi_main = yes; then
25330   cat >>confdefs.h <<_ACEOF
25331 #define HAVE_LIBPSAPI 1
25332 _ACEOF
25333
25334   LIBS="-lpsapi $LIBS"
25335
25336 fi
25337
25338 fi
25339
25340 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25341 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25342 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25343   echo $ECHO_N "(cached) $ECHO_C" >&6
25344 else
25345   ac_func_search_save_LIBS=$LIBS
25346 ac_cv_search_lt_dlopen=no
25347 cat >conftest.$ac_ext <<_ACEOF
25348 /* confdefs.h.  */
25349 _ACEOF
25350 cat confdefs.h >>conftest.$ac_ext
25351 cat >>conftest.$ac_ext <<_ACEOF
25352 /* end confdefs.h.  */
25353
25354 /* Override any gcc2 internal prototype to avoid an error.  */
25355 #ifdef __cplusplus
25356 extern "C"
25357 #endif
25358 /* We use char because int might match the return type of a gcc2
25359    builtin and then its argument prototype would still apply.  */
25360 char lt_dlopen ();
25361 int
25362 main ()
25363 {
25364 lt_dlopen ();
25365   ;
25366   return 0;
25367 }
25368 _ACEOF
25369 rm -f conftest.$ac_objext conftest$ac_exeext
25370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25371   (eval $ac_link) 2>conftest.er1
25372   ac_status=$?
25373   grep -v '^ *+' conftest.er1 >conftest.err
25374   rm -f conftest.er1
25375   cat conftest.err >&5
25376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377   (exit $ac_status); } &&
25378          { ac_try='test -z "$ac_c_werror_flag"
25379                          || test ! -s conftest.err'
25380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25381   (eval $ac_try) 2>&5
25382   ac_status=$?
25383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384   (exit $ac_status); }; } &&
25385          { ac_try='test -s conftest$ac_exeext'
25386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25387   (eval $ac_try) 2>&5
25388   ac_status=$?
25389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390   (exit $ac_status); }; }; then
25391   ac_cv_search_lt_dlopen="none required"
25392 else
25393   echo "$as_me: failed program was:" >&5
25394 sed 's/^/| /' conftest.$ac_ext >&5
25395
25396 fi
25397 rm -f conftest.err conftest.$ac_objext \
25398       conftest$ac_exeext conftest.$ac_ext
25399 if test "$ac_cv_search_lt_dlopen" = no; then
25400   for ac_lib in ltdl; do
25401     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25402     cat >conftest.$ac_ext <<_ACEOF
25403 /* confdefs.h.  */
25404 _ACEOF
25405 cat confdefs.h >>conftest.$ac_ext
25406 cat >>conftest.$ac_ext <<_ACEOF
25407 /* end confdefs.h.  */
25408
25409 /* Override any gcc2 internal prototype to avoid an error.  */
25410 #ifdef __cplusplus
25411 extern "C"
25412 #endif
25413 /* We use char because int might match the return type of a gcc2
25414    builtin and then its argument prototype would still apply.  */
25415 char lt_dlopen ();
25416 int
25417 main ()
25418 {
25419 lt_dlopen ();
25420   ;
25421   return 0;
25422 }
25423 _ACEOF
25424 rm -f conftest.$ac_objext conftest$ac_exeext
25425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25426   (eval $ac_link) 2>conftest.er1
25427   ac_status=$?
25428   grep -v '^ *+' conftest.er1 >conftest.err
25429   rm -f conftest.er1
25430   cat conftest.err >&5
25431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432   (exit $ac_status); } &&
25433          { ac_try='test -z "$ac_c_werror_flag"
25434                          || test ! -s conftest.err'
25435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25436   (eval $ac_try) 2>&5
25437   ac_status=$?
25438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439   (exit $ac_status); }; } &&
25440          { ac_try='test -s conftest$ac_exeext'
25441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25442   (eval $ac_try) 2>&5
25443   ac_status=$?
25444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445   (exit $ac_status); }; }; then
25446   ac_cv_search_lt_dlopen="-l$ac_lib"
25447 break
25448 else
25449   echo "$as_me: failed program was:" >&5
25450 sed 's/^/| /' conftest.$ac_ext >&5
25451
25452 fi
25453 rm -f conftest.err conftest.$ac_objext \
25454       conftest$ac_exeext conftest.$ac_ext
25455   done
25456 fi
25457 LIBS=$ac_func_search_save_LIBS
25458 fi
25459 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25460 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25461 if test "$ac_cv_search_lt_dlopen" != no; then
25462   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25463
25464 cat >>confdefs.h <<\_ACEOF
25465 #define HAVE_LT_DLOPEN 1
25466 _ACEOF
25467
25468 else
25469   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25470                            not be available" >&5
25471 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25472                            not be available" >&2;}
25473 fi
25474
25475
25476 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25477 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25478 if test "${ac_cv_search_dlopen+set}" = set; then
25479   echo $ECHO_N "(cached) $ECHO_C" >&6
25480 else
25481   ac_func_search_save_LIBS=$LIBS
25482 ac_cv_search_dlopen=no
25483 cat >conftest.$ac_ext <<_ACEOF
25484 /* confdefs.h.  */
25485 _ACEOF
25486 cat confdefs.h >>conftest.$ac_ext
25487 cat >>conftest.$ac_ext <<_ACEOF
25488 /* end confdefs.h.  */
25489
25490 /* Override any gcc2 internal prototype to avoid an error.  */
25491 #ifdef __cplusplus
25492 extern "C"
25493 #endif
25494 /* We use char because int might match the return type of a gcc2
25495    builtin and then its argument prototype would still apply.  */
25496 char dlopen ();
25497 int
25498 main ()
25499 {
25500 dlopen ();
25501   ;
25502   return 0;
25503 }
25504 _ACEOF
25505 rm -f conftest.$ac_objext conftest$ac_exeext
25506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25507   (eval $ac_link) 2>conftest.er1
25508   ac_status=$?
25509   grep -v '^ *+' conftest.er1 >conftest.err
25510   rm -f conftest.er1
25511   cat conftest.err >&5
25512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513   (exit $ac_status); } &&
25514          { ac_try='test -z "$ac_c_werror_flag"
25515                          || test ! -s conftest.err'
25516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25517   (eval $ac_try) 2>&5
25518   ac_status=$?
25519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520   (exit $ac_status); }; } &&
25521          { ac_try='test -s conftest$ac_exeext'
25522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25523   (eval $ac_try) 2>&5
25524   ac_status=$?
25525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526   (exit $ac_status); }; }; then
25527   ac_cv_search_dlopen="none required"
25528 else
25529   echo "$as_me: failed program was:" >&5
25530 sed 's/^/| /' conftest.$ac_ext >&5
25531
25532 fi
25533 rm -f conftest.err conftest.$ac_objext \
25534       conftest$ac_exeext conftest.$ac_ext
25535 if test "$ac_cv_search_dlopen" = no; then
25536   for ac_lib in dl; do
25537     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25538     cat >conftest.$ac_ext <<_ACEOF
25539 /* confdefs.h.  */
25540 _ACEOF
25541 cat confdefs.h >>conftest.$ac_ext
25542 cat >>conftest.$ac_ext <<_ACEOF
25543 /* end confdefs.h.  */
25544
25545 /* Override any gcc2 internal prototype to avoid an error.  */
25546 #ifdef __cplusplus
25547 extern "C"
25548 #endif
25549 /* We use char because int might match the return type of a gcc2
25550    builtin and then its argument prototype would still apply.  */
25551 char dlopen ();
25552 int
25553 main ()
25554 {
25555 dlopen ();
25556   ;
25557   return 0;
25558 }
25559 _ACEOF
25560 rm -f conftest.$ac_objext conftest$ac_exeext
25561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25562   (eval $ac_link) 2>conftest.er1
25563   ac_status=$?
25564   grep -v '^ *+' conftest.er1 >conftest.err
25565   rm -f conftest.er1
25566   cat conftest.err >&5
25567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568   (exit $ac_status); } &&
25569          { ac_try='test -z "$ac_c_werror_flag"
25570                          || test ! -s conftest.err'
25571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25572   (eval $ac_try) 2>&5
25573   ac_status=$?
25574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575   (exit $ac_status); }; } &&
25576          { ac_try='test -s conftest$ac_exeext'
25577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25578   (eval $ac_try) 2>&5
25579   ac_status=$?
25580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581   (exit $ac_status); }; }; then
25582   ac_cv_search_dlopen="-l$ac_lib"
25583 break
25584 else
25585   echo "$as_me: failed program was:" >&5
25586 sed 's/^/| /' conftest.$ac_ext >&5
25587
25588 fi
25589 rm -f conftest.err conftest.$ac_objext \
25590       conftest$ac_exeext conftest.$ac_ext
25591   done
25592 fi
25593 LIBS=$ac_func_search_save_LIBS
25594 fi
25595 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25596 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25597 if test "$ac_cv_search_dlopen" != no; then
25598   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25599
25600 cat >>confdefs.h <<\_ACEOF
25601 #define HAVE_DLOPEN 1
25602 _ACEOF
25603
25604 else
25605   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25606 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25607 fi
25608
25609
25610 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25611 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25612 if test "${ac_cv_search_mallinfo+set}" = set; then
25613   echo $ECHO_N "(cached) $ECHO_C" >&6
25614 else
25615   ac_func_search_save_LIBS=$LIBS
25616 ac_cv_search_mallinfo=no
25617 cat >conftest.$ac_ext <<_ACEOF
25618 /* confdefs.h.  */
25619 _ACEOF
25620 cat confdefs.h >>conftest.$ac_ext
25621 cat >>conftest.$ac_ext <<_ACEOF
25622 /* end confdefs.h.  */
25623
25624 /* Override any gcc2 internal prototype to avoid an error.  */
25625 #ifdef __cplusplus
25626 extern "C"
25627 #endif
25628 /* We use char because int might match the return type of a gcc2
25629    builtin and then its argument prototype would still apply.  */
25630 char mallinfo ();
25631 int
25632 main ()
25633 {
25634 mallinfo ();
25635   ;
25636   return 0;
25637 }
25638 _ACEOF
25639 rm -f conftest.$ac_objext conftest$ac_exeext
25640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25641   (eval $ac_link) 2>conftest.er1
25642   ac_status=$?
25643   grep -v '^ *+' conftest.er1 >conftest.err
25644   rm -f conftest.er1
25645   cat conftest.err >&5
25646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647   (exit $ac_status); } &&
25648          { ac_try='test -z "$ac_c_werror_flag"
25649                          || test ! -s conftest.err'
25650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25651   (eval $ac_try) 2>&5
25652   ac_status=$?
25653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654   (exit $ac_status); }; } &&
25655          { ac_try='test -s conftest$ac_exeext'
25656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25657   (eval $ac_try) 2>&5
25658   ac_status=$?
25659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660   (exit $ac_status); }; }; then
25661   ac_cv_search_mallinfo="none required"
25662 else
25663   echo "$as_me: failed program was:" >&5
25664 sed 's/^/| /' conftest.$ac_ext >&5
25665
25666 fi
25667 rm -f conftest.err conftest.$ac_objext \
25668       conftest$ac_exeext conftest.$ac_ext
25669 if test "$ac_cv_search_mallinfo" = no; then
25670   for ac_lib in malloc; do
25671     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25672     cat >conftest.$ac_ext <<_ACEOF
25673 /* confdefs.h.  */
25674 _ACEOF
25675 cat confdefs.h >>conftest.$ac_ext
25676 cat >>conftest.$ac_ext <<_ACEOF
25677 /* end confdefs.h.  */
25678
25679 /* Override any gcc2 internal prototype to avoid an error.  */
25680 #ifdef __cplusplus
25681 extern "C"
25682 #endif
25683 /* We use char because int might match the return type of a gcc2
25684    builtin and then its argument prototype would still apply.  */
25685 char mallinfo ();
25686 int
25687 main ()
25688 {
25689 mallinfo ();
25690   ;
25691   return 0;
25692 }
25693 _ACEOF
25694 rm -f conftest.$ac_objext conftest$ac_exeext
25695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25696   (eval $ac_link) 2>conftest.er1
25697   ac_status=$?
25698   grep -v '^ *+' conftest.er1 >conftest.err
25699   rm -f conftest.er1
25700   cat conftest.err >&5
25701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702   (exit $ac_status); } &&
25703          { ac_try='test -z "$ac_c_werror_flag"
25704                          || test ! -s conftest.err'
25705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25706   (eval $ac_try) 2>&5
25707   ac_status=$?
25708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709   (exit $ac_status); }; } &&
25710          { ac_try='test -s conftest$ac_exeext'
25711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25712   (eval $ac_try) 2>&5
25713   ac_status=$?
25714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715   (exit $ac_status); }; }; then
25716   ac_cv_search_mallinfo="-l$ac_lib"
25717 break
25718 else
25719   echo "$as_me: failed program was:" >&5
25720 sed 's/^/| /' conftest.$ac_ext >&5
25721
25722 fi
25723 rm -f conftest.err conftest.$ac_objext \
25724       conftest$ac_exeext conftest.$ac_ext
25725   done
25726 fi
25727 LIBS=$ac_func_search_save_LIBS
25728 fi
25729 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25730 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25731 if test "$ac_cv_search_mallinfo" != no; then
25732   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25733
25734 cat >>confdefs.h <<\_ACEOF
25735 #define HAVE_MALLINFO 1
25736 _ACEOF
25737
25738 fi
25739
25740
25741 if test "$ENABLE_THREADS" -eq 1 ; then
25742
25743 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25744 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25745 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25746   echo $ECHO_N "(cached) $ECHO_C" >&6
25747 else
25748   ac_check_lib_save_LIBS=$LIBS
25749 LIBS="-lpthread  $LIBS"
25750 cat >conftest.$ac_ext <<_ACEOF
25751 /* confdefs.h.  */
25752 _ACEOF
25753 cat confdefs.h >>conftest.$ac_ext
25754 cat >>conftest.$ac_ext <<_ACEOF
25755 /* end confdefs.h.  */
25756
25757 /* Override any gcc2 internal prototype to avoid an error.  */
25758 #ifdef __cplusplus
25759 extern "C"
25760 #endif
25761 /* We use char because int might match the return type of a gcc2
25762    builtin and then its argument prototype would still apply.  */
25763 char pthread_mutex_init ();
25764 int
25765 main ()
25766 {
25767 pthread_mutex_init ();
25768   ;
25769   return 0;
25770 }
25771 _ACEOF
25772 rm -f conftest.$ac_objext conftest$ac_exeext
25773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25774   (eval $ac_link) 2>conftest.er1
25775   ac_status=$?
25776   grep -v '^ *+' conftest.er1 >conftest.err
25777   rm -f conftest.er1
25778   cat conftest.err >&5
25779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780   (exit $ac_status); } &&
25781          { ac_try='test -z "$ac_c_werror_flag"
25782                          || test ! -s conftest.err'
25783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25784   (eval $ac_try) 2>&5
25785   ac_status=$?
25786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787   (exit $ac_status); }; } &&
25788          { ac_try='test -s conftest$ac_exeext'
25789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25790   (eval $ac_try) 2>&5
25791   ac_status=$?
25792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793   (exit $ac_status); }; }; then
25794   ac_cv_lib_pthread_pthread_mutex_init=yes
25795 else
25796   echo "$as_me: failed program was:" >&5
25797 sed 's/^/| /' conftest.$ac_ext >&5
25798
25799 ac_cv_lib_pthread_pthread_mutex_init=no
25800 fi
25801 rm -f conftest.err conftest.$ac_objext \
25802       conftest$ac_exeext conftest.$ac_ext
25803 LIBS=$ac_check_lib_save_LIBS
25804 fi
25805 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25806 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25807 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25808   cat >>confdefs.h <<_ACEOF
25809 #define HAVE_LIBPTHREAD 1
25810 _ACEOF
25811
25812   LIBS="-lpthread $LIBS"
25813
25814 fi
25815
25816   echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25817 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25818 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25819   echo $ECHO_N "(cached) $ECHO_C" >&6
25820 else
25821   ac_func_search_save_LIBS=$LIBS
25822 ac_cv_search_pthread_mutex_lock=no
25823 cat >conftest.$ac_ext <<_ACEOF
25824 /* confdefs.h.  */
25825 _ACEOF
25826 cat confdefs.h >>conftest.$ac_ext
25827 cat >>conftest.$ac_ext <<_ACEOF
25828 /* end confdefs.h.  */
25829
25830 /* Override any gcc2 internal prototype to avoid an error.  */
25831 #ifdef __cplusplus
25832 extern "C"
25833 #endif
25834 /* We use char because int might match the return type of a gcc2
25835    builtin and then its argument prototype would still apply.  */
25836 char pthread_mutex_lock ();
25837 int
25838 main ()
25839 {
25840 pthread_mutex_lock ();
25841   ;
25842   return 0;
25843 }
25844 _ACEOF
25845 rm -f conftest.$ac_objext conftest$ac_exeext
25846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25847   (eval $ac_link) 2>conftest.er1
25848   ac_status=$?
25849   grep -v '^ *+' conftest.er1 >conftest.err
25850   rm -f conftest.er1
25851   cat conftest.err >&5
25852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853   (exit $ac_status); } &&
25854          { ac_try='test -z "$ac_c_werror_flag"
25855                          || test ! -s conftest.err'
25856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25857   (eval $ac_try) 2>&5
25858   ac_status=$?
25859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25860   (exit $ac_status); }; } &&
25861          { ac_try='test -s conftest$ac_exeext'
25862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25863   (eval $ac_try) 2>&5
25864   ac_status=$?
25865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866   (exit $ac_status); }; }; then
25867   ac_cv_search_pthread_mutex_lock="none required"
25868 else
25869   echo "$as_me: failed program was:" >&5
25870 sed 's/^/| /' conftest.$ac_ext >&5
25871
25872 fi
25873 rm -f conftest.err conftest.$ac_objext \
25874       conftest$ac_exeext conftest.$ac_ext
25875 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25876   for ac_lib in pthread; do
25877     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25878     cat >conftest.$ac_ext <<_ACEOF
25879 /* confdefs.h.  */
25880 _ACEOF
25881 cat confdefs.h >>conftest.$ac_ext
25882 cat >>conftest.$ac_ext <<_ACEOF
25883 /* end confdefs.h.  */
25884
25885 /* Override any gcc2 internal prototype to avoid an error.  */
25886 #ifdef __cplusplus
25887 extern "C"
25888 #endif
25889 /* We use char because int might match the return type of a gcc2
25890    builtin and then its argument prototype would still apply.  */
25891 char pthread_mutex_lock ();
25892 int
25893 main ()
25894 {
25895 pthread_mutex_lock ();
25896   ;
25897   return 0;
25898 }
25899 _ACEOF
25900 rm -f conftest.$ac_objext conftest$ac_exeext
25901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25902   (eval $ac_link) 2>conftest.er1
25903   ac_status=$?
25904   grep -v '^ *+' conftest.er1 >conftest.err
25905   rm -f conftest.er1
25906   cat conftest.err >&5
25907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908   (exit $ac_status); } &&
25909          { ac_try='test -z "$ac_c_werror_flag"
25910                          || test ! -s conftest.err'
25911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25912   (eval $ac_try) 2>&5
25913   ac_status=$?
25914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915   (exit $ac_status); }; } &&
25916          { ac_try='test -s conftest$ac_exeext'
25917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25918   (eval $ac_try) 2>&5
25919   ac_status=$?
25920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921   (exit $ac_status); }; }; then
25922   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25923 break
25924 else
25925   echo "$as_me: failed program was:" >&5
25926 sed 's/^/| /' conftest.$ac_ext >&5
25927
25928 fi
25929 rm -f conftest.err conftest.$ac_objext \
25930       conftest$ac_exeext conftest.$ac_ext
25931   done
25932 fi
25933 LIBS=$ac_func_search_save_LIBS
25934 fi
25935 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25936 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25937 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25938   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25939
25940 cat >>confdefs.h <<\_ACEOF
25941 #define HAVE_PTHREAD_MUTEX_LOCK 1
25942 _ACEOF
25943
25944 fi
25945
25946 fi
25947
25948
25949
25950
25951
25952
25953
25954 ac_header_dirent=no
25955 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25956   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25957 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25958 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25960   echo $ECHO_N "(cached) $ECHO_C" >&6
25961 else
25962   cat >conftest.$ac_ext <<_ACEOF
25963 /* confdefs.h.  */
25964 _ACEOF
25965 cat confdefs.h >>conftest.$ac_ext
25966 cat >>conftest.$ac_ext <<_ACEOF
25967 /* end confdefs.h.  */
25968 #include <sys/types.h>
25969 #include <$ac_hdr>
25970
25971 int
25972 main ()
25973 {
25974 if ((DIR *) 0)
25975 return 0;
25976   ;
25977   return 0;
25978 }
25979 _ACEOF
25980 rm -f conftest.$ac_objext
25981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25982   (eval $ac_compile) 2>conftest.er1
25983   ac_status=$?
25984   grep -v '^ *+' conftest.er1 >conftest.err
25985   rm -f conftest.er1
25986   cat conftest.err >&5
25987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988   (exit $ac_status); } &&
25989          { ac_try='test -z "$ac_c_werror_flag"
25990                          || test ! -s conftest.err'
25991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25992   (eval $ac_try) 2>&5
25993   ac_status=$?
25994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995   (exit $ac_status); }; } &&
25996          { ac_try='test -s conftest.$ac_objext'
25997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25998   (eval $ac_try) 2>&5
25999   ac_status=$?
26000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001   (exit $ac_status); }; }; then
26002   eval "$as_ac_Header=yes"
26003 else
26004   echo "$as_me: failed program was:" >&5
26005 sed 's/^/| /' conftest.$ac_ext >&5
26006
26007 eval "$as_ac_Header=no"
26008 fi
26009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26010 fi
26011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26014   cat >>confdefs.h <<_ACEOF
26015 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26016 _ACEOF
26017
26018 ac_header_dirent=$ac_hdr; break
26019 fi
26020
26021 done
26022 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26023 if test $ac_header_dirent = dirent.h; then
26024   echo "$as_me:$LINENO: checking for library containing opendir" >&5
26025 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26026 if test "${ac_cv_search_opendir+set}" = set; then
26027   echo $ECHO_N "(cached) $ECHO_C" >&6
26028 else
26029   ac_func_search_save_LIBS=$LIBS
26030 ac_cv_search_opendir=no
26031 cat >conftest.$ac_ext <<_ACEOF
26032 /* confdefs.h.  */
26033 _ACEOF
26034 cat confdefs.h >>conftest.$ac_ext
26035 cat >>conftest.$ac_ext <<_ACEOF
26036 /* end confdefs.h.  */
26037
26038 /* Override any gcc2 internal prototype to avoid an error.  */
26039 #ifdef __cplusplus
26040 extern "C"
26041 #endif
26042 /* We use char because int might match the return type of a gcc2
26043    builtin and then its argument prototype would still apply.  */
26044 char opendir ();
26045 int
26046 main ()
26047 {
26048 opendir ();
26049   ;
26050   return 0;
26051 }
26052 _ACEOF
26053 rm -f conftest.$ac_objext conftest$ac_exeext
26054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26055   (eval $ac_link) 2>conftest.er1
26056   ac_status=$?
26057   grep -v '^ *+' conftest.er1 >conftest.err
26058   rm -f conftest.er1
26059   cat conftest.err >&5
26060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061   (exit $ac_status); } &&
26062          { ac_try='test -z "$ac_c_werror_flag"
26063                          || test ! -s conftest.err'
26064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26065   (eval $ac_try) 2>&5
26066   ac_status=$?
26067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068   (exit $ac_status); }; } &&
26069          { ac_try='test -s conftest$ac_exeext'
26070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26071   (eval $ac_try) 2>&5
26072   ac_status=$?
26073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074   (exit $ac_status); }; }; then
26075   ac_cv_search_opendir="none required"
26076 else
26077   echo "$as_me: failed program was:" >&5
26078 sed 's/^/| /' conftest.$ac_ext >&5
26079
26080 fi
26081 rm -f conftest.err conftest.$ac_objext \
26082       conftest$ac_exeext conftest.$ac_ext
26083 if test "$ac_cv_search_opendir" = no; then
26084   for ac_lib in dir; do
26085     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26086     cat >conftest.$ac_ext <<_ACEOF
26087 /* confdefs.h.  */
26088 _ACEOF
26089 cat confdefs.h >>conftest.$ac_ext
26090 cat >>conftest.$ac_ext <<_ACEOF
26091 /* end confdefs.h.  */
26092
26093 /* Override any gcc2 internal prototype to avoid an error.  */
26094 #ifdef __cplusplus
26095 extern "C"
26096 #endif
26097 /* We use char because int might match the return type of a gcc2
26098    builtin and then its argument prototype would still apply.  */
26099 char opendir ();
26100 int
26101 main ()
26102 {
26103 opendir ();
26104   ;
26105   return 0;
26106 }
26107 _ACEOF
26108 rm -f conftest.$ac_objext conftest$ac_exeext
26109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26110   (eval $ac_link) 2>conftest.er1
26111   ac_status=$?
26112   grep -v '^ *+' conftest.er1 >conftest.err
26113   rm -f conftest.er1
26114   cat conftest.err >&5
26115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116   (exit $ac_status); } &&
26117          { ac_try='test -z "$ac_c_werror_flag"
26118                          || test ! -s conftest.err'
26119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26120   (eval $ac_try) 2>&5
26121   ac_status=$?
26122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123   (exit $ac_status); }; } &&
26124          { ac_try='test -s conftest$ac_exeext'
26125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26126   (eval $ac_try) 2>&5
26127   ac_status=$?
26128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129   (exit $ac_status); }; }; then
26130   ac_cv_search_opendir="-l$ac_lib"
26131 break
26132 else
26133   echo "$as_me: failed program was:" >&5
26134 sed 's/^/| /' conftest.$ac_ext >&5
26135
26136 fi
26137 rm -f conftest.err conftest.$ac_objext \
26138       conftest$ac_exeext conftest.$ac_ext
26139   done
26140 fi
26141 LIBS=$ac_func_search_save_LIBS
26142 fi
26143 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26144 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26145 if test "$ac_cv_search_opendir" != no; then
26146   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26147
26148 fi
26149
26150 else
26151   echo "$as_me:$LINENO: checking for library containing opendir" >&5
26152 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26153 if test "${ac_cv_search_opendir+set}" = set; then
26154   echo $ECHO_N "(cached) $ECHO_C" >&6
26155 else
26156   ac_func_search_save_LIBS=$LIBS
26157 ac_cv_search_opendir=no
26158 cat >conftest.$ac_ext <<_ACEOF
26159 /* confdefs.h.  */
26160 _ACEOF
26161 cat confdefs.h >>conftest.$ac_ext
26162 cat >>conftest.$ac_ext <<_ACEOF
26163 /* end confdefs.h.  */
26164
26165 /* Override any gcc2 internal prototype to avoid an error.  */
26166 #ifdef __cplusplus
26167 extern "C"
26168 #endif
26169 /* We use char because int might match the return type of a gcc2
26170    builtin and then its argument prototype would still apply.  */
26171 char opendir ();
26172 int
26173 main ()
26174 {
26175 opendir ();
26176   ;
26177   return 0;
26178 }
26179 _ACEOF
26180 rm -f conftest.$ac_objext conftest$ac_exeext
26181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26182   (eval $ac_link) 2>conftest.er1
26183   ac_status=$?
26184   grep -v '^ *+' conftest.er1 >conftest.err
26185   rm -f conftest.er1
26186   cat conftest.err >&5
26187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188   (exit $ac_status); } &&
26189          { ac_try='test -z "$ac_c_werror_flag"
26190                          || test ! -s conftest.err'
26191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26192   (eval $ac_try) 2>&5
26193   ac_status=$?
26194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195   (exit $ac_status); }; } &&
26196          { ac_try='test -s conftest$ac_exeext'
26197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26198   (eval $ac_try) 2>&5
26199   ac_status=$?
26200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201   (exit $ac_status); }; }; then
26202   ac_cv_search_opendir="none required"
26203 else
26204   echo "$as_me: failed program was:" >&5
26205 sed 's/^/| /' conftest.$ac_ext >&5
26206
26207 fi
26208 rm -f conftest.err conftest.$ac_objext \
26209       conftest$ac_exeext conftest.$ac_ext
26210 if test "$ac_cv_search_opendir" = no; then
26211   for ac_lib in x; do
26212     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26213     cat >conftest.$ac_ext <<_ACEOF
26214 /* confdefs.h.  */
26215 _ACEOF
26216 cat confdefs.h >>conftest.$ac_ext
26217 cat >>conftest.$ac_ext <<_ACEOF
26218 /* end confdefs.h.  */
26219
26220 /* Override any gcc2 internal prototype to avoid an error.  */
26221 #ifdef __cplusplus
26222 extern "C"
26223 #endif
26224 /* We use char because int might match the return type of a gcc2
26225    builtin and then its argument prototype would still apply.  */
26226 char opendir ();
26227 int
26228 main ()
26229 {
26230 opendir ();
26231   ;
26232   return 0;
26233 }
26234 _ACEOF
26235 rm -f conftest.$ac_objext conftest$ac_exeext
26236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26237   (eval $ac_link) 2>conftest.er1
26238   ac_status=$?
26239   grep -v '^ *+' conftest.er1 >conftest.err
26240   rm -f conftest.er1
26241   cat conftest.err >&5
26242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243   (exit $ac_status); } &&
26244          { ac_try='test -z "$ac_c_werror_flag"
26245                          || test ! -s conftest.err'
26246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26247   (eval $ac_try) 2>&5
26248   ac_status=$?
26249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250   (exit $ac_status); }; } &&
26251          { ac_try='test -s conftest$ac_exeext'
26252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26253   (eval $ac_try) 2>&5
26254   ac_status=$?
26255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256   (exit $ac_status); }; }; then
26257   ac_cv_search_opendir="-l$ac_lib"
26258 break
26259 else
26260   echo "$as_me: failed program was:" >&5
26261 sed 's/^/| /' conftest.$ac_ext >&5
26262
26263 fi
26264 rm -f conftest.err conftest.$ac_objext \
26265       conftest$ac_exeext conftest.$ac_ext
26266   done
26267 fi
26268 LIBS=$ac_func_search_save_LIBS
26269 fi
26270 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26271 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26272 if test "$ac_cv_search_opendir" != no; then
26273   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26274
26275 fi
26276
26277 fi
26278
26279 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26280 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26281 if test "${ac_cv_header_mmap_anon+set}" = set; then
26282   echo $ECHO_N "(cached) $ECHO_C" >&6
26283 else
26284    ac_ext=c
26285 ac_cpp='$CPP $CPPFLAGS'
26286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26289
26290   cat >conftest.$ac_ext <<_ACEOF
26291 /* confdefs.h.  */
26292 _ACEOF
26293 cat confdefs.h >>conftest.$ac_ext
26294 cat >>conftest.$ac_ext <<_ACEOF
26295 /* end confdefs.h.  */
26296 #include <sys/mman.h>
26297 #include <unistd.h>
26298 #include <fcntl.h>
26299 int
26300 main ()
26301 {
26302 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26303   ;
26304   return 0;
26305 }
26306 _ACEOF
26307 rm -f conftest.$ac_objext
26308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26309   (eval $ac_compile) 2>conftest.er1
26310   ac_status=$?
26311   grep -v '^ *+' conftest.er1 >conftest.err
26312   rm -f conftest.er1
26313   cat conftest.err >&5
26314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315   (exit $ac_status); } &&
26316          { ac_try='test -z "$ac_c_werror_flag"
26317                          || test ! -s conftest.err'
26318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319   (eval $ac_try) 2>&5
26320   ac_status=$?
26321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322   (exit $ac_status); }; } &&
26323          { ac_try='test -s conftest.$ac_objext'
26324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325   (eval $ac_try) 2>&5
26326   ac_status=$?
26327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328   (exit $ac_status); }; }; then
26329   ac_cv_header_mmap_anon=yes
26330 else
26331   echo "$as_me: failed program was:" >&5
26332 sed 's/^/| /' conftest.$ac_ext >&5
26333
26334 ac_cv_header_mmap_anon=no
26335 fi
26336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26337   ac_ext=c
26338 ac_cpp='$CPP $CPPFLAGS'
26339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26342
26343
26344 fi
26345 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26346 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26347 if test "$ac_cv_header_mmap_anon" = yes; then
26348
26349 cat >>confdefs.h <<\_ACEOF
26350 #define HAVE_MMAP_ANONYMOUS 1
26351 _ACEOF
26352
26353 fi
26354
26355 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26356 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26357 if test "${ac_cv_header_stat_broken+set}" = set; then
26358   echo $ECHO_N "(cached) $ECHO_C" >&6
26359 else
26360   cat >conftest.$ac_ext <<_ACEOF
26361 /* confdefs.h.  */
26362 _ACEOF
26363 cat confdefs.h >>conftest.$ac_ext
26364 cat >>conftest.$ac_ext <<_ACEOF
26365 /* end confdefs.h.  */
26366 #include <sys/types.h>
26367 #include <sys/stat.h>
26368
26369 #if defined(S_ISBLK) && defined(S_IFDIR)
26370 # if S_ISBLK (S_IFDIR)
26371 You lose.
26372 # endif
26373 #endif
26374
26375 #if defined(S_ISBLK) && defined(S_IFCHR)
26376 # if S_ISBLK (S_IFCHR)
26377 You lose.
26378 # endif
26379 #endif
26380
26381 #if defined(S_ISLNK) && defined(S_IFREG)
26382 # if S_ISLNK (S_IFREG)
26383 You lose.
26384 # endif
26385 #endif
26386
26387 #if defined(S_ISSOCK) && defined(S_IFREG)
26388 # if S_ISSOCK (S_IFREG)
26389 You lose.
26390 # endif
26391 #endif
26392
26393 _ACEOF
26394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26395   $EGREP "You lose" >/dev/null 2>&1; then
26396   ac_cv_header_stat_broken=yes
26397 else
26398   ac_cv_header_stat_broken=no
26399 fi
26400 rm -f conftest*
26401
26402 fi
26403 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26404 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26405 if test $ac_cv_header_stat_broken = yes; then
26406
26407 cat >>confdefs.h <<\_ACEOF
26408 #define STAT_MACROS_BROKEN 1
26409 _ACEOF
26410
26411 fi
26412
26413 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26414 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26415 if test "${ac_cv_header_stdc+set}" = set; then
26416   echo $ECHO_N "(cached) $ECHO_C" >&6
26417 else
26418   cat >conftest.$ac_ext <<_ACEOF
26419 /* confdefs.h.  */
26420 _ACEOF
26421 cat confdefs.h >>conftest.$ac_ext
26422 cat >>conftest.$ac_ext <<_ACEOF
26423 /* end confdefs.h.  */
26424 #include <stdlib.h>
26425 #include <stdarg.h>
26426 #include <string.h>
26427 #include <float.h>
26428
26429 int
26430 main ()
26431 {
26432
26433   ;
26434   return 0;
26435 }
26436 _ACEOF
26437 rm -f conftest.$ac_objext
26438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26439   (eval $ac_compile) 2>conftest.er1
26440   ac_status=$?
26441   grep -v '^ *+' conftest.er1 >conftest.err
26442   rm -f conftest.er1
26443   cat conftest.err >&5
26444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445   (exit $ac_status); } &&
26446          { ac_try='test -z "$ac_c_werror_flag"
26447                          || test ! -s conftest.err'
26448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26449   (eval $ac_try) 2>&5
26450   ac_status=$?
26451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452   (exit $ac_status); }; } &&
26453          { ac_try='test -s conftest.$ac_objext'
26454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26455   (eval $ac_try) 2>&5
26456   ac_status=$?
26457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458   (exit $ac_status); }; }; then
26459   ac_cv_header_stdc=yes
26460 else
26461   echo "$as_me: failed program was:" >&5
26462 sed 's/^/| /' conftest.$ac_ext >&5
26463
26464 ac_cv_header_stdc=no
26465 fi
26466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26467
26468 if test $ac_cv_header_stdc = yes; then
26469   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26470   cat >conftest.$ac_ext <<_ACEOF
26471 /* confdefs.h.  */
26472 _ACEOF
26473 cat confdefs.h >>conftest.$ac_ext
26474 cat >>conftest.$ac_ext <<_ACEOF
26475 /* end confdefs.h.  */
26476 #include <string.h>
26477
26478 _ACEOF
26479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26480   $EGREP "memchr" >/dev/null 2>&1; then
26481   :
26482 else
26483   ac_cv_header_stdc=no
26484 fi
26485 rm -f conftest*
26486
26487 fi
26488
26489 if test $ac_cv_header_stdc = yes; then
26490   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26491   cat >conftest.$ac_ext <<_ACEOF
26492 /* confdefs.h.  */
26493 _ACEOF
26494 cat confdefs.h >>conftest.$ac_ext
26495 cat >>conftest.$ac_ext <<_ACEOF
26496 /* end confdefs.h.  */
26497 #include <stdlib.h>
26498
26499 _ACEOF
26500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26501   $EGREP "free" >/dev/null 2>&1; then
26502   :
26503 else
26504   ac_cv_header_stdc=no
26505 fi
26506 rm -f conftest*
26507
26508 fi
26509
26510 if test $ac_cv_header_stdc = yes; then
26511   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26512   if test "$cross_compiling" = yes; then
26513   :
26514 else
26515   cat >conftest.$ac_ext <<_ACEOF
26516 /* confdefs.h.  */
26517 _ACEOF
26518 cat confdefs.h >>conftest.$ac_ext
26519 cat >>conftest.$ac_ext <<_ACEOF
26520 /* end confdefs.h.  */
26521 #include <ctype.h>
26522 #if ((' ' & 0x0FF) == 0x020)
26523 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26524 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26525 #else
26526 # define ISLOWER(c) \
26527                    (('a' <= (c) && (c) <= 'i') \
26528                      || ('j' <= (c) && (c) <= 'r') \
26529                      || ('s' <= (c) && (c) <= 'z'))
26530 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26531 #endif
26532
26533 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26534 int
26535 main ()
26536 {
26537   int i;
26538   for (i = 0; i < 256; i++)
26539     if (XOR (islower (i), ISLOWER (i))
26540         || toupper (i) != TOUPPER (i))
26541       exit(2);
26542   exit (0);
26543 }
26544 _ACEOF
26545 rm -f conftest$ac_exeext
26546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26547   (eval $ac_link) 2>&5
26548   ac_status=$?
26549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26552   (eval $ac_try) 2>&5
26553   ac_status=$?
26554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555   (exit $ac_status); }; }; then
26556   :
26557 else
26558   echo "$as_me: program exited with status $ac_status" >&5
26559 echo "$as_me: failed program was:" >&5
26560 sed 's/^/| /' conftest.$ac_ext >&5
26561
26562 ( exit $ac_status )
26563 ac_cv_header_stdc=no
26564 fi
26565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26566 fi
26567 fi
26568 fi
26569 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26570 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26571 if test $ac_cv_header_stdc = yes; then
26572
26573 cat >>confdefs.h <<\_ACEOF
26574 #define STDC_HEADERS 1
26575 _ACEOF
26576
26577 fi
26578
26579 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26580 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26581 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26582   echo $ECHO_N "(cached) $ECHO_C" >&6
26583 else
26584   cat >conftest.$ac_ext <<_ACEOF
26585 /* confdefs.h.  */
26586 _ACEOF
26587 cat confdefs.h >>conftest.$ac_ext
26588 cat >>conftest.$ac_ext <<_ACEOF
26589 /* end confdefs.h.  */
26590 #include <sys/types.h>
26591 #include <sys/wait.h>
26592 #ifndef WEXITSTATUS
26593 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26594 #endif
26595 #ifndef WIFEXITED
26596 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26597 #endif
26598
26599 int
26600 main ()
26601 {
26602   int s;
26603   wait (&s);
26604   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26605   ;
26606   return 0;
26607 }
26608 _ACEOF
26609 rm -f conftest.$ac_objext
26610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26611   (eval $ac_compile) 2>conftest.er1
26612   ac_status=$?
26613   grep -v '^ *+' conftest.er1 >conftest.err
26614   rm -f conftest.er1
26615   cat conftest.err >&5
26616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26617   (exit $ac_status); } &&
26618          { ac_try='test -z "$ac_c_werror_flag"
26619                          || test ! -s conftest.err'
26620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26621   (eval $ac_try) 2>&5
26622   ac_status=$?
26623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624   (exit $ac_status); }; } &&
26625          { ac_try='test -s conftest.$ac_objext'
26626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26627   (eval $ac_try) 2>&5
26628   ac_status=$?
26629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26630   (exit $ac_status); }; }; then
26631   ac_cv_header_sys_wait_h=yes
26632 else
26633   echo "$as_me: failed program was:" >&5
26634 sed 's/^/| /' conftest.$ac_ext >&5
26635
26636 ac_cv_header_sys_wait_h=no
26637 fi
26638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26639 fi
26640 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26641 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26642 if test $ac_cv_header_sys_wait_h = yes; then
26643
26644 cat >>confdefs.h <<\_ACEOF
26645 #define HAVE_SYS_WAIT_H 1
26646 _ACEOF
26647
26648 fi
26649
26650 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26651 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26652 if test "${ac_cv_header_time+set}" = set; then
26653   echo $ECHO_N "(cached) $ECHO_C" >&6
26654 else
26655   cat >conftest.$ac_ext <<_ACEOF
26656 /* confdefs.h.  */
26657 _ACEOF
26658 cat confdefs.h >>conftest.$ac_ext
26659 cat >>conftest.$ac_ext <<_ACEOF
26660 /* end confdefs.h.  */
26661 #include <sys/types.h>
26662 #include <sys/time.h>
26663 #include <time.h>
26664
26665 int
26666 main ()
26667 {
26668 if ((struct tm *) 0)
26669 return 0;
26670   ;
26671   return 0;
26672 }
26673 _ACEOF
26674 rm -f conftest.$ac_objext
26675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26676   (eval $ac_compile) 2>conftest.er1
26677   ac_status=$?
26678   grep -v '^ *+' conftest.er1 >conftest.err
26679   rm -f conftest.er1
26680   cat conftest.err >&5
26681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682   (exit $ac_status); } &&
26683          { ac_try='test -z "$ac_c_werror_flag"
26684                          || test ! -s conftest.err'
26685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686   (eval $ac_try) 2>&5
26687   ac_status=$?
26688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689   (exit $ac_status); }; } &&
26690          { ac_try='test -s conftest.$ac_objext'
26691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692   (eval $ac_try) 2>&5
26693   ac_status=$?
26694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695   (exit $ac_status); }; }; then
26696   ac_cv_header_time=yes
26697 else
26698   echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26700
26701 ac_cv_header_time=no
26702 fi
26703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26704 fi
26705 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26706 echo "${ECHO_T}$ac_cv_header_time" >&6
26707 if test $ac_cv_header_time = yes; then
26708
26709 cat >>confdefs.h <<\_ACEOF
26710 #define TIME_WITH_SYS_TIME 1
26711 _ACEOF
26712
26713 fi
26714
26715
26716
26717
26718
26719
26720
26721
26722 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26723 do
26724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26726   echo "$as_me:$LINENO: checking for $ac_header" >&5
26727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26729   echo $ECHO_N "(cached) $ECHO_C" >&6
26730 fi
26731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26733 else
26734   # Is the header compilable?
26735 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26737 cat >conftest.$ac_ext <<_ACEOF
26738 /* confdefs.h.  */
26739 _ACEOF
26740 cat confdefs.h >>conftest.$ac_ext
26741 cat >>conftest.$ac_ext <<_ACEOF
26742 /* end confdefs.h.  */
26743 $ac_includes_default
26744 #include <$ac_header>
26745 _ACEOF
26746 rm -f conftest.$ac_objext
26747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26748   (eval $ac_compile) 2>conftest.er1
26749   ac_status=$?
26750   grep -v '^ *+' conftest.er1 >conftest.err
26751   rm -f conftest.er1
26752   cat conftest.err >&5
26753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754   (exit $ac_status); } &&
26755          { ac_try='test -z "$ac_c_werror_flag"
26756                          || test ! -s conftest.err'
26757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26758   (eval $ac_try) 2>&5
26759   ac_status=$?
26760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761   (exit $ac_status); }; } &&
26762          { ac_try='test -s conftest.$ac_objext'
26763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26764   (eval $ac_try) 2>&5
26765   ac_status=$?
26766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767   (exit $ac_status); }; }; then
26768   ac_header_compiler=yes
26769 else
26770   echo "$as_me: failed program was:" >&5
26771 sed 's/^/| /' conftest.$ac_ext >&5
26772
26773 ac_header_compiler=no
26774 fi
26775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26777 echo "${ECHO_T}$ac_header_compiler" >&6
26778
26779 # Is the header present?
26780 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26782 cat >conftest.$ac_ext <<_ACEOF
26783 /* confdefs.h.  */
26784 _ACEOF
26785 cat confdefs.h >>conftest.$ac_ext
26786 cat >>conftest.$ac_ext <<_ACEOF
26787 /* end confdefs.h.  */
26788 #include <$ac_header>
26789 _ACEOF
26790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26791   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26792   ac_status=$?
26793   grep -v '^ *+' conftest.er1 >conftest.err
26794   rm -f conftest.er1
26795   cat conftest.err >&5
26796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797   (exit $ac_status); } >/dev/null; then
26798   if test -s conftest.err; then
26799     ac_cpp_err=$ac_c_preproc_warn_flag
26800     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26801   else
26802     ac_cpp_err=
26803   fi
26804 else
26805   ac_cpp_err=yes
26806 fi
26807 if test -z "$ac_cpp_err"; then
26808   ac_header_preproc=yes
26809 else
26810   echo "$as_me: failed program was:" >&5
26811 sed 's/^/| /' conftest.$ac_ext >&5
26812
26813   ac_header_preproc=no
26814 fi
26815 rm -f conftest.err conftest.$ac_ext
26816 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26817 echo "${ECHO_T}$ac_header_preproc" >&6
26818
26819 # So?  What about this header?
26820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26821   yes:no: )
26822     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26826     ac_header_preproc=yes
26827     ;;
26828   no:yes:* )
26829     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26831     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26832 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26833     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26835     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26836 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26839     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26841     (
26842       cat <<\_ASBOX
26843 ## ----------------------------------- ##
26844 ## Report this to llvmbugs@cs.uiuc.edu ##
26845 ## ----------------------------------- ##
26846 _ASBOX
26847     ) |
26848       sed "s/^/$as_me: WARNING:     /" >&2
26849     ;;
26850 esac
26851 echo "$as_me:$LINENO: checking for $ac_header" >&5
26852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26854   echo $ECHO_N "(cached) $ECHO_C" >&6
26855 else
26856   eval "$as_ac_Header=\$ac_header_preproc"
26857 fi
26858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26860
26861 fi
26862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26863   cat >>confdefs.h <<_ACEOF
26864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26865 _ACEOF
26866
26867 fi
26868
26869 done
26870
26871
26872
26873
26874
26875
26876
26877 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26878 do
26879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26881   echo "$as_me:$LINENO: checking for $ac_header" >&5
26882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26884   echo $ECHO_N "(cached) $ECHO_C" >&6
26885 fi
26886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26888 else
26889   # Is the header compilable?
26890 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26892 cat >conftest.$ac_ext <<_ACEOF
26893 /* confdefs.h.  */
26894 _ACEOF
26895 cat confdefs.h >>conftest.$ac_ext
26896 cat >>conftest.$ac_ext <<_ACEOF
26897 /* end confdefs.h.  */
26898 $ac_includes_default
26899 #include <$ac_header>
26900 _ACEOF
26901 rm -f conftest.$ac_objext
26902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26903   (eval $ac_compile) 2>conftest.er1
26904   ac_status=$?
26905   grep -v '^ *+' conftest.er1 >conftest.err
26906   rm -f conftest.er1
26907   cat conftest.err >&5
26908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909   (exit $ac_status); } &&
26910          { ac_try='test -z "$ac_c_werror_flag"
26911                          || test ! -s conftest.err'
26912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26913   (eval $ac_try) 2>&5
26914   ac_status=$?
26915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26916   (exit $ac_status); }; } &&
26917          { ac_try='test -s conftest.$ac_objext'
26918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26919   (eval $ac_try) 2>&5
26920   ac_status=$?
26921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26922   (exit $ac_status); }; }; then
26923   ac_header_compiler=yes
26924 else
26925   echo "$as_me: failed program was:" >&5
26926 sed 's/^/| /' conftest.$ac_ext >&5
26927
26928 ac_header_compiler=no
26929 fi
26930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26932 echo "${ECHO_T}$ac_header_compiler" >&6
26933
26934 # Is the header present?
26935 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26937 cat >conftest.$ac_ext <<_ACEOF
26938 /* confdefs.h.  */
26939 _ACEOF
26940 cat confdefs.h >>conftest.$ac_ext
26941 cat >>conftest.$ac_ext <<_ACEOF
26942 /* end confdefs.h.  */
26943 #include <$ac_header>
26944 _ACEOF
26945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26946   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26947   ac_status=$?
26948   grep -v '^ *+' conftest.er1 >conftest.err
26949   rm -f conftest.er1
26950   cat conftest.err >&5
26951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952   (exit $ac_status); } >/dev/null; then
26953   if test -s conftest.err; then
26954     ac_cpp_err=$ac_c_preproc_warn_flag
26955     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26956   else
26957     ac_cpp_err=
26958   fi
26959 else
26960   ac_cpp_err=yes
26961 fi
26962 if test -z "$ac_cpp_err"; then
26963   ac_header_preproc=yes
26964 else
26965   echo "$as_me: failed program was:" >&5
26966 sed 's/^/| /' conftest.$ac_ext >&5
26967
26968   ac_header_preproc=no
26969 fi
26970 rm -f conftest.err conftest.$ac_ext
26971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26972 echo "${ECHO_T}$ac_header_preproc" >&6
26973
26974 # So?  What about this header?
26975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26976   yes:no: )
26977     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26981     ac_header_preproc=yes
26982     ;;
26983   no:yes:* )
26984     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26986     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26987 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26988     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26990     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26991 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26992     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26994     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26996     (
26997       cat <<\_ASBOX
26998 ## ----------------------------------- ##
26999 ## Report this to llvmbugs@cs.uiuc.edu ##
27000 ## ----------------------------------- ##
27001 _ASBOX
27002     ) |
27003       sed "s/^/$as_me: WARNING:     /" >&2
27004     ;;
27005 esac
27006 echo "$as_me:$LINENO: checking for $ac_header" >&5
27007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27009   echo $ECHO_N "(cached) $ECHO_C" >&6
27010 else
27011   eval "$as_ac_Header=\$ac_header_preproc"
27012 fi
27013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27015
27016 fi
27017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27018   cat >>confdefs.h <<_ACEOF
27019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27020 _ACEOF
27021
27022 fi
27023
27024 done
27025
27026
27027
27028
27029
27030
27031 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
27032 do
27033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27035   echo "$as_me:$LINENO: checking for $ac_header" >&5
27036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27038   echo $ECHO_N "(cached) $ECHO_C" >&6
27039 fi
27040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27042 else
27043   # Is the header compilable?
27044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27046 cat >conftest.$ac_ext <<_ACEOF
27047 /* confdefs.h.  */
27048 _ACEOF
27049 cat confdefs.h >>conftest.$ac_ext
27050 cat >>conftest.$ac_ext <<_ACEOF
27051 /* end confdefs.h.  */
27052 $ac_includes_default
27053 #include <$ac_header>
27054 _ACEOF
27055 rm -f conftest.$ac_objext
27056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27057   (eval $ac_compile) 2>conftest.er1
27058   ac_status=$?
27059   grep -v '^ *+' conftest.er1 >conftest.err
27060   rm -f conftest.er1
27061   cat conftest.err >&5
27062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063   (exit $ac_status); } &&
27064          { ac_try='test -z "$ac_c_werror_flag"
27065                          || test ! -s conftest.err'
27066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27067   (eval $ac_try) 2>&5
27068   ac_status=$?
27069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27070   (exit $ac_status); }; } &&
27071          { ac_try='test -s conftest.$ac_objext'
27072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27073   (eval $ac_try) 2>&5
27074   ac_status=$?
27075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076   (exit $ac_status); }; }; then
27077   ac_header_compiler=yes
27078 else
27079   echo "$as_me: failed program was:" >&5
27080 sed 's/^/| /' conftest.$ac_ext >&5
27081
27082 ac_header_compiler=no
27083 fi
27084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27086 echo "${ECHO_T}$ac_header_compiler" >&6
27087
27088 # Is the header present?
27089 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27091 cat >conftest.$ac_ext <<_ACEOF
27092 /* confdefs.h.  */
27093 _ACEOF
27094 cat confdefs.h >>conftest.$ac_ext
27095 cat >>conftest.$ac_ext <<_ACEOF
27096 /* end confdefs.h.  */
27097 #include <$ac_header>
27098 _ACEOF
27099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27100   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27101   ac_status=$?
27102   grep -v '^ *+' conftest.er1 >conftest.err
27103   rm -f conftest.er1
27104   cat conftest.err >&5
27105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106   (exit $ac_status); } >/dev/null; then
27107   if test -s conftest.err; then
27108     ac_cpp_err=$ac_c_preproc_warn_flag
27109     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27110   else
27111     ac_cpp_err=
27112   fi
27113 else
27114   ac_cpp_err=yes
27115 fi
27116 if test -z "$ac_cpp_err"; then
27117   ac_header_preproc=yes
27118 else
27119   echo "$as_me: failed program was:" >&5
27120 sed 's/^/| /' conftest.$ac_ext >&5
27121
27122   ac_header_preproc=no
27123 fi
27124 rm -f conftest.err conftest.$ac_ext
27125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27126 echo "${ECHO_T}$ac_header_preproc" >&6
27127
27128 # So?  What about this header?
27129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27130   yes:no: )
27131     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27133     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27135     ac_header_preproc=yes
27136     ;;
27137   no:yes:* )
27138     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27140     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27141 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27142     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27144     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27145 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27146     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27148     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27150     (
27151       cat <<\_ASBOX
27152 ## ----------------------------------- ##
27153 ## Report this to llvmbugs@cs.uiuc.edu ##
27154 ## ----------------------------------- ##
27155 _ASBOX
27156     ) |
27157       sed "s/^/$as_me: WARNING:     /" >&2
27158     ;;
27159 esac
27160 echo "$as_me:$LINENO: checking for $ac_header" >&5
27161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27163   echo $ECHO_N "(cached) $ECHO_C" >&6
27164 else
27165   eval "$as_ac_Header=\$ac_header_preproc"
27166 fi
27167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27169
27170 fi
27171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27172   cat >>confdefs.h <<_ACEOF
27173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27174 _ACEOF
27175
27176 fi
27177
27178 done
27179
27180
27181 for ac_header in malloc/malloc.h
27182 do
27183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27185   echo "$as_me:$LINENO: checking for $ac_header" >&5
27186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27188   echo $ECHO_N "(cached) $ECHO_C" >&6
27189 fi
27190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27192 else
27193   # Is the header compilable?
27194 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27196 cat >conftest.$ac_ext <<_ACEOF
27197 /* confdefs.h.  */
27198 _ACEOF
27199 cat confdefs.h >>conftest.$ac_ext
27200 cat >>conftest.$ac_ext <<_ACEOF
27201 /* end confdefs.h.  */
27202 $ac_includes_default
27203 #include <$ac_header>
27204 _ACEOF
27205 rm -f conftest.$ac_objext
27206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27207   (eval $ac_compile) 2>conftest.er1
27208   ac_status=$?
27209   grep -v '^ *+' conftest.er1 >conftest.err
27210   rm -f conftest.er1
27211   cat conftest.err >&5
27212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213   (exit $ac_status); } &&
27214          { ac_try='test -z "$ac_c_werror_flag"
27215                          || test ! -s conftest.err'
27216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27217   (eval $ac_try) 2>&5
27218   ac_status=$?
27219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220   (exit $ac_status); }; } &&
27221          { ac_try='test -s conftest.$ac_objext'
27222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27223   (eval $ac_try) 2>&5
27224   ac_status=$?
27225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226   (exit $ac_status); }; }; then
27227   ac_header_compiler=yes
27228 else
27229   echo "$as_me: failed program was:" >&5
27230 sed 's/^/| /' conftest.$ac_ext >&5
27231
27232 ac_header_compiler=no
27233 fi
27234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27236 echo "${ECHO_T}$ac_header_compiler" >&6
27237
27238 # Is the header present?
27239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27241 cat >conftest.$ac_ext <<_ACEOF
27242 /* confdefs.h.  */
27243 _ACEOF
27244 cat confdefs.h >>conftest.$ac_ext
27245 cat >>conftest.$ac_ext <<_ACEOF
27246 /* end confdefs.h.  */
27247 #include <$ac_header>
27248 _ACEOF
27249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27250   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27251   ac_status=$?
27252   grep -v '^ *+' conftest.er1 >conftest.err
27253   rm -f conftest.er1
27254   cat conftest.err >&5
27255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256   (exit $ac_status); } >/dev/null; then
27257   if test -s conftest.err; then
27258     ac_cpp_err=$ac_c_preproc_warn_flag
27259     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27260   else
27261     ac_cpp_err=
27262   fi
27263 else
27264   ac_cpp_err=yes
27265 fi
27266 if test -z "$ac_cpp_err"; then
27267   ac_header_preproc=yes
27268 else
27269   echo "$as_me: failed program was:" >&5
27270 sed 's/^/| /' conftest.$ac_ext >&5
27271
27272   ac_header_preproc=no
27273 fi
27274 rm -f conftest.err conftest.$ac_ext
27275 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27276 echo "${ECHO_T}$ac_header_preproc" >&6
27277
27278 # So?  What about this header?
27279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27280   yes:no: )
27281     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27285     ac_header_preproc=yes
27286     ;;
27287   no:yes:* )
27288     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27290     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27291 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27292     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27294     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27295 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27298     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27300     (
27301       cat <<\_ASBOX
27302 ## ----------------------------------- ##
27303 ## Report this to llvmbugs@cs.uiuc.edu ##
27304 ## ----------------------------------- ##
27305 _ASBOX
27306     ) |
27307       sed "s/^/$as_me: WARNING:     /" >&2
27308     ;;
27309 esac
27310 echo "$as_me:$LINENO: checking for $ac_header" >&5
27311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27313   echo $ECHO_N "(cached) $ECHO_C" >&6
27314 else
27315   eval "$as_ac_Header=\$ac_header_preproc"
27316 fi
27317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27319
27320 fi
27321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27322   cat >>confdefs.h <<_ACEOF
27323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27324 _ACEOF
27325
27326 fi
27327
27328 done
27329
27330 if test "$ENABLE_THREADS" -eq 1 ; then
27331
27332 for ac_header in pthread.h
27333 do
27334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27336   echo "$as_me:$LINENO: checking for $ac_header" >&5
27337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27339   echo $ECHO_N "(cached) $ECHO_C" >&6
27340 fi
27341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27343 else
27344   # Is the header compilable?
27345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27347 cat >conftest.$ac_ext <<_ACEOF
27348 /* confdefs.h.  */
27349 _ACEOF
27350 cat confdefs.h >>conftest.$ac_ext
27351 cat >>conftest.$ac_ext <<_ACEOF
27352 /* end confdefs.h.  */
27353 $ac_includes_default
27354 #include <$ac_header>
27355 _ACEOF
27356 rm -f conftest.$ac_objext
27357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27358   (eval $ac_compile) 2>conftest.er1
27359   ac_status=$?
27360   grep -v '^ *+' conftest.er1 >conftest.err
27361   rm -f conftest.er1
27362   cat conftest.err >&5
27363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364   (exit $ac_status); } &&
27365          { ac_try='test -z "$ac_c_werror_flag"
27366                          || test ! -s conftest.err'
27367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27368   (eval $ac_try) 2>&5
27369   ac_status=$?
27370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371   (exit $ac_status); }; } &&
27372          { ac_try='test -s conftest.$ac_objext'
27373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27374   (eval $ac_try) 2>&5
27375   ac_status=$?
27376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377   (exit $ac_status); }; }; then
27378   ac_header_compiler=yes
27379 else
27380   echo "$as_me: failed program was:" >&5
27381 sed 's/^/| /' conftest.$ac_ext >&5
27382
27383 ac_header_compiler=no
27384 fi
27385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27387 echo "${ECHO_T}$ac_header_compiler" >&6
27388
27389 # Is the header present?
27390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27392 cat >conftest.$ac_ext <<_ACEOF
27393 /* confdefs.h.  */
27394 _ACEOF
27395 cat confdefs.h >>conftest.$ac_ext
27396 cat >>conftest.$ac_ext <<_ACEOF
27397 /* end confdefs.h.  */
27398 #include <$ac_header>
27399 _ACEOF
27400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27401   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27402   ac_status=$?
27403   grep -v '^ *+' conftest.er1 >conftest.err
27404   rm -f conftest.er1
27405   cat conftest.err >&5
27406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407   (exit $ac_status); } >/dev/null; then
27408   if test -s conftest.err; then
27409     ac_cpp_err=$ac_c_preproc_warn_flag
27410     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27411   else
27412     ac_cpp_err=
27413   fi
27414 else
27415   ac_cpp_err=yes
27416 fi
27417 if test -z "$ac_cpp_err"; then
27418   ac_header_preproc=yes
27419 else
27420   echo "$as_me: failed program was:" >&5
27421 sed 's/^/| /' conftest.$ac_ext >&5
27422
27423   ac_header_preproc=no
27424 fi
27425 rm -f conftest.err conftest.$ac_ext
27426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27427 echo "${ECHO_T}$ac_header_preproc" >&6
27428
27429 # So?  What about this header?
27430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27431   yes:no: )
27432     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27436     ac_header_preproc=yes
27437     ;;
27438   no:yes:* )
27439     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27441     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27442 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27443     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27445     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27446 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27449     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27451     (
27452       cat <<\_ASBOX
27453 ## ----------------------------------- ##
27454 ## Report this to llvmbugs@cs.uiuc.edu ##
27455 ## ----------------------------------- ##
27456 _ASBOX
27457     ) |
27458       sed "s/^/$as_me: WARNING:     /" >&2
27459     ;;
27460 esac
27461 echo "$as_me:$LINENO: checking for $ac_header" >&5
27462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27464   echo $ECHO_N "(cached) $ECHO_C" >&6
27465 else
27466   eval "$as_ac_Header=\$ac_header_preproc"
27467 fi
27468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27470
27471 fi
27472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27473   cat >>confdefs.h <<_ACEOF
27474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27475 _ACEOF
27476
27477 fi
27478
27479 done
27480
27481 fi
27482
27483
27484 echo "$as_me:$LINENO: checking for pid_t" >&5
27485 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27486 if test "${ac_cv_type_pid_t+set}" = set; then
27487   echo $ECHO_N "(cached) $ECHO_C" >&6
27488 else
27489   cat >conftest.$ac_ext <<_ACEOF
27490 /* confdefs.h.  */
27491 _ACEOF
27492 cat confdefs.h >>conftest.$ac_ext
27493 cat >>conftest.$ac_ext <<_ACEOF
27494 /* end confdefs.h.  */
27495 $ac_includes_default
27496 int
27497 main ()
27498 {
27499 if ((pid_t *) 0)
27500   return 0;
27501 if (sizeof (pid_t))
27502   return 0;
27503   ;
27504   return 0;
27505 }
27506 _ACEOF
27507 rm -f conftest.$ac_objext
27508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27509   (eval $ac_compile) 2>conftest.er1
27510   ac_status=$?
27511   grep -v '^ *+' conftest.er1 >conftest.err
27512   rm -f conftest.er1
27513   cat conftest.err >&5
27514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515   (exit $ac_status); } &&
27516          { ac_try='test -z "$ac_c_werror_flag"
27517                          || test ! -s conftest.err'
27518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27519   (eval $ac_try) 2>&5
27520   ac_status=$?
27521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522   (exit $ac_status); }; } &&
27523          { ac_try='test -s conftest.$ac_objext'
27524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27525   (eval $ac_try) 2>&5
27526   ac_status=$?
27527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528   (exit $ac_status); }; }; then
27529   ac_cv_type_pid_t=yes
27530 else
27531   echo "$as_me: failed program was:" >&5
27532 sed 's/^/| /' conftest.$ac_ext >&5
27533
27534 ac_cv_type_pid_t=no
27535 fi
27536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27537 fi
27538 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27539 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27540 if test $ac_cv_type_pid_t = yes; then
27541   :
27542 else
27543
27544 cat >>confdefs.h <<_ACEOF
27545 #define pid_t int
27546 _ACEOF
27547
27548 fi
27549
27550 echo "$as_me:$LINENO: checking for size_t" >&5
27551 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27552 if test "${ac_cv_type_size_t+set}" = set; then
27553   echo $ECHO_N "(cached) $ECHO_C" >&6
27554 else
27555   cat >conftest.$ac_ext <<_ACEOF
27556 /* confdefs.h.  */
27557 _ACEOF
27558 cat confdefs.h >>conftest.$ac_ext
27559 cat >>conftest.$ac_ext <<_ACEOF
27560 /* end confdefs.h.  */
27561 $ac_includes_default
27562 int
27563 main ()
27564 {
27565 if ((size_t *) 0)
27566   return 0;
27567 if (sizeof (size_t))
27568   return 0;
27569   ;
27570   return 0;
27571 }
27572 _ACEOF
27573 rm -f conftest.$ac_objext
27574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27575   (eval $ac_compile) 2>conftest.er1
27576   ac_status=$?
27577   grep -v '^ *+' conftest.er1 >conftest.err
27578   rm -f conftest.er1
27579   cat conftest.err >&5
27580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581   (exit $ac_status); } &&
27582          { ac_try='test -z "$ac_c_werror_flag"
27583                          || test ! -s conftest.err'
27584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27585   (eval $ac_try) 2>&5
27586   ac_status=$?
27587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588   (exit $ac_status); }; } &&
27589          { ac_try='test -s conftest.$ac_objext'
27590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27591   (eval $ac_try) 2>&5
27592   ac_status=$?
27593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594   (exit $ac_status); }; }; then
27595   ac_cv_type_size_t=yes
27596 else
27597   echo "$as_me: failed program was:" >&5
27598 sed 's/^/| /' conftest.$ac_ext >&5
27599
27600 ac_cv_type_size_t=no
27601 fi
27602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27603 fi
27604 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27605 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27606 if test $ac_cv_type_size_t = yes; then
27607   :
27608 else
27609
27610 cat >>confdefs.h <<_ACEOF
27611 #define size_t unsigned
27612 _ACEOF
27613
27614 fi
27615
27616 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27617 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27618 if test "${ac_cv_type_signal+set}" = set; then
27619   echo $ECHO_N "(cached) $ECHO_C" >&6
27620 else
27621   cat >conftest.$ac_ext <<_ACEOF
27622 /* confdefs.h.  */
27623 _ACEOF
27624 cat confdefs.h >>conftest.$ac_ext
27625 cat >>conftest.$ac_ext <<_ACEOF
27626 /* end confdefs.h.  */
27627 #include <sys/types.h>
27628 #include <signal.h>
27629 #ifdef signal
27630 # undef signal
27631 #endif
27632 #ifdef __cplusplus
27633 extern "C" void (*signal (int, void (*)(int)))(int);
27634 #else
27635 void (*signal ()) ();
27636 #endif
27637
27638 int
27639 main ()
27640 {
27641 int i;
27642   ;
27643   return 0;
27644 }
27645 _ACEOF
27646 rm -f conftest.$ac_objext
27647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27648   (eval $ac_compile) 2>conftest.er1
27649   ac_status=$?
27650   grep -v '^ *+' conftest.er1 >conftest.err
27651   rm -f conftest.er1
27652   cat conftest.err >&5
27653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654   (exit $ac_status); } &&
27655          { ac_try='test -z "$ac_c_werror_flag"
27656                          || test ! -s conftest.err'
27657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27658   (eval $ac_try) 2>&5
27659   ac_status=$?
27660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661   (exit $ac_status); }; } &&
27662          { ac_try='test -s conftest.$ac_objext'
27663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27664   (eval $ac_try) 2>&5
27665   ac_status=$?
27666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667   (exit $ac_status); }; }; then
27668   ac_cv_type_signal=void
27669 else
27670   echo "$as_me: failed program was:" >&5
27671 sed 's/^/| /' conftest.$ac_ext >&5
27672
27673 ac_cv_type_signal=int
27674 fi
27675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27676 fi
27677 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27678 echo "${ECHO_T}$ac_cv_type_signal" >&6
27679
27680 cat >>confdefs.h <<_ACEOF
27681 #define RETSIGTYPE $ac_cv_type_signal
27682 _ACEOF
27683
27684
27685 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27686 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27687 if test "${ac_cv_struct_tm+set}" = set; then
27688   echo $ECHO_N "(cached) $ECHO_C" >&6
27689 else
27690   cat >conftest.$ac_ext <<_ACEOF
27691 /* confdefs.h.  */
27692 _ACEOF
27693 cat confdefs.h >>conftest.$ac_ext
27694 cat >>conftest.$ac_ext <<_ACEOF
27695 /* end confdefs.h.  */
27696 #include <sys/types.h>
27697 #include <time.h>
27698
27699 int
27700 main ()
27701 {
27702 struct tm *tp; tp->tm_sec;
27703   ;
27704   return 0;
27705 }
27706 _ACEOF
27707 rm -f conftest.$ac_objext
27708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27709   (eval $ac_compile) 2>conftest.er1
27710   ac_status=$?
27711   grep -v '^ *+' conftest.er1 >conftest.err
27712   rm -f conftest.er1
27713   cat conftest.err >&5
27714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715   (exit $ac_status); } &&
27716          { ac_try='test -z "$ac_c_werror_flag"
27717                          || test ! -s conftest.err'
27718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27719   (eval $ac_try) 2>&5
27720   ac_status=$?
27721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722   (exit $ac_status); }; } &&
27723          { ac_try='test -s conftest.$ac_objext'
27724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27725   (eval $ac_try) 2>&5
27726   ac_status=$?
27727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728   (exit $ac_status); }; }; then
27729   ac_cv_struct_tm=time.h
27730 else
27731   echo "$as_me: failed program was:" >&5
27732 sed 's/^/| /' conftest.$ac_ext >&5
27733
27734 ac_cv_struct_tm=sys/time.h
27735 fi
27736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27737 fi
27738 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27739 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27740 if test $ac_cv_struct_tm = sys/time.h; then
27741
27742 cat >>confdefs.h <<\_ACEOF
27743 #define TM_IN_SYS_TIME 1
27744 _ACEOF
27745
27746 fi
27747
27748 echo "$as_me:$LINENO: checking for int64_t" >&5
27749 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27750 if test "${ac_cv_type_int64_t+set}" = set; then
27751   echo $ECHO_N "(cached) $ECHO_C" >&6
27752 else
27753   cat >conftest.$ac_ext <<_ACEOF
27754 /* confdefs.h.  */
27755 _ACEOF
27756 cat confdefs.h >>conftest.$ac_ext
27757 cat >>conftest.$ac_ext <<_ACEOF
27758 /* end confdefs.h.  */
27759 $ac_includes_default
27760 int
27761 main ()
27762 {
27763 if ((int64_t *) 0)
27764   return 0;
27765 if (sizeof (int64_t))
27766   return 0;
27767   ;
27768   return 0;
27769 }
27770 _ACEOF
27771 rm -f conftest.$ac_objext
27772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27773   (eval $ac_compile) 2>conftest.er1
27774   ac_status=$?
27775   grep -v '^ *+' conftest.er1 >conftest.err
27776   rm -f conftest.er1
27777   cat conftest.err >&5
27778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779   (exit $ac_status); } &&
27780          { ac_try='test -z "$ac_c_werror_flag"
27781                          || test ! -s conftest.err'
27782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27783   (eval $ac_try) 2>&5
27784   ac_status=$?
27785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786   (exit $ac_status); }; } &&
27787          { ac_try='test -s conftest.$ac_objext'
27788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27789   (eval $ac_try) 2>&5
27790   ac_status=$?
27791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792   (exit $ac_status); }; }; then
27793   ac_cv_type_int64_t=yes
27794 else
27795   echo "$as_me: failed program was:" >&5
27796 sed 's/^/| /' conftest.$ac_ext >&5
27797
27798 ac_cv_type_int64_t=no
27799 fi
27800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27801 fi
27802 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27803 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27804 if test $ac_cv_type_int64_t = yes; then
27805
27806 cat >>confdefs.h <<_ACEOF
27807 #define HAVE_INT64_T 1
27808 _ACEOF
27809
27810
27811 else
27812   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27813 echo "$as_me: error: Type int64_t required but not found" >&2;}
27814    { (exit 1); exit 1; }; }
27815 fi
27816
27817 echo "$as_me:$LINENO: checking for uint64_t" >&5
27818 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27819 if test "${ac_cv_type_uint64_t+set}" = set; then
27820   echo $ECHO_N "(cached) $ECHO_C" >&6
27821 else
27822   cat >conftest.$ac_ext <<_ACEOF
27823 /* confdefs.h.  */
27824 _ACEOF
27825 cat confdefs.h >>conftest.$ac_ext
27826 cat >>conftest.$ac_ext <<_ACEOF
27827 /* end confdefs.h.  */
27828 $ac_includes_default
27829 int
27830 main ()
27831 {
27832 if ((uint64_t *) 0)
27833   return 0;
27834 if (sizeof (uint64_t))
27835   return 0;
27836   ;
27837   return 0;
27838 }
27839 _ACEOF
27840 rm -f conftest.$ac_objext
27841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27842   (eval $ac_compile) 2>conftest.er1
27843   ac_status=$?
27844   grep -v '^ *+' conftest.er1 >conftest.err
27845   rm -f conftest.er1
27846   cat conftest.err >&5
27847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848   (exit $ac_status); } &&
27849          { ac_try='test -z "$ac_c_werror_flag"
27850                          || test ! -s conftest.err'
27851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27852   (eval $ac_try) 2>&5
27853   ac_status=$?
27854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855   (exit $ac_status); }; } &&
27856          { ac_try='test -s conftest.$ac_objext'
27857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27858   (eval $ac_try) 2>&5
27859   ac_status=$?
27860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861   (exit $ac_status); }; }; then
27862   ac_cv_type_uint64_t=yes
27863 else
27864   echo "$as_me: failed program was:" >&5
27865 sed 's/^/| /' conftest.$ac_ext >&5
27866
27867 ac_cv_type_uint64_t=no
27868 fi
27869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27870 fi
27871 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27872 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27873 if test $ac_cv_type_uint64_t = yes; then
27874
27875 cat >>confdefs.h <<_ACEOF
27876 #define HAVE_UINT64_T 1
27877 _ACEOF
27878
27879
27880 else
27881   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27882 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27883 if test "${ac_cv_type_u_int64_t+set}" = set; then
27884   echo $ECHO_N "(cached) $ECHO_C" >&6
27885 else
27886   cat >conftest.$ac_ext <<_ACEOF
27887 /* confdefs.h.  */
27888 _ACEOF
27889 cat confdefs.h >>conftest.$ac_ext
27890 cat >>conftest.$ac_ext <<_ACEOF
27891 /* end confdefs.h.  */
27892 $ac_includes_default
27893 int
27894 main ()
27895 {
27896 if ((u_int64_t *) 0)
27897   return 0;
27898 if (sizeof (u_int64_t))
27899   return 0;
27900   ;
27901   return 0;
27902 }
27903 _ACEOF
27904 rm -f conftest.$ac_objext
27905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27906   (eval $ac_compile) 2>conftest.er1
27907   ac_status=$?
27908   grep -v '^ *+' conftest.er1 >conftest.err
27909   rm -f conftest.er1
27910   cat conftest.err >&5
27911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912   (exit $ac_status); } &&
27913          { ac_try='test -z "$ac_c_werror_flag"
27914                          || test ! -s conftest.err'
27915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27916   (eval $ac_try) 2>&5
27917   ac_status=$?
27918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27919   (exit $ac_status); }; } &&
27920          { ac_try='test -s conftest.$ac_objext'
27921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27922   (eval $ac_try) 2>&5
27923   ac_status=$?
27924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925   (exit $ac_status); }; }; then
27926   ac_cv_type_u_int64_t=yes
27927 else
27928   echo "$as_me: failed program was:" >&5
27929 sed 's/^/| /' conftest.$ac_ext >&5
27930
27931 ac_cv_type_u_int64_t=no
27932 fi
27933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27934 fi
27935 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27936 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27937 if test $ac_cv_type_u_int64_t = yes; then
27938
27939 cat >>confdefs.h <<_ACEOF
27940 #define HAVE_U_INT64_T 1
27941 _ACEOF
27942
27943
27944 else
27945   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27946 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27947    { (exit 1); exit 1; }; }
27948 fi
27949
27950 fi
27951
27952
27953
27954
27955
27956
27957
27958
27959
27960
27961 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
27962 do
27963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27964 echo "$as_me:$LINENO: checking for $ac_func" >&5
27965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27966 if eval "test \"\${$as_ac_var+set}\" = set"; then
27967   echo $ECHO_N "(cached) $ECHO_C" >&6
27968 else
27969   cat >conftest.$ac_ext <<_ACEOF
27970 /* confdefs.h.  */
27971 _ACEOF
27972 cat confdefs.h >>conftest.$ac_ext
27973 cat >>conftest.$ac_ext <<_ACEOF
27974 /* end confdefs.h.  */
27975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27976    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27977 #define $ac_func innocuous_$ac_func
27978
27979 /* System header to define __stub macros and hopefully few prototypes,
27980     which can conflict with char $ac_func (); below.
27981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27982     <limits.h> exists even on freestanding compilers.  */
27983
27984 #ifdef __STDC__
27985 # include <limits.h>
27986 #else
27987 # include <assert.h>
27988 #endif
27989
27990 #undef $ac_func
27991
27992 /* Override any gcc2 internal prototype to avoid an error.  */
27993 #ifdef __cplusplus
27994 extern "C"
27995 {
27996 #endif
27997 /* We use char because int might match the return type of a gcc2
27998    builtin and then its argument prototype would still apply.  */
27999 char $ac_func ();
28000 /* The GNU C library defines this for functions which it implements
28001     to always fail with ENOSYS.  Some functions are actually named
28002     something starting with __ and the normal name is an alias.  */
28003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28004 choke me
28005 #else
28006 char (*f) () = $ac_func;
28007 #endif
28008 #ifdef __cplusplus
28009 }
28010 #endif
28011
28012 int
28013 main ()
28014 {
28015 return f != $ac_func;
28016   ;
28017   return 0;
28018 }
28019 _ACEOF
28020 rm -f conftest.$ac_objext conftest$ac_exeext
28021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28022   (eval $ac_link) 2>conftest.er1
28023   ac_status=$?
28024   grep -v '^ *+' conftest.er1 >conftest.err
28025   rm -f conftest.er1
28026   cat conftest.err >&5
28027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028   (exit $ac_status); } &&
28029          { ac_try='test -z "$ac_c_werror_flag"
28030                          || test ! -s conftest.err'
28031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28032   (eval $ac_try) 2>&5
28033   ac_status=$?
28034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035   (exit $ac_status); }; } &&
28036          { ac_try='test -s conftest$ac_exeext'
28037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28038   (eval $ac_try) 2>&5
28039   ac_status=$?
28040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041   (exit $ac_status); }; }; then
28042   eval "$as_ac_var=yes"
28043 else
28044   echo "$as_me: failed program was:" >&5
28045 sed 's/^/| /' conftest.$ac_ext >&5
28046
28047 eval "$as_ac_var=no"
28048 fi
28049 rm -f conftest.err conftest.$ac_objext \
28050       conftest$ac_exeext conftest.$ac_ext
28051 fi
28052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28054 if test `eval echo '${'$as_ac_var'}'` = yes; then
28055   cat >>confdefs.h <<_ACEOF
28056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28057 _ACEOF
28058
28059 fi
28060 done
28061
28062
28063
28064
28065
28066
28067
28068 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28069 do
28070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28071 echo "$as_me:$LINENO: checking for $ac_func" >&5
28072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28073 if eval "test \"\${$as_ac_var+set}\" = set"; then
28074   echo $ECHO_N "(cached) $ECHO_C" >&6
28075 else
28076   cat >conftest.$ac_ext <<_ACEOF
28077 /* confdefs.h.  */
28078 _ACEOF
28079 cat confdefs.h >>conftest.$ac_ext
28080 cat >>conftest.$ac_ext <<_ACEOF
28081 /* end confdefs.h.  */
28082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28083    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28084 #define $ac_func innocuous_$ac_func
28085
28086 /* System header to define __stub macros and hopefully few prototypes,
28087     which can conflict with char $ac_func (); below.
28088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28089     <limits.h> exists even on freestanding compilers.  */
28090
28091 #ifdef __STDC__
28092 # include <limits.h>
28093 #else
28094 # include <assert.h>
28095 #endif
28096
28097 #undef $ac_func
28098
28099 /* Override any gcc2 internal prototype to avoid an error.  */
28100 #ifdef __cplusplus
28101 extern "C"
28102 {
28103 #endif
28104 /* We use char because int might match the return type of a gcc2
28105    builtin and then its argument prototype would still apply.  */
28106 char $ac_func ();
28107 /* The GNU C library defines this for functions which it implements
28108     to always fail with ENOSYS.  Some functions are actually named
28109     something starting with __ and the normal name is an alias.  */
28110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28111 choke me
28112 #else
28113 char (*f) () = $ac_func;
28114 #endif
28115 #ifdef __cplusplus
28116 }
28117 #endif
28118
28119 int
28120 main ()
28121 {
28122 return f != $ac_func;
28123   ;
28124   return 0;
28125 }
28126 _ACEOF
28127 rm -f conftest.$ac_objext conftest$ac_exeext
28128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28129   (eval $ac_link) 2>conftest.er1
28130   ac_status=$?
28131   grep -v '^ *+' conftest.er1 >conftest.err
28132   rm -f conftest.er1
28133   cat conftest.err >&5
28134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135   (exit $ac_status); } &&
28136          { ac_try='test -z "$ac_c_werror_flag"
28137                          || test ! -s conftest.err'
28138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139   (eval $ac_try) 2>&5
28140   ac_status=$?
28141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142   (exit $ac_status); }; } &&
28143          { ac_try='test -s conftest$ac_exeext'
28144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28145   (eval $ac_try) 2>&5
28146   ac_status=$?
28147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148   (exit $ac_status); }; }; then
28149   eval "$as_ac_var=yes"
28150 else
28151   echo "$as_me: failed program was:" >&5
28152 sed 's/^/| /' conftest.$ac_ext >&5
28153
28154 eval "$as_ac_var=no"
28155 fi
28156 rm -f conftest.err conftest.$ac_objext \
28157       conftest$ac_exeext conftest.$ac_ext
28158 fi
28159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28161 if test `eval echo '${'$as_ac_var'}'` = yes; then
28162   cat >>confdefs.h <<_ACEOF
28163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28164 _ACEOF
28165
28166 fi
28167 done
28168
28169
28170
28171
28172
28173
28174
28175
28176 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
28177 do
28178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28179 echo "$as_me:$LINENO: checking for $ac_func" >&5
28180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28181 if eval "test \"\${$as_ac_var+set}\" = set"; then
28182   echo $ECHO_N "(cached) $ECHO_C" >&6
28183 else
28184   cat >conftest.$ac_ext <<_ACEOF
28185 /* confdefs.h.  */
28186 _ACEOF
28187 cat confdefs.h >>conftest.$ac_ext
28188 cat >>conftest.$ac_ext <<_ACEOF
28189 /* end confdefs.h.  */
28190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28192 #define $ac_func innocuous_$ac_func
28193
28194 /* System header to define __stub macros and hopefully few prototypes,
28195     which can conflict with char $ac_func (); below.
28196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28197     <limits.h> exists even on freestanding compilers.  */
28198
28199 #ifdef __STDC__
28200 # include <limits.h>
28201 #else
28202 # include <assert.h>
28203 #endif
28204
28205 #undef $ac_func
28206
28207 /* Override any gcc2 internal prototype to avoid an error.  */
28208 #ifdef __cplusplus
28209 extern "C"
28210 {
28211 #endif
28212 /* We use char because int might match the return type of a gcc2
28213    builtin and then its argument prototype would still apply.  */
28214 char $ac_func ();
28215 /* The GNU C library defines this for functions which it implements
28216     to always fail with ENOSYS.  Some functions are actually named
28217     something starting with __ and the normal name is an alias.  */
28218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28219 choke me
28220 #else
28221 char (*f) () = $ac_func;
28222 #endif
28223 #ifdef __cplusplus
28224 }
28225 #endif
28226
28227 int
28228 main ()
28229 {
28230 return f != $ac_func;
28231   ;
28232   return 0;
28233 }
28234 _ACEOF
28235 rm -f conftest.$ac_objext conftest$ac_exeext
28236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28237   (eval $ac_link) 2>conftest.er1
28238   ac_status=$?
28239   grep -v '^ *+' conftest.er1 >conftest.err
28240   rm -f conftest.er1
28241   cat conftest.err >&5
28242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243   (exit $ac_status); } &&
28244          { ac_try='test -z "$ac_c_werror_flag"
28245                          || test ! -s conftest.err'
28246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28247   (eval $ac_try) 2>&5
28248   ac_status=$?
28249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28250   (exit $ac_status); }; } &&
28251          { ac_try='test -s conftest$ac_exeext'
28252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28253   (eval $ac_try) 2>&5
28254   ac_status=$?
28255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28256   (exit $ac_status); }; }; then
28257   eval "$as_ac_var=yes"
28258 else
28259   echo "$as_me: failed program was:" >&5
28260 sed 's/^/| /' conftest.$ac_ext >&5
28261
28262 eval "$as_ac_var=no"
28263 fi
28264 rm -f conftest.err conftest.$ac_objext \
28265       conftest$ac_exeext conftest.$ac_ext
28266 fi
28267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28269 if test `eval echo '${'$as_ac_var'}'` = yes; then
28270   cat >>confdefs.h <<_ACEOF
28271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28272 _ACEOF
28273
28274 fi
28275 done
28276
28277
28278
28279
28280
28281 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28282 do
28283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28284 echo "$as_me:$LINENO: checking for $ac_func" >&5
28285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28286 if eval "test \"\${$as_ac_var+set}\" = set"; then
28287   echo $ECHO_N "(cached) $ECHO_C" >&6
28288 else
28289   cat >conftest.$ac_ext <<_ACEOF
28290 /* confdefs.h.  */
28291 _ACEOF
28292 cat confdefs.h >>conftest.$ac_ext
28293 cat >>conftest.$ac_ext <<_ACEOF
28294 /* end confdefs.h.  */
28295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28296    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28297 #define $ac_func innocuous_$ac_func
28298
28299 /* System header to define __stub macros and hopefully few prototypes,
28300     which can conflict with char $ac_func (); below.
28301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28302     <limits.h> exists even on freestanding compilers.  */
28303
28304 #ifdef __STDC__
28305 # include <limits.h>
28306 #else
28307 # include <assert.h>
28308 #endif
28309
28310 #undef $ac_func
28311
28312 /* Override any gcc2 internal prototype to avoid an error.  */
28313 #ifdef __cplusplus
28314 extern "C"
28315 {
28316 #endif
28317 /* We use char because int might match the return type of a gcc2
28318    builtin and then its argument prototype would still apply.  */
28319 char $ac_func ();
28320 /* The GNU C library defines this for functions which it implements
28321     to always fail with ENOSYS.  Some functions are actually named
28322     something starting with __ and the normal name is an alias.  */
28323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28324 choke me
28325 #else
28326 char (*f) () = $ac_func;
28327 #endif
28328 #ifdef __cplusplus
28329 }
28330 #endif
28331
28332 int
28333 main ()
28334 {
28335 return f != $ac_func;
28336   ;
28337   return 0;
28338 }
28339 _ACEOF
28340 rm -f conftest.$ac_objext conftest$ac_exeext
28341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28342   (eval $ac_link) 2>conftest.er1
28343   ac_status=$?
28344   grep -v '^ *+' conftest.er1 >conftest.err
28345   rm -f conftest.er1
28346   cat conftest.err >&5
28347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348   (exit $ac_status); } &&
28349          { ac_try='test -z "$ac_c_werror_flag"
28350                          || test ! -s conftest.err'
28351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28352   (eval $ac_try) 2>&5
28353   ac_status=$?
28354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355   (exit $ac_status); }; } &&
28356          { ac_try='test -s conftest$ac_exeext'
28357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28358   (eval $ac_try) 2>&5
28359   ac_status=$?
28360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361   (exit $ac_status); }; }; then
28362   eval "$as_ac_var=yes"
28363 else
28364   echo "$as_me: failed program was:" >&5
28365 sed 's/^/| /' conftest.$ac_ext >&5
28366
28367 eval "$as_ac_var=no"
28368 fi
28369 rm -f conftest.err conftest.$ac_objext \
28370       conftest$ac_exeext conftest.$ac_ext
28371 fi
28372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28374 if test `eval echo '${'$as_ac_var'}'` = yes; then
28375   cat >>confdefs.h <<_ACEOF
28376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28377 _ACEOF
28378
28379 fi
28380 done
28381
28382 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28383 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28384 if test "${llvm_cv_c_printf_a+set}" = set; then
28385   echo $ECHO_N "(cached) $ECHO_C" >&6
28386 else
28387   ac_ext=c
28388 ac_cpp='$CPP $CPPFLAGS'
28389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28392
28393  if test "$cross_compiling" = yes; then
28394   llvmac_cv_c_printf_a=no
28395 else
28396   cat >conftest.$ac_ext <<_ACEOF
28397
28398   /* confdefs.h.  */
28399 _ACEOF
28400 cat confdefs.h >>conftest.$ac_ext
28401 cat >>conftest.$ac_ext <<_ACEOF
28402 /* end confdefs.h.  */
28403
28404 #include <stdio.h>
28405 #include <stdlib.h>
28406
28407 int
28408 main ()
28409 {
28410
28411 volatile double A, B;
28412 char Buffer[100];
28413 A = 1;
28414 A /= 10.0;
28415 sprintf(Buffer, "%a", A);
28416 B = atof(Buffer);
28417 if (A != B)
28418   return (1);
28419 if (A != 0x1.999999999999ap-4)
28420   return (1);
28421 return (0);
28422   ;
28423   return 0;
28424 }
28425 _ACEOF
28426 rm -f conftest$ac_exeext
28427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28428   (eval $ac_link) 2>&5
28429   ac_status=$?
28430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28433   (eval $ac_try) 2>&5
28434   ac_status=$?
28435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436   (exit $ac_status); }; }; then
28437   llvm_cv_c_printf_a=yes
28438 else
28439   echo "$as_me: program exited with status $ac_status" >&5
28440 echo "$as_me: failed program was:" >&5
28441 sed 's/^/| /' conftest.$ac_ext >&5
28442
28443 ( exit $ac_status )
28444 llvmac_cv_c_printf_a=no
28445 fi
28446 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28447 fi
28448  ac_ext=c
28449 ac_cpp='$CPP $CPPFLAGS'
28450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28453
28454 fi
28455 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28456 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28457  if test "$llvm_cv_c_printf_a" = "yes"; then
28458
28459 cat >>confdefs.h <<\_ACEOF
28460 #define HAVE_PRINTF_A 1
28461 _ACEOF
28462
28463  fi
28464
28465 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28466 # for constant arguments.  Useless!
28467 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28468 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28469 if test "${ac_cv_working_alloca_h+set}" = set; then
28470   echo $ECHO_N "(cached) $ECHO_C" >&6
28471 else
28472   cat >conftest.$ac_ext <<_ACEOF
28473 /* confdefs.h.  */
28474 _ACEOF
28475 cat confdefs.h >>conftest.$ac_ext
28476 cat >>conftest.$ac_ext <<_ACEOF
28477 /* end confdefs.h.  */
28478 #include <alloca.h>
28479 int
28480 main ()
28481 {
28482 char *p = (char *) alloca (2 * sizeof (int));
28483   ;
28484   return 0;
28485 }
28486 _ACEOF
28487 rm -f conftest.$ac_objext conftest$ac_exeext
28488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28489   (eval $ac_link) 2>conftest.er1
28490   ac_status=$?
28491   grep -v '^ *+' conftest.er1 >conftest.err
28492   rm -f conftest.er1
28493   cat conftest.err >&5
28494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28495   (exit $ac_status); } &&
28496          { ac_try='test -z "$ac_c_werror_flag"
28497                          || test ! -s conftest.err'
28498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28499   (eval $ac_try) 2>&5
28500   ac_status=$?
28501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502   (exit $ac_status); }; } &&
28503          { ac_try='test -s conftest$ac_exeext'
28504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28505   (eval $ac_try) 2>&5
28506   ac_status=$?
28507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508   (exit $ac_status); }; }; then
28509   ac_cv_working_alloca_h=yes
28510 else
28511   echo "$as_me: failed program was:" >&5
28512 sed 's/^/| /' conftest.$ac_ext >&5
28513
28514 ac_cv_working_alloca_h=no
28515 fi
28516 rm -f conftest.err conftest.$ac_objext \
28517       conftest$ac_exeext conftest.$ac_ext
28518 fi
28519 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28520 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28521 if test $ac_cv_working_alloca_h = yes; then
28522
28523 cat >>confdefs.h <<\_ACEOF
28524 #define HAVE_ALLOCA_H 1
28525 _ACEOF
28526
28527 fi
28528
28529 echo "$as_me:$LINENO: checking for alloca" >&5
28530 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28531 if test "${ac_cv_func_alloca_works+set}" = set; then
28532   echo $ECHO_N "(cached) $ECHO_C" >&6
28533 else
28534   cat >conftest.$ac_ext <<_ACEOF
28535 /* confdefs.h.  */
28536 _ACEOF
28537 cat confdefs.h >>conftest.$ac_ext
28538 cat >>conftest.$ac_ext <<_ACEOF
28539 /* end confdefs.h.  */
28540 #ifdef __GNUC__
28541 # define alloca __builtin_alloca
28542 #else
28543 # ifdef _MSC_VER
28544 #  include <malloc.h>
28545 #  define alloca _alloca
28546 # else
28547 #  if HAVE_ALLOCA_H
28548 #   include <alloca.h>
28549 #  else
28550 #   ifdef _AIX
28551  #pragma alloca
28552 #   else
28553 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28554 char *alloca ();
28555 #    endif
28556 #   endif
28557 #  endif
28558 # endif
28559 #endif
28560
28561 int
28562 main ()
28563 {
28564 char *p = (char *) alloca (1);
28565   ;
28566   return 0;
28567 }
28568 _ACEOF
28569 rm -f conftest.$ac_objext conftest$ac_exeext
28570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28571   (eval $ac_link) 2>conftest.er1
28572   ac_status=$?
28573   grep -v '^ *+' conftest.er1 >conftest.err
28574   rm -f conftest.er1
28575   cat conftest.err >&5
28576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577   (exit $ac_status); } &&
28578          { ac_try='test -z "$ac_c_werror_flag"
28579                          || test ! -s conftest.err'
28580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28581   (eval $ac_try) 2>&5
28582   ac_status=$?
28583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584   (exit $ac_status); }; } &&
28585          { ac_try='test -s conftest$ac_exeext'
28586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28587   (eval $ac_try) 2>&5
28588   ac_status=$?
28589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590   (exit $ac_status); }; }; then
28591   ac_cv_func_alloca_works=yes
28592 else
28593   echo "$as_me: failed program was:" >&5
28594 sed 's/^/| /' conftest.$ac_ext >&5
28595
28596 ac_cv_func_alloca_works=no
28597 fi
28598 rm -f conftest.err conftest.$ac_objext \
28599       conftest$ac_exeext conftest.$ac_ext
28600 fi
28601 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28602 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28603
28604 if test $ac_cv_func_alloca_works = yes; then
28605
28606 cat >>confdefs.h <<\_ACEOF
28607 #define HAVE_ALLOCA 1
28608 _ACEOF
28609
28610 else
28611   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28612 # that cause trouble.  Some versions do not even contain alloca or
28613 # contain a buggy version.  If you still want to use their alloca,
28614 # use ar to extract alloca.o from them instead of compiling alloca.c.
28615
28616 ALLOCA=alloca.$ac_objext
28617
28618 cat >>confdefs.h <<\_ACEOF
28619 #define C_ALLOCA 1
28620 _ACEOF
28621
28622
28623 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28624 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28625 if test "${ac_cv_os_cray+set}" = set; then
28626   echo $ECHO_N "(cached) $ECHO_C" >&6
28627 else
28628   cat >conftest.$ac_ext <<_ACEOF
28629 /* confdefs.h.  */
28630 _ACEOF
28631 cat confdefs.h >>conftest.$ac_ext
28632 cat >>conftest.$ac_ext <<_ACEOF
28633 /* end confdefs.h.  */
28634 #if defined(CRAY) && ! defined(CRAY2)
28635 webecray
28636 #else
28637 wenotbecray
28638 #endif
28639
28640 _ACEOF
28641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28642   $EGREP "webecray" >/dev/null 2>&1; then
28643   ac_cv_os_cray=yes
28644 else
28645   ac_cv_os_cray=no
28646 fi
28647 rm -f conftest*
28648
28649 fi
28650 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28651 echo "${ECHO_T}$ac_cv_os_cray" >&6
28652 if test $ac_cv_os_cray = yes; then
28653   for ac_func in _getb67 GETB67 getb67; do
28654     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28655 echo "$as_me:$LINENO: checking for $ac_func" >&5
28656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28657 if eval "test \"\${$as_ac_var+set}\" = set"; then
28658   echo $ECHO_N "(cached) $ECHO_C" >&6
28659 else
28660   cat >conftest.$ac_ext <<_ACEOF
28661 /* confdefs.h.  */
28662 _ACEOF
28663 cat confdefs.h >>conftest.$ac_ext
28664 cat >>conftest.$ac_ext <<_ACEOF
28665 /* end confdefs.h.  */
28666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28668 #define $ac_func innocuous_$ac_func
28669
28670 /* System header to define __stub macros and hopefully few prototypes,
28671     which can conflict with char $ac_func (); below.
28672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28673     <limits.h> exists even on freestanding compilers.  */
28674
28675 #ifdef __STDC__
28676 # include <limits.h>
28677 #else
28678 # include <assert.h>
28679 #endif
28680
28681 #undef $ac_func
28682
28683 /* Override any gcc2 internal prototype to avoid an error.  */
28684 #ifdef __cplusplus
28685 extern "C"
28686 {
28687 #endif
28688 /* We use char because int might match the return type of a gcc2
28689    builtin and then its argument prototype would still apply.  */
28690 char $ac_func ();
28691 /* The GNU C library defines this for functions which it implements
28692     to always fail with ENOSYS.  Some functions are actually named
28693     something starting with __ and the normal name is an alias.  */
28694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28695 choke me
28696 #else
28697 char (*f) () = $ac_func;
28698 #endif
28699 #ifdef __cplusplus
28700 }
28701 #endif
28702
28703 int
28704 main ()
28705 {
28706 return f != $ac_func;
28707   ;
28708   return 0;
28709 }
28710 _ACEOF
28711 rm -f conftest.$ac_objext conftest$ac_exeext
28712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28713   (eval $ac_link) 2>conftest.er1
28714   ac_status=$?
28715   grep -v '^ *+' conftest.er1 >conftest.err
28716   rm -f conftest.er1
28717   cat conftest.err >&5
28718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719   (exit $ac_status); } &&
28720          { ac_try='test -z "$ac_c_werror_flag"
28721                          || test ! -s conftest.err'
28722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28723   (eval $ac_try) 2>&5
28724   ac_status=$?
28725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726   (exit $ac_status); }; } &&
28727          { ac_try='test -s conftest$ac_exeext'
28728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28729   (eval $ac_try) 2>&5
28730   ac_status=$?
28731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732   (exit $ac_status); }; }; then
28733   eval "$as_ac_var=yes"
28734 else
28735   echo "$as_me: failed program was:" >&5
28736 sed 's/^/| /' conftest.$ac_ext >&5
28737
28738 eval "$as_ac_var=no"
28739 fi
28740 rm -f conftest.err conftest.$ac_objext \
28741       conftest$ac_exeext conftest.$ac_ext
28742 fi
28743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28745 if test `eval echo '${'$as_ac_var'}'` = yes; then
28746
28747 cat >>confdefs.h <<_ACEOF
28748 #define CRAY_STACKSEG_END $ac_func
28749 _ACEOF
28750
28751     break
28752 fi
28753
28754   done
28755 fi
28756
28757 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28758 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28759 if test "${ac_cv_c_stack_direction+set}" = set; then
28760   echo $ECHO_N "(cached) $ECHO_C" >&6
28761 else
28762   if test "$cross_compiling" = yes; then
28763   ac_cv_c_stack_direction=0
28764 else
28765   cat >conftest.$ac_ext <<_ACEOF
28766 /* confdefs.h.  */
28767 _ACEOF
28768 cat confdefs.h >>conftest.$ac_ext
28769 cat >>conftest.$ac_ext <<_ACEOF
28770 /* end confdefs.h.  */
28771 int
28772 find_stack_direction ()
28773 {
28774   static char *addr = 0;
28775   auto char dummy;
28776   if (addr == 0)
28777     {
28778       addr = &dummy;
28779       return find_stack_direction ();
28780     }
28781   else
28782     return (&dummy > addr) ? 1 : -1;
28783 }
28784
28785 int
28786 main ()
28787 {
28788   exit (find_stack_direction () < 0);
28789 }
28790 _ACEOF
28791 rm -f conftest$ac_exeext
28792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28793   (eval $ac_link) 2>&5
28794   ac_status=$?
28795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28798   (eval $ac_try) 2>&5
28799   ac_status=$?
28800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801   (exit $ac_status); }; }; then
28802   ac_cv_c_stack_direction=1
28803 else
28804   echo "$as_me: program exited with status $ac_status" >&5
28805 echo "$as_me: failed program was:" >&5
28806 sed 's/^/| /' conftest.$ac_ext >&5
28807
28808 ( exit $ac_status )
28809 ac_cv_c_stack_direction=-1
28810 fi
28811 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28812 fi
28813 fi
28814 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28815 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28816
28817 cat >>confdefs.h <<_ACEOF
28818 #define STACK_DIRECTION $ac_cv_c_stack_direction
28819 _ACEOF
28820
28821
28822 fi
28823
28824
28825 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28826 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28827 if test "${ac_cv_func_rand48+set}" = set; then
28828   echo $ECHO_N "(cached) $ECHO_C" >&6
28829 else
28830   ac_ext=cc
28831 ac_cpp='$CXXCPP $CPPFLAGS'
28832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28835
28836    cat >conftest.$ac_ext <<_ACEOF
28837 /* confdefs.h.  */
28838 _ACEOF
28839 cat confdefs.h >>conftest.$ac_ext
28840 cat >>conftest.$ac_ext <<_ACEOF
28841 /* end confdefs.h.  */
28842 #include <stdlib.h>
28843 int
28844 main ()
28845 {
28846 srand48(0);lrand48();drand48();
28847   ;
28848   return 0;
28849 }
28850 _ACEOF
28851 rm -f conftest.$ac_objext
28852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28853   (eval $ac_compile) 2>conftest.er1
28854   ac_status=$?
28855   grep -v '^ *+' conftest.er1 >conftest.err
28856   rm -f conftest.er1
28857   cat conftest.err >&5
28858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859   (exit $ac_status); } &&
28860          { ac_try='test -z "$ac_cxx_werror_flag"
28861                          || test ! -s conftest.err'
28862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28863   (eval $ac_try) 2>&5
28864   ac_status=$?
28865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866   (exit $ac_status); }; } &&
28867          { ac_try='test -s conftest.$ac_objext'
28868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28869   (eval $ac_try) 2>&5
28870   ac_status=$?
28871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872   (exit $ac_status); }; }; then
28873   ac_cv_func_rand48=yes
28874 else
28875   echo "$as_me: failed program was:" >&5
28876 sed 's/^/| /' conftest.$ac_ext >&5
28877
28878 ac_cv_func_rand48=no
28879 fi
28880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28881   ac_ext=c
28882 ac_cpp='$CPP $CPPFLAGS'
28883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28886
28887 fi
28888 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28889 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28890
28891 if test "$ac_cv_func_rand48" = "yes" ; then
28892
28893 cat >>confdefs.h <<\_ACEOF
28894 #define HAVE_RAND48 1
28895 _ACEOF
28896
28897 fi
28898
28899
28900 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28901 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28902 if test "${ac_cv_cxx_namespaces+set}" = set; then
28903   echo $ECHO_N "(cached) $ECHO_C" >&6
28904 else
28905   ac_ext=cc
28906 ac_cpp='$CXXCPP $CPPFLAGS'
28907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28910
28911  cat >conftest.$ac_ext <<_ACEOF
28912 /* confdefs.h.  */
28913 _ACEOF
28914 cat confdefs.h >>conftest.$ac_ext
28915 cat >>conftest.$ac_ext <<_ACEOF
28916 /* end confdefs.h.  */
28917 namespace Outer { namespace Inner { int i = 0; }}
28918 int
28919 main ()
28920 {
28921 using namespace Outer::Inner; return i;
28922   ;
28923   return 0;
28924 }
28925 _ACEOF
28926 rm -f conftest.$ac_objext
28927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28928   (eval $ac_compile) 2>conftest.er1
28929   ac_status=$?
28930   grep -v '^ *+' conftest.er1 >conftest.err
28931   rm -f conftest.er1
28932   cat conftest.err >&5
28933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28934   (exit $ac_status); } &&
28935          { ac_try='test -z "$ac_cxx_werror_flag"
28936                          || test ! -s conftest.err'
28937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28938   (eval $ac_try) 2>&5
28939   ac_status=$?
28940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28941   (exit $ac_status); }; } &&
28942          { ac_try='test -s conftest.$ac_objext'
28943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28944   (eval $ac_try) 2>&5
28945   ac_status=$?
28946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947   (exit $ac_status); }; }; then
28948   ac_cv_cxx_namespaces=yes
28949 else
28950   echo "$as_me: failed program was:" >&5
28951 sed 's/^/| /' conftest.$ac_ext >&5
28952
28953 ac_cv_cxx_namespaces=no
28954 fi
28955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28956  ac_ext=c
28957 ac_cpp='$CPP $CPPFLAGS'
28958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28961
28962
28963 fi
28964 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28965 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28966 if test "$ac_cv_cxx_namespaces" = yes; then
28967
28968 cat >>confdefs.h <<\_ACEOF
28969 #define HAVE_NAMESPACES
28970 _ACEOF
28971
28972 fi
28973
28974 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28975 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28976 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28977   echo $ECHO_N "(cached) $ECHO_C" >&6
28978 else
28979
28980   ac_ext=cc
28981 ac_cpp='$CXXCPP $CPPFLAGS'
28982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28985
28986   cat >conftest.$ac_ext <<_ACEOF
28987 /* confdefs.h.  */
28988 _ACEOF
28989 cat confdefs.h >>conftest.$ac_ext
28990 cat >>conftest.$ac_ext <<_ACEOF
28991 /* end confdefs.h.  */
28992 #include <ext/hash_map>
28993 #ifdef HAVE_NAMESPACES
28994 using namespace std;
28995 #endif
28996 int
28997 main ()
28998 {
28999 hash_map<int, int> t;
29000   ;
29001   return 0;
29002 }
29003 _ACEOF
29004 rm -f conftest.$ac_objext
29005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29006   (eval $ac_compile) 2>conftest.er1
29007   ac_status=$?
29008   grep -v '^ *+' conftest.er1 >conftest.err
29009   rm -f conftest.er1
29010   cat conftest.err >&5
29011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012   (exit $ac_status); } &&
29013          { ac_try='test -z "$ac_cxx_werror_flag"
29014                          || test ! -s conftest.err'
29015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29016   (eval $ac_try) 2>&5
29017   ac_status=$?
29018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019   (exit $ac_status); }; } &&
29020          { ac_try='test -s conftest.$ac_objext'
29021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022   (eval $ac_try) 2>&5
29023   ac_status=$?
29024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025   (exit $ac_status); }; }; then
29026   ac_cv_cxx_have_std_ext_hash_map=yes
29027 else
29028   echo "$as_me: failed program was:" >&5
29029 sed 's/^/| /' conftest.$ac_ext >&5
29030
29031 ac_cv_cxx_have_std_ext_hash_map=no
29032 fi
29033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29034   ac_ext=c
29035 ac_cpp='$CPP $CPPFLAGS'
29036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29039
29040 fi
29041 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29042 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
29043  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29044  then
29045
29046 cat >>confdefs.h <<\_ACEOF
29047 #define HAVE_STD_EXT_HASH_MAP 1
29048 _ACEOF
29049
29050  else
29051
29052 cat >>confdefs.h <<\_ACEOF
29053 #define HAVE_STD_EXT_HASH_MAP 0
29054 _ACEOF
29055
29056  fi
29057
29058  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29059 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29060 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29061   echo $ECHO_N "(cached) $ECHO_C" >&6
29062 else
29063
29064   ac_ext=cc
29065 ac_cpp='$CXXCPP $CPPFLAGS'
29066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29069
29070   cat >conftest.$ac_ext <<_ACEOF
29071 /* confdefs.h.  */
29072 _ACEOF
29073 cat confdefs.h >>conftest.$ac_ext
29074 cat >>conftest.$ac_ext <<_ACEOF
29075 /* end confdefs.h.  */
29076 #include <ext/hash_map>
29077 #ifdef HAVE_NAMESPACES
29078 using namespace __gnu_cxx;
29079 #endif
29080 int
29081 main ()
29082 {
29083 hash_map<int,int> t;
29084   ;
29085   return 0;
29086 }
29087 _ACEOF
29088 rm -f conftest.$ac_objext
29089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29090   (eval $ac_compile) 2>conftest.er1
29091   ac_status=$?
29092   grep -v '^ *+' conftest.er1 >conftest.err
29093   rm -f conftest.er1
29094   cat conftest.err >&5
29095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096   (exit $ac_status); } &&
29097          { ac_try='test -z "$ac_cxx_werror_flag"
29098                          || test ! -s conftest.err'
29099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29100   (eval $ac_try) 2>&5
29101   ac_status=$?
29102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29103   (exit $ac_status); }; } &&
29104          { ac_try='test -s conftest.$ac_objext'
29105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29106   (eval $ac_try) 2>&5
29107   ac_status=$?
29108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29109   (exit $ac_status); }; }; then
29110   ac_cv_cxx_have_gnu_ext_hash_map=yes
29111 else
29112   echo "$as_me: failed program was:" >&5
29113 sed 's/^/| /' conftest.$ac_ext >&5
29114
29115 ac_cv_cxx_have_gnu_ext_hash_map=no
29116 fi
29117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29118   ac_ext=c
29119 ac_cpp='$CPP $CPPFLAGS'
29120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29123
29124 fi
29125 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29126 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
29127  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29128  then
29129
29130 cat >>confdefs.h <<\_ACEOF
29131 #define HAVE_GNU_EXT_HASH_MAP 1
29132 _ACEOF
29133
29134  else
29135
29136 cat >>confdefs.h <<\_ACEOF
29137 #define HAVE_GNU_EXT_HASH_MAP 0
29138 _ACEOF
29139
29140  fi
29141
29142  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29143 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29144 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29145   echo $ECHO_N "(cached) $ECHO_C" >&6
29146 else
29147
29148   ac_ext=cc
29149 ac_cpp='$CXXCPP $CPPFLAGS'
29150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29153
29154   cat >conftest.$ac_ext <<_ACEOF
29155 /* confdefs.h.  */
29156 _ACEOF
29157 cat confdefs.h >>conftest.$ac_ext
29158 cat >>conftest.$ac_ext <<_ACEOF
29159 /* end confdefs.h.  */
29160 #include <hash_map>
29161 int
29162 main ()
29163 {
29164 hash_map<int,int> t;
29165   ;
29166   return 0;
29167 }
29168 _ACEOF
29169 rm -f conftest.$ac_objext
29170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29171   (eval $ac_compile) 2>conftest.er1
29172   ac_status=$?
29173   grep -v '^ *+' conftest.er1 >conftest.err
29174   rm -f conftest.er1
29175   cat conftest.err >&5
29176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177   (exit $ac_status); } &&
29178          { ac_try='test -z "$ac_cxx_werror_flag"
29179                          || test ! -s conftest.err'
29180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29181   (eval $ac_try) 2>&5
29182   ac_status=$?
29183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184   (exit $ac_status); }; } &&
29185          { ac_try='test -s conftest.$ac_objext'
29186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29187   (eval $ac_try) 2>&5
29188   ac_status=$?
29189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190   (exit $ac_status); }; }; then
29191   ac_cv_cxx_have_global_hash_map=yes
29192 else
29193   echo "$as_me: failed program was:" >&5
29194 sed 's/^/| /' conftest.$ac_ext >&5
29195
29196 ac_cv_cxx_have_global_hash_map=no
29197 fi
29198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29199   ac_ext=c
29200 ac_cpp='$CPP $CPPFLAGS'
29201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29204
29205 fi
29206 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29207 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29208  if test "$ac_cv_cxx_have_global_hash_map" = yes
29209  then
29210
29211 cat >>confdefs.h <<\_ACEOF
29212 #define HAVE_GLOBAL_HASH_MAP 1
29213 _ACEOF
29214
29215  else
29216
29217 cat >>confdefs.h <<\_ACEOF
29218 #define HAVE_GLOBAL_HASH_MAP 0
29219 _ACEOF
29220
29221  fi
29222
29223 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29224 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29225 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29226   echo $ECHO_N "(cached) $ECHO_C" >&6
29227 else
29228
29229   ac_ext=cc
29230 ac_cpp='$CXXCPP $CPPFLAGS'
29231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29234
29235   cat >conftest.$ac_ext <<_ACEOF
29236 /* confdefs.h.  */
29237 _ACEOF
29238 cat confdefs.h >>conftest.$ac_ext
29239 cat >>conftest.$ac_ext <<_ACEOF
29240 /* end confdefs.h.  */
29241 #include <ext/hash_set>
29242 #ifdef HAVE_NAMESPACES
29243 using namespace std;
29244 #endif
29245 int
29246 main ()
29247 {
29248 hash_set<int> t;
29249   ;
29250   return 0;
29251 }
29252 _ACEOF
29253 rm -f conftest.$ac_objext
29254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29255   (eval $ac_compile) 2>conftest.er1
29256   ac_status=$?
29257   grep -v '^ *+' conftest.er1 >conftest.err
29258   rm -f conftest.er1
29259   cat conftest.err >&5
29260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261   (exit $ac_status); } &&
29262          { ac_try='test -z "$ac_cxx_werror_flag"
29263                          || test ! -s conftest.err'
29264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29265   (eval $ac_try) 2>&5
29266   ac_status=$?
29267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29268   (exit $ac_status); }; } &&
29269          { ac_try='test -s conftest.$ac_objext'
29270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29271   (eval $ac_try) 2>&5
29272   ac_status=$?
29273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274   (exit $ac_status); }; }; then
29275   ac_cv_cxx_have_std_ext_hash_set=yes
29276 else
29277   echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29279
29280 ac_cv_cxx_have_std_ext_hash_set=no
29281 fi
29282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29283   ac_ext=c
29284 ac_cpp='$CPP $CPPFLAGS'
29285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29288
29289 fi
29290 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29291 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29292  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29293  then
29294
29295 cat >>confdefs.h <<\_ACEOF
29296 #define HAVE_STD_EXT_HASH_SET 1
29297 _ACEOF
29298
29299  else
29300
29301 cat >>confdefs.h <<\_ACEOF
29302 #define HAVE_STD_EXT_HASH_SET 0
29303 _ACEOF
29304
29305  fi
29306
29307  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29308 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29309 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29310   echo $ECHO_N "(cached) $ECHO_C" >&6
29311 else
29312
29313   ac_ext=cc
29314 ac_cpp='$CXXCPP $CPPFLAGS'
29315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29318
29319   cat >conftest.$ac_ext <<_ACEOF
29320 /* confdefs.h.  */
29321 _ACEOF
29322 cat confdefs.h >>conftest.$ac_ext
29323 cat >>conftest.$ac_ext <<_ACEOF
29324 /* end confdefs.h.  */
29325 #include <ext/hash_set>
29326 #ifdef HAVE_NAMESPACES
29327 using namespace __gnu_cxx;
29328 #endif
29329 int
29330 main ()
29331 {
29332 hash_set<int> t;
29333   ;
29334   return 0;
29335 }
29336 _ACEOF
29337 rm -f conftest.$ac_objext
29338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29339   (eval $ac_compile) 2>conftest.er1
29340   ac_status=$?
29341   grep -v '^ *+' conftest.er1 >conftest.err
29342   rm -f conftest.er1
29343   cat conftest.err >&5
29344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345   (exit $ac_status); } &&
29346          { ac_try='test -z "$ac_cxx_werror_flag"
29347                          || test ! -s conftest.err'
29348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29349   (eval $ac_try) 2>&5
29350   ac_status=$?
29351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352   (exit $ac_status); }; } &&
29353          { ac_try='test -s conftest.$ac_objext'
29354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29355   (eval $ac_try) 2>&5
29356   ac_status=$?
29357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358   (exit $ac_status); }; }; then
29359   ac_cv_cxx_have_gnu_ext_hash_set=yes
29360 else
29361   echo "$as_me: failed program was:" >&5
29362 sed 's/^/| /' conftest.$ac_ext >&5
29363
29364 ac_cv_cxx_have_gnu_ext_hash_set=no
29365 fi
29366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29367   ac_ext=c
29368 ac_cpp='$CPP $CPPFLAGS'
29369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29372
29373 fi
29374 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29375 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29376  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29377  then
29378
29379 cat >>confdefs.h <<\_ACEOF
29380 #define HAVE_GNU_EXT_HASH_SET 1
29381 _ACEOF
29382
29383  else
29384
29385 cat >>confdefs.h <<\_ACEOF
29386 #define HAVE_GNU_EXT_HASH_SET 0
29387 _ACEOF
29388
29389  fi
29390
29391  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29392 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29393 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29394   echo $ECHO_N "(cached) $ECHO_C" >&6
29395 else
29396
29397   ac_ext=cc
29398 ac_cpp='$CXXCPP $CPPFLAGS'
29399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29402
29403   cat >conftest.$ac_ext <<_ACEOF
29404 /* confdefs.h.  */
29405 _ACEOF
29406 cat confdefs.h >>conftest.$ac_ext
29407 cat >>conftest.$ac_ext <<_ACEOF
29408 /* end confdefs.h.  */
29409 #include <hash_set>
29410 int
29411 main ()
29412 {
29413 hash_set<int> t; return 0;
29414   ;
29415   return 0;
29416 }
29417 _ACEOF
29418 rm -f conftest.$ac_objext
29419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29420   (eval $ac_compile) 2>conftest.er1
29421   ac_status=$?
29422   grep -v '^ *+' conftest.er1 >conftest.err
29423   rm -f conftest.er1
29424   cat conftest.err >&5
29425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426   (exit $ac_status); } &&
29427          { ac_try='test -z "$ac_cxx_werror_flag"
29428                          || test ! -s conftest.err'
29429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29430   (eval $ac_try) 2>&5
29431   ac_status=$?
29432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433   (exit $ac_status); }; } &&
29434          { ac_try='test -s conftest.$ac_objext'
29435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29436   (eval $ac_try) 2>&5
29437   ac_status=$?
29438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439   (exit $ac_status); }; }; then
29440   ac_cv_cxx_have_global_hash_set=yes
29441 else
29442   echo "$as_me: failed program was:" >&5
29443 sed 's/^/| /' conftest.$ac_ext >&5
29444
29445 ac_cv_cxx_have_global_hash_set=no
29446 fi
29447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29448   ac_ext=c
29449 ac_cpp='$CPP $CPPFLAGS'
29450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29453
29454 fi
29455 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29456 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29457  if test "$ac_cv_cxx_have_global_hash_set" = yes
29458  then
29459
29460 cat >>confdefs.h <<\_ACEOF
29461 #define HAVE_GLOBAL_HASH_SET 1
29462 _ACEOF
29463
29464  else
29465
29466 cat >>confdefs.h <<\_ACEOF
29467 #define HAVE_GLOBAL_HASH_SET 0
29468 _ACEOF
29469
29470  fi
29471
29472 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29473 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29474 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29475   echo $ECHO_N "(cached) $ECHO_C" >&6
29476 else
29477
29478   ac_ext=cc
29479 ac_cpp='$CXXCPP $CPPFLAGS'
29480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29483
29484   cat >conftest.$ac_ext <<_ACEOF
29485 /* confdefs.h.  */
29486 _ACEOF
29487 cat confdefs.h >>conftest.$ac_ext
29488 cat >>conftest.$ac_ext <<_ACEOF
29489 /* end confdefs.h.  */
29490 #include <iterator>
29491 #ifdef HAVE_NAMESPACES
29492 using namespace std;
29493 #endif
29494 int
29495 main ()
29496 {
29497 iterator<int,int,int> t; return 0;
29498   ;
29499   return 0;
29500 }
29501 _ACEOF
29502 rm -f conftest.$ac_objext
29503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29504   (eval $ac_compile) 2>conftest.er1
29505   ac_status=$?
29506   grep -v '^ *+' conftest.er1 >conftest.err
29507   rm -f conftest.er1
29508   cat conftest.err >&5
29509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510   (exit $ac_status); } &&
29511          { ac_try='test -z "$ac_cxx_werror_flag"
29512                          || test ! -s conftest.err'
29513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29514   (eval $ac_try) 2>&5
29515   ac_status=$?
29516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517   (exit $ac_status); }; } &&
29518          { ac_try='test -s conftest.$ac_objext'
29519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29520   (eval $ac_try) 2>&5
29521   ac_status=$?
29522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523   (exit $ac_status); }; }; then
29524   ac_cv_cxx_have_std_iterator=yes
29525 else
29526   echo "$as_me: failed program was:" >&5
29527 sed 's/^/| /' conftest.$ac_ext >&5
29528
29529 ac_cv_cxx_have_std_iterator=no
29530 fi
29531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29532   ac_ext=c
29533 ac_cpp='$CPP $CPPFLAGS'
29534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29537
29538
29539 fi
29540 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29541 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29542 if test "$ac_cv_cxx_have_std_iterator" = yes
29543 then
29544
29545 cat >>confdefs.h <<\_ACEOF
29546 #define HAVE_STD_ITERATOR 1
29547 _ACEOF
29548
29549 else
29550
29551 cat >>confdefs.h <<\_ACEOF
29552 #define HAVE_STD_ITERATOR 0
29553 _ACEOF
29554
29555 fi
29556
29557 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29558 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29559 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29560   echo $ECHO_N "(cached) $ECHO_C" >&6
29561 else
29562
29563   ac_ext=cc
29564 ac_cpp='$CXXCPP $CPPFLAGS'
29565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29568
29569   cat >conftest.$ac_ext <<_ACEOF
29570 /* confdefs.h.  */
29571 _ACEOF
29572 cat confdefs.h >>conftest.$ac_ext
29573 cat >>conftest.$ac_ext <<_ACEOF
29574 /* end confdefs.h.  */
29575 #include <iterator>
29576 #ifdef HAVE_NAMESPACES
29577 using namespace std;
29578 #endif
29579 int
29580 main ()
29581 {
29582 bidirectional_iterator<int,int> t; return 0;
29583   ;
29584   return 0;
29585 }
29586 _ACEOF
29587 rm -f conftest.$ac_objext
29588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29589   (eval $ac_compile) 2>conftest.er1
29590   ac_status=$?
29591   grep -v '^ *+' conftest.er1 >conftest.err
29592   rm -f conftest.er1
29593   cat conftest.err >&5
29594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595   (exit $ac_status); } &&
29596          { ac_try='test -z "$ac_cxx_werror_flag"
29597                          || test ! -s conftest.err'
29598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29599   (eval $ac_try) 2>&5
29600   ac_status=$?
29601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602   (exit $ac_status); }; } &&
29603          { ac_try='test -s conftest.$ac_objext'
29604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29605   (eval $ac_try) 2>&5
29606   ac_status=$?
29607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608   (exit $ac_status); }; }; then
29609   ac_cv_cxx_have_bi_iterator=yes
29610 else
29611   echo "$as_me: failed program was:" >&5
29612 sed 's/^/| /' conftest.$ac_ext >&5
29613
29614 ac_cv_cxx_have_bi_iterator=no
29615 fi
29616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29617   ac_ext=c
29618 ac_cpp='$CPP $CPPFLAGS'
29619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29622
29623
29624 fi
29625 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29626 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29627 if test "$ac_cv_cxx_have_bi_iterator" = yes
29628 then
29629
29630 cat >>confdefs.h <<\_ACEOF
29631 #define HAVE_BI_ITERATOR 1
29632 _ACEOF
29633
29634 else
29635
29636 cat >>confdefs.h <<\_ACEOF
29637 #define HAVE_BI_ITERATOR 0
29638 _ACEOF
29639
29640 fi
29641
29642 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29643 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29644 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29645   echo $ECHO_N "(cached) $ECHO_C" >&6
29646 else
29647
29648   ac_ext=cc
29649 ac_cpp='$CXXCPP $CPPFLAGS'
29650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29653
29654   cat >conftest.$ac_ext <<_ACEOF
29655 /* confdefs.h.  */
29656 _ACEOF
29657 cat confdefs.h >>conftest.$ac_ext
29658 cat >>conftest.$ac_ext <<_ACEOF
29659 /* end confdefs.h.  */
29660 #include <iterator>
29661 #ifdef HAVE_NAMESPACES
29662 using namespace std;
29663 #endif
29664 int
29665 main ()
29666 {
29667 forward_iterator<int,int> t; return 0;
29668   ;
29669   return 0;
29670 }
29671 _ACEOF
29672 rm -f conftest.$ac_objext
29673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29674   (eval $ac_compile) 2>conftest.er1
29675   ac_status=$?
29676   grep -v '^ *+' conftest.er1 >conftest.err
29677   rm -f conftest.er1
29678   cat conftest.err >&5
29679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680   (exit $ac_status); } &&
29681          { ac_try='test -z "$ac_cxx_werror_flag"
29682                          || test ! -s conftest.err'
29683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29684   (eval $ac_try) 2>&5
29685   ac_status=$?
29686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687   (exit $ac_status); }; } &&
29688          { ac_try='test -s conftest.$ac_objext'
29689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29690   (eval $ac_try) 2>&5
29691   ac_status=$?
29692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693   (exit $ac_status); }; }; then
29694   ac_cv_cxx_have_fwd_iterator=yes
29695 else
29696   echo "$as_me: failed program was:" >&5
29697 sed 's/^/| /' conftest.$ac_ext >&5
29698
29699 ac_cv_cxx_have_fwd_iterator=no
29700 fi
29701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29702   ac_ext=c
29703 ac_cpp='$CPP $CPPFLAGS'
29704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29707
29708
29709 fi
29710 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29711 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29712 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29713 then
29714
29715 cat >>confdefs.h <<\_ACEOF
29716 #define HAVE_FWD_ITERATOR 1
29717 _ACEOF
29718
29719 else
29720
29721 cat >>confdefs.h <<\_ACEOF
29722 #define HAVE_FWD_ITERATOR 0
29723 _ACEOF
29724
29725 fi
29726
29727
29728 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29729 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29730 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29731   echo $ECHO_N "(cached) $ECHO_C" >&6
29732 else
29733   ac_ext=cc
29734 ac_cpp='$CXXCPP $CPPFLAGS'
29735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29738
29739    cat >conftest.$ac_ext <<_ACEOF
29740 /* confdefs.h.  */
29741 _ACEOF
29742 cat confdefs.h >>conftest.$ac_ext
29743 cat >>conftest.$ac_ext <<_ACEOF
29744 /* end confdefs.h.  */
29745 #include <math.h>
29746 int
29747 main ()
29748 {
29749 float f; isnan(f);
29750   ;
29751   return 0;
29752 }
29753 _ACEOF
29754 rm -f conftest.$ac_objext
29755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29756   (eval $ac_compile) 2>conftest.er1
29757   ac_status=$?
29758   grep -v '^ *+' conftest.er1 >conftest.err
29759   rm -f conftest.er1
29760   cat conftest.err >&5
29761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762   (exit $ac_status); } &&
29763          { ac_try='test -z "$ac_cxx_werror_flag"
29764                          || test ! -s conftest.err'
29765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29766   (eval $ac_try) 2>&5
29767   ac_status=$?
29768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769   (exit $ac_status); }; } &&
29770          { ac_try='test -s conftest.$ac_objext'
29771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29772   (eval $ac_try) 2>&5
29773   ac_status=$?
29774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775   (exit $ac_status); }; }; then
29776   ac_cv_func_isnan_in_math_h=yes
29777 else
29778   echo "$as_me: failed program was:" >&5
29779 sed 's/^/| /' conftest.$ac_ext >&5
29780
29781 ac_cv_func_isnan_in_math_h=no
29782 fi
29783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29784   ac_ext=c
29785 ac_cpp='$CPP $CPPFLAGS'
29786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29789
29790 fi
29791 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29792 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29793
29794
29795 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29796
29797 cat >>confdefs.h <<\_ACEOF
29798 #define HAVE_ISNAN_IN_MATH_H 1
29799 _ACEOF
29800
29801 fi
29802
29803 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29804 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29805 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29806   echo $ECHO_N "(cached) $ECHO_C" >&6
29807 else
29808   ac_ext=cc
29809 ac_cpp='$CXXCPP $CPPFLAGS'
29810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29813
29814    cat >conftest.$ac_ext <<_ACEOF
29815 /* confdefs.h.  */
29816 _ACEOF
29817 cat confdefs.h >>conftest.$ac_ext
29818 cat >>conftest.$ac_ext <<_ACEOF
29819 /* end confdefs.h.  */
29820 #include <cmath>
29821 int
29822 main ()
29823 {
29824 float f; isnan(f);
29825   ;
29826   return 0;
29827 }
29828 _ACEOF
29829 rm -f conftest.$ac_objext
29830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29831   (eval $ac_compile) 2>conftest.er1
29832   ac_status=$?
29833   grep -v '^ *+' conftest.er1 >conftest.err
29834   rm -f conftest.er1
29835   cat conftest.err >&5
29836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837   (exit $ac_status); } &&
29838          { ac_try='test -z "$ac_cxx_werror_flag"
29839                          || test ! -s conftest.err'
29840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29841   (eval $ac_try) 2>&5
29842   ac_status=$?
29843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844   (exit $ac_status); }; } &&
29845          { ac_try='test -s conftest.$ac_objext'
29846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29847   (eval $ac_try) 2>&5
29848   ac_status=$?
29849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850   (exit $ac_status); }; }; then
29851   ac_cv_func_isnan_in_cmath=yes
29852 else
29853   echo "$as_me: failed program was:" >&5
29854 sed 's/^/| /' conftest.$ac_ext >&5
29855
29856 ac_cv_func_isnan_in_cmath=no
29857 fi
29858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29859   ac_ext=c
29860 ac_cpp='$CPP $CPPFLAGS'
29861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29864
29865 fi
29866 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29867 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29868
29869 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29870
29871 cat >>confdefs.h <<\_ACEOF
29872 #define HAVE_ISNAN_IN_CMATH 1
29873 _ACEOF
29874
29875 fi
29876
29877 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29878 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29879 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29880   echo $ECHO_N "(cached) $ECHO_C" >&6
29881 else
29882   ac_ext=cc
29883 ac_cpp='$CXXCPP $CPPFLAGS'
29884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29887
29888    cat >conftest.$ac_ext <<_ACEOF
29889 /* confdefs.h.  */
29890 _ACEOF
29891 cat confdefs.h >>conftest.$ac_ext
29892 cat >>conftest.$ac_ext <<_ACEOF
29893 /* end confdefs.h.  */
29894 #include <cmath>
29895 int
29896 main ()
29897 {
29898 float f; std::isnan(f);
29899   ;
29900   return 0;
29901 }
29902 _ACEOF
29903 rm -f conftest.$ac_objext
29904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29905   (eval $ac_compile) 2>conftest.er1
29906   ac_status=$?
29907   grep -v '^ *+' conftest.er1 >conftest.err
29908   rm -f conftest.er1
29909   cat conftest.err >&5
29910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911   (exit $ac_status); } &&
29912          { ac_try='test -z "$ac_cxx_werror_flag"
29913                          || test ! -s conftest.err'
29914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29915   (eval $ac_try) 2>&5
29916   ac_status=$?
29917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918   (exit $ac_status); }; } &&
29919          { ac_try='test -s conftest.$ac_objext'
29920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29921   (eval $ac_try) 2>&5
29922   ac_status=$?
29923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924   (exit $ac_status); }; }; then
29925   ac_cv_func_std_isnan_in_cmath=yes
29926 else
29927   echo "$as_me: failed program was:" >&5
29928 sed 's/^/| /' conftest.$ac_ext >&5
29929
29930 ac_cv_func_std_isnan_in_cmath=no
29931 fi
29932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29933   ac_ext=c
29934 ac_cpp='$CPP $CPPFLAGS'
29935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29938
29939 fi
29940 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29941 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29942
29943 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29944
29945 cat >>confdefs.h <<\_ACEOF
29946 #define HAVE_STD_ISNAN_IN_CMATH 1
29947 _ACEOF
29948
29949 fi
29950
29951
29952 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29953 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29954 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29955   echo $ECHO_N "(cached) $ECHO_C" >&6
29956 else
29957   ac_ext=cc
29958 ac_cpp='$CXXCPP $CPPFLAGS'
29959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29962
29963    cat >conftest.$ac_ext <<_ACEOF
29964 /* confdefs.h.  */
29965 _ACEOF
29966 cat confdefs.h >>conftest.$ac_ext
29967 cat >>conftest.$ac_ext <<_ACEOF
29968 /* end confdefs.h.  */
29969 #include <math.h>
29970 int
29971 main ()
29972 {
29973 float f; isinf(f);
29974   ;
29975   return 0;
29976 }
29977 _ACEOF
29978 rm -f conftest.$ac_objext
29979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29980   (eval $ac_compile) 2>conftest.er1
29981   ac_status=$?
29982   grep -v '^ *+' conftest.er1 >conftest.err
29983   rm -f conftest.er1
29984   cat conftest.err >&5
29985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986   (exit $ac_status); } &&
29987          { ac_try='test -z "$ac_cxx_werror_flag"
29988                          || test ! -s conftest.err'
29989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29990   (eval $ac_try) 2>&5
29991   ac_status=$?
29992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993   (exit $ac_status); }; } &&
29994          { ac_try='test -s conftest.$ac_objext'
29995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29996   (eval $ac_try) 2>&5
29997   ac_status=$?
29998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999   (exit $ac_status); }; }; then
30000   ac_cv_func_isinf_in_math_h=yes
30001 else
30002   echo "$as_me: failed program was:" >&5
30003 sed 's/^/| /' conftest.$ac_ext >&5
30004
30005 ac_cv_func_isinf_in_math_h=no
30006 fi
30007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30008   ac_ext=c
30009 ac_cpp='$CPP $CPPFLAGS'
30010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30013
30014 fi
30015 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30016 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
30017
30018 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30019
30020 cat >>confdefs.h <<\_ACEOF
30021 #define HAVE_ISINF_IN_MATH_H 1
30022 _ACEOF
30023
30024 fi
30025
30026 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30027 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30028 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30029   echo $ECHO_N "(cached) $ECHO_C" >&6
30030 else
30031   ac_ext=cc
30032 ac_cpp='$CXXCPP $CPPFLAGS'
30033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30036
30037    cat >conftest.$ac_ext <<_ACEOF
30038 /* confdefs.h.  */
30039 _ACEOF
30040 cat confdefs.h >>conftest.$ac_ext
30041 cat >>conftest.$ac_ext <<_ACEOF
30042 /* end confdefs.h.  */
30043 #include <cmath>
30044 int
30045 main ()
30046 {
30047 float f; isinf(f);
30048   ;
30049   return 0;
30050 }
30051 _ACEOF
30052 rm -f conftest.$ac_objext
30053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30054   (eval $ac_compile) 2>conftest.er1
30055   ac_status=$?
30056   grep -v '^ *+' conftest.er1 >conftest.err
30057   rm -f conftest.er1
30058   cat conftest.err >&5
30059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060   (exit $ac_status); } &&
30061          { ac_try='test -z "$ac_cxx_werror_flag"
30062                          || test ! -s conftest.err'
30063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30064   (eval $ac_try) 2>&5
30065   ac_status=$?
30066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30067   (exit $ac_status); }; } &&
30068          { ac_try='test -s conftest.$ac_objext'
30069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30070   (eval $ac_try) 2>&5
30071   ac_status=$?
30072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073   (exit $ac_status); }; }; then
30074   ac_cv_func_isinf_in_cmath=yes
30075 else
30076   echo "$as_me: failed program was:" >&5
30077 sed 's/^/| /' conftest.$ac_ext >&5
30078
30079 ac_cv_func_isinf_in_cmath=no
30080 fi
30081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30082   ac_ext=c
30083 ac_cpp='$CPP $CPPFLAGS'
30084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30087
30088 fi
30089 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30090 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
30091
30092 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30093
30094 cat >>confdefs.h <<\_ACEOF
30095 #define HAVE_ISINF_IN_CMATH 1
30096 _ACEOF
30097
30098 fi
30099
30100 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30101 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30102 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30103   echo $ECHO_N "(cached) $ECHO_C" >&6
30104 else
30105   ac_ext=cc
30106 ac_cpp='$CXXCPP $CPPFLAGS'
30107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30110
30111    cat >conftest.$ac_ext <<_ACEOF
30112 /* confdefs.h.  */
30113 _ACEOF
30114 cat confdefs.h >>conftest.$ac_ext
30115 cat >>conftest.$ac_ext <<_ACEOF
30116 /* end confdefs.h.  */
30117 #include <cmath>
30118 int
30119 main ()
30120 {
30121 float f; std::isinf(f)}
30122   ;
30123   return 0;
30124 }
30125 _ACEOF
30126 rm -f conftest.$ac_objext
30127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30128   (eval $ac_compile) 2>conftest.er1
30129   ac_status=$?
30130   grep -v '^ *+' conftest.er1 >conftest.err
30131   rm -f conftest.er1
30132   cat conftest.err >&5
30133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30134   (exit $ac_status); } &&
30135          { ac_try='test -z "$ac_cxx_werror_flag"
30136                          || test ! -s conftest.err'
30137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30138   (eval $ac_try) 2>&5
30139   ac_status=$?
30140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141   (exit $ac_status); }; } &&
30142          { ac_try='test -s conftest.$ac_objext'
30143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30144   (eval $ac_try) 2>&5
30145   ac_status=$?
30146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147   (exit $ac_status); }; }; then
30148   ac_cv_func_std_isinf_in_cmath=yes
30149 else
30150   echo "$as_me: failed program was:" >&5
30151 sed 's/^/| /' conftest.$ac_ext >&5
30152
30153 ac_cv_func_std_isinf_in_cmath=no
30154 fi
30155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30156   ac_ext=c
30157 ac_cpp='$CPP $CPPFLAGS'
30158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30161
30162 fi
30163 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30164 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
30165
30166 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
30167
30168 cat >>confdefs.h <<\_ACEOF
30169 #define HAVE_STD_ISINF_IN_CMATH 1
30170 _ACEOF
30171
30172 fi
30173
30174 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30175 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30176 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30177   echo $ECHO_N "(cached) $ECHO_C" >&6
30178 else
30179   ac_ext=cc
30180 ac_cpp='$CXXCPP $CPPFLAGS'
30181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30184
30185    cat >conftest.$ac_ext <<_ACEOF
30186 /* confdefs.h.  */
30187 _ACEOF
30188 cat confdefs.h >>conftest.$ac_ext
30189 cat >>conftest.$ac_ext <<_ACEOF
30190 /* end confdefs.h.  */
30191 #include <ieeefp.h>
30192 int
30193 main ()
30194 {
30195 float f; finite(f);
30196   ;
30197   return 0;
30198 }
30199 _ACEOF
30200 rm -f conftest.$ac_objext
30201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30202   (eval $ac_compile) 2>conftest.er1
30203   ac_status=$?
30204   grep -v '^ *+' conftest.er1 >conftest.err
30205   rm -f conftest.er1
30206   cat conftest.err >&5
30207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30208   (exit $ac_status); } &&
30209          { ac_try='test -z "$ac_cxx_werror_flag"
30210                          || test ! -s conftest.err'
30211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30212   (eval $ac_try) 2>&5
30213   ac_status=$?
30214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215   (exit $ac_status); }; } &&
30216          { ac_try='test -s conftest.$ac_objext'
30217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30218   (eval $ac_try) 2>&5
30219   ac_status=$?
30220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221   (exit $ac_status); }; }; then
30222   ac_cv_func_finite_in_ieeefp_h=yes
30223 else
30224   echo "$as_me: failed program was:" >&5
30225 sed 's/^/| /' conftest.$ac_ext >&5
30226
30227 ac_cv_func_finite_in_ieeefp_h=no
30228 fi
30229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30230   ac_ext=c
30231 ac_cpp='$CPP $CPPFLAGS'
30232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30235
30236 fi
30237 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30238 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30239
30240 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30241
30242 cat >>confdefs.h <<\_ACEOF
30243 #define HAVE_FINITE_IN_IEEEFP_H 1
30244 _ACEOF
30245
30246 fi
30247
30248
30249
30250
30251
30252 for ac_header in stdlib.h unistd.h
30253 do
30254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30256   echo "$as_me:$LINENO: checking for $ac_header" >&5
30257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30259   echo $ECHO_N "(cached) $ECHO_C" >&6
30260 fi
30261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30263 else
30264   # Is the header compilable?
30265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30267 cat >conftest.$ac_ext <<_ACEOF
30268 /* confdefs.h.  */
30269 _ACEOF
30270 cat confdefs.h >>conftest.$ac_ext
30271 cat >>conftest.$ac_ext <<_ACEOF
30272 /* end confdefs.h.  */
30273 $ac_includes_default
30274 #include <$ac_header>
30275 _ACEOF
30276 rm -f conftest.$ac_objext
30277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30278   (eval $ac_compile) 2>conftest.er1
30279   ac_status=$?
30280   grep -v '^ *+' conftest.er1 >conftest.err
30281   rm -f conftest.er1
30282   cat conftest.err >&5
30283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284   (exit $ac_status); } &&
30285          { ac_try='test -z "$ac_c_werror_flag"
30286                          || test ! -s conftest.err'
30287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30288   (eval $ac_try) 2>&5
30289   ac_status=$?
30290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291   (exit $ac_status); }; } &&
30292          { ac_try='test -s conftest.$ac_objext'
30293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30294   (eval $ac_try) 2>&5
30295   ac_status=$?
30296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297   (exit $ac_status); }; }; then
30298   ac_header_compiler=yes
30299 else
30300   echo "$as_me: failed program was:" >&5
30301 sed 's/^/| /' conftest.$ac_ext >&5
30302
30303 ac_header_compiler=no
30304 fi
30305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30307 echo "${ECHO_T}$ac_header_compiler" >&6
30308
30309 # Is the header present?
30310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30312 cat >conftest.$ac_ext <<_ACEOF
30313 /* confdefs.h.  */
30314 _ACEOF
30315 cat confdefs.h >>conftest.$ac_ext
30316 cat >>conftest.$ac_ext <<_ACEOF
30317 /* end confdefs.h.  */
30318 #include <$ac_header>
30319 _ACEOF
30320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30321   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30322   ac_status=$?
30323   grep -v '^ *+' conftest.er1 >conftest.err
30324   rm -f conftest.er1
30325   cat conftest.err >&5
30326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327   (exit $ac_status); } >/dev/null; then
30328   if test -s conftest.err; then
30329     ac_cpp_err=$ac_c_preproc_warn_flag
30330     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30331   else
30332     ac_cpp_err=
30333   fi
30334 else
30335   ac_cpp_err=yes
30336 fi
30337 if test -z "$ac_cpp_err"; then
30338   ac_header_preproc=yes
30339 else
30340   echo "$as_me: failed program was:" >&5
30341 sed 's/^/| /' conftest.$ac_ext >&5
30342
30343   ac_header_preproc=no
30344 fi
30345 rm -f conftest.err conftest.$ac_ext
30346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30347 echo "${ECHO_T}$ac_header_preproc" >&6
30348
30349 # So?  What about this header?
30350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30351   yes:no: )
30352     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30356     ac_header_preproc=yes
30357     ;;
30358   no:yes:* )
30359     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30361     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30362 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30363     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30365     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30366 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30367     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30369     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30371     (
30372       cat <<\_ASBOX
30373 ## ----------------------------------- ##
30374 ## Report this to llvmbugs@cs.uiuc.edu ##
30375 ## ----------------------------------- ##
30376 _ASBOX
30377     ) |
30378       sed "s/^/$as_me: WARNING:     /" >&2
30379     ;;
30380 esac
30381 echo "$as_me:$LINENO: checking for $ac_header" >&5
30382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30384   echo $ECHO_N "(cached) $ECHO_C" >&6
30385 else
30386   eval "$as_ac_Header=\$ac_header_preproc"
30387 fi
30388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30390
30391 fi
30392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30393   cat >>confdefs.h <<_ACEOF
30394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30395 _ACEOF
30396
30397 fi
30398
30399 done
30400
30401
30402 for ac_func in getpagesize
30403 do
30404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30405 echo "$as_me:$LINENO: checking for $ac_func" >&5
30406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30407 if eval "test \"\${$as_ac_var+set}\" = set"; then
30408   echo $ECHO_N "(cached) $ECHO_C" >&6
30409 else
30410   cat >conftest.$ac_ext <<_ACEOF
30411 /* confdefs.h.  */
30412 _ACEOF
30413 cat confdefs.h >>conftest.$ac_ext
30414 cat >>conftest.$ac_ext <<_ACEOF
30415 /* end confdefs.h.  */
30416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30418 #define $ac_func innocuous_$ac_func
30419
30420 /* System header to define __stub macros and hopefully few prototypes,
30421     which can conflict with char $ac_func (); below.
30422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30423     <limits.h> exists even on freestanding compilers.  */
30424
30425 #ifdef __STDC__
30426 # include <limits.h>
30427 #else
30428 # include <assert.h>
30429 #endif
30430
30431 #undef $ac_func
30432
30433 /* Override any gcc2 internal prototype to avoid an error.  */
30434 #ifdef __cplusplus
30435 extern "C"
30436 {
30437 #endif
30438 /* We use char because int might match the return type of a gcc2
30439    builtin and then its argument prototype would still apply.  */
30440 char $ac_func ();
30441 /* The GNU C library defines this for functions which it implements
30442     to always fail with ENOSYS.  Some functions are actually named
30443     something starting with __ and the normal name is an alias.  */
30444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30445 choke me
30446 #else
30447 char (*f) () = $ac_func;
30448 #endif
30449 #ifdef __cplusplus
30450 }
30451 #endif
30452
30453 int
30454 main ()
30455 {
30456 return f != $ac_func;
30457   ;
30458   return 0;
30459 }
30460 _ACEOF
30461 rm -f conftest.$ac_objext conftest$ac_exeext
30462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30463   (eval $ac_link) 2>conftest.er1
30464   ac_status=$?
30465   grep -v '^ *+' conftest.er1 >conftest.err
30466   rm -f conftest.er1
30467   cat conftest.err >&5
30468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469   (exit $ac_status); } &&
30470          { ac_try='test -z "$ac_c_werror_flag"
30471                          || test ! -s conftest.err'
30472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30473   (eval $ac_try) 2>&5
30474   ac_status=$?
30475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476   (exit $ac_status); }; } &&
30477          { ac_try='test -s conftest$ac_exeext'
30478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30479   (eval $ac_try) 2>&5
30480   ac_status=$?
30481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30482   (exit $ac_status); }; }; then
30483   eval "$as_ac_var=yes"
30484 else
30485   echo "$as_me: failed program was:" >&5
30486 sed 's/^/| /' conftest.$ac_ext >&5
30487
30488 eval "$as_ac_var=no"
30489 fi
30490 rm -f conftest.err conftest.$ac_objext \
30491       conftest$ac_exeext conftest.$ac_ext
30492 fi
30493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30495 if test `eval echo '${'$as_ac_var'}'` = yes; then
30496   cat >>confdefs.h <<_ACEOF
30497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30498 _ACEOF
30499
30500 fi
30501 done
30502
30503 echo "$as_me:$LINENO: checking for working mmap" >&5
30504 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30505 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30506   echo $ECHO_N "(cached) $ECHO_C" >&6
30507 else
30508   if test "$cross_compiling" = yes; then
30509   ac_cv_func_mmap_fixed_mapped=no
30510 else
30511   cat >conftest.$ac_ext <<_ACEOF
30512 /* confdefs.h.  */
30513 _ACEOF
30514 cat confdefs.h >>conftest.$ac_ext
30515 cat >>conftest.$ac_ext <<_ACEOF
30516 /* end confdefs.h.  */
30517 $ac_includes_default
30518 /* malloc might have been renamed as rpl_malloc. */
30519 #undef malloc
30520
30521 /* Thanks to Mike Haertel and Jim Avera for this test.
30522    Here is a matrix of mmap possibilities:
30523         mmap private not fixed
30524         mmap private fixed at somewhere currently unmapped
30525         mmap private fixed at somewhere already mapped
30526         mmap shared not fixed
30527         mmap shared fixed at somewhere currently unmapped
30528         mmap shared fixed at somewhere already mapped
30529    For private mappings, we should verify that changes cannot be read()
30530    back from the file, nor mmap's back from the file at a different
30531    address.  (There have been systems where private was not correctly
30532    implemented like the infamous i386 svr4.0, and systems where the
30533    VM page cache was not coherent with the file system buffer cache
30534    like early versions of FreeBSD and possibly contemporary NetBSD.)
30535    For shared mappings, we should conversely verify that changes get
30536    propagated back to all the places they're supposed to be.
30537
30538    Grep wants private fixed already mapped.
30539    The main things grep needs to know about mmap are:
30540    * does it exist and is it safe to write into the mmap'd area
30541    * how to use it (BSD variants)  */
30542
30543 #include <fcntl.h>
30544 #include <sys/mman.h>
30545
30546 #if !STDC_HEADERS && !HAVE_STDLIB_H
30547 char *malloc ();
30548 #endif
30549
30550 /* This mess was copied from the GNU getpagesize.h.  */
30551 #if !HAVE_GETPAGESIZE
30552 /* Assume that all systems that can run configure have sys/param.h.  */
30553 # if !HAVE_SYS_PARAM_H
30554 #  define HAVE_SYS_PARAM_H 1
30555 # endif
30556
30557 # ifdef _SC_PAGESIZE
30558 #  define getpagesize() sysconf(_SC_PAGESIZE)
30559 # else /* no _SC_PAGESIZE */
30560 #  if HAVE_SYS_PARAM_H
30561 #   include <sys/param.h>
30562 #   ifdef EXEC_PAGESIZE
30563 #    define getpagesize() EXEC_PAGESIZE
30564 #   else /* no EXEC_PAGESIZE */
30565 #    ifdef NBPG
30566 #     define getpagesize() NBPG * CLSIZE
30567 #     ifndef CLSIZE
30568 #      define CLSIZE 1
30569 #     endif /* no CLSIZE */
30570 #    else /* no NBPG */
30571 #     ifdef NBPC
30572 #      define getpagesize() NBPC
30573 #     else /* no NBPC */
30574 #      ifdef PAGESIZE
30575 #       define getpagesize() PAGESIZE
30576 #      endif /* PAGESIZE */
30577 #     endif /* no NBPC */
30578 #    endif /* no NBPG */
30579 #   endif /* no EXEC_PAGESIZE */
30580 #  else /* no HAVE_SYS_PARAM_H */
30581 #   define getpagesize() 8192   /* punt totally */
30582 #  endif /* no HAVE_SYS_PARAM_H */
30583 # endif /* no _SC_PAGESIZE */
30584
30585 #endif /* no HAVE_GETPAGESIZE */
30586
30587 int
30588 main ()
30589 {
30590   char *data, *data2, *data3;
30591   int i, pagesize;
30592   int fd;
30593
30594   pagesize = getpagesize ();
30595
30596   /* First, make a file with some known garbage in it. */
30597   data = (char *) malloc (pagesize);
30598   if (!data)
30599     exit (1);
30600   for (i = 0; i < pagesize; ++i)
30601     *(data + i) = rand ();
30602   umask (0);
30603   fd = creat ("conftest.mmap", 0600);
30604   if (fd < 0)
30605     exit (1);
30606   if (write (fd, data, pagesize) != pagesize)
30607     exit (1);
30608   close (fd);
30609
30610   /* Next, try to mmap the file at a fixed address which already has
30611      something else allocated at it.  If we can, also make sure that
30612      we see the same garbage.  */
30613   fd = open ("conftest.mmap", O_RDWR);
30614   if (fd < 0)
30615     exit (1);
30616   data2 = (char *) malloc (2 * pagesize);
30617   if (!data2)
30618     exit (1);
30619   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30620   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30621                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
30622     exit (1);
30623   for (i = 0; i < pagesize; ++i)
30624     if (*(data + i) != *(data2 + i))
30625       exit (1);
30626
30627   /* Finally, make sure that changes to the mapped area do not
30628      percolate back to the file as seen by read().  (This is a bug on
30629      some variants of i386 svr4.0.)  */
30630   for (i = 0; i < pagesize; ++i)
30631     *(data2 + i) = *(data2 + i) + 1;
30632   data3 = (char *) malloc (pagesize);
30633   if (!data3)
30634     exit (1);
30635   if (read (fd, data3, pagesize) != pagesize)
30636     exit (1);
30637   for (i = 0; i < pagesize; ++i)
30638     if (*(data + i) != *(data3 + i))
30639       exit (1);
30640   close (fd);
30641   exit (0);
30642 }
30643 _ACEOF
30644 rm -f conftest$ac_exeext
30645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30646   (eval $ac_link) 2>&5
30647   ac_status=$?
30648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30649   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30651   (eval $ac_try) 2>&5
30652   ac_status=$?
30653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30654   (exit $ac_status); }; }; then
30655   ac_cv_func_mmap_fixed_mapped=yes
30656 else
30657   echo "$as_me: program exited with status $ac_status" >&5
30658 echo "$as_me: failed program was:" >&5
30659 sed 's/^/| /' conftest.$ac_ext >&5
30660
30661 ( exit $ac_status )
30662 ac_cv_func_mmap_fixed_mapped=no
30663 fi
30664 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30665 fi
30666 fi
30667 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30668 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30669 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30670
30671 cat >>confdefs.h <<\_ACEOF
30672 #define HAVE_MMAP 1
30673 _ACEOF
30674
30675 fi
30676 rm -f conftest.mmap
30677
30678 echo "$as_me:$LINENO: checking for mmap of files" >&5
30679 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30680 if test "${ac_cv_func_mmap_file+set}" = set; then
30681   echo $ECHO_N "(cached) $ECHO_C" >&6
30682 else
30683    ac_ext=c
30684 ac_cpp='$CPP $CPPFLAGS'
30685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30688
30689   if test "$cross_compiling" = yes; then
30690   ac_cv_func_mmap_file=no
30691 else
30692   cat >conftest.$ac_ext <<_ACEOF
30693
30694     /* confdefs.h.  */
30695 _ACEOF
30696 cat confdefs.h >>conftest.$ac_ext
30697 cat >>conftest.$ac_ext <<_ACEOF
30698 /* end confdefs.h.  */
30699
30700 #include <sys/types.h>
30701 #include <sys/mman.h>
30702 #include <fcntl.h>
30703
30704 int
30705 main ()
30706 {
30707
30708   int fd;
30709   fd = creat ("foo",0777);
30710   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30711   unlink ("foo");
30712   return (fd != (int) MAP_FAILED);
30713   ;
30714   return 0;
30715 }
30716 _ACEOF
30717 rm -f conftest$ac_exeext
30718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30719   (eval $ac_link) 2>&5
30720   ac_status=$?
30721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30724   (eval $ac_try) 2>&5
30725   ac_status=$?
30726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727   (exit $ac_status); }; }; then
30728   ac_cv_func_mmap_file=yes
30729 else
30730   echo "$as_me: program exited with status $ac_status" >&5
30731 echo "$as_me: failed program was:" >&5
30732 sed 's/^/| /' conftest.$ac_ext >&5
30733
30734 ( exit $ac_status )
30735 ac_cv_func_mmap_file=no
30736 fi
30737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30738 fi
30739   ac_ext=c
30740 ac_cpp='$CPP $CPPFLAGS'
30741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30744
30745
30746 fi
30747 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30748 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30749 if test "$ac_cv_func_mmap_file" = yes; then
30750
30751 cat >>confdefs.h <<\_ACEOF
30752 #define HAVE_MMAP_FILE
30753 _ACEOF
30754
30755    MMAP_FILE=yes
30756
30757 fi
30758
30759 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30760 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30761 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30762   echo $ECHO_N "(cached) $ECHO_C" >&6
30763 else
30764   if test "$llvm_cv_os_type" = "Interix" ; then
30765    ac_cv_need_dev_zero_for_mmap=yes
30766  else
30767    ac_cv_need_dev_zero_for_mmap=no
30768  fi
30769
30770 fi
30771 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30772 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30773 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30774
30775 cat >>confdefs.h <<\_ACEOF
30776 #define NEED_DEV_ZERO_FOR_MMAP 1
30777 _ACEOF
30778
30779 fi
30780 echo "$as_me:$LINENO: checking for mprotect" >&5
30781 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30782 if test "${ac_cv_func_mprotect+set}" = set; then
30783   echo $ECHO_N "(cached) $ECHO_C" >&6
30784 else
30785   cat >conftest.$ac_ext <<_ACEOF
30786 /* confdefs.h.  */
30787 _ACEOF
30788 cat confdefs.h >>conftest.$ac_ext
30789 cat >>conftest.$ac_ext <<_ACEOF
30790 /* end confdefs.h.  */
30791 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30793 #define mprotect innocuous_mprotect
30794
30795 /* System header to define __stub macros and hopefully few prototypes,
30796     which can conflict with char mprotect (); below.
30797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30798     <limits.h> exists even on freestanding compilers.  */
30799
30800 #ifdef __STDC__
30801 # include <limits.h>
30802 #else
30803 # include <assert.h>
30804 #endif
30805
30806 #undef mprotect
30807
30808 /* Override any gcc2 internal prototype to avoid an error.  */
30809 #ifdef __cplusplus
30810 extern "C"
30811 {
30812 #endif
30813 /* We use char because int might match the return type of a gcc2
30814    builtin and then its argument prototype would still apply.  */
30815 char mprotect ();
30816 /* The GNU C library defines this for functions which it implements
30817     to always fail with ENOSYS.  Some functions are actually named
30818     something starting with __ and the normal name is an alias.  */
30819 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30820 choke me
30821 #else
30822 char (*f) () = mprotect;
30823 #endif
30824 #ifdef __cplusplus
30825 }
30826 #endif
30827
30828 int
30829 main ()
30830 {
30831 return f != mprotect;
30832   ;
30833   return 0;
30834 }
30835 _ACEOF
30836 rm -f conftest.$ac_objext conftest$ac_exeext
30837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30838   (eval $ac_link) 2>conftest.er1
30839   ac_status=$?
30840   grep -v '^ *+' conftest.er1 >conftest.err
30841   rm -f conftest.er1
30842   cat conftest.err >&5
30843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844   (exit $ac_status); } &&
30845          { ac_try='test -z "$ac_c_werror_flag"
30846                          || test ! -s conftest.err'
30847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30848   (eval $ac_try) 2>&5
30849   ac_status=$?
30850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851   (exit $ac_status); }; } &&
30852          { ac_try='test -s conftest$ac_exeext'
30853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30854   (eval $ac_try) 2>&5
30855   ac_status=$?
30856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857   (exit $ac_status); }; }; then
30858   ac_cv_func_mprotect=yes
30859 else
30860   echo "$as_me: failed program was:" >&5
30861 sed 's/^/| /' conftest.$ac_ext >&5
30862
30863 ac_cv_func_mprotect=no
30864 fi
30865 rm -f conftest.err conftest.$ac_objext \
30866       conftest$ac_exeext conftest.$ac_ext
30867 fi
30868 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30869 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30870 if test $ac_cv_func_mprotect = yes; then
30871   :
30872 else
30873   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30874 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30875    { (exit 1); exit 1; }; }
30876 fi
30877
30878
30879 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30880 then
30881   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30882 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30883 fi
30884 if test "$ac_cv_func_mmap_file" = "no"
30885 then
30886   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30887 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30888 fi
30889
30890
30891 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30892 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30893 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30894   echo $ECHO_N "(cached) $ECHO_C" >&6
30895 else
30896   llvm_cv_llvmgcc_sanity="no"
30897 if test -x "$LLVMGCC" ; then
30898   cp /dev/null conftest.c
30899   "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
30900   if test $? -eq 0 ; then
30901     llvm_cv_llvmgcc_sanity="yes"
30902   fi
30903   rm conftest.c
30904 fi
30905 fi
30906 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30907 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30908
30909 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30910   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30911   LLVMCC1=$llvmcc1path
30912
30913   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30914   LLVMCC1PLUS=$llvmcc1pluspath
30915
30916   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30917   LLVMGCCDIR=$llvmgccdir
30918
30919   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
30920   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
30921   LLVMGCC_VERSION=$llvmgccversion
30922
30923   LLVMGCC_MAJVERS=$llvmgccmajvers
30924
30925 fi
30926
30927 SHLIBEXT=$libltdl_cv_shlibext
30928
30929
30930 # Translate the various configuration directories and other basic
30931 # information into substitutions that will end up in Makefile.config.in
30932 # that these configured values can be used by the makefiles
30933 if test "${prefix}" == "NONE" ; then
30934   prefix="/usr/local"
30935 fi
30936 eval LLVM_PREFIX="${prefix}";
30937 eval LLVM_BINDIR="${prefix}/bin";
30938 eval LLVM_LIBDIR="${prefix}/lib";
30939 eval LLVM_DATADIR="${prefix}/share/llvm";
30940 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30941 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30942 eval LLVM_INCLUDEDIR="${prefix}/include";
30943 eval LLVM_INFODIR="${prefix}/info";
30944 eval LLVM_MANDIR="${prefix}/man";
30945 LLVM_CONFIGTIME=`date`
30946
30947
30948
30949
30950
30951
30952
30953
30954
30955
30956
30957 # Place the various directores into the config.h file as #defines so that we
30958 # can know about the installation paths within LLVM.
30959
30960 cat >>confdefs.h <<_ACEOF
30961 #define LLVM_PREFIX "$LLVM_PREFIX"
30962 _ACEOF
30963
30964
30965 cat >>confdefs.h <<_ACEOF
30966 #define LLVM_BINDIR "$LLVM_BINDIR"
30967 _ACEOF
30968
30969
30970 cat >>confdefs.h <<_ACEOF
30971 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30972 _ACEOF
30973
30974
30975 cat >>confdefs.h <<_ACEOF
30976 #define LLVM_DATADIR "$LLVM_DATADIR"
30977 _ACEOF
30978
30979
30980 cat >>confdefs.h <<_ACEOF
30981 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30982 _ACEOF
30983
30984
30985 cat >>confdefs.h <<_ACEOF
30986 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30987 _ACEOF
30988
30989
30990 cat >>confdefs.h <<_ACEOF
30991 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30992 _ACEOF
30993
30994
30995 cat >>confdefs.h <<_ACEOF
30996 #define LLVM_INFODIR "$LLVM_INFODIR"
30997 _ACEOF
30998
30999
31000 cat >>confdefs.h <<_ACEOF
31001 #define LLVM_MANDIR "$LLVM_MANDIR"
31002 _ACEOF
31003
31004
31005 cat >>confdefs.h <<_ACEOF
31006 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31007 _ACEOF
31008
31009
31010
31011           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31012
31013           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31014
31015           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31016
31017           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31018
31019           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31020
31021
31022           ac_config_files="$ac_config_files Makefile.config"
31023
31024
31025           ac_config_files="$ac_config_files docs/doxygen.cfg"
31026
31027
31028           ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
31029
31030
31031           ac_config_commands="$ac_config_commands setup"
31032
31033           ac_config_commands="$ac_config_commands Makefile"
31034
31035
31036           ac_config_commands="$ac_config_commands Makefile.common"
31037
31038
31039           ac_config_commands="$ac_config_commands examples/Makefile"
31040
31041
31042           ac_config_commands="$ac_config_commands lib/Makefile"
31043
31044
31045           ac_config_commands="$ac_config_commands runtime/Makefile"
31046
31047
31048           ac_config_commands="$ac_config_commands test/Makefile"
31049
31050
31051           ac_config_commands="$ac_config_commands test/Makefile.tests"
31052
31053
31054           ac_config_commands="$ac_config_commands tools/Makefile"
31055
31056
31057           ac_config_commands="$ac_config_commands utils/Makefile"
31058
31059
31060           ac_config_commands="$ac_config_commands projects/Makefile"
31061
31062
31063
31064 cat >confcache <<\_ACEOF
31065 # This file is a shell script that caches the results of configure
31066 # tests run on this system so they can be shared between configure
31067 # scripts and configure runs, see configure's option --config-cache.
31068 # It is not useful on other systems.  If it contains results you don't
31069 # want to keep, you may remove or edit it.
31070 #
31071 # config.status only pays attention to the cache file if you give it
31072 # the --recheck option to rerun configure.
31073 #
31074 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31075 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31076 # following values.
31077
31078 _ACEOF
31079
31080 # The following way of writing the cache mishandles newlines in values,
31081 # but we know of no workaround that is simple, portable, and efficient.
31082 # So, don't put newlines in cache variables' values.
31083 # Ultrix sh set writes to stderr and can't be redirected directly,
31084 # and sets the high bit in the cache file unless we assign to the vars.
31085 {
31086   (set) 2>&1 |
31087     case `(ac_space=' '; set | grep ac_space) 2>&1` in
31088     *ac_space=\ *)
31089       # `set' does not quote correctly, so add quotes (double-quote
31090       # substitution turns \\\\ into \\, and sed turns \\ into \).
31091       sed -n \
31092         "s/'/'\\\\''/g;
31093           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31094       ;;
31095     *)
31096       # `set' quotes correctly as required by POSIX, so do not add quotes.
31097       sed -n \
31098         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31099       ;;
31100     esac;
31101 } |
31102   sed '
31103      t clear
31104      : clear
31105      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31106      t end
31107      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31108      : end' >>confcache
31109 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31110   if test -w $cache_file; then
31111     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31112     cat confcache >$cache_file
31113   else
31114     echo "not updating unwritable cache $cache_file"
31115   fi
31116 fi
31117 rm -f confcache
31118
31119 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31120 # Let make expand exec_prefix.
31121 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31122
31123 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31124 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31125 # trailing colons and then remove the whole line if VPATH becomes empty
31126 # (actually we leave an empty line to preserve line numbers).
31127 if test "x$srcdir" = x.; then
31128   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31129 s/:*\$(srcdir):*/:/;
31130 s/:*\${srcdir}:*/:/;
31131 s/:*@srcdir@:*/:/;
31132 s/^\([^=]*=[     ]*\):*/\1/;
31133 s/:*$//;
31134 s/^[^=]*=[       ]*$//;
31135 }'
31136 fi
31137
31138 DEFS=-DHAVE_CONFIG_H
31139
31140 ac_libobjs=
31141 ac_ltlibobjs=
31142 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31143   # 1. Remove the extension, and $U if already installed.
31144   ac_i=`echo "$ac_i" |
31145          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31146   # 2. Add them.
31147   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31148   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31149 done
31150 LIBOBJS=$ac_libobjs
31151
31152 LTLIBOBJS=$ac_ltlibobjs
31153
31154
31155 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31156   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31157 Usually this means the macro was only invoked conditionally." >&5
31158 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31159 Usually this means the macro was only invoked conditionally." >&2;}
31160    { (exit 1); exit 1; }; }
31161 fi
31162 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31163   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31164 Usually this means the macro was only invoked conditionally." >&5
31165 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31166 Usually this means the macro was only invoked conditionally." >&2;}
31167    { (exit 1); exit 1; }; }
31168 fi
31169
31170 : ${CONFIG_STATUS=./config.status}
31171 ac_clean_files_save=$ac_clean_files
31172 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31173 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31174 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31175 cat >$CONFIG_STATUS <<_ACEOF
31176 #! $SHELL
31177 # Generated by $as_me.
31178 # Run this file to recreate the current configuration.
31179 # Compiler output produced by configure, useful for debugging
31180 # configure, is in config.log if it exists.
31181
31182 debug=false
31183 ac_cs_recheck=false
31184 ac_cs_silent=false
31185 SHELL=\${CONFIG_SHELL-$SHELL}
31186 _ACEOF
31187
31188 cat >>$CONFIG_STATUS <<\_ACEOF
31189 ## --------------------- ##
31190 ## M4sh Initialization.  ##
31191 ## --------------------- ##
31192
31193 # Be Bourne compatible
31194 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31195   emulate sh
31196   NULLCMD=:
31197   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31198   # is contrary to our usage.  Disable this feature.
31199   alias -g '${1+"$@"}'='"$@"'
31200 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31201   set -o posix
31202 fi
31203 DUALCASE=1; export DUALCASE # for MKS sh
31204
31205 # Support unset when possible.
31206 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31207   as_unset=unset
31208 else
31209   as_unset=false
31210 fi
31211
31212
31213 # Work around bugs in pre-3.0 UWIN ksh.
31214 $as_unset ENV MAIL MAILPATH
31215 PS1='$ '
31216 PS2='> '
31217 PS4='+ '
31218
31219 # NLS nuisances.
31220 for as_var in \
31221   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31222   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31223   LC_TELEPHONE LC_TIME
31224 do
31225   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31226     eval $as_var=C; export $as_var
31227   else
31228     $as_unset $as_var
31229   fi
31230 done
31231
31232 # Required to use basename.
31233 if expr a : '\(a\)' >/dev/null 2>&1; then
31234   as_expr=expr
31235 else
31236   as_expr=false
31237 fi
31238
31239 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31240   as_basename=basename
31241 else
31242   as_basename=false
31243 fi
31244
31245
31246 # Name of the executable.
31247 as_me=`$as_basename "$0" ||
31248 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31249          X"$0" : 'X\(//\)$' \| \
31250          X"$0" : 'X\(/\)$' \| \
31251          .     : '\(.\)' 2>/dev/null ||
31252 echo X/"$0" |
31253     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31254           /^X\/\(\/\/\)$/{ s//\1/; q; }
31255           /^X\/\(\/\).*/{ s//\1/; q; }
31256           s/.*/./; q'`
31257
31258
31259 # PATH needs CR, and LINENO needs CR and PATH.
31260 # Avoid depending upon Character Ranges.
31261 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31262 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31263 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31264 as_cr_digits='0123456789'
31265 as_cr_alnum=$as_cr_Letters$as_cr_digits
31266
31267 # The user is always right.
31268 if test "${PATH_SEPARATOR+set}" != set; then
31269   echo "#! /bin/sh" >conf$$.sh
31270   echo  "exit 0"   >>conf$$.sh
31271   chmod +x conf$$.sh
31272   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31273     PATH_SEPARATOR=';'
31274   else
31275     PATH_SEPARATOR=:
31276   fi
31277   rm -f conf$$.sh
31278 fi
31279
31280
31281   as_lineno_1=$LINENO
31282   as_lineno_2=$LINENO
31283   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31284   test "x$as_lineno_1" != "x$as_lineno_2" &&
31285   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
31286   # Find who we are.  Look in the path if we contain no path at all
31287   # relative or not.
31288   case $0 in
31289     *[\\/]* ) as_myself=$0 ;;
31290     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31291 for as_dir in $PATH
31292 do
31293   IFS=$as_save_IFS
31294   test -z "$as_dir" && as_dir=.
31295   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31296 done
31297
31298        ;;
31299   esac
31300   # We did not find ourselves, most probably we were run as `sh COMMAND'
31301   # in which case we are not to be found in the path.
31302   if test "x$as_myself" = x; then
31303     as_myself=$0
31304   fi
31305   if test ! -f "$as_myself"; then
31306     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31307 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31308    { (exit 1); exit 1; }; }
31309   fi
31310   case $CONFIG_SHELL in
31311   '')
31312     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31313 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31314 do
31315   IFS=$as_save_IFS
31316   test -z "$as_dir" && as_dir=.
31317   for as_base in sh bash ksh sh5; do
31318          case $as_dir in
31319          /*)
31320            if ("$as_dir/$as_base" -c '
31321   as_lineno_1=$LINENO
31322   as_lineno_2=$LINENO
31323   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31324   test "x$as_lineno_1" != "x$as_lineno_2" &&
31325   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31326              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31327              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31328              CONFIG_SHELL=$as_dir/$as_base
31329              export CONFIG_SHELL
31330              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31331            fi;;
31332          esac
31333        done
31334 done
31335 ;;
31336   esac
31337
31338   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31339   # uniformly replaced by the line number.  The first 'sed' inserts a
31340   # line-number line before each line; the second 'sed' does the real
31341   # work.  The second script uses 'N' to pair each line-number line
31342   # with the numbered line, and appends trailing '-' during
31343   # substitution so that $LINENO is not a special case at line end.
31344   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31345   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31346   sed '=' <$as_myself |
31347     sed '
31348       N
31349       s,$,-,
31350       : loop
31351       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31352       t loop
31353       s,-$,,
31354       s,^['$as_cr_digits']*\n,,
31355     ' >$as_me.lineno &&
31356   chmod +x $as_me.lineno ||
31357     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31358 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31359    { (exit 1); exit 1; }; }
31360
31361   # Don't try to exec as it changes $[0], causing all sort of problems
31362   # (the dirname of $[0] is not the place where we might find the
31363   # original and so on.  Autoconf is especially sensible to this).
31364   . ./$as_me.lineno
31365   # Exit status is that of the last command.
31366   exit
31367 }
31368
31369
31370 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31371   *c*,-n*) ECHO_N= ECHO_C='
31372 ' ECHO_T='      ' ;;
31373   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31374   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31375 esac
31376
31377 if expr a : '\(a\)' >/dev/null 2>&1; then
31378   as_expr=expr
31379 else
31380   as_expr=false
31381 fi
31382
31383 rm -f conf$$ conf$$.exe conf$$.file
31384 echo >conf$$.file
31385 if ln -s conf$$.file conf$$ 2>/dev/null; then
31386   # We could just check for DJGPP; but this test a) works b) is more generic
31387   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31388   if test -f conf$$.exe; then
31389     # Don't use ln at all; we don't have any links
31390     as_ln_s='cp -p'
31391   else
31392     as_ln_s='ln -s'
31393   fi
31394 elif ln conf$$.file conf$$ 2>/dev/null; then
31395   as_ln_s=ln
31396 else
31397   as_ln_s='cp -p'
31398 fi
31399 rm -f conf$$ conf$$.exe conf$$.file
31400
31401 if mkdir -p . 2>/dev/null; then
31402   as_mkdir_p=:
31403 else
31404   test -d ./-p && rmdir ./-p
31405   as_mkdir_p=false
31406 fi
31407
31408 as_executable_p="test -f"
31409
31410 # Sed expression to map a string onto a valid CPP name.
31411 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31412
31413 # Sed expression to map a string onto a valid variable name.
31414 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31415
31416
31417 # IFS
31418 # We need space, tab and new line, in precisely that order.
31419 as_nl='
31420 '
31421 IFS="   $as_nl"
31422
31423 # CDPATH.
31424 $as_unset CDPATH
31425
31426 exec 6>&1
31427
31428 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31429 # report actual input values of CONFIG_FILES etc. instead of their
31430 # values after options handling.  Logging --version etc. is OK.
31431 exec 5>>config.log
31432 {
31433   echo
31434   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31435 ## Running $as_me. ##
31436 _ASBOX
31437 } >&5
31438 cat >&5 <<_CSEOF
31439
31440 This file was extended by llvm $as_me 1.8cvs, which was
31441 generated by GNU Autoconf 2.59.  Invocation command line was
31442
31443   CONFIG_FILES    = $CONFIG_FILES
31444   CONFIG_HEADERS  = $CONFIG_HEADERS
31445   CONFIG_LINKS    = $CONFIG_LINKS
31446   CONFIG_COMMANDS = $CONFIG_COMMANDS
31447   $ $0 $@
31448
31449 _CSEOF
31450 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31451 echo >&5
31452 _ACEOF
31453
31454 # Files that config.status was made for.
31455 if test -n "$ac_config_files"; then
31456   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31457 fi
31458
31459 if test -n "$ac_config_headers"; then
31460   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31461 fi
31462
31463 if test -n "$ac_config_links"; then
31464   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31465 fi
31466
31467 if test -n "$ac_config_commands"; then
31468   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31469 fi
31470
31471 cat >>$CONFIG_STATUS <<\_ACEOF
31472
31473 ac_cs_usage="\
31474 \`$as_me' instantiates files from templates according to the
31475 current configuration.
31476
31477 Usage: $0 [OPTIONS] [FILE]...
31478
31479   -h, --help       print this help, then exit
31480   -V, --version    print version number, then exit
31481   -q, --quiet      do not print progress messages
31482   -d, --debug      don't remove temporary files
31483       --recheck    update $as_me by reconfiguring in the same conditions
31484   --file=FILE[:TEMPLATE]
31485                    instantiate the configuration file FILE
31486   --header=FILE[:TEMPLATE]
31487                    instantiate the configuration header FILE
31488
31489 Configuration files:
31490 $config_files
31491
31492 Configuration headers:
31493 $config_headers
31494
31495 Configuration commands:
31496 $config_commands
31497
31498 Report bugs to <bug-autoconf@gnu.org>."
31499 _ACEOF
31500
31501 cat >>$CONFIG_STATUS <<_ACEOF
31502 ac_cs_version="\\
31503 llvm config.status 1.8cvs
31504 configured by $0, generated by GNU Autoconf 2.59,
31505   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31506
31507 Copyright (C) 2003 Free Software Foundation, Inc.
31508 This config.status script is free software; the Free Software Foundation
31509 gives unlimited permission to copy, distribute and modify it."
31510 srcdir=$srcdir
31511 INSTALL="$INSTALL"
31512 _ACEOF
31513
31514 cat >>$CONFIG_STATUS <<\_ACEOF
31515 # If no file are specified by the user, then we need to provide default
31516 # value.  By we need to know if files were specified by the user.
31517 ac_need_defaults=:
31518 while test $# != 0
31519 do
31520   case $1 in
31521   --*=*)
31522     ac_option=`expr "x$1" : 'x\([^=]*\)='`
31523     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31524     ac_shift=:
31525     ;;
31526   -*)
31527     ac_option=$1
31528     ac_optarg=$2
31529     ac_shift=shift
31530     ;;
31531   *) # This is not an option, so the user has probably given explicit
31532      # arguments.
31533      ac_option=$1
31534      ac_need_defaults=false;;
31535   esac
31536
31537   case $ac_option in
31538   # Handling of the options.
31539 _ACEOF
31540 cat >>$CONFIG_STATUS <<\_ACEOF
31541   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31542     ac_cs_recheck=: ;;
31543   --version | --vers* | -V )
31544     echo "$ac_cs_version"; exit 0 ;;
31545   --he | --h)
31546     # Conflict between --help and --header
31547     { { echo "$as_me:$LINENO: error: ambiguous option: $1
31548 Try \`$0 --help' for more information." >&5
31549 echo "$as_me: error: ambiguous option: $1
31550 Try \`$0 --help' for more information." >&2;}
31551    { (exit 1); exit 1; }; };;
31552   --help | --hel | -h )
31553     echo "$ac_cs_usage"; exit 0 ;;
31554   --debug | --d* | -d )
31555     debug=: ;;
31556   --file | --fil | --fi | --f )
31557     $ac_shift
31558     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31559     ac_need_defaults=false;;
31560   --header | --heade | --head | --hea )
31561     $ac_shift
31562     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31563     ac_need_defaults=false;;
31564   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31565   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31566     ac_cs_silent=: ;;
31567
31568   # This is an error.
31569   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31570 Try \`$0 --help' for more information." >&5
31571 echo "$as_me: error: unrecognized option: $1
31572 Try \`$0 --help' for more information." >&2;}
31573    { (exit 1); exit 1; }; } ;;
31574
31575   *) ac_config_targets="$ac_config_targets $1" ;;
31576
31577   esac
31578   shift
31579 done
31580
31581 ac_configure_extra_args=
31582
31583 if $ac_cs_silent; then
31584   exec 6>/dev/null
31585   ac_configure_extra_args="$ac_configure_extra_args --silent"
31586 fi
31587
31588 _ACEOF
31589 cat >>$CONFIG_STATUS <<_ACEOF
31590 if \$ac_cs_recheck; then
31591   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31592   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31593 fi
31594
31595 _ACEOF
31596
31597 cat >>$CONFIG_STATUS <<_ACEOF
31598 #
31599 # INIT-COMMANDS section.
31600 #
31601
31602 llvm_src="${srcdir}"
31603
31604 _ACEOF
31605
31606
31607
31608 cat >>$CONFIG_STATUS <<\_ACEOF
31609 for ac_config_target in $ac_config_targets
31610 do
31611   case "$ac_config_target" in
31612   # Handling of arguments.
31613   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31614   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31615   "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
31616   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31617   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31618   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31619   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31620   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31621   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31622   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31623   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31624   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31625   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31626   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31627   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31628   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31629   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31630   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31631   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31632   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31633 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31634    { (exit 1); exit 1; }; };;
31635   esac
31636 done
31637
31638 # If the user did not use the arguments to specify the items to instantiate,
31639 # then the envvar interface is used.  Set only those that are not.
31640 # We use the long form for the default assignment because of an extremely
31641 # bizarre bug on SunOS 4.1.3.
31642 if $ac_need_defaults; then
31643   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31644   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31645   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31646 fi
31647
31648 # Have a temporary directory for convenience.  Make it in the build tree
31649 # simply because there is no reason to put it here, and in addition,
31650 # creating and moving files from /tmp can sometimes cause problems.
31651 # Create a temporary directory, and hook for its removal unless debugging.
31652 $debug ||
31653 {
31654   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31655   trap '{ (exit 1); exit 1; }' 1 2 13 15
31656 }
31657
31658 # Create a (secure) tmp directory for tmp files.
31659
31660 {
31661   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31662   test -n "$tmp" && test -d "$tmp"
31663 }  ||
31664 {
31665   tmp=./confstat$$-$RANDOM
31666   (umask 077 && mkdir $tmp)
31667 } ||
31668 {
31669    echo "$me: cannot create a temporary directory in ." >&2
31670    { (exit 1); exit 1; }
31671 }
31672
31673 _ACEOF
31674
31675 cat >>$CONFIG_STATUS <<_ACEOF
31676
31677 #
31678 # CONFIG_FILES section.
31679 #
31680
31681 # No need to generate the scripts if there are no CONFIG_FILES.
31682 # This happens for instance when ./config.status config.h
31683 if test -n "\$CONFIG_FILES"; then
31684   # Protect against being on the right side of a sed subst in config.status.
31685   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31686    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31687 s,@SHELL@,$SHELL,;t t
31688 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31689 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31690 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31691 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31692 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31693 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31694 s,@exec_prefix@,$exec_prefix,;t t
31695 s,@prefix@,$prefix,;t t
31696 s,@program_transform_name@,$program_transform_name,;t t
31697 s,@bindir@,$bindir,;t t
31698 s,@sbindir@,$sbindir,;t t
31699 s,@libexecdir@,$libexecdir,;t t
31700 s,@datadir@,$datadir,;t t
31701 s,@sysconfdir@,$sysconfdir,;t t
31702 s,@sharedstatedir@,$sharedstatedir,;t t
31703 s,@localstatedir@,$localstatedir,;t t
31704 s,@libdir@,$libdir,;t t
31705 s,@includedir@,$includedir,;t t
31706 s,@oldincludedir@,$oldincludedir,;t t
31707 s,@infodir@,$infodir,;t t
31708 s,@mandir@,$mandir,;t t
31709 s,@build_alias@,$build_alias,;t t
31710 s,@host_alias@,$host_alias,;t t
31711 s,@target_alias@,$target_alias,;t t
31712 s,@DEFS@,$DEFS,;t t
31713 s,@ECHO_C@,$ECHO_C,;t t
31714 s,@ECHO_N@,$ECHO_N,;t t
31715 s,@ECHO_T@,$ECHO_T,;t t
31716 s,@LIBS@,$LIBS,;t t
31717 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31718 s,@subdirs@,$subdirs,;t t
31719 s,@build@,$build,;t t
31720 s,@build_cpu@,$build_cpu,;t t
31721 s,@build_vendor@,$build_vendor,;t t
31722 s,@build_os@,$build_os,;t t
31723 s,@host@,$host,;t t
31724 s,@host_cpu@,$host_cpu,;t t
31725 s,@host_vendor@,$host_vendor,;t t
31726 s,@host_os@,$host_os,;t t
31727 s,@target@,$target,;t t
31728 s,@target_cpu@,$target_cpu,;t t
31729 s,@target_vendor@,$target_vendor,;t t
31730 s,@target_os@,$target_os,;t t
31731 s,@OS@,$OS,;t t
31732 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31733 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31734 s,@ARCH@,$ARCH,;t t
31735 s,@ENDIAN@,$ENDIAN,;t t
31736 s,@CC@,$CC,;t t
31737 s,@CFLAGS@,$CFLAGS,;t t
31738 s,@LDFLAGS@,$LDFLAGS,;t t
31739 s,@CPPFLAGS@,$CPPFLAGS,;t t
31740 s,@ac_ct_CC@,$ac_ct_CC,;t t
31741 s,@EXEEXT@,$EXEEXT,;t t
31742 s,@OBJEXT@,$OBJEXT,;t t
31743 s,@CVSBUILD@,$CVSBUILD,;t t
31744 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31745 s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
31746 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31747 s,@JIT@,$JIT,;t t
31748 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
31749 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31750 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31751 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31752 s,@CPP@,$CPP,;t t
31753 s,@CXX@,$CXX,;t t
31754 s,@CXXFLAGS@,$CXXFLAGS,;t t
31755 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31756 s,@LEX@,$LEX,;t t
31757 s,@LEXLIB@,$LEXLIB,;t t
31758 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31759 s,@FLEX@,$FLEX,;t t
31760 s,@YACC@,$YACC,;t t
31761 s,@BISON@,$BISON,;t t
31762 s,@ifGNUmake@,$ifGNUmake,;t t
31763 s,@LN_S@,$LN_S,;t t
31764 s,@CMP@,$CMP,;t t
31765 s,@CP@,$CP,;t t
31766 s,@DATE@,$DATE,;t t
31767 s,@FIND@,$FIND,;t t
31768 s,@GREP@,$GREP,;t t
31769 s,@MKDIR@,$MKDIR,;t t
31770 s,@MV@,$MV,;t t
31771 s,@RANLIB@,$RANLIB,;t t
31772 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31773 s,@RM@,$RM,;t t
31774 s,@SED@,$SED,;t t
31775 s,@TAR@,$TAR,;t t
31776 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31777 s,@GV@,$GV,;t t
31778 s,@DOTTY@,$DOTTY,;t t
31779 s,@PERL@,$PERL,;t t
31780 s,@HAVE_PERL@,$HAVE_PERL,;t t
31781 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31782 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31783 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31784 s,@BZIP2@,$BZIP2,;t t
31785 s,@DOT@,$DOT,;t t
31786 s,@DOXYGEN@,$DOXYGEN,;t t
31787 s,@ETAGS@,$ETAGS,;t t
31788 s,@GROFF@,$GROFF,;t t
31789 s,@GZIP@,$GZIP,;t t
31790 s,@POD2HTML@,$POD2HTML,;t t
31791 s,@POD2MAN@,$POD2MAN,;t t
31792 s,@RUNTEST@,$RUNTEST,;t t
31793 s,@TCLSH@,$TCLSH,;t t
31794 s,@ZIP@,$ZIP,;t t
31795 s,@EGREP@,$EGREP,;t t
31796 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31797 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31798 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31799 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31800 s,@LIBADD_DL@,$LIBADD_DL,;t t
31801 s,@ECHO@,$ECHO,;t t
31802 s,@AR@,$AR,;t t
31803 s,@ac_ct_AR@,$ac_ct_AR,;t t
31804 s,@STRIP@,$STRIP,;t t
31805 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31806 s,@CXXCPP@,$CXXCPP,;t t
31807 s,@F77@,$F77,;t t
31808 s,@FFLAGS@,$FFLAGS,;t t
31809 s,@ac_ct_F77@,$ac_ct_F77,;t t
31810 s,@LIBTOOL@,$LIBTOOL,;t t
31811 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31812 s,@LLVMGCC@,$LLVMGCC,;t t
31813 s,@LLVMGXX@,$LLVMGXX,;t t
31814 s,@ALLOCA@,$ALLOCA,;t t
31815 s,@MMAP_FILE@,$MMAP_FILE,;t t
31816 s,@LLVMCC1@,$LLVMCC1,;t t
31817 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31818 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31819 s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31820 s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
31821 s,@SHLIBEXT@,$SHLIBEXT,;t t
31822 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31823 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31824 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31825 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31826 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31827 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31828 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31829 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31830 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31831 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31832 s,@LIBOBJS@,$LIBOBJS,;t t
31833 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31834 CEOF
31835
31836 _ACEOF
31837
31838   cat >>$CONFIG_STATUS <<\_ACEOF
31839   # Split the substitutions into bite-sized pieces for seds with
31840   # small command number limits, like on Digital OSF/1 and HP-UX.
31841   ac_max_sed_lines=48
31842   ac_sed_frag=1 # Number of current file.
31843   ac_beg=1 # First line for current file.
31844   ac_end=$ac_max_sed_lines # Line after last line for current file.
31845   ac_more_lines=:
31846   ac_sed_cmds=
31847   while $ac_more_lines; do
31848     if test $ac_beg -gt 1; then
31849       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31850     else
31851       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31852     fi
31853     if test ! -s $tmp/subs.frag; then
31854       ac_more_lines=false
31855     else
31856       # The purpose of the label and of the branching condition is to
31857       # speed up the sed processing (if there are no `@' at all, there
31858       # is no need to browse any of the substitutions).
31859       # These are the two extra sed commands mentioned above.
31860       (echo ':t
31861   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31862       if test -z "$ac_sed_cmds"; then
31863         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31864       else
31865         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31866       fi
31867       ac_sed_frag=`expr $ac_sed_frag + 1`
31868       ac_beg=$ac_end
31869       ac_end=`expr $ac_end + $ac_max_sed_lines`
31870     fi
31871   done
31872   if test -z "$ac_sed_cmds"; then
31873     ac_sed_cmds=cat
31874   fi
31875 fi # test -n "$CONFIG_FILES"
31876
31877 _ACEOF
31878 cat >>$CONFIG_STATUS <<\_ACEOF
31879 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31880   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31881   case $ac_file in
31882   - | *:- | *:-:* ) # input from stdin
31883         cat >$tmp/stdin
31884         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31885         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31886   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31887         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31888   * )   ac_file_in=$ac_file.in ;;
31889   esac
31890
31891   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31892   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31893 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31894          X"$ac_file" : 'X\(//\)[^/]' \| \
31895          X"$ac_file" : 'X\(//\)$' \| \
31896          X"$ac_file" : 'X\(/\)' \| \
31897          .     : '\(.\)' 2>/dev/null ||
31898 echo X"$ac_file" |
31899     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31900           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31901           /^X\(\/\/\)$/{ s//\1/; q; }
31902           /^X\(\/\).*/{ s//\1/; q; }
31903           s/.*/./; q'`
31904   { if $as_mkdir_p; then
31905     mkdir -p "$ac_dir"
31906   else
31907     as_dir="$ac_dir"
31908     as_dirs=
31909     while test ! -d "$as_dir"; do
31910       as_dirs="$as_dir $as_dirs"
31911       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31912 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31913          X"$as_dir" : 'X\(//\)[^/]' \| \
31914          X"$as_dir" : 'X\(//\)$' \| \
31915          X"$as_dir" : 'X\(/\)' \| \
31916          .     : '\(.\)' 2>/dev/null ||
31917 echo X"$as_dir" |
31918     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31919           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31920           /^X\(\/\/\)$/{ s//\1/; q; }
31921           /^X\(\/\).*/{ s//\1/; q; }
31922           s/.*/./; q'`
31923     done
31924     test ! -n "$as_dirs" || mkdir $as_dirs
31925   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31926 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31927    { (exit 1); exit 1; }; }; }
31928
31929   ac_builddir=.
31930
31931 if test "$ac_dir" != .; then
31932   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31933   # A "../" for each directory in $ac_dir_suffix.
31934   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31935 else
31936   ac_dir_suffix= ac_top_builddir=
31937 fi
31938
31939 case $srcdir in
31940   .)  # No --srcdir option.  We are building in place.
31941     ac_srcdir=.
31942     if test -z "$ac_top_builddir"; then
31943        ac_top_srcdir=.
31944     else
31945        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31946     fi ;;
31947   [\\/]* | ?:[\\/]* )  # Absolute path.
31948     ac_srcdir=$srcdir$ac_dir_suffix;
31949     ac_top_srcdir=$srcdir ;;
31950   *) # Relative path.
31951     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31952     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31953 esac
31954
31955 # Do not use `cd foo && pwd` to compute absolute paths, because
31956 # the directories may not exist.
31957 case `pwd` in
31958 .) ac_abs_builddir="$ac_dir";;
31959 *)
31960   case "$ac_dir" in
31961   .) ac_abs_builddir=`pwd`;;
31962   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31963   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31964   esac;;
31965 esac
31966 case $ac_abs_builddir in
31967 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31968 *)
31969   case ${ac_top_builddir}. in
31970   .) ac_abs_top_builddir=$ac_abs_builddir;;
31971   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31972   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31973   esac;;
31974 esac
31975 case $ac_abs_builddir in
31976 .) ac_abs_srcdir=$ac_srcdir;;
31977 *)
31978   case $ac_srcdir in
31979   .) ac_abs_srcdir=$ac_abs_builddir;;
31980   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31981   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31982   esac;;
31983 esac
31984 case $ac_abs_builddir in
31985 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31986 *)
31987   case $ac_top_srcdir in
31988   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31989   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31990   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31991   esac;;
31992 esac
31993
31994
31995   case $INSTALL in
31996   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31997   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31998   esac
31999
32000   if test x"$ac_file" != x-; then
32001     { echo "$as_me:$LINENO: creating $ac_file" >&5
32002 echo "$as_me: creating $ac_file" >&6;}
32003     rm -f "$ac_file"
32004   fi
32005   # Let's still pretend it is `configure' which instantiates (i.e., don't
32006   # use $as_me), people would be surprised to read:
32007   #    /* config.h.  Generated by config.status.  */
32008   if test x"$ac_file" = x-; then
32009     configure_input=
32010   else
32011     configure_input="$ac_file.  "
32012   fi
32013   configure_input=$configure_input"Generated from `echo $ac_file_in |
32014                                      sed 's,.*/,,'` by configure."
32015
32016   # First look for the input files in the build tree, otherwise in the
32017   # src tree.
32018   ac_file_inputs=`IFS=:
32019     for f in $ac_file_in; do
32020       case $f in
32021       -) echo $tmp/stdin ;;
32022       [\\/$]*)
32023          # Absolute (can't be DOS-style, as IFS=:)
32024          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32025 echo "$as_me: error: cannot find input file: $f" >&2;}
32026    { (exit 1); exit 1; }; }
32027          echo "$f";;
32028       *) # Relative
32029          if test -f "$f"; then
32030            # Build tree
32031            echo "$f"
32032          elif test -f "$srcdir/$f"; then
32033            # Source tree
32034            echo "$srcdir/$f"
32035          else
32036            # /dev/null tree
32037            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32038 echo "$as_me: error: cannot find input file: $f" >&2;}
32039    { (exit 1); exit 1; }; }
32040          fi;;
32041       esac
32042     done` || { (exit 1); exit 1; }
32043 _ACEOF
32044 cat >>$CONFIG_STATUS <<_ACEOF
32045   sed "$ac_vpsub
32046 $extrasub
32047 _ACEOF
32048 cat >>$CONFIG_STATUS <<\_ACEOF
32049 :t
32050 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32051 s,@configure_input@,$configure_input,;t t
32052 s,@srcdir@,$ac_srcdir,;t t
32053 s,@abs_srcdir@,$ac_abs_srcdir,;t t
32054 s,@top_srcdir@,$ac_top_srcdir,;t t
32055 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32056 s,@builddir@,$ac_builddir,;t t
32057 s,@abs_builddir@,$ac_abs_builddir,;t t
32058 s,@top_builddir@,$ac_top_builddir,;t t
32059 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32060 s,@INSTALL@,$ac_INSTALL,;t t
32061 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32062   rm -f $tmp/stdin
32063   if test x"$ac_file" != x-; then
32064     mv $tmp/out $ac_file
32065   else
32066     cat $tmp/out
32067     rm -f $tmp/out
32068   fi
32069
32070 done
32071 _ACEOF
32072 cat >>$CONFIG_STATUS <<\_ACEOF
32073
32074 #
32075 # CONFIG_HEADER section.
32076 #
32077
32078 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32079 # NAME is the cpp macro being defined and VALUE is the value it is being given.
32080 #
32081 # ac_d sets the value in "#define NAME VALUE" lines.
32082 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
32083 ac_dB='[         ].*$,\1#\2'
32084 ac_dC=' '
32085 ac_dD=',;t'
32086 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32087 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
32088 ac_uB='$,\1#\2define\3'
32089 ac_uC=' '
32090 ac_uD=',;t'
32091
32092 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32093   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32094   case $ac_file in
32095   - | *:- | *:-:* ) # input from stdin
32096         cat >$tmp/stdin
32097         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32098         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32099   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32100         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32101   * )   ac_file_in=$ac_file.in ;;
32102   esac
32103
32104   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32105 echo "$as_me: creating $ac_file" >&6;}
32106
32107   # First look for the input files in the build tree, otherwise in the
32108   # src tree.
32109   ac_file_inputs=`IFS=:
32110     for f in $ac_file_in; do
32111       case $f in
32112       -) echo $tmp/stdin ;;
32113       [\\/$]*)
32114          # Absolute (can't be DOS-style, as IFS=:)
32115          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32116 echo "$as_me: error: cannot find input file: $f" >&2;}
32117    { (exit 1); exit 1; }; }
32118          # Do quote $f, to prevent DOS paths from being IFS'd.
32119          echo "$f";;
32120       *) # Relative
32121          if test -f "$f"; then
32122            # Build tree
32123            echo "$f"
32124          elif test -f "$srcdir/$f"; then
32125            # Source tree
32126            echo "$srcdir/$f"
32127          else
32128            # /dev/null tree
32129            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32130 echo "$as_me: error: cannot find input file: $f" >&2;}
32131    { (exit 1); exit 1; }; }
32132          fi;;
32133       esac
32134     done` || { (exit 1); exit 1; }
32135   # Remove the trailing spaces.
32136   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
32137
32138 _ACEOF
32139
32140 # Transform confdefs.h into two sed scripts, `conftest.defines' and
32141 # `conftest.undefs', that substitutes the proper values into
32142 # config.h.in to produce config.h.  The first handles `#define'
32143 # templates, and the second `#undef' templates.
32144 # And first: Protect against being on the right side of a sed subst in
32145 # config.status.  Protect against being in an unquoted here document
32146 # in config.status.
32147 rm -f conftest.defines conftest.undefs
32148 # Using a here document instead of a string reduces the quoting nightmare.
32149 # Putting comments in sed scripts is not portable.
32150 #
32151 # `end' is used to avoid that the second main sed command (meant for
32152 # 0-ary CPP macros) applies to n-ary macro definitions.
32153 # See the Autoconf documentation for `clear'.
32154 cat >confdef2sed.sed <<\_ACEOF
32155 s/[\\&,]/\\&/g
32156 s,[\\$`],\\&,g
32157 t clear
32158 : clear
32159 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32160 t end
32161 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32162 : end
32163 _ACEOF
32164 # If some macros were called several times there might be several times
32165 # the same #defines, which is useless.  Nevertheless, we may not want to
32166 # sort them, since we want the *last* AC-DEFINE to be honored.
32167 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32168 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32169 rm -f confdef2sed.sed
32170
32171 # This sed command replaces #undef with comments.  This is necessary, for
32172 # example, in the case of _POSIX_SOURCE, which is predefined and required
32173 # on some systems where configure will not decide to define it.
32174 cat >>conftest.undefs <<\_ACEOF
32175 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32176 _ACEOF
32177
32178 # Break up conftest.defines because some shells have a limit on the size
32179 # of here documents, and old seds have small limits too (100 cmds).
32180 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32181 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32182 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32183 echo '  :' >>$CONFIG_STATUS
32184 rm -f conftest.tail
32185 while grep . conftest.defines >/dev/null
32186 do
32187   # Write a limited-size here document to $tmp/defines.sed.
32188   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32189   # Speed up: don't consider the non `#define' lines.
32190   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
32191   # Work around the forget-to-reset-the-flag bug.
32192   echo 't clr' >>$CONFIG_STATUS
32193   echo ': clr' >>$CONFIG_STATUS
32194   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32195   echo 'CEOF
32196   sed -f $tmp/defines.sed $tmp/in >$tmp/out
32197   rm -f $tmp/in
32198   mv $tmp/out $tmp/in
32199 ' >>$CONFIG_STATUS
32200   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32201   rm -f conftest.defines
32202   mv conftest.tail conftest.defines
32203 done
32204 rm -f conftest.defines
32205 echo '  fi # grep' >>$CONFIG_STATUS
32206 echo >>$CONFIG_STATUS
32207
32208 # Break up conftest.undefs because some shells have a limit on the size
32209 # of here documents, and old seds have small limits too (100 cmds).
32210 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
32211 rm -f conftest.tail
32212 while grep . conftest.undefs >/dev/null
32213 do
32214   # Write a limited-size here document to $tmp/undefs.sed.
32215   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32216   # Speed up: don't consider the non `#undef'
32217   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
32218   # Work around the forget-to-reset-the-flag bug.
32219   echo 't clr' >>$CONFIG_STATUS
32220   echo ': clr' >>$CONFIG_STATUS
32221   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32222   echo 'CEOF
32223   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32224   rm -f $tmp/in
32225   mv $tmp/out $tmp/in
32226 ' >>$CONFIG_STATUS
32227   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32228   rm -f conftest.undefs
32229   mv conftest.tail conftest.undefs
32230 done
32231 rm -f conftest.undefs
32232
32233 cat >>$CONFIG_STATUS <<\_ACEOF
32234   # Let's still pretend it is `configure' which instantiates (i.e., don't
32235   # use $as_me), people would be surprised to read:
32236   #    /* config.h.  Generated by config.status.  */
32237   if test x"$ac_file" = x-; then
32238     echo "/* Generated by configure.  */" >$tmp/config.h
32239   else
32240     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
32241   fi
32242   cat $tmp/in >>$tmp/config.h
32243   rm -f $tmp/in
32244   if test x"$ac_file" != x-; then
32245     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32246       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32247 echo "$as_me: $ac_file is unchanged" >&6;}
32248     else
32249       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32250 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32251          X"$ac_file" : 'X\(//\)[^/]' \| \
32252          X"$ac_file" : 'X\(//\)$' \| \
32253          X"$ac_file" : 'X\(/\)' \| \
32254          .     : '\(.\)' 2>/dev/null ||
32255 echo X"$ac_file" |
32256     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32257           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32258           /^X\(\/\/\)$/{ s//\1/; q; }
32259           /^X\(\/\).*/{ s//\1/; q; }
32260           s/.*/./; q'`
32261       { if $as_mkdir_p; then
32262     mkdir -p "$ac_dir"
32263   else
32264     as_dir="$ac_dir"
32265     as_dirs=
32266     while test ! -d "$as_dir"; do
32267       as_dirs="$as_dir $as_dirs"
32268       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32270          X"$as_dir" : 'X\(//\)[^/]' \| \
32271          X"$as_dir" : 'X\(//\)$' \| \
32272          X"$as_dir" : 'X\(/\)' \| \
32273          .     : '\(.\)' 2>/dev/null ||
32274 echo X"$as_dir" |
32275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32276           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32277           /^X\(\/\/\)$/{ s//\1/; q; }
32278           /^X\(\/\).*/{ s//\1/; q; }
32279           s/.*/./; q'`
32280     done
32281     test ! -n "$as_dirs" || mkdir $as_dirs
32282   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32283 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32284    { (exit 1); exit 1; }; }; }
32285
32286       rm -f $ac_file
32287       mv $tmp/config.h $ac_file
32288     fi
32289   else
32290     cat $tmp/config.h
32291     rm -f $tmp/config.h
32292   fi
32293 done
32294 _ACEOF
32295 cat >>$CONFIG_STATUS <<\_ACEOF
32296
32297 #
32298 # CONFIG_COMMANDS section.
32299 #
32300 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32301   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32302   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32303   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32304 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32305          X"$ac_dest" : 'X\(//\)[^/]' \| \
32306          X"$ac_dest" : 'X\(//\)$' \| \
32307          X"$ac_dest" : 'X\(/\)' \| \
32308          .     : '\(.\)' 2>/dev/null ||
32309 echo X"$ac_dest" |
32310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32311           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32312           /^X\(\/\/\)$/{ s//\1/; q; }
32313           /^X\(\/\).*/{ s//\1/; q; }
32314           s/.*/./; q'`
32315   { if $as_mkdir_p; then
32316     mkdir -p "$ac_dir"
32317   else
32318     as_dir="$ac_dir"
32319     as_dirs=
32320     while test ! -d "$as_dir"; do
32321       as_dirs="$as_dir $as_dirs"
32322       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32323 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32324          X"$as_dir" : 'X\(//\)[^/]' \| \
32325          X"$as_dir" : 'X\(//\)$' \| \
32326          X"$as_dir" : 'X\(/\)' \| \
32327          .     : '\(.\)' 2>/dev/null ||
32328 echo X"$as_dir" |
32329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32330           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32331           /^X\(\/\/\)$/{ s//\1/; q; }
32332           /^X\(\/\).*/{ s//\1/; q; }
32333           s/.*/./; q'`
32334     done
32335     test ! -n "$as_dirs" || mkdir $as_dirs
32336   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32337 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32338    { (exit 1); exit 1; }; }; }
32339
32340   ac_builddir=.
32341
32342 if test "$ac_dir" != .; then
32343   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32344   # A "../" for each directory in $ac_dir_suffix.
32345   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32346 else
32347   ac_dir_suffix= ac_top_builddir=
32348 fi
32349
32350 case $srcdir in
32351   .)  # No --srcdir option.  We are building in place.
32352     ac_srcdir=.
32353     if test -z "$ac_top_builddir"; then
32354        ac_top_srcdir=.
32355     else
32356        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32357     fi ;;
32358   [\\/]* | ?:[\\/]* )  # Absolute path.
32359     ac_srcdir=$srcdir$ac_dir_suffix;
32360     ac_top_srcdir=$srcdir ;;
32361   *) # Relative path.
32362     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32363     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32364 esac
32365
32366 # Do not use `cd foo && pwd` to compute absolute paths, because
32367 # the directories may not exist.
32368 case `pwd` in
32369 .) ac_abs_builddir="$ac_dir";;
32370 *)
32371   case "$ac_dir" in
32372   .) ac_abs_builddir=`pwd`;;
32373   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32374   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32375   esac;;
32376 esac
32377 case $ac_abs_builddir in
32378 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32379 *)
32380   case ${ac_top_builddir}. in
32381   .) ac_abs_top_builddir=$ac_abs_builddir;;
32382   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32383   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32384   esac;;
32385 esac
32386 case $ac_abs_builddir in
32387 .) ac_abs_srcdir=$ac_srcdir;;
32388 *)
32389   case $ac_srcdir in
32390   .) ac_abs_srcdir=$ac_abs_builddir;;
32391   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32392   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32393   esac;;
32394 esac
32395 case $ac_abs_builddir in
32396 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32397 *)
32398   case $ac_top_srcdir in
32399   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32400   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32401   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32402   esac;;
32403 esac
32404
32405
32406   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32407 echo "$as_me: executing $ac_dest commands" >&6;}
32408   case $ac_dest in
32409     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32410    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32411     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32412    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32413     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32414    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32415     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32416    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32417     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32418    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32419     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32420    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32421     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32422    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32423     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32424    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32425     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32426    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32427     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32428    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32429   esac
32430 done
32431 _ACEOF
32432
32433 cat >>$CONFIG_STATUS <<\_ACEOF
32434
32435 { (exit 0); exit 0; }
32436 _ACEOF
32437 chmod +x $CONFIG_STATUS
32438 ac_clean_files=$ac_clean_files_save
32439
32440
32441 # configure is writing to config.log, and then calls config.status.
32442 # config.status does its own redirection, appending to config.log.
32443 # Unfortunately, on DOS this fails, as config.log is still kept open
32444 # by configure, so config.status won't be able to write to it; its
32445 # output is simply discarded.  So we exec the FD to /dev/null,
32446 # effectively closing config.log, so it can be properly (re)opened and
32447 # appended to by config.status.  When coming back to configure, we
32448 # need to make the FD available again.
32449 if test "$no_create" != yes; then
32450   ac_cs_success=:
32451   ac_config_status_args=
32452   test "$silent" = yes &&
32453     ac_config_status_args="$ac_config_status_args --quiet"
32454   exec 5>/dev/null
32455   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32456   exec 5>>config.log
32457   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32458   # would make configure fail if this is the last instruction.
32459   $ac_cs_success || { (exit 1); exit 1; }
32460 fi
32461
32462 #
32463 # CONFIG_SUBDIRS section.
32464 #
32465 if test "$no_recursion" != yes; then
32466
32467   # Remove --cache-file and --srcdir arguments so they do not pile up.
32468   ac_sub_configure_args=
32469   ac_prev=
32470   for ac_arg in $ac_configure_args; do
32471     if test -n "$ac_prev"; then
32472       ac_prev=
32473       continue
32474     fi
32475     case $ac_arg in
32476     -cache-file | --cache-file | --cache-fil | --cache-fi \
32477     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32478       ac_prev=cache_file ;;
32479     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32480     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32481     | --c=*)
32482       ;;
32483     --config-cache | -C)
32484       ;;
32485     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32486       ac_prev=srcdir ;;
32487     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32488       ;;
32489     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32490       ac_prev=prefix ;;
32491     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32492       ;;
32493     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32494     esac
32495   done
32496
32497   # Always prepend --prefix to ensure using the same prefix
32498   # in subdir configurations.
32499   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32500
32501   ac_popdir=`pwd`
32502   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32503
32504     # Do not complain, so a configure script can configure whichever
32505     # parts of a large source tree are present.
32506     test -d $srcdir/$ac_dir || continue
32507
32508     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32509 echo "$as_me: configuring in $ac_dir" >&6;}
32510     { if $as_mkdir_p; then
32511     mkdir -p "$ac_dir"
32512   else
32513     as_dir="$ac_dir"
32514     as_dirs=
32515     while test ! -d "$as_dir"; do
32516       as_dirs="$as_dir $as_dirs"
32517       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32518 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32519          X"$as_dir" : 'X\(//\)[^/]' \| \
32520          X"$as_dir" : 'X\(//\)$' \| \
32521          X"$as_dir" : 'X\(/\)' \| \
32522          .     : '\(.\)' 2>/dev/null ||
32523 echo X"$as_dir" |
32524     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32525           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32526           /^X\(\/\/\)$/{ s//\1/; q; }
32527           /^X\(\/\).*/{ s//\1/; q; }
32528           s/.*/./; q'`
32529     done
32530     test ! -n "$as_dirs" || mkdir $as_dirs
32531   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32532 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32533    { (exit 1); exit 1; }; }; }
32534
32535     ac_builddir=.
32536
32537 if test "$ac_dir" != .; then
32538   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32539   # A "../" for each directory in $ac_dir_suffix.
32540   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32541 else
32542   ac_dir_suffix= ac_top_builddir=
32543 fi
32544
32545 case $srcdir in
32546   .)  # No --srcdir option.  We are building in place.
32547     ac_srcdir=.
32548     if test -z "$ac_top_builddir"; then
32549        ac_top_srcdir=.
32550     else
32551        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32552     fi ;;
32553   [\\/]* | ?:[\\/]* )  # Absolute path.
32554     ac_srcdir=$srcdir$ac_dir_suffix;
32555     ac_top_srcdir=$srcdir ;;
32556   *) # Relative path.
32557     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32558     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32559 esac
32560
32561 # Do not use `cd foo && pwd` to compute absolute paths, because
32562 # the directories may not exist.
32563 case `pwd` in
32564 .) ac_abs_builddir="$ac_dir";;
32565 *)
32566   case "$ac_dir" in
32567   .) ac_abs_builddir=`pwd`;;
32568   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32569   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32570   esac;;
32571 esac
32572 case $ac_abs_builddir in
32573 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32574 *)
32575   case ${ac_top_builddir}. in
32576   .) ac_abs_top_builddir=$ac_abs_builddir;;
32577   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32578   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32579   esac;;
32580 esac
32581 case $ac_abs_builddir in
32582 .) ac_abs_srcdir=$ac_srcdir;;
32583 *)
32584   case $ac_srcdir in
32585   .) ac_abs_srcdir=$ac_abs_builddir;;
32586   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32587   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32588   esac;;
32589 esac
32590 case $ac_abs_builddir in
32591 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32592 *)
32593   case $ac_top_srcdir in
32594   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32595   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32596   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32597   esac;;
32598 esac
32599
32600
32601     cd $ac_dir
32602
32603     # Check for guested configure; otherwise get Cygnus style configure.
32604     if test -f $ac_srcdir/configure.gnu; then
32605       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32606     elif test -f $ac_srcdir/configure; then
32607       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32608     elif test -f $ac_srcdir/configure.in; then
32609       ac_sub_configure=$ac_configure
32610     else
32611       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32612 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32613       ac_sub_configure=
32614     fi
32615
32616     # The recursion is here.
32617     if test -n "$ac_sub_configure"; then
32618       # Make the cache file name correct relative to the subdirectory.
32619       case $cache_file in
32620       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32621       *) # Relative path.
32622         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32623       esac
32624
32625       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32626 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32627       # The eval makes quoting arguments work.
32628       eval $ac_sub_configure $ac_sub_configure_args \
32629            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32630         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32631 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32632    { (exit 1); exit 1; }; }
32633     fi
32634
32635     cd $ac_popdir
32636   done
32637 fi
32638
32639
32640 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32641  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32642 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32643  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32644 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32645  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32646 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32647  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32648 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32649  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32650 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32651 fi